Repository navigation
Description
Overview
Follow-up to the GUI redesign epic #238. After that work merged (PRs #239–#245), a repeat deep design audit (44-agent workflow, 36 verified findings) plus a live Chrome visual QA confirmed the redesign substantially delivered "a precise instrument at rest" — 5 of 7 dimensions land at acceptable. But two dimensions came back needs-work, each with a high-severity defect that breaks an explicit, named goal of the original brief, plus a runtime gap only the live walkthrough surfaced.
This epic collects the verified follow-ups. The architecture is sound — these are targeted fixes, not a rework.
Audit result
- Verdict: small follow-ups, not another full pass.
- Severity: 2 high · 15 medium · 19 low.
- needs-work dimensions: color-contrast, spacing-layout.
- acceptable dimensions: hierarchy-type, component-consistency, accessibility, interaction-feedback, ia-flow.
Blockers (break named goals)
- Light-theme status colors fail AA (
tokens.css:76-100) — the light /prefers-color-schemeblocks override surface/text/border but never--color-error/-warning/-success/-info; on white they measure 2.2–3.8:1 (all < 4.5:1). Violates "light + dark both AA." - Stale React-era global CSS shadows the scoped shell (
layout.css:2-67) —.menubar*/.statusbar*re-declared globally, leaking untokenized magic spacing into the new rhythm.
Runtime gap (live-QA only)
- Browser-preview leaks raw
invokeTypeErrors — Generate-preview and entering the Machine tab throw "Cannot read properties of undefined (reading 'invoke')" via toast + inline state + log. Compounded by the status dot rendering red/error for the preview state while the banner treats it as info.
Done means
- Light theme genuinely reaches AA (status colors, borders, on-white accent).
- No dead/shadowing global CSS; tokens honest and consumed.
- Browser-preview is a first-class state (no raw errors, consistent info treatment).
- Reduced-motion is complete (JS transitions/scroll/spinner included).
- Form/control ARIA wiring complete.
- The "one system" goal holds for the last bespoke atoms.
Sub-issues
- Light-theme AA: status colors, borders, on-white accent (blocker)
- Remove dead/shadowing global CSS + honest token sweep (blocker)
- Model browser-preview as a first-class state
- Complete the reduced-motion story
- Form & control ARIA wiring
- Finish the one-button-system consolidation
Method
Same as #238: each sub-issue is a thin vertical slice, branched from main, full gate (check:svelte / lint / lint:css / test + Rust where touched) and live QA, rebase-merged when CI is green. Re-run the audit workflow after the blockers land to confirm color-contrast and spacing-layout move to acceptable.
Activity
fix(gui): light-theme AA — status foregrounds, control borders, accent
chore(gui): remove dead/shadowing CSS and sweep tokens
feat(gui): model browser preview as a first-class state
feat(gui): complete the reduced-motion story
feat(gui): wire form & control ARIA associations
refactor(gui): finish the one-button-system consolidation
CameronBrooks11 commentedon Jun 27, 2026
Epic complete ✅
All six children merged via the rebase merge-train, each branched from main, full-gate verified (lint:css / css:vars / svelte-check / tsc / 316 tests) and live-QA'd in Chrome:
--status-*-fgsplit,--color-border-control, on-white accent)invokeBackendguard, preview dot, banner moved/renamed)Re-audit after the blockers confirmed the bar moved: color-contrast
needs-work → acceptable, spacing-layoutneeds-work → strong, browser-preview now first-class. No outstanding findings beyond cosmetic backlog already folded into #252.