Skip to content

Sort project chats newest-first and increase show-more limit to 5#84

Merged
wesbillman merged 1 commit intomainfrom
chat-list-order
Apr 2, 2026
Merged

Sort project chats newest-first and increase show-more limit to 5#84
wesbillman merged 1 commit intomainfrom
chat-list-order

Conversation

@wesbillman
Copy link
Copy Markdown
Collaborator

Changes

Problem: New chats in projects appear at the bottom of the list, sometimes hidden behind the "Show more" button. The show-more limit of 3 is also too low.

Fix:

  1. Sort project chats by newest first — Added descending updatedAt sort for project chat arrays in Sidebar.tsx, matching the existing sort behavior for standalone chats. New chats now appear at the top of the project's chat list.

  2. Increase show-more limit from 3 to 5 — Changed MAX_VISIBLE_CHATS from 3 to 5 in SidebarProjectsSection.tsx, so users see more chats before needing to click "Show more".

Files changed

  • src/features/sidebar/ui/Sidebar.tsx — sort project chats descending by updatedAt
  • src/features/sidebar/ui/SidebarProjectsSection.tsxMAX_VISIBLE_CHATS = 35

- Add descending updatedAt sort for project chat lists in sidebar so new chats appear at the top instead of the bottom
- Increase MAX_VISIBLE_CHATS from 3 to 5 so more chats are visible before the 'Show more' button
@wesbillman wesbillman merged commit d08a409 into main Apr 2, 2026
7 checks passed
@wesbillman wesbillman deleted the chat-list-order branch April 2, 2026 21:57
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.

1 participant