feat: fold the navigation sidebar to a mini rail (#346) #347
All Vouch review confidence checks passed
Residual risk 0.18 = Change Risk (0.45) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.45 · 443 lines diff across 5 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.365
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #347"
general
weight: 0.35
qwts
Closes #346
Implements the design export's collapsed sidebar state (
bookmarkit_manager_sidebar_collapsed, beside the updated expanded page): the persistent rail folds to a 64px mini rail, desktop-only.What changed
dock_to_left/dock_to_rightfrom the new icon pair) carryingaria-expandedandaria-controls="workspace-sidebar"; the aside answers withidanddata-collapsed. The label promises the state a press delivers — "Collapse sidebar" unfolded, "Expand sidebar" folded.aria-label+title— label and count, as the mockup titles them — and Add Bookmark squares to its 40px icon.FolderTreegains aniconOnlyreading: flat, named icon rows, no carets, every folder visible, selection and drops still live.useSidebarCollapsedpersists the preference (bm_sidebar_collapsed, read before first paint like the view mode is), BookmarkApp stampsdata-sidebar-collapsedon the shell, and the≥lgblock re-points--app-sidebar-widthto4rem— the rail, the shell's padding and the fixed header and toast dock fold in the same step, the width animating on--ui-duration-enter/--ui-ease-enterunder the existing global reduced-motion rules.SidebarNavguardsfolded = collapsed && !onClose, and BookmarkApp passes the flag to the rail mount alone — belowlgthe drawer keeps its prose, its help entry and no toggle, whatever the preference says.sidebar-label/sidebar-count/sidebar-nav-itemhooks, the toggle handler), and the collapsed state lands as its own page (bookmarkit_manager_sidebar_collapsed) — both ported with the recorded #339 corrections kept (Ctrl/Cmd+K, the demo toast and form staying hidden). README documents the fold; DESIGN.md records it beside the #283/#294 chrome decisions. Stories gainCollapsed; changeset (minor).Acceptance
aria-expandedfollow the statelgupnpm run cigreenNew suites:
useSidebarCollapsed.test.js(persistence, storage-refused fallbacks), five mini-rail pins inSidebarNav.test.jsx(folded names, drawer immunity), fourFolderTreeicon-only pins (flat rows, live drops, root row, no manage), and two shell wiring tests (fold + frame attribute + persistence, mount-already-folded). 1395 tests green locally; the branch landed as five GitHub-signed bot commits and the landed tree was byte-compared against the staged snapshot (tree hash identical) before opening this PR.<!-- agent-bot-write: ghw_e912eb30a814f9ad session=ba9070074325 bot=trueline-zcode-agent[bot] conversation_id=sess_f455d119-306c-4563-9b87-5178a9d572d2 conversation_id_source=self-reported -->