Repository navigation
feat(web): add collapsible sidebar, raise UI contrast - #10
Merged
Merged
Conversation
- Collapse the sidebar to an icon rail with a toggle or Ctrl/Cmd+B - Keep the state in a cookie so the first paint has the right width - Show nav labels in tooltips in rail mode - Raise border, input, hover, and muted text contrast - Mark the active nav item with a brand tint and bar
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds a collapsible sidebar to the dashboard and makes UI elements easier to see.
Collapsible sidebar
Ctrl+Bor⌘Bdoes the same.crocode-sidebar) keeps the state. The server layout reads it, so the first paint has the correct width.aria-expanded,aria-controls, andaria-keyshortcuts.mdbreakpoint, the mobile menu does not change.Contrast
These token changes in
globals.cssalso apply to the docs pages.--border--input--accent(hover)--secondary--muted-foreground--sidebarInput borders are still under 3:1. A stricter level that meets WCAG 1.4.11 would make inputs look heavy. That change can come later if needed.
Other changes
components/ui/tooltip.tsxcomes from the coss registry. It adds no new dependency.Validation
bun run lint,bun run typecheck,bun test(54 pass), andbun run buildbun run build:docsandbun run scripts/check-docs-export.tsbun run scripts/smoke.tsCtrl+Band⌘Btoggle the sidebar and update the cookie.Ctrl+Binside an input does nothing.