Skip to content

feat(chat): add /chats page with All chats sidebar nav#7

Merged
anujeet98 merged 2 commits into
mainfrom
feat/all-chats-sidebar
Jul 14, 2026
Merged

feat(chat): add /chats page with All chats sidebar nav#7
anujeet98 merged 2 commits into
mainfrom
feat/all-chats-sidebar

Conversation

@Rishavraaj

Copy link
Copy Markdown
Member

Summary

  • Add All chats as a first-class sidebar nav item (replaces inline "Your chats" recent-list)
  • Add /chats route backed by BaseTable with title and last-updated columns
  • Chat title renders with hover:underline consistent with Contacts, Companies, etc.

Changes

Sidebar (application-layout.tsx)

  • Add All chats nav item pointing to /chats with ChatBubbleLeftIcon
  • Remove useChats hook call and inline "Your chats" section — replaced by dedicated page

New: /chats page

  • apps/web/src/app/(app)/chats/page.tsx — thin page shell, sets <title>Chats</title>
  • apps/web/src/components/Chat/ChatsList.tsxBaseTable with two columns: Title (linked, hover-underline) and Last updated (relative time: Today / Yesterday / N days ago / date). Empty state with link to /chat.

Test plan

  • "All chats" nav item appears in sidebar; highlights correctly when on /chats
  • "New chat" nav item still highlights only on /chat (exact match)
  • /chats renders all chats in table; loading state shown while fetching
  • Clicking a row navigates to /chat/:id
  • Clicking the title link navigates to /chat/:id (underline on hover)
  • Empty state renders when user has no chats
  • Sidebar collapsed mode shows "All chats" icon with tooltip

Rishavraaj and others added 2 commits July 14, 2026 15:59
Replace inline "Your chats" recent-list in sidebar with a dedicated
All Chats nav item (mirrors Gather's pattern). Adds /chats route
backed by BaseTable with title/last-updated columns and hover-underline
on chat title consistent with other entity list pages.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@anujeet98
anujeet98 merged commit a12c4c5 into main Jul 14, 2026
1 check passed
@anujeet98
anujeet98 deleted the feat/all-chats-sidebar branch July 14, 2026 12:41
@Rishavraaj Rishavraaj self-assigned this Jul 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants