feat(web): sidebar collapse / icon-only mode + persistence #1024
Labels
No labels
area:agents
area:dashboard
area:database
area:design
area:design-review
area:flows
area:infra
area:meta
area:security
area:sessions
area:webhook
area:workdir
security
type:bug
type:chore
type:meta
type:user-story
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
charles/claude-hooks#1024
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
As an operator who works in a dense layout,
I want the sidebar to collapse to an icon-only rail with a keyboard shortcut and a persistent state,
so that I can reclaim horizontal space when working on the board or workspace and not lose nav access.
Acceptance criteria
Toggle
PanelLeftClose(expanded) /PanelLeftOpen(collapsed).<button aria-pressed={collapsed} aria-label="Collapse navigation">.[toggles collapse (registered in #nav-v2-3 registry).Visual
transition-[width] duration-150 motion-reduce:transition-none.<h2>headings replaced by<hr role="separator" aria-label="<group label>">.h-10 w-10(≥ 40 × 40 tap target).Tooltips
<Tooltip>(@base-ui-components/react); 500 ms delay;side="right".rounded-compact bg-bg-elevated px-2 py-1 text-meta shadow-lifted.aria-labelon link carries item name (so screen readers announce it; tooltip is sighted-only sugar).title=attributes onboard-card.tsxStatusStripewith the same<Tooltip>primitive in this PR (one tooltip pattern across the app).Persistence
localStorage('nav.collapsed').<script>inapps/web/index.htmlreads the key and sets<html data-nav="collapsed">before React hydration (mirror existing theme-toggle pattern). Sidebar reads the data attribute on mount.Tests
[key both flip state.Out of scope
aria-expanded).References
docs/specs/nav-consolidation.md§ Collapse / icon-only mode, § Risks (decisions).