Skip to content

Dodaios is an open-source agent OS for your desktop: it runs your coding agents, browser and apps by voice or chat, on your own machine. Formerly Personal Jarvis.

revert(voice): drop the waveform's hue, keep the gradient in value

rubenluetke10-beepb6694730793e
diff --git a/jarvis/ui/web/frontend/src/components/home/StageWaveform.tsx b/jarvis/ui/web/frontend/src/components/home/StageWaveform.tsx
index 00c19bd318..bf0056bdd0 100644
--- a/jarvis/ui/web/frontend/src/components/home/StageWaveform.tsx
+++ b/jarvis/ui/web/frontend/src/components/home/StageWaveform.tsx
@@ -64,17 +64,23 @@ import { cn } from "@/lib/utils";
* reaches the soft ends. That is the depth cue — the row looks lit from its
* own centre line instead of flatly filled.
*
- * ## The colour (maintainer, 2026-08-28)
+ * ## The value ramp (maintainer, 2026-08-28)
*
- * A measured row runs along a lavender-to-blue ramp; everything unmeasured
- * stays neutral. That is not decoration but the same statement the shapes
- * make: hue appears exactly when the drawing has a real signal behind it,
- * and "ready", "thinking" and a speech we cannot hear stay in
- * `--muted-foreground`. The two hues are the design system's timeline
- * pastels — the palette reserved for in-product agent visualisation, which
- * is precisely what this row is — and they live as `--voice-wave-a/b` in
- * index.css with their own light-mode values, because a pastel tuned for
- * charcoal disappears on warm paper.
+ * No hue. A pastel ramp was tried here and rejected: the interface is black,
+ * white and grey, and a coloured row read as a different product bolted onto
+ * it. What the row needed was not colour but a GRADIENT, so it takes one
+ * along the value scale instead — `--muted-foreground` at the old end of the
+ * tape, `--primary` at the new one.
+ *
+ * That earns its place twice. It stops the row being one flat tone, and it
+ * says something true: the newest sound is the brightest, and every syllable
+ * dims as it travels left and ages out. Unmeasured phases stay flat
+ * `--muted-foreground` — they never reach the bright end, because nothing
+ * measured them.
+ *
+ * Both ends are existing theme tokens, so this introduces no colour
+ * vocabulary of its own and follows light/dark for free: on paper the ramp
+ * runs mid-grey to ink, the exact mirror of grey to white on charcoal.
*
* Canvas rather than DOM capsules: forty to sixty shapes repainted every
* frame are cheap on a 2D context and would be layout work as elements.
@@ -258,7 +264,7 @@ export function StageWaveform({
last = now;
if (now - tokensAt > 1000) {
const next = readTokens(canvas);
- if (next.waveA !== tokens.waveA || next.muted !== tokens.muted) {
+ if (next.primary !== tokens.primary || next.muted !== tokens.muted) {
tokens = next;
fills = buildFills(ctx, width, height, tokens);
}
@@ -455,12 +461,7 @@ function capsule(ctx: CanvasRenderingContext2D, x: number, y: number, w: number,
ctx.fill();
}
-type Tokens = {
- waveA: string;
- waveB: string;
- muted: string;
- error: string;
-};
+type Tokens = { primary: string; muted: string; error: string };
type Fills = {
/** Vertical light profile, colourless — the shape mask (see `paint`). */
mask: string | CanvasGradient;
@@ -496,16 +497,16 @@ function buildFills(
g.addColorStop(1, `hsl(0 0% 100% / ${CAP_ALPHA})`);
mask = g;
}
- let wave: string | CanvasGradient = `hsl(${tokens.waveB})`;
+ let wave: string | CanvasGradient = `hsl(${tokens.primary})`;
if (width > 1) {
// Across the MIDDLE of the row, not its full width. A canvas gradient
// clamps to its end colours outside the span, so the quiet rims stay
// solid and the part a conversation actually occupies gets the whole
// ramp. Anchored edge to edge, the centre only ever sampled the middle
- // of the gradient and the row read as one flat colour.
+ // of the gradient and the row read as one flat tone.
const g = ctx.createLinearGradient(width * RAMP_INSET, 0, width * (1 - RAMP_INSET), 0);
- g.addColorStop(0, `hsl(${tokens.waveA})`);
- g.addColorStop(1, `hsl(${tokens.waveB})`);
+ g.addColorStop(0, `hsl(${tokens.muted})`);
+ g.addColorStop(1, `hsl(${tokens.primary})`);
wave = g;
}
return { mask, wave, muted: `hsl(${tokens.muted})`, error: `hsl(${tokens.error})` };
@@ -531,8 +532,7 @@ function readTokens(el: HTMLElement): Tokens {
return raw || fallback;
};
return {
- waveA: token("--voice-wave-a", "267 44% 76%"),
- waveB: token("--voice-wave-b", "214 51% 75%"),
+ primary: token("--primary", "0 0% 100%"),
muted: token("--muted-foreground", "47 5% 59%"),
error: token("--destructive", "0 84% 60%"),
};
diff --git a/jarvis/ui/web/frontend/src/index.css b/jarvis/ui/web/frontend/src/index.css
index f5e94ebe4e..9ef7e02068 100644
--- a/jarvis/ui/web/frontend/src/index.css
+++ b/jarvis/ui/web/frontend/src/index.css
@@ -577,28 +577,6 @@ label,
--viz-result: 53 12% 13%; /* full ink — the run's landing */
--viz-deliverable: 47 6% 43%; /* files left behind */
- /* --- Voice waveform ---------------------------------------------------
- The ONE place in the app that carries more than one hue, and it is not
- a brand colour: these are the design system's timeline pastels
- (lavender `timeline-edit`, pastel blue `timeline-read`), whose whole
- job is in-product agent visualisation. The Jarvis bar's waveform is
- exactly that — a live picture of the agent listening and speaking —
- so it draws its capsules along a lavender-to-blue ramp instead of a
- flat accent. Retiring the brand hue made the interface monochrome; it
- did not retire this palette, and the row of capsules is the surface it
- was reserved for.
-
- The two are pulled a little further apart than the raw pastels, and
- the ramp is laid across the MIDDLE of the row rather than its full
- width (see buildFills): a conversation lives in the centre of the
- tape, so a gradient anchored at the outer edges would only ever show
- its middle and read as one flat colour.
-
- Light mode keeps the same two hues and drops the lightness: the
- pastels are tuned for a charcoal ground and vanish on warm paper. */
- --voice-wave-a: 272 40% 56%; /* lavender, oldest end of the tape */
- --voice-wave-b: 205 55% 45%; /* blue, newest end of the tape */
-
/* Legacy aliases. Kept because they are referenced from a handful of
places that predate the token set; all now follow the theme. The names
outlived the colour — nothing yellow is left in either — but they stay
@@ -713,11 +691,6 @@ label,
--viz-result: 0 0% 100%;
--viz-deliverable: 47 6% 58%;
- /* Voice waveform — the timeline pastels at their documented values;
- see :root for why this surface is allowed a hue at all. */
- --voice-wave-a: 272 45% 74%; /* lavender, near #C0A8DD */
- --voice-wave-b: 205 62% 70%; /* blue, near #9FBBE0 */
-
--jarvis-yellow: 247 247 244;
--jarvis-yellow-dim: 154 151 140;
--jarvis-grid: 60 4% 8%;