feat(maestro): redesign web UI — token system, dark/light, a11y status
ci / rust (pull_request) Failing after 3m32s

Rewrite styles.css as an OKLCH design-system: cool-slate neutrals with a
single committed signal-green for "alive" (running status, primary action,
focus, selection). Monospace becomes the UI typeface; dark is default with a
full light theme via tokens, OS-following with a persisted header toggle.

- catalog: pulsing wordmark, status-bar tally (N sessions / M live) + daemon
  chips, color-independent session status (pulsing dot for running, hollow
  ring + "exited" badge for dead), reveal-on-hover kill, three teaching
  empty states.
- attach: state pill (live/closed/error), framed dark xterm w/ green cursor.
- spawn: bottom-sheet/dialog form, mono inputs with green focus rings.
- a11y: AA contrast both themes, visible focus, prefers-reduced-motion paths,
  status never color-only.
- theme.ts: dark/light toggle + persistence; mock.ts: DEV-only review fixture
  (?mock / ?mock&spawn / ?theme=), tree-shaken from production builds.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-06-15 18:40:42 +00:00
co-authored by Claude Opus 4.8
parent e909790b56
commit 815ad695df
10 changed files with 1095 additions and 193 deletions
+9
View File
@@ -1,8 +1,11 @@
import { renderAttach } from "./attach.js";
import { renderCatalog } from "./catalog.js";
import { CatalogStore } from "./events.js";
import { initTheme } from "./theme.js";
import "./styles.css";
initTheme();
const root = document.getElementById("app");
if (!root) {
throw new Error("missing #app");
@@ -11,6 +14,12 @@ if (!root) {
const store = new CatalogStore();
store.start();
// Dev-only: `?mock` seeds a representative catalog so the UI can be reviewed
// without a running registry. Stripped from production builds by Vite.
if (import.meta.env.DEV && location.search.includes("mock")) {
void import("./mock.js").then((m) => m.seedMock(store));
}
type Route =
| { kind: "catalog" }
| { kind: "attach"; sessionId: string }