feat: visual foundation for the admin portal (add-visual-foundation) #35

Merged
ngqile merged 10 commits from add-visual-foundation into main 2026-12-01 12:16:35 +00:00
Owner

Summary

Replaces the inherited babyboo look across the admin portal with the direction the owner chose on 2026-12-01: the category-standard admin, done well.

  • Theme tokens (light and dark): slate neutrals, one blue accent (#2563EB), no gold or brown left; 8px cards, 6px controls, one soft card shadow.
  • Inter only (DM Sans and its font file removed).
  • Shell: blue square mark plus solid "Co-Lite" wordmark (no gradient), active nav item in the accent tint, 240px sidebar, 56px header, one-line footer credit.
  • Every native <select> replaced by the styled Radix select: header company picker, event form, user form, company status, new and edit event-lead pages. Saved request bodies unchanged.
  • Contrast is now tested: text pairs at least 4.5:1 and control borders at least 3:1 in both themes (app/globals.test.ts).
  • DESIGN.md records the system as built.
  • Also fixes a pre-existing type error: app/events/page.tsx exported a non-page value that Next's generated page types reject.

OpenSpec change: openspec/changes/add-visual-foundation (new capability admin-visual-design). Design: docs/superpowers/specs/2026-12-01-visual-foundation-design.md.

Out of scope, next change on the same tokens: My QR codes, visitor pages (/r, /i, /c), login, and the header label that repeats page titles.

Verification

  • npm run lint 0 errors, npx tsc --noEmit 0, npx vitest run 207 files / 1440 tests passed.
  • Playwright on the local stack at 1280 and 360 px, light and dark: dashboard, events, event leads, companies, users, new event form (dropdown open and validation errors), company picker open. No records were created.
  • Per-task Opus review gate, whole-branch code review, and an Impeccable finish review with one fix round.
  • CI on main currently stops before checkout (failed to interpolate container.credentials.username: a missing repository secret), so there is no CI signal for this PR.

🤖 Generated with Claude Code

https://claude.ai/code/session_01EFUzfj5akPxyikzGc2iAHM

## Summary Replaces the inherited babyboo look across the admin portal with the direction the owner chose on 2026-12-01: the category-standard admin, done well. - Theme tokens (light and dark): slate neutrals, one blue accent (#2563EB), no gold or brown left; 8px cards, 6px controls, one soft card shadow. - Inter only (DM Sans and its font file removed). - Shell: blue square mark plus solid "Co-Lite" wordmark (no gradient), active nav item in the accent tint, 240px sidebar, 56px header, one-line footer credit. - Every native `<select>` replaced by the styled Radix select: header company picker, event form, user form, company status, new and edit event-lead pages. Saved request bodies unchanged. - Contrast is now tested: text pairs at least 4.5:1 and control borders at least 3:1 in both themes (`app/globals.test.ts`). - `DESIGN.md` records the system as built. - Also fixes a pre-existing type error: `app/events/page.tsx` exported a non-page value that Next's generated page types reject. OpenSpec change: `openspec/changes/add-visual-foundation` (new capability `admin-visual-design`). Design: `docs/superpowers/specs/2026-12-01-visual-foundation-design.md`. Out of scope, next change on the same tokens: My QR codes, visitor pages (`/r`, `/i`, `/c`), login, and the header label that repeats page titles. ## Verification - `npm run lint` 0 errors, `npx tsc --noEmit` 0, `npx vitest run` 207 files / 1440 tests passed. - Playwright on the local stack at 1280 and 360 px, light and dark: dashboard, events, event leads, companies, users, new event form (dropdown open and validation errors), company picker open. No records were created. - Per-task Opus review gate, whole-branch code review, and an Impeccable finish review with one fix round. - CI on main currently stops before checkout (`failed to interpolate container.credentials.username`: a missing repository secret), so there is no CI signal for this PR. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01EFUzfj5akPxyikzGc2iAHM
ngqile added 10 commits 2026-12-01 12:16:27 +00:00
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfj5akPxyikzGc2iAHM
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfj5akPxyikzGc2iAHM
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfj5akPxyikzGc2iAHM
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfj5akPxyikzGc2iAHM
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfj5akPxyikzGc2iAHM
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfj5akPxyikzGc2iAHM
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfj5akPxyikzGc2iAHM
Input borders reach 3:1, contrast checks for token pairs, white input fill,
company placeholder and team hint, KPI baseline, one-line footer credit,
tabular dates, selection colour, unused contrast tokens removed, and the
events page no longer exports a non-page value.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfj5akPxyikzGc2iAHM
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfj5akPxyikzGc2iAHM
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfj5akPxyikzGc2iAHM
ngqile merged commit c82b9365dd into main 2026-12-01 12:16:35 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: ngqile/co-lite#35