Skip to content

[FEATURE] Add "Rename Chat" functionality to the Dashboard and All Chats pages #275

@Mohammad-Hassan027

Description

@Mohammad-Hassan027

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

  1. Add a PATCH /api/v1/chat/:chatId backend endpoint that accepts { name: string } and updates Chat.name in the database (with verifyChatOwnership middleware).
  2. In the Dashboard chat card and AllChats list row, add an inline edit button (pencil icon) next to the chat title.
  3. On click, replace the title with an <input> pre-filled with the current name. On blur or Enter, call the new PATCH endpoint.
  4. 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.

Metadata

Metadata

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions