Spec: Graphite — the web UI redesign
Replaces the Navigation and shell layout and the Visual language of web-ui-design.md. Everything else there stays: routes, data, actions and states. Design reference: the canvas "Jarvis — redesign draft" (https://claude.ai/artifact/KL8sFsBFgynFoCDaJNCfcc), artboards Main, Decision and Overview, each dark and light. Where the canvas and this text differ, this text wins. How to build it: .claude/skills/web-design-system.
Why
The owner's loop is: see what needs me, answer, watch the task move. Today that loop is spread over a header, a nav column, a thread column and separate pages. Graphite makes the thread list the navigation, keeps the conversation calm in the centre, and puts the task's facts beside it. The look becomes a dense night-navy interface with depth, a dot grid and a slow aurora, and gains a light theme.
Out of scope: new screens, behaviour changes, a docked console, a mobile-specific layout.
Requirements
Layout
- GR-1 One framed window inside a page margin, with three columns: sidebar 264 px, main (fluid), task panel 300 px. The old header and nav column are removed.
- GR-2 The sidebar is on every route. The task panel is shown only on
/chat/:threadIdwhen the thread has a task. The owner can toggle it from the thread header, and the choice persists. - GR-3 Below 1100 px the task panel opens as an overlay. Below 720 px the sidebar stacks above the main column. There is no horizontal scroll at 375 px.
Sidebar
- GR-4 Top: collapse toggle,
Jarvis, the deployment badge, the theme toggle. Below: search (title, task ID, repo), the existing filters behind a filter button, andNew thread. - GR-5 Threads are grouped
Waiting for you→Working→Settled, each group with its count and newest first.Settledis collapsed by default, and the collapsed state persists. TheArchivedfilter shows one flat list. - GR-6 A row shows the repo badge, repo and time on the first line, the title (one line, full text in a tooltip) on the second, and the branch (mono) plus a state label (
Approve spec,Implementing 3/5,PR #38 merged) on the third. The open row is raised and hasaria-current="page". Archive stays on hover and focus. - GR-7 The footer shows today's notional usage with a bar (links to Usage), icon links to Overview, Tasks, Usage, Connections, Capabilities and Config, and the engine state (
Live/Reconnecting…/Offline). This replacesUsageMeter,WaitingCounterandConnectionIndicatorin the header. The budget banner stays, above the main column.
Thread
- GR-8 The header shows the repo badge / repo / title, the task chip, the
⋯menu, a console button (opens/sessions/:id) and the panel toggle. The PR link, the hold mark and theArchivedmark stay. - GR-9 Owner messages are right-aligned bubbles. Jarvis text has no bubble. A dispatcher run folds into
Worked for <duration> ›, which expands to show the run's messages. - GR-10 The status block has: icon, stage, sub-line, elapsed time; a 7-segment bar (
Context · Spec · Plan · Impl · Verify · Review · PR); thetasks.mdchecklist; and a footer with the running command,ConsoleandStop. - GR-11 A card that waits for the owner (decision, question, permission) has an amber line and tint, one filled primary action and one outline action. A compact stage line sits above it.
- GR-12 Composer: a raised box with a labelled textarea, attach, the queue hint (DSP-10), the model selector (moved here from the header, behaviour unchanged) and a round send button. Content width is 640 px at most.
Task panel and Overview
- GR-13 Task panel cards:
- Facts: repo link, branch, PR link or
PR — opens after review. - Stages (while waiting) or Artifacts (otherwise).
- Runs: each run with its state symbol and duration, plus the total notional cost. A row opens the console.
- Limits: attempts, turns, start time.
- Facts: repo link, branch, PR link or
- GR-14 Overview is restyled. It has KPI tiles (
Waiting for youuses the waiting tint), worker cards with the segment bar,QueueandWatchingside by side, andEvent log. Its content is unchanged.
Look
- GR-15 Dark and light themes are built from the same semantic tokens, and every token exists in both. The sidebar toggle switches the theme without a reload, persists it in
localStorage, followsprefers-color-schemeuntil set, and applies before first paint. - GR-16 Colour means status only: working, waiting, done, failed. The primary button is the theme inverted. Depth comes from shadow tokens (window, card, input, selected) and a top highlight on dark cards.
- GR-17 A 22 px dot grid fades from the top left, and a four-colour aurora drifts behind the translucent panes. Both are CSS-only, decorative, use transform/opacity/filter only, and stop under
prefers-reduced-motion(spinners stop too). - GR-18 Inter for the interface, JetBrains Mono for IDs, branches, commands and money (both self-hosted). Icons are Lucide via
Icon. Repo badges get a stable tint per repo name. - GR-19 In both themes, text is ≥ 4.5:1 and indicators ≥ 3:1, over the brightest aurora point. Every icon-only control is named. Focus rings are visible. Status is never shown by colour alone.
Polish after the first review (2026-12-01)
- GR-20 The sidebar width can be changed by dragging its right edge, between 220 and 420 px (default 264). The handle is a
separatorwitharia-valuenow/min/max, works with the arrow keys and Home/End, resets on double-click, and the width persists. - GR-21 The page around the window is not a flat black void: the dot grid and the aurora show in the page margin as well as behind the panes, as on the canvas. The margin is 16 px (8 px below 720 px).
- GR-22 Density follows the canvas:
New threadis an icon button beside the filter; search has no box; a row shows a waiting state inferred from the stage (Approve specfor Spec Review,Questionfor Blocked, elseWaiting) instead of a genericWaiting for you(aPermissionlabel needs the pending kind onThreadDto: later); message timestamps show on hover, while the feed has keyboard focus, and faintly on touch devices, not under every message; consecutive system lines collapse into one quiet line; the thread header keeps the task chip and moves the stage to the status block (the PR link stays); the composer has one hint line inside the box and the model selector looks like a text button; the task panel has no title bar and shows artifacts as chips; Overview section labels are not upper case. - GR-23 Fills match the canvas: the owner bubble, cards and the composer are visibly lighter than the main pane in dark and darker in light, with the canvas gradients and top highlight; the aurora and dots use the canvas alphas.
Contract change
ThreadDto gains repo: string | null and branch: string | null (for GR-6).
Edge cases
| Case | Expected |
|---|---|
| Thread without a task | No task panel; the row shows No repo and no branch |
Empty Waiting for you | The group is hidden |
| Hundreds of threads | Settled stays collapsed; only the sidebar list scrolls |
| Engine offline | The footer shows Offline; the composer is disabled as today |
No backdrop-filter | Panes fall back to the opaque window colour |
| Theme switched mid-run | No reload; SSE keeps streaming |
Acceptance
- The axe suite passes in both themes on Chat, Overview and Task detail.
- Screenshots at 1440, 1024 and 375 px match the canvas layout.
- With reduced motion on, no animation runs.
- Existing web tests pass. New tests cover GR-2, GR-5, GR-6 and GR-15.
Decisions (the owner's call where marked)
- Stage chips stay in the plain style, not the pink "TALK" pill (my call; easy to revisit).
- The console button opens the console page. A docked console is later.
- The diff size
+N −Min the panel is later (it needs a contract change). - The default theme follows the OS.
Lighter layout after the second review (2026-12-01)
These override GR-1 (framed window), GR-17 (dots and aurora behind the panes) and GR-21 (lit page margin).
- GR-24 No framed window: the app fills the viewport edge to edge, with no page margin, outer border, window radius or window shadow. Columns are separated by one hairline (
--color-line). - GR-25 Flat side panes: the sidebar and the task panel are plain, opaque surfaces with no dot grid, aurora or blur. Inside them nothing is boxed: the selected thread row is a flat tint (no border, no shadow), the search field is a quiet fill, and the task panel's sections are headings with spacing and a hairline between them, not cards.
- GR-26 Depth only in the chat: the main chat column may carry one soft, deep background (a gentle gradient or a subtle, slow aurora under the feed); other pages use the plain main surface.
- GR-27 Action first: a message that needs the owner (decision, question, permission) is the only strongly highlighted element in the feed: wait-tinted surface, wait-coloured edge, clear title and one filled action. Everything else in the feed is light: Jarvis text without a box, system and service lines as quiet text, and the status and result blocks as light, borderless surfaces.
Task page width (2026-12-03)
- GR-28 The task page (
/tasks/:id) grows with the window up to 120 rem (pageWideincomponents/Page.module.css) instead of the shared 72 rem frame, so its wide tables (tokens by agent, runs and tokens) use the space. Prose (artifacts, Markdown) keeps its own 72ch measure. Other pages keep the 72 rem frame. - GR-29 In the runs table, the first column (run, subagent or skill name) is at least 16 rem wide and its name line never wraps; only a step's description may wrap under it. The
Startedcell never wraps. Narrow windows scroll the table horizontally inside its box.