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.

feat(deck): the centre is a stage — light, ground and shadow, not a reticle

Harald9d9d6cd953e6
diff --git a/jarvis/ui/web/frontend/src/components/deck/DeckOrb.test.tsx b/jarvis/ui/web/frontend/src/components/deck/DeckOrb.test.tsx
index def4b06aca..e23458d1a1 100644
--- a/jarvis/ui/web/frontend/src/components/deck/DeckOrb.test.tsx
+++ b/jarvis/ui/web/frontend/src/components/deck/DeckOrb.test.tsx
@@ -46,8 +46,9 @@ describe("DeckOrb", () => {
expect(screen.queryByTestId("deck-orb-ping")).toBeNull();
// The 72 dial ticks and the compass crosshairs were the only <line>s here.
expect(container.querySelectorAll("line")).toHaveLength(0);
- // What stays is what reads a real value: the meter, the ripple host — at
- // rest at zero — and one arc per running step.
+ // What stays is what reads a real value: the stage light the voice moves
+ // (it carried a level arc on the bezel until 2026-08-21), the ripple host
+ // — at rest at zero — and one arc per running step.
expect(screen.getByTestId("deck-orb-vu")).toBeTruthy();
expect(screen.getByTestId("deck-orb-ripples").childElementCount).toBe(0);
expect(screen.getByTestId("deck-orb").style.getPropertyValue("--orb-level")).toBe("0");
diff --git a/jarvis/ui/web/frontend/src/components/deck/DeckOrb.tsx b/jarvis/ui/web/frontend/src/components/deck/DeckOrb.tsx
index f565b15be1..52f550d683 100644
--- a/jarvis/ui/web/frontend/src/components/deck/DeckOrb.tsx
+++ b/jarvis/ui/web/frontend/src/components/deck/DeckOrb.tsx
@@ -8,9 +8,9 @@ import { driveTarget, isOnset, orbDriveFor, smoothOrbLevel } from "@/lib/orbLeve
import { cn } from "@/lib/utils";
/**
- * The centre of the deck: the mascot in a reticle — one hairline bezel, one
- * bright arc per running step, the voice meter, and four small readouts at
- * the corners.
+ * The centre of the deck: the mascot on a STAGE — a light from above, the
+ * pool that light throws on the ground, the figure's own shadow, one bright
+ * arc per running step, and a single line of readouts along the bottom.
*
* The middle is Gigi itself (`JarvisOrb`), moved by the real voice state,
* with a soft gold glow throwing the dark silhouette forward. It was a PNG
@@ -19,10 +19,13 @@ import { cn } from "@/lib/utils";
* picture had earned it — its baked-in white halo read as a grey box on the
* dark deck, and this reticle sliced that box off at the ring.
*
- * The reticle is now INSTRUMENTS ONLY, and every part of it carries
- * information: the arcs are parallel work made visible, the sweep turns only
- * while something runs, the meter is the voice, the readouts are live values
- * the caller sources. What went with the PNG was the scenery that measured
+ * The bezel and the level arc that rode it went on 2026-08-21 (maintainer:
+ * the ring made Gigi small, measured nothing, and three of the four corner
+ * readouts said "0" or "Ready" — the centre exhibiting its own emptiness).
+ * What is left carries information: the arcs are parallel work made visible,
+ * the sweep turns only while something runs, and the readouts are live values
+ * the caller sources, on one line, each one dropped while it would read as a
+ * zero. The voice is not a meter any more — it is the light on the stage. What went with the PNG was the scenery that measured
* nothing — 72 dial ticks, corner brackets, two counter-turning orbits, a
* satellite riding the bezel and an idle ping (maintainer, 2026-08-20:
* instruments that show nothing are a stage set). The deck does not need
@@ -36,8 +39,8 @@ import { cn } from "@/lib/utils";
* (`lib/orbLevel.ts`: the real microphone while listening, a speech-shaped
* envelope while the assistant speaks, a heartbeat while it thinks), smooths
* it, and writes it to ONE CSS variable on the root (`--orb-level`); the
- * core's size and brightness, the glow, the corona's rays, the rings and the
- * level arc on the bezel all read that variable in CSS (index.css). A jump
+ * core's size and brightness, the glow, and the stage's beam, pool and
+ * shadow all read that variable in CSS (index.css). A jump
* in the level — a word landing — sends one ripple from the sun to the
* bezel. One number, one smoothing, so every part moves as one thing.
*/
@@ -123,6 +126,21 @@ export function DeckOrb({
const [ex, ey] = point(sweep + 36, R * 0.94);
const haloId = useId();
+ // The corners used to carry four readouts, and two of them were counters
+ // that said "0" whenever nothing had happened yet — the centre measuring
+ // its own emptiness. They are ONE line now, and a value joins it only once
+ // it has something to say: the caller passes an empty string for a value
+ // that would be a zero, and an empty string never reaches the line. The
+ // engine keeps its place at the front, because which voice is answering is
+ // true whether or not anything has run yet.
+ const extras = readouts
+ ? [
+ { id: "mood", text: readouts.nw },
+ { id: "steps", text: readouts.ne },
+ { id: "words", text: readouts.se },
+ ].filter((r) => r.text.trim().length > 0)
+ : [];
+
// The level loop: one number for everything that moves with the voice,
// written to the root as `--orb-level`. Runs only while a voice state
// drives it; idle (and reduced motion) is a still 0 and no loop at all.
@@ -168,12 +186,25 @@ export function DeckOrb({
style={{ width: size, height: size }}
data-testid="deck-orb"
>
+ {/* The stage. A light from above, a pool of it on the ground and the
+ figure's own shadow — the three things that put Gigi SOMEWHERE
+ instead of nowhere. All three read the same `--orb-level` the rest
+ of the centre reads, so the voice arrives as light rather than as a
+ number: louder is brighter and wider. This replaced the bezel and
+ its level arc, which drew a ring around the figure and measured the
+ voice on it (maintainer, 2026-08-21: the reticle made Gigi small and
+ nothing on it carried its weight). */}
+ <div
+ aria-hidden
+ className="deck-stage-beam pointer-events-none absolute"
+ data-testid="deck-orb-vu"
+ />
+ <div aria-hidden className="deck-stage-pool pointer-events-none absolute" />
+ <div aria-hidden className="deck-stage-shadow pointer-events-none absolute" />
+
<svg viewBox={`0 0 ${size} ${size}`} className="absolute inset-0 h-full w-full" aria-hidden>
<HudHaloDefs id={haloId} />
<g filter={`url(#${haloId})`}>
- {/* bezel — the one hairline the meter and the arcs are read against */}
- <circle cx={R} cy={R} r={R * 0.94} fill="none" stroke="hsl(var(--primary))" strokeWidth={1} opacity={0.4} />
-
{arcs.map((a) => (
<path
key={a.id}
@@ -198,33 +229,7 @@ export function DeckOrb({
</g>
</svg>
- {/* The level arc on the bezel: grows from the top down both sides with
- the voice — a meter, reading `--orb-level` (CSS). */}
- <svg
- viewBox={`0 0 ${size} ${size}`}
- className="deck-orb-vu pointer-events-none absolute inset-0 h-full w-full"
- aria-hidden
- data-testid="deck-orb-vu"
- >
- <path
- d={`M ${R} ${R - R * 0.94} A ${R * 0.94} ${R * 0.94} 0 0 1 ${R} ${R + R * 0.94}`}
- pathLength={1}
- fill="none"
- stroke="hsl(var(--primary))"
- strokeWidth={3}
- strokeLinecap="round"
- />
- <path
- d={`M ${R} ${R - R * 0.94} A ${R * 0.94} ${R * 0.94} 0 0 0 ${R} ${R + R * 0.94}`}
- pathLength={1}
- fill="none"
- stroke="hsl(var(--primary))"
- strokeWidth={3}
- strokeLinecap="round"
- />
- </svg>
-
- {/* Ripples: one ring per word landing, from the sun to the bezel.
+ {/* Ripples: one ring per word landing, leaving the figure for the edge.
Spawned by the level loop, gone when their animation ends. */}
<div
ref={ripplesRef}
@@ -259,16 +264,18 @@ export function DeckOrb({
</div>
{readouts && (
- <>
- <Readout className="left-1 top-1 text-left" text={readouts.nw} />
- <Readout className="right-1 top-1 text-right" text={readouts.ne} />
- <Readout
- className="bottom-1 left-1 text-left"
- text={readouts.sw}
- testId="deck-orb-provider"
- />
- <Readout className="bottom-1 right-1 text-right" text={readouts.se} />
- </>
+ <div
+ className="pointer-events-none absolute inset-x-0 bottom-0 flex flex-wrap items-baseline justify-center gap-x-2 px-2 text-center font-mono text-[9px] uppercase tracking-[0.16em] text-primary/80"
+ data-testid="deck-orb-readouts"
+ >
+ <span data-testid="deck-orb-provider">{readouts.sw}</span>
+ {extras.map((r) => (
+ <span key={r.id}>
+ <span className="mr-2 text-primary/30">·</span>
+ {r.text}
+ </span>
+ ))}
+ </div>
)}
</div>
);
@@ -310,24 +317,3 @@ function spawnRipple(host: HTMLDivElement | null): void {
host.appendChild(el);
}
-function Readout({
- text,
- className,
- testId,
-}: {
- text: string;
- className?: string;
- testId?: string;
-}) {
- return (
- <span
- data-testid={testId}
- className={cn(
- "pointer-events-none absolute max-w-[42%] truncate px-1.5 font-mono text-[9px] uppercase tracking-[0.16em] text-primary/90",
- className,
- )}
- >
- {text}
- </span>
- );
-}
diff --git a/jarvis/ui/web/frontend/src/index.css b/jarvis/ui/web/frontend/src/index.css
index fc9d67a3ee..7ff1d5e9d0 100644
--- a/jarvis/ui/web/frontend/src/index.css
+++ b/jarvis/ui/web/frontend/src/index.css
@@ -2090,7 +2090,7 @@
assistant speaks, a heartbeat while it thinks (lib/orbLevel.ts)
— smoothed once, written once per frame. Everything below
reads it: the sun's size and brightness, the glow, the corona's
- rays, the rings, the level arc on the bezel. Transform, opacity
+ rays, the rings, the stage's beam and pool. Transform, opacity
and a GPU brightness only, so it all moves as one and costs
the main thread one style write.
----------------------------------------------------------- */
@@ -2134,15 +2134,63 @@
animation: deck-orb-turn 30s linear infinite;
will-change: transform, opacity;
}
- /* the level arc on the bezel: two half-circles from the top, drawn as far
- as the level goes; nothing at 0 */
- .deck-orb-vu path {
- stroke-dasharray: 1;
- stroke-dashoffset: calc(1 - var(--orb-level, 0));
- opacity: 0.9;
+ /* ---- The stage ----------------------------------------------------
+ A light from above, the pool it throws on the ground, and the figure's
+ shadow between the two. This is where the voice arrives now: beam and
+ pool both read --orb-level, so louder is brighter and wider. It
+ replaced the level arc on the bezel, which measured the voice on a ring
+ that made the figure small and boxed it in.
+
+ Both are lit from --primary, so the stage takes its light from whichever
+ theme it lands in. The shadow is the one part that stays black in both:
+ on the dark deck the light carries the depth, on the light one the
+ shadow does — a shadow that inverts with the theme is a glow.
+ Transform and opacity only; no width animation, so the pool costs the
+ compositor a frame and the main thread nothing.
+ ------------------------------------------------------------------- */
+ .deck-stage-beam {
+ top: -6%;
+ left: 50%;
+ width: 76%;
+ height: 74%;
+ transform: translateX(-50%);
+ clip-path: polygon(37% 0%, 63% 0%, 93% 100%, 7% 100%);
+ background: linear-gradient(
+ to bottom,
+ hsl(var(--primary) / 0.2) 0%,
+ hsl(var(--primary) / 0.06) 55%,
+ hsl(var(--primary) / 0) 100%
+ );
+ opacity: calc(0.45 + var(--orb-level, 0) * 0.55);
+ filter: blur(8px);
+ will-change: opacity;
+ }
+ .deck-stage-pool {
+ bottom: 8%;
+ left: 50%;
+ width: 54%;
+ height: 13%;
+ transform: translateX(-50%) scaleX(calc(0.84 + var(--orb-level, 0) * 0.46));
+ border-radius: 50%;
+ background: radial-gradient(
+ closest-side,
+ hsl(var(--primary) / 0.4) 0%,
+ hsl(var(--primary) / 0) 100%
+ );
+ opacity: calc(0.55 + var(--orb-level, 0) * 0.45);
+ filter: blur(6px);
+ will-change: transform, opacity;
}
- .deck-orb-vu {
- filter: drop-shadow(0 0 4px hsl(var(--primary) / 0.6));
+ .deck-stage-shadow {
+ bottom: 10.5%;
+ left: 50%;
+ width: 40%;
+ height: 5%;
+ transform: translateX(-50%);
+ border-radius: 50%;
+ background: #000;
+ opacity: 0.5;
+ filter: blur(7px);
}
/* a ripple: one ring from the sun to the bezel per word landing */
.deck-orb-ripple {
diff --git a/jarvis/ui/web/frontend/src/views/MissionDeckView.tsx b/jarvis/ui/web/frontend/src/views/MissionDeckView.tsx
index ada83e3fd7..95b77b9d97 100644
--- a/jarvis/ui/web/frontend/src/views/MissionDeckView.tsx
+++ b/jarvis/ui/web/frontend/src/views/MissionDeckView.tsx
@@ -211,11 +211,14 @@ export function MissionDeckView({
const orbPressLabel = callActive
? t("deck.orb_hangup")
: t("deck.orb_call").replace("{0}", wakePhrase);
+ // A counter at zero is not a reading, it is the centre saying nothing with
+ // a number attached. The empty string is how a value says "I have nothing
+ // yet" — DeckOrb drops it from the line rather than printing a 0.
const readouts: OrbReadouts = {
nw: t(`deck.mood_${mood}`),
- ne: `${running.length} ${t("deck.orb_steps")}`,
+ ne: running.length > 0 ? `${running.length} ${t("deck.orb_steps")}` : "",
sw: engine.providerLabel,
- se: `${wordsSession} ${t("deck.orb_words")}`,
+ se: wordsSession > 0 ? `${wordsSession} ${t("deck.orb_words")}` : "",
};
// Pressing the orb reaches for the voice — the board opens on the press
// itself, so the hand-off plays the moment the person acts, not a second