Skip to content

feat(ui): nav consolidation + mobile nav + light-mode sweep (Phase 2C)#20

Merged
gurdenbatra merged 1 commit into
mainfrom
phase-2-polish
Jun 13, 2026
Merged

feat(ui): nav consolidation + mobile nav + light-mode sweep (Phase 2C)#20
gurdenbatra merged 1 commit into
mainfrom
phase-2-polish

Conversation

@gurdenbatra

Copy link
Copy Markdown
Member

The Phase 2 polish bundle.

1. Nav consolidation (NavBar.tsx)

  • Primary row: Capture · Review · Graph · Ask · Reflect · Commitments (the /query label is now "Ask"; route unchanged).
  • "More ▾" popover: Portfolios · Intelligence · Dashboard.
  • Settings → a gear icon by the avatar; the redundant "Dashboard" text item is dropped (the xCO logo already links home).
  • Live "N to review" badge unchanged.

2. Mobile nav

Below sm, the desktop link row collapses to a hamburger → dropdown drawer with all links + Settings + Sign out. Pure Tailwind responsive (hidden sm:flex / sm:hidden); popover and drawer close on outside-click / route change / Escape. (Previously 10 links overflowed an unresponsive flex row.)

3. Light-mode sweep

Replaced ~40 hardcoded dark-only classes (bg-gray-900/800, border-gray-600/700/800, text-gray-200/300) in the capture surfaces — capture/[id]/page.tsx, InterventionForm.tsx, HunchCard.tsx — with theme-aware cof-* tokens; fixed the two dark-only skeleton lines in capture/[id]/review with dark: pairs. These rendered dark-on-light and looked broken in light mode.

Bonus

Rewrote and un-quarantined NavBar.test.tsx — one of the five suites quarantined when CI was introduced is green again (4 left for the triage task).

Decisions captured (yours)

  • "6 primary + More" grouping.

Test plan

  • NavBar.test rewritten (primary links, More popover reveal, review badge, mobile drawer) — runs in the gate again
  • re-grep: zero remaining dark-only bg-gray-(7/8/9)00 / text-gray-(2/3)00 in the touched capture surfaces
  • clean tsc → 0 · eslint . → 0 · vitest run → 561 pass (75 files)

Spec: docs/superpowers/specs/2026-06-12-nav-mobile-lightmode-design.md. Phase 2 piece C. Remaining: D (optional capture titles).

Nav (NavBar.tsx):
- Primary row: Capture · Review · Graph · Ask · Reflect · Commitments (Query
  label → Ask). Secondary (Portfolios · Intelligence · Dashboard) move to a
  "More ▾" popover. Settings → gear icon by the avatar; the redundant Dashboard
  text item is dropped (the xCO logo already links home). Live "N to review"
  badge unchanged.
- Mobile (<sm): the desktop row collapses to a hamburger that opens a dropdown
  drawer with all links + Settings + Sign out. Pure Tailwind responsive
  (hidden sm:flex / sm:hidden); popover + drawer close on outside-click / route
  change / Escape.

Light mode: replaced ~40 hardcoded dark-only classes (bg-gray-900/800,
border-gray-600/700/800, text-gray-200/300) in the capture surfaces
(capture/[id]/page, InterventionForm, HunchCard) with theme-aware cof-* tokens;
fixed the two dark-only skeleton lines in capture/[id]/review with dark: pairs.

Re-enabled the NavBar test suite (rewritten for the new structure) and removed
it from the vitest QUARANTINE list — one of the five quarantined suites is now
green again.

tsc 0, lint 0, 561 pass.
@vercel

vercel Bot commented Jun 12, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
cof-learning-system Ready Ready Preview, Comment Jun 12, 2026 9:55pm

Request Review

@gurdenbatra gurdenbatra merged commit bfee6b6 into main Jun 13, 2026
3 checks passed
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