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.
Python agent-orchestrationai-agentai-coding-assistantclaude-codecoding-agentcomputer-usedesktop-applocal-firstmcppersonal-jarvisvoice-assistantvoice-coding
feat(deck): the Jarvis orb itself in the middle — the artwork, cut out, with the mascot in its core
Harald9ed413725dd2
diff --git a/jarvis/ui/web/frontend/public/deck-orb.png b/jarvis/ui/web/frontend/public/deck-orb.pngnew file mode 100644index 0000000000..2cd8b54b8cBinary files /dev/null and b/jarvis/ui/web/frontend/public/deck-orb.png differdiff --git a/jarvis/ui/web/frontend/src/components/deck/DeckOrb.test.tsx b/jarvis/ui/web/frontend/src/components/deck/DeckOrb.test.tsxindex 31ad058629..4b770b7cc3 100644--- a/jarvis/ui/web/frontend/src/components/deck/DeckOrb.test.tsx+++ b/jarvis/ui/web/frontend/src/components/deck/DeckOrb.test.tsx@@ -1,21 +1,24 @@import { cleanup, fireEvent, render, screen } from "@testing-library/react";import { afterEach, describe, expect, test, vi } from "vitest";-// The orb's face is canvas + the mascot's timers — both proven elsewhere-// (VoiceOrb.test, MascotGigi.test). Here only the press affordance matters.-vi.mock("@/components/agentic/VoiceOrb", () => ({- VoiceOrb: () => <div data-testid="voice-orb" />,-}));-vi.mock("@/components/MascotGigi", () => ({- MascotGigi: () => <div data-testid="mascot" />,-}));+// framer-motion's motion.img is a plain <img> for these assertions.+vi.mock("framer-motion", async () => {+ const actual = await vi.importActual<typeof import("framer-motion")>("framer-motion");+ return {+ ...actual,+ useReducedMotion: () => true,+ };+});import { DeckOrb } from "@/components/deck/DeckOrb";/*** The orb is the click-shaped wake word (maintainer, 2026-08-18): pressing- * the mascot in the centre does what saying the phrase does. Display-only- * callers get no button at all.+ * the orb in the centre does what saying the phrase does. Display-only+ * callers get no button at all. The orb is the product's own artwork — the+ * sphere cut out of `hero-orb.png` — with the mascot in its core (maintainer's+ * pick, 2026-08-18, replacing the dark mask), and it carries the live voice+ * state so it can breathe with it.*/describe("DeckOrb", () => {afterEach(() => cleanup());@@ -23,10 +26,23 @@ describe("DeckOrb", () => {test("is display only without a press handler", () => {render(<DeckOrb steps={[]} busy={false} />);expect(screen.queryByRole("button")).toBeNull();- expect(screen.getByTestId("mascot")).toBeTruthy();+ expect(screen.getByTestId("jarvis-orb")).toBeTruthy();+ });++ test("the centre is the Jarvis orb artwork with the mascot in its core", () => {+ render(<DeckOrb steps={[]} busy={false} />);+ const orb = screen.getByTestId("jarvis-orb");+ expect(orb.getAttribute("data-voice")).toBe("idle");+ const images = orb.querySelectorAll("img");+ expect(images).toHaveLength(2);+ expect(images[0].getAttribute("src")).toBe("/deck-orb.png");+ expect(images[1].getAttribute("src")).toBe("/jarvis-gigi-256.png");+ // Artwork, not content: nothing here is read out.+ expect(images[0].getAttribute("alt")).toBe("");+ expect(images[1].getAttribute("alt")).toBe("");});- test("a press on the mascot fires the handler and carries its label", () => {+ test("a press on the orb fires the handler and carries its label", () => {const onPress = vi.fn();render(<DeckOrb@@ -38,7 +54,7 @@ describe("DeckOrb", () => {);const button = screen.getByRole("button", { name: /saying “Hey Nova”/ });expect(button.getAttribute("title")).toContain("Hey Nova");- fireEvent.click(screen.getByTestId("mascot"));+ fireEvent.click(screen.getByTestId("jarvis-orb"));expect(onPress).toHaveBeenCalledTimes(1);});diff --git a/jarvis/ui/web/frontend/src/components/deck/DeckOrb.tsx b/jarvis/ui/web/frontend/src/components/deck/DeckOrb.tsxindex 602dff6394..5b2371b356 100644--- a/jarvis/ui/web/frontend/src/components/deck/DeckOrb.tsx+++ b/jarvis/ui/web/frontend/src/components/deck/DeckOrb.tsx@@ -1,22 +1,23 @@import { useEffect, useId, useMemo, useRef, useState } from "react";import { useEventStore, type VoiceState } from "@/store/events";-import { VoiceOrb } from "@/components/agentic/VoiceOrb";-import { MascotGigi } from "@/components/MascotGigi";+import { JarvisOrb } from "@/components/deck/JarvisOrb";import type { ThinkingStep } from "@/lib/thinkingSteps";import { HudHaloDefs } from "@/components/deck/HudFrame";import { cn } from "@/lib/utils";/**- * The centre of the deck: the voice orb with the mascot inside it, set in a- * reticle — a dial ring, corner brackets, one bright arc per running step,+ * The centre of the deck: the Jarvis orb with the mascot in its core, set in+ * a reticle — a dial ring, corner brackets, one bright arc per running step,* and four small readouts at the compass points.*- * The orb is the app's own (`agentic/VoiceOrb`), driven by the real voice- * state — it breathes, listens and speaks the way it does everywhere else in- * the product, so the deck's centre is recognisably the assistant. The- * reticle is the deck's addition, and every part of it carries information:- * the arcs are parallel work made visible, the sweep turns only while- * something runs, the readouts are live values the caller sources.+ * The orb is the product's own artwork (`JarvisOrb`: the sphere cut out of+ * `hero-orb.png`), moved a little by the real voice state, with a soft gold+ * glow carrying it past its own edge. The maintainer asked for the picture+ * itself in the middle (2026-08-18) after the procedural cloud with a dark+ * mascot on it read as a blob. The reticle is the deck's addition, and every+ * part of it carries information: the arcs are parallel work made visible,+ * the sweep turns only while something runs, the readouts are live values the+ * caller sources.*/export interface OrbReadouts {nw: string;@@ -41,7 +42,7 @@ export function DeckOrb({readouts?: OrbReadouts;className?: string;/**- * The click-shaped wake word: pressing the orb (the mascot in it) does what+ * The click-shaped wake word: pressing the orb (the mask in it) does what* saying the wake phrase does — starts the conversation, or ends the one* that runs. Without it the orb is display only.*/@@ -73,7 +74,7 @@ export function DeckOrb({}, [busy, reduced]);const R = size / 2;- const orbSize = Math.round(size * 0.58);+ const orbSize = Math.round(size * 0.78);const point = (deg: number, r: number): [number, number] => {const rad = ((deg - 90) * Math.PI) / 180;return [R + r * Math.cos(rad), R + r * Math.sin(rad)];@@ -109,9 +110,12 @@ export function DeckOrb({`M ${size - 0.5} ${size - B} V ${size - 0.5} H ${size - B}`,`M ${B} ${size - 0.5} H 0.5 V ${size - B}`,].map((d) => (- <path key={d} d={d} fill="none" stroke="hsl(var(--primary))" strokeWidth={1.5} opacity={0.6} />+ <path key={d} d={d} fill="none" stroke="hsl(var(--primary))" strokeWidth={1.25} opacity={0.8} />))}+ {/* bezel — the hairline the ticks hang from */}+ <circle cx={R} cy={R} r={R * 0.94} fill="none" stroke="hsl(var(--primary))" strokeWidth={1} opacity={0.5} />+{/* outer dial: 72 ticks, long every 15° */}{Array.from({ length: 72 }, (_, i) => {const deg = i * 5;@@ -127,7 +131,7 @@ export function DeckOrb({y2={by}stroke="hsl(var(--primary))"strokeWidth={1}- opacity={long ? 0.5 : 0.18}+ opacity={long ? 0.78 : 0.42}/>);})}@@ -135,11 +139,11 @@ export function DeckOrb({{[0, 90, 180, 270].map((deg) => {const [ax, ay] = point(deg, R * 0.96);const [bx, by] = point(deg, R * 1.0);- return <line key={deg} x1={ax} y1={ay} x2={bx} y2={by} stroke="hsl(var(--primary))" strokeWidth={1.5} opacity={0.7} />;+ return <line key={deg} x1={ax} y1={ay} x2={bx} y2={by} stroke="hsl(var(--primary))" strokeWidth={1.5} opacity={0.9} />;})}{/* inner scale ring around the orb */}- <circle cx={R} cy={R} r={R * 0.84} fill="none" stroke="hsl(var(--border))" strokeWidth={1} opacity={0.7} />+ <circle cx={R} cy={R} r={R * 0.84} fill="none" stroke="hsl(var(--primary))" strokeWidth={1} opacity={0.5} /><circlecx={R}cy={R}@@ -148,7 +152,7 @@ export function DeckOrb({stroke="hsl(var(--primary))"strokeWidth={1}strokeDasharray="2 6"- opacity={0.35}+ opacity={0.55}/>{arcs.map((a) => (@@ -169,7 +173,7 @@ export function DeckOrb({stroke="hsl(var(--primary))"strokeWidth={2}strokeLinecap="butt"- opacity={0.6}+ opacity={0.7}/>)}</g>@@ -212,14 +216,24 @@ export function DeckOrb({);}-/** The orb and the mascot inside it — the part of the centre a press lands on. */+/**+ * The orb and the mask inside it — the part of the centre a press lands on.+ *+ * Back to front: a soft gold glow wider than the sphere; the weather itself;+ * a bronze tint that darkens the weather toward the core so the gold sits at+ * the rim; the dark core with the glowing eyes.+ */function OrbFace({ voiceState, orbSize }: { voiceState: VoiceState; orbSize: number }) {+ const glow = Math.round(orbSize * 1.35);return (<>- <VoiceOrb state={voiceState} size={orbSize} className="absolute inset-0" />- <div className="absolute inset-0 grid place-items-center">- <MascotGigi size={Math.round(orbSize * 0.46)} reactToVoice enableComments={false} />- </div>+ <div+ aria-hidden+ className="deck-orb-glow pointer-events-none absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 rounded-full"+ data-voice={voiceState}+ style={{ width: glow, height: glow }}+ />+ <JarvisOrb size={orbSize} voiceState={voiceState} className="absolute inset-0" /></>);}diff --git a/jarvis/ui/web/frontend/src/components/deck/JarvisOrb.tsx b/jarvis/ui/web/frontend/src/components/deck/JarvisOrb.tsxnew file mode 100644index 0000000000..e8ac3e1ded--- /dev/null+++ b/jarvis/ui/web/frontend/src/components/deck/JarvisOrb.tsx@@ -0,0 +1,104 @@+import { motion, useReducedMotion, type TargetAndTransition } from "framer-motion";+import type { VoiceState } from "@/store/events";+import { cn } from "@/lib/utils";++/**+ * The Jarvis orb — the product's own artwork, in the middle of the deck.+ *+ * `/deck-orb.png` is the sphere cut out of `hero-orb.png` (the marketing+ * render: dark glass, a golden plasma core, ring echoes and sparks) with the+ * black plate keyed to transparency and a radial mask on the rest, so it sits+ * on the wallpaper as a thing, not as a picture of a thing. The maintainer+ * asked for exactly this on 2026-08-18: the orb IS a PNG, so bring the PNG.+ *+ * The mascot rides in the plasma core as a silhouette — the same language as+ * the wallpaper's black ghost on gold, and readable at any size because the+ * core is the brightest thing on the screen.+ *+ * Voice state moves it a little, honestly and cheaply: a slow breath at rest,+ * a brighter, quicker pulse while listening, quicker still while it speaks, a+ * steady heartbeat while it thinks, dimmed and drained on an error. Nothing+ * turns — a rotating highlight on a glass sphere reads as a broken image.+ * `prefers-reduced-motion` gets the still picture.+ */+const MOTION: Record<VoiceState, { animate: TargetAndTransition; duration: number }> = {+ idle: {+ animate: { scale: [1, 1.012, 1], filter: ["brightness(1)", "brightness(1.04)", "brightness(1)"] },+ duration: 6.5,+ },+ connecting: {+ animate: { scale: [1, 1.01, 1], filter: ["brightness(0.9)", "brightness(1.05)", "brightness(0.9)"] },+ duration: 1.4,+ },+ listening: {+ animate: { scale: [1, 1.03, 1], filter: ["brightness(1)", "brightness(1.22)", "brightness(1)"] },+ duration: 1.6,+ },+ thinking: {+ animate: { scale: [1, 1.02, 1], filter: ["brightness(1)", "brightness(1.12)", "brightness(1)"] },+ duration: 0.9,+ },+ speaking: {+ animate: { scale: [1, 1.035, 1], filter: ["brightness(1)", "brightness(1.3)", "brightness(1)"] },+ duration: 0.55,+ },+ paused: {+ animate: { scale: 1, filter: "brightness(0.85) saturate(0.7)" },+ duration: 0,+ },+ error: {+ animate: { scale: 1, filter: "brightness(0.6) saturate(0)" },+ duration: 0,+ },+};++/** Where the plasma core sits inside the cut-out (fractions of the image). */+const CORE_CENTRE_Y = 0.547;+const MASCOT_OF_ORB = 0.24;++export function JarvisOrb({+ size,+ voiceState,+ className,+}: {+ size: number;+ voiceState: VoiceState;+ className?: string;+}) {+ const reduced = useReducedMotion() ?? false;+ const spec = MOTION[voiceState] ?? MOTION.idle;+ const looping = spec.duration > 0;++ return (+ <div+ data-testid="jarvis-orb"+ data-voice={voiceState}+ className={cn("relative select-none", className)}+ style={{ width: size, height: size }}+ >+ <motion.img+ src="/deck-orb.png"+ alt=""+ draggable={false}+ className="absolute inset-0 h-full w-full"+ animate={reduced ? undefined : spec.animate}+ transition={+ reduced+ ? undefined+ : looping+ ? { duration: spec.duration, repeat: Infinity, ease: "easeInOut" }+ : { duration: 0.4 }+ }+ />+ {/* The mascot in the core. A silhouette on gold, like the wallpaper. */}+ <img+ src="/jarvis-gigi-256.png"+ alt=""+ draggable={false}+ aria-hidden+ className="pointer-events-none absolute left-1/2 -translate-x-1/2 -translate-y-1/2"+ style={{ top: `${CORE_CENTRE_Y * 100}%`, width: size * MASCOT_OF_ORB, height: size * MASCOT_OF_ORB }}+ />+ </div>+ );+}