Skip to content

fix(sidebar): preserve canonical section state - #586

Open
beruro wants to merge 1 commit into
developfrom
junyu/sidebar-state-correctness
Open

fix(sidebar): preserve canonical section state#586
beruro wants to merge 1 commit into
developfrom
junyu/sidebar-state-correctness

Conversation

@beruro

@beruro beruro commented Jul 30, 2026

Copy link
Copy Markdown
Collaborator

Problem

Sidebar cloud-session ordering and persisted section-collapse state can be overridden by pagination/search projections, causing unstable order or lost user state.

Solution

  • Sort cloud-scoped local sessions by canonical activity before pagination.
  • Keep persisted collapse state authoritative while search only filters visible rows.
  • Add focused ordering and collapse-state regression coverage.
  • Validation: 8 focused Vitest tests, TypeScript typecheck, frontend UI audit, and GitHub CI.

Potential risks

  • Changes to canonical activity timestamps could alter ordering semantics.
  • Search expansion must not accidentally persist temporary expanded/collapsed state.

@beruro
beruro force-pushed the junyu/sidebar-state-correctness branch from aa6eb07 to 4d5704b Compare July 30, 2026 15:10
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