The old UI was a single 200-line Go file serving one hand-written HTML page of task rows. It showed that archied was running and almost nothing about what it was doing -- skills, workflows, memory, channels, logs and configuration were all invisible unless you read the source or the config file. The dashboard now covers each of those as its own section, built as a Vite app under ui/ at the repo root: it is a separate artefact from the Go daemon, not an internal package of it. dist/ is committed so building archied never needs a Node toolchain, and the !no_ui build tag keeps an embed-free build available. Both sides are split by concern rather than by layer -- one Go file per API area, one folder per UI section with its own CSS -- so a change to logs cannot disturb tasks. Pages report consequences, not just state: an empty memory page says Archie starts every conversation with no recollection of earlier ones, and the setup checklist names what is missing in plain language instead of showing a grid of zeroes. Nothing greets by a hardcoded name; the operator comes from [chat], which is deployment data. Auth is exposure control, not capability control -- the agent already holds this user's authority through its own tools. So a loopback bind needs no token, and only a reachable bind mints one and logs a URL, which means an instance cannot be exposed merely by omitting config. Container startup now degrades instead of aborting, for the reason resolveForge already does: a missing agent image should not deny the operator chat and the dashboard, and under Restart=on-failure it turns a recoverable problem into a crash loop with the real error scrolling past. `task dev` runs the daemon under air and the Vite server together in one terminal.
131 lines
4.0 KiB
CSS
131 lines
4.0 KiB
CSS
/*
|
|
* Design tokens. Dark is the default because archied is a daemon you check at
|
|
* odd hours; light is a toggle, not an afterthought, so both themes define the
|
|
* same variable set and nothing else in the app references a raw colour.
|
|
*
|
|
* Semantic names only. Never `--blue`; always `--accent` or `--status-running`,
|
|
* so a palette change is one file rather than a grep.
|
|
*/
|
|
|
|
:root {
|
|
/* Type */
|
|
--font-sans:
|
|
ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
|
|
--font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
|
|
|
|
--text-xs: 0.6875rem;
|
|
--text-sm: 0.8125rem;
|
|
--text-base: 0.875rem;
|
|
--text-lg: 1.0625rem;
|
|
--text-xl: 1.375rem;
|
|
--text-2xl: 1.875rem;
|
|
--text-3xl: 2.5rem;
|
|
|
|
/* Spacing: a 4px scale. Layout uses these, never magic pixels. */
|
|
--sp-1: 0.25rem;
|
|
--sp-2: 0.5rem;
|
|
--sp-3: 0.75rem;
|
|
--sp-4: 1rem;
|
|
--sp-5: 1.5rem;
|
|
--sp-6: 2rem;
|
|
--sp-7: 3rem;
|
|
|
|
--radius-sm: 6px;
|
|
--radius-md: 10px;
|
|
--radius-lg: 14px;
|
|
--radius-xl: 20px;
|
|
--radius-pill: 999px;
|
|
|
|
--transition: 140ms cubic-bezier(0.4, 0, 0.2, 1);
|
|
}
|
|
|
|
/* ── Dark (default) ─────────────────────────────────────────────────────── */
|
|
[data-theme="dark"] {
|
|
--bg: #0d1014;
|
|
--bg-raised: #141920;
|
|
--surface: #171d25;
|
|
--surface-hover: #1d242e;
|
|
--border: #232b36;
|
|
--border-strong: #303a48;
|
|
|
|
--fg: #e8edf4;
|
|
--fg-muted: #8b97a8;
|
|
--fg-subtle: #5d6878;
|
|
|
|
--accent: #4c8dff;
|
|
--accent-fg: #ffffff;
|
|
--accent-soft: rgba(76, 141, 255, 0.14);
|
|
|
|
/* Status. Used for task state, gate results and trend direction alike, so
|
|
the same colour always means the same thing wherever it appears. */
|
|
--ok: #3fbf7f;
|
|
--ok-soft: rgba(63, 191, 127, 0.14);
|
|
--warn: #e8a33d;
|
|
--warn-soft: rgba(232, 163, 61, 0.14);
|
|
--danger: #f0616d;
|
|
--danger-soft: rgba(240, 97, 109, 0.14);
|
|
--info: #4c8dff;
|
|
--info-soft: rgba(76, 141, 255, 0.14);
|
|
--idle: #6b7688;
|
|
--idle-soft: rgba(107, 118, 136, 0.14);
|
|
|
|
--accent-2: #7b5cff;
|
|
--bg-blur: rgba(20, 25, 32, 0.55);
|
|
/* Panels are translucent so the canvas wash shows through and the whole
|
|
workspace reads as one lit surface rather than opaque cards on a picture. */
|
|
--surface-glass: rgba(23, 29, 37, 0.62);
|
|
--surface-glass-strong: rgba(20, 25, 32, 0.78);
|
|
--workspace: rgba(17, 21, 27, 0.55);
|
|
--hairline: rgba(255, 255, 255, 0.06);
|
|
--wash-a: rgba(76, 141, 255, 0.10);
|
|
--wash-b: rgba(123, 92, 255, 0.12);
|
|
--wash-c: rgba(63, 191, 127, 0.06);
|
|
--shadow-workspace: 0 24px 70px rgba(0, 0, 0, 0.5);
|
|
|
|
--shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
|
|
--shadow-md: 0 8px 28px rgba(0, 0, 0, 0.42);
|
|
}
|
|
|
|
/* ── Light ──────────────────────────────────────────────────────────────── */
|
|
[data-theme="light"] {
|
|
--bg: #f6f8fb;
|
|
--bg-raised: #ffffff;
|
|
--surface: #ffffff;
|
|
--surface-hover: #f1f4f9;
|
|
--border: #e2e8f0;
|
|
--border-strong: #cbd5e1;
|
|
|
|
--fg: #16202e;
|
|
--fg-muted: #5a6779;
|
|
--fg-subtle: #8c99ab;
|
|
|
|
--accent: #2563eb;
|
|
--accent-fg: #ffffff;
|
|
--accent-soft: rgba(37, 99, 235, 0.1);
|
|
|
|
--ok: #10935c;
|
|
--ok-soft: rgba(16, 147, 92, 0.12);
|
|
--warn: #b87514;
|
|
--warn-soft: rgba(184, 117, 20, 0.12);
|
|
--danger: #d4344a;
|
|
--danger-soft: rgba(212, 52, 74, 0.12);
|
|
--info: #2563eb;
|
|
--info-soft: rgba(37, 99, 235, 0.1);
|
|
--idle: #64748b;
|
|
--idle-soft: rgba(100, 116, 139, 0.12);
|
|
|
|
--accent-2: #7c3aed;
|
|
--bg-blur: rgba(255, 255, 255, 0.6);
|
|
--surface-glass: rgba(255, 255, 255, 0.72);
|
|
--surface-glass-strong: rgba(255, 255, 255, 0.88);
|
|
--workspace: rgba(255, 255, 255, 0.55);
|
|
--hairline: rgba(15, 23, 42, 0.06);
|
|
--wash-a: rgba(37, 99, 235, 0.10);
|
|
--wash-b: rgba(124, 58, 237, 0.12);
|
|
--wash-c: rgba(16, 147, 92, 0.07);
|
|
--shadow-workspace: 0 24px 70px rgba(15, 23, 42, 0.14);
|
|
|
|
--shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
|
|
--shadow-md: 0 8px 28px rgba(15, 23, 42, 0.10);
|
|
}
|