Skip to content

fix: order sidebar local and cloud projects by activity#673

Merged
Mng-dev-ai merged 1 commit into
mainfrom
fix/sort-sidebar-projects-by-activity
Jun 25, 2026
Merged

fix: order sidebar local and cloud projects by activity#673
Mng-dev-ai merged 1 commit into
mainfrom
fix/sort-sidebar-projects-by-activity

Conversation

@Mng-dev-ai

Copy link
Copy Markdown
Owner

Summary

  • Merge local and cloud workspaces into one sidebar list sorted by activity (last_chat_at, falling back to updated_at), so a fresh cloud chat can move its project above stale local projects. Previously the two were rendered as fixed sections and could never interleave.
  • Extract sharedGroupProps to remove duplication between the local and cloud group renders.
  • On new cloud chat, invalidate cloud workspaces in addition to cloud chats so the project re-sorts to the top immediately.

This re-attempts the work reverted in #672 (revert of #671), now with local + cloud ordering unified so the re-sort is actually reflected.

Test plan

  • Start a new cloud chat and confirm its project bubbles to the top of the sidebar
  • Confirm local and cloud projects interleave by activity rather than in fixed sections
  • Confirm local-only header actions (new thread, context menu) still work on local groups

Local and cloud workspaces are fetched separately and were rendered as
two fixed sections, so a fresh cloud chat could not move its project
above stale local projects. Merge both into one list sorted by
last_chat_at, and invalidate cloud workspaces on new cloud chat so the
re-sort happens immediately.
@Mng-dev-ai Mng-dev-ai marked this pull request as ready for review June 25, 2026 00:30
@Mng-dev-ai Mng-dev-ai merged commit c338faf into main Jun 25, 2026
2 checks passed
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