Summary
Reworks the dashboard shell around the shared sidebar primitives and brings the account, workspace, and settings navigation in line with the approved interaction pass.
- Adds the collapsible sidebar, immediate tooltips, persistent collapse state, and animated settings navigation swap.
- Rebuilds the account menu and workspace chooser, including progressive workspace disclosure and organization creation.
- Centralizes destructive confirmations so destructive controls consistently require explicit confirmation.
- Refines moderation cards, appeals empty states, zero-repository navigation, and related settings flows.
- Enforces LF line endings at the repository boundary to stop CRLF formatter drift.
Problem
Navigation behavior and spacing varied between expanded, collapsed, account, and settings surfaces. Destructive actions also relied on page-specific confirmation handling, which made dangerous controls inconsistent and easy to miss during feature work.
UX Flow
- Regular sidebar: browse the organization or repository, collapse without losing state, and open account or settings controls from stable positions.
- Settings: enter from the current product context, transition to the settings navigation, move between settings pages, then return to the route that preceded settings.
- Account menu: switch among visible workspaces, reveal additional workspaces on demand, or create an organization from the chooser.
- Destructive action: activate a destructive control, review the shared confirmation dialog, then explicitly confirm or cancel.
Solution
The shell now owns sidebar state and swaps navigation through the shared primitive. Account and workspace behavior live in dedicated components, while destructive button intent flows through a shared confirmation context and provider. Focused tests cover navigation visibility, return history, current-user behavior, and destructive confirmation context.