Plan: Graphite redesign
Spec: docs/specs/web-ui-graphite.md (GR-1…19). Skill: .claude/skills/web-design-system. Branch feat/graphite-ui, one worktree (.claude/worktrees/graphite-ui).
How it runs
Each slice runs implementer → test-writer → verifier (all Sonnet), in order. The next slice starts when the verifier says DONE. A NOT DONE result goes back to the implementer with the verifier's table. The slices touch the same shell files, so they run one after another, not in parallel. There is one commit per slice (conventional, explicit paths).
Slices
| # | Slice | Covers | Main files |
|---|---|---|---|
| 1 | Tokens and theme. Rewrite tokens.css with both themes, depth, dots and aurora tokens; add the pre-paint theme script in index.html; add a useTheme hook (localStorage + prefers-color-scheme); add repo-badge tint pairs. All screens keep working on renamed tokens. | GR-15, 16, 18, 19 | web/src/styles/*, web/index.html, web/src/app/useTheme.ts |
| 2 | Contract. Add repo and branch to ThreadDto, and fill them in the engine's thread query. | GR-6 (data) | shared/src/api/threads.ts, engine thread read model + tests |
| 3 | Shell and sidebar. Build the framed window with the aurora and dot grid; the sidebar (brand row, theme toggle, search, filters, groups, rows, footer); remove the header and nav; move usage and engine state into the sidebar; add the responsive rules. | GR-1, 3, 4, 5, 6, 7, 17 | web/src/app/Shell.*, web/src/features/chat/ThreadList.*, threadFilters.ts |
| 4 | Thread view and composer. Header, bubbles, the Worked for fold, the status block, waiting cards, the composer with the model selector. | GR-8…12 | web/src/features/chat/** |
| 5 | Task panel. Facts, Stages/Artifacts, Runs and Limits cards; the toggle and its persistence; the overlay below 1100 px. | GR-2, 13 | web/src/features/chat/TaskPanel.* |
| 6 | Overview and the rest. Restyle Overview, then Tasks, Task detail, Session console, Usage, Config, Connections and Capabilities onto the new tokens. | GR-14, 16 | web/src/features/*/**.module.css |
| 7 | Acceptance. Extend the axe e2e to both themes; take screenshots at 1440, 1024 and 375 px; run a reduced-motion check; update web-ui-design.md and STATUS.md. | Acceptance 1–4 | web/e2e/**, docs |
Gate after each slice
pnpm --filter @jarvis/web test, typecheck, build and pnpm lint must be green. Slice 2 also runs the shared and engine unit tests. The verifier's table must show every slice ID as CONFIRMED.
Risks
- Effects cost (
backdrop-filter, a large blurred layer). One blur per pane; the aurora animates only transform and filter. Check scrolling in the sidebar with ~300 threads. - Contrast over the aurora. The verifier computes contrast at the brightest aurora point under each surface. Lower the aurora alpha before lightening text.
- Existing tests that query the old header or nav. Rewrite their queries in slice 3 and keep their intent.
Deferred
- Attach in the composer (GR-12). No upload exists in the engine or the specs, so slice 4 leaves it out rather than ship a dead control.
Implementing 3/5(GR-6).ThreadDtohas no step count, so the row readsImplementing.- Exact
Worked forfolding (GR-9). Messages carry no run id, so slice 4 folds by the dispatcher run's time window. ArunIdon messages would make it exact. - Visual checks for slice 7. Status-bar segment labels at 375 px, the composer focus ring at 3:1, and contrast over the brightest aurora point.