Is your feature request related to a problem? Please describe.
Once a chat is created, there is no way to rename it through the UI. The chat name is auto-generated from the page title or URL, which is often not descriptive (e.g., "React – A JavaScript library for building user interfaces").
Describe the Solution You'd Like
- Add a
PATCH /api/v1/chat/:chatId backend endpoint that accepts { name: string } and updates Chat.name in the database (with verifyChatOwnership middleware).
- In the Dashboard chat card and AllChats list row, add an inline edit button (pencil icon) next to the chat title.
- On click, replace the title with an
<input> pre-filled with the current name. On blur or Enter, call the new PATCH endpoint.
- Invalidate the chat list cache on success.
Describe Alternatives You've Considered
Adding a rename option inside the chat page header (left panel).
Additional Context
The backend already has verifyChatOwnership middleware and asyncHandler utilities. This is a small addition — one new route, one controller function, and a small UI component.
Is your feature request related to a problem? Please describe.
Once a chat is created, there is no way to rename it through the UI. The chat name is auto-generated from the page title or URL, which is often not descriptive (e.g., "React – A JavaScript library for building user interfaces").
Describe the Solution You'd Like
PATCH /api/v1/chat/:chatIdbackend endpoint that accepts{ name: string }and updatesChat.namein the database (withverifyChatOwnershipmiddleware).<input>pre-filled with the current name. On blur or Enter, call the new PATCH endpoint.Describe Alternatives You've Considered
Adding a rename option inside the chat page header (left panel).
Additional Context
The backend already has
verifyChatOwnershipmiddleware andasyncHandlerutilities. This is a small addition — one new route, one controller function, and a small UI component.