Files
co-lite/openspec/changes/archive/2026-12-01-add-visual-foundation/tasks.md
T

2.4 KiB

Tasks

Serial. One implementer at a time, Opus review gate per task.

1. Theme

  • 1.1 Token values (light and dark), radius 0.5rem, a card shadow token, Inter only (drop DM Sans).
    • Depends on: none
    • Tests first: <html> carries only the Inter font variable; globals.css has no DM Sans; --primary is the blue accent in light and dark.
    • Scope: solvway-admin-portal/app/globals.css, solvway-admin-portal/app/layout.tsx, solvway-admin-portal/app/layout.test.tsx, solvway-admin-portal/app/globals.test.ts, solvway-admin-portal/app/fonts/**, solvway-admin-portal/tailwind.config.ts
    • Verify: cd solvway-admin-portal && npm run lint; echo L=$?; npx tsc --noEmit; echo T=$?; npx vitest run; echo V=$?

2. Shell

  • 2.1 Sidebar wordmark (mark plus solid "Co-Lite"; remove brand-gradient-text from globals.css), cards use the shadow token, active item in the accent, header and page header spacing to the reference sketch; company picker becomes the styled select.
    • Depends on: 1.1
    • Tests first: sidebar shows "Co-Lite" with no gradient class; only the current nav item is marked active; the company picker opens a menu with "All companies" and each code, and choosing one sets the scope.
    • Scope: solvway-admin-portal/app/components/app/**, solvway-admin-portal/app/components/ui/**, solvway-admin-portal/app/lib/CompanyScope*.tsx, solvway-admin-portal/app/globals.css
    • Verify: as 1.1

3. Form dropdowns

  • 3.1 Replace the native selects in the event form, user form, company status, and the new and edit event-lead pages with the styled select; values save as before.
    • Depends on: 2.1
    • Tests first: each dropdown opens a menu, choosing an option sends that value on save; keyboard opens and chooses.
    • Scope: solvway-admin-portal/app/components/events/**, solvway-admin-portal/app/components/users/**, solvway-admin-portal/app/companies/**, solvway-admin-portal/app/event-leads/**, solvway-admin-portal/app/companyScope.forms.test.tsx
    • Verify: as 1.1

4. Check and record

  • 4.1 Playwright at 1280 and 360 px, light and dark: dashboard, events list, event edit, event leads, a user form, companies; screenshots in the PR. Then the impeccable finish review and DESIGN.md from the built result.
    • Depends on: 3.1
    • Scope: solvway-admin-portal/DESIGN.md, openspec/changes/add-visual-foundation/tasks.md
    • Verify: as 1.1