Skip to content

fix(sidebar): remember expanded thread sections - #1268

Merged
nixuuu merged 1 commit into
devfrom
fix/persist-section-collapse-state
Nov 25, 2026
Merged

nixuuu merged 1 commit into
devfrom
fix/persist-section-collapse-state

Conversation

@nixuuu

@nixuuu nixuuu commented Nov 25, 2026 •

Copy link
Copy Markdown
Member

Change

The Working and Snoozed lists lost their expanded state when Canopy remounted the Threads sidebar after a trip to Bots.

  • Save each section’s expanded state in the existing device and gateway preferences on web, desktop, and mobile.
  • Restore both choices after changing tabs or restarting the client. Snoozed still opens for search, and toggling it during a search leaves the saved choice intact.

Fixes: #1064

Verification

  • Chromium at 1320 px and at 390 px with touch. Checked both defaults, expansion and collapse across Threads → Bots → Threads and reload, and the temporary Snoozed state during search.
  • Device-view integration tests, web and mobile typechecks, scoped lint and formatting, and git diff --check.
  • Android 16 emulator with the Canopy development client and a fixture gateway. Verified both sections expanded and a mixed expanded/collapsed state across tab switches and force-stop/relaunch.
  • GitHub CI runs the repository-wide gate and selected builds.

Persist the Working and Snoozed disclosures in the existing device view so the sidebar restores them after remounting.

Fixes: #1064
@nixuuu
nixuuu enabled auto-merge (squash) November 25, 2026 11:20
@nixuuu
nixuuu merged commit 451c462 into dev Nov 25, 2026
21 checks passed
@nixuuu
nixuuu deleted the fix/persist-section-collapse-state branch November 25, 2026 11:31
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