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(ui): live Gigi on wallpaper, originals stay scenes

Haraldbedbfa1af611
diff --git a/jarvis/ui/web/frontend/src/App.detached.test.tsx b/jarvis/ui/web/frontend/src/App.detached.test.tsx
index 03280d1f91..9d84fa6462 100644
--- a/jarvis/ui/web/frontend/src/App.detached.test.tsx
+++ b/jarvis/ui/web/frontend/src/App.detached.test.tsx
@@ -3,6 +3,7 @@ import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
import App from "@/App";
import { useEventStore } from "@/store/events";
+import { useWallpaperStore } from "@/store/wallpaper";
vi.mock("@/hooks/useWebSocket", () => ({ useWebSocket: () => undefined }));
vi.mock("@/hooks/useBrainStatus", () => ({ useBrainStatus: () => undefined }));
@@ -57,6 +58,9 @@ vi.mock("@/components/CliConnectPoller", () => ({ CliConnectPoller: () => null }
vi.mock("@/components/onboarding/OnboardingGate", () => ({
OnboardingGate: () => null,
}));
+vi.mock("@/components/MascotGigi", () => ({
+ MascotGigi: () => <div data-testid="mascot-gigi" />,
+}));
beforeEach(() => {
vi.stubGlobal("fetch", vi.fn().mockResolvedValue({ ok: false }));
@@ -65,6 +69,7 @@ beforeEach(() => {
solo: false,
detachedViews: [],
});
+ useWallpaperStore.setState({ mascotOn: true });
});
afterEach(() => {
@@ -77,11 +82,20 @@ describe("App shell around detached coding views", () => {
render(<App />);
expect(screen.getByTestId("jarvis-desktop-wallpaper")).toBeTruthy();
+ expect(screen.getByTestId("jarvis-desktop-wallpaper-mascot")).toBeTruthy();
expect(
screen.getByTestId("main-view").parentElement?.classList.contains("jarvis-section-stage"),
).toBe(true);
});
+ it("hides the live mascot when the wallpaper layer is switched off", () => {
+ useWallpaperStore.setState({ mascotOn: false });
+ render(<App />);
+
+ expect(screen.getByTestId("jarvis-desktop-wallpaper")).toBeTruthy();
+ expect(screen.queryByTestId("jarvis-desktop-wallpaper-mascot")).toBeNull();
+ });
+
it("keeps the sidebar reachable in the main window", () => {
useEventStore.setState({
activeSection: "agentic-ide",
diff --git a/jarvis/ui/web/frontend/src/App.tsx b/jarvis/ui/web/frontend/src/App.tsx
index 146711b93c..6b41b03482 100644
--- a/jarvis/ui/web/frontend/src/App.tsx
+++ b/jarvis/ui/web/frontend/src/App.tsx
@@ -28,8 +28,9 @@ import { CliConnectPoller } from "@/components/CliConnectPoller";
import { OnboardingGate } from "@/components/onboarding/OnboardingGate";
import { installDictationFocusTracker } from "@/lib/dictationTarget";
import { SubscriptionRealtimeTransportBroker } from "@/components/voice/SubscriptionRealtimeTransportBroker";
+import { MascotGigi } from "@/components/MascotGigi";
import { useDesktopWallpaper } from "@/hooks/useDesktopWallpaper";
-import { installWallpaperSync } from "@/store/wallpaper";
+import { installWallpaperSync, useWallpaperStore } from "@/store/wallpaper";
import { cn } from "@/lib/utils";
/** Where the collapsed/expanded choice for the nav sidebar is remembered. */
@@ -44,10 +45,12 @@ const NAV_COLLAPSED_KEY = "jarvis.sidebar.collapsed.v1";
*
* Which artwork is shown belongs to the user — see the Wallpaper section. The
* picture that ships with the app remains the default, and the one every
- * failure path returns to.
+ * failure path returns to. Gigi is a separate live layer on that ground, not
+ * painted into the picture.
*/
function DesktopWallpaper() {
const wallpaperUrl = useDesktopWallpaper();
+ const mascotOn = useWallpaperStore((state) => state.mascotOn);
return (
<div
aria-hidden
@@ -58,6 +61,14 @@ function DesktopWallpaper() {
className="jarvis-desktop-wallpaper absolute inset-0"
style={{ backgroundImage: `url(${wallpaperUrl})` }}
/>
+ {mascotOn ? (
+ <div
+ className="jarvis-desktop-wallpaper-mascot"
+ data-testid="jarvis-desktop-wallpaper-mascot"
+ >
+ <MascotGigi size={200} reactToVoice enableComments={false} />
+ </div>
+ ) : null}
<div className="jarvis-desktop-wallpaper-veil absolute inset-0" />
</div>
);
diff --git a/jarvis/ui/web/frontend/src/assets/jarvis-desktop-wallpaper-light.webp b/jarvis/ui/web/frontend/src/assets/jarvis-desktop-wallpaper-light.webp
index fa97a34ff0..bf1f540f22 100644
Binary files a/jarvis/ui/web/frontend/src/assets/jarvis-desktop-wallpaper-light.webp and b/jarvis/ui/web/frontend/src/assets/jarvis-desktop-wallpaper-light.webp differ
diff --git a/jarvis/ui/web/frontend/src/assets/jarvis-desktop-wallpaper.webp b/jarvis/ui/web/frontend/src/assets/jarvis-desktop-wallpaper.webp
index 012f8cc308..8e0dfaa423 100644
Binary files a/jarvis/ui/web/frontend/src/assets/jarvis-desktop-wallpaper.webp and b/jarvis/ui/web/frontend/src/assets/jarvis-desktop-wallpaper.webp differ
diff --git a/jarvis/ui/web/frontend/src/index.css b/jarvis/ui/web/frontend/src/index.css
index 31a6242e36..0d51344434 100644
--- a/jarvis/ui/web/frontend/src/index.css
+++ b/jarvis/ui/web/frontend/src/index.css
@@ -636,6 +636,23 @@
transform: scale(1.002);
}
+ /*
+ * Live Gigi on the wallpaper. He is a layer, not pixels in the picture:
+ * the artwork stays a scene, and the mascot stays the real Gigi. Sits in
+ * the lower-left of the ground, past a typical nav column, in both modes.
+ */
+ .jarvis-desktop-wallpaper-mascot {
+ position: absolute;
+ left: clamp(20px, 22vw, 340px);
+ bottom: clamp(28px, 11vh, 104px);
+ z-index: 1;
+ filter: drop-shadow(0 16px 28px rgb(0 0 0 / 0.38));
+ }
+
+ :root:not(.dark) .jarvis-desktop-wallpaper-mascot {
+ filter: drop-shadow(0 14px 22px rgb(40 28 12 / 0.22));
+ }
+
.jarvis-desktop-wallpaper-veil {
background:
linear-gradient(
@@ -2167,6 +2184,178 @@
animation: none !important;
}
}
+
+ /* ===========================================================
+ Deck standby — the boot sequence and the listening ring
+ (components/deck/DeckStandby.tsx). Everything animated here is
+ a fact moving: the ring's ticks light clockwise while the app
+ comes up, a gate's arc draws in when that gate turns true, the
+ sweep turns only while the wake word is really being listened
+ for, and the ping fires once at the moment the boot is done.
+ Colours are theme tokens (gold on both grounds). Reduced motion
+ stops all of it — the still picture carries the same facts.
+ =========================================================== */
+ .deck-ring-tick[data-ignite="true"] {
+ /* `both`: the tick's own opacity is inline, and only a filling animation
+ outranks it — so the tick is dark until its turn comes. */
+ animation: deck-ring-ignite 420ms ease-out both;
+ }
+ @keyframes deck-ring-ignite {
+ 0% {
+ opacity: 0;
+ }
+ 35% {
+ opacity: 1;
+ }
+ 100% {
+ opacity: var(--tick-opacity, 0.4);
+ }
+ }
+ .deck-ring-bezel[data-ignite="true"] {
+ stroke-dasharray: 1;
+ stroke-dashoffset: 1;
+ animation: deck-ring-draw 1400ms cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
+ }
+ @keyframes deck-ring-draw {
+ to {
+ stroke-dashoffset: 0;
+ }
+ }
+ /* a gate's arc draws in from its start the moment the gate turns true */
+ .deck-gate-arc[data-state="ok"][data-fresh="true"] {
+ stroke-dasharray: 1;
+ stroke-dashoffset: 1;
+ animation: deck-ring-draw 520ms cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
+ }
+ /* the sweep: one turn every 14 s — the wake-word listener made visible */
+ .deck-ring-sweep {
+ transform-box: fill-box;
+ transform-origin: center;
+ animation: deck-ring-sweep 14s linear infinite;
+ }
+ @keyframes deck-ring-sweep {
+ to {
+ transform: rotate(360deg);
+ }
+ }
+ /* the ping: once, when the boot completes — a ring leaves the orb and dies at the bezel */
+ .deck-ring-ping {
+ transform-box: fill-box;
+ transform-origin: center;
+ animation: deck-ring-ping 1100ms cubic-bezier(0.1, 0.6, 0.3, 1) forwards;
+ }
+ @keyframes deck-ring-ping {
+ 0% {
+ transform: scale(0.35);
+ opacity: 0.85;
+ }
+ 100% {
+ transform: scale(1);
+ opacity: 0;
+ }
+ }
+ /* boot console: a line types itself in; the cursor blinks */
+ .deck-boot-line[data-fresh="true"] {
+ overflow: hidden;
+ white-space: nowrap;
+ animation: deck-boot-type 360ms steps(28, end) both;
+ }
+ @keyframes deck-boot-type {
+ from {
+ max-width: 0;
+ }
+ to {
+ max-width: 100%;
+ }
+ }
+ .deck-boot-caret {
+ animation: deck-boot-caret 1s steps(2, end) infinite;
+ }
+ @keyframes deck-boot-caret {
+ 50% {
+ opacity: 0;
+ }
+ }
+ /* pending gate: three dots walking */
+ .deck-boot-dots span {
+ animation: deck-boot-dot 1.2s ease-in-out infinite;
+ }
+ .deck-boot-dots span:nth-child(2) {
+ animation-delay: 0.2s;
+ }
+ .deck-boot-dots span:nth-child(3) {
+ animation-delay: 0.4s;
+ }
+ @keyframes deck-boot-dot {
+ 0%,
+ 100% {
+ opacity: 0.25;
+ }
+ 40% {
+ opacity: 1;
+ }
+ }
+ /* boot title: letters arrive one after another */
+ .deck-boot-letter {
+ display: inline-block;
+ opacity: 0;
+ animation: deck-boot-letter 320ms ease-out forwards;
+ }
+ @keyframes deck-boot-letter {
+ from {
+ opacity: 0;
+ transform: translateY(4px);
+ }
+ to {
+ opacity: 1;
+ transform: none;
+ }
+ }
+ /* the scan bar riding the wipe front when a board card powers on */
+ .deck-scan-bar {
+ position: absolute;
+ left: 0;
+ right: 0;
+ height: 2px;
+ background: linear-gradient(
+ 90deg,
+ hsl(var(--primary) / 0),
+ hsl(var(--primary) / 0.9) 20%,
+ hsl(var(--primary) / 0.9) 80%,
+ hsl(var(--primary) / 0)
+ );
+ box-shadow: 0 0 10px 1px hsl(var(--primary) / 0.45);
+ pointer-events: none;
+ }
+
+ @media (prefers-reduced-motion: reduce) {
+ .deck-ring-tick[data-ignite="true"],
+ .deck-ring-bezel[data-ignite="true"],
+ .deck-gate-arc,
+ .deck-ring-sweep,
+ .deck-ring-ping,
+ .deck-boot-line,
+ .deck-boot-caret,
+ .deck-boot-dots span,
+ .deck-boot-letter {
+ animation: none !important;
+ }
+ .deck-ring-tick[data-ignite="true"] {
+ opacity: var(--tick-opacity, 0.4);
+ }
+ .deck-ring-bezel[data-ignite="true"],
+ .deck-gate-arc[data-state="ok"][data-fresh="true"] {
+ stroke-dasharray: none;
+ stroke-dashoffset: 0;
+ }
+ .deck-boot-letter,
+ .deck-boot-dots span {
+ opacity: 1;
+ }
+ .deck-ring-ping {
+ display: none;
+ }
+ }
}
@layer components {
diff --git a/jarvis/ui/web/frontend/src/lib/bundledWallpapers.ts b/jarvis/ui/web/frontend/src/lib/bundledWallpapers.ts
index 6b2495167a..d906f154ee 100644
--- a/jarvis/ui/web/frontend/src/lib/bundledWallpapers.ts
+++ b/jarvis/ui/web/frontend/src/lib/bundledWallpapers.ts
@@ -122,9 +122,10 @@ export function bundledWallpaperUrl(id: string): string | null {
* modes, light chrome landed on it whenever the light slot was empty — a
* fresh profile, a cleared store, a manual switch to light before any light
* picture was chosen — and nothing on that screen could be read (maintainer
- * report 2026-08-18). The daylight courtyard is the same character in the
- * light mode's own register, so a mode without a pick of its own shows a
- * picture authored for it, never the other mode's.
+ * report 2026-08-18). The daylight courtyard is the same place in the light
+ * mode's own register, so a mode without a pick of its own shows a picture
+ * authored for it, never the other mode's. Gigi is not in these pictures —
+ * he sits on top as a live layer (see store/wallpaper `mascotOn`).
*/
export const DEFAULT_WALLPAPER_URLS: Readonly<Record<Theme, string>> = {
dark: defaultOf("dark"),
diff --git a/jarvis/ui/web/frontend/src/store/wallpaper.test.ts b/jarvis/ui/web/frontend/src/store/wallpaper.test.ts
index e783303b55..08d8fa9bc6 100644
--- a/jarvis/ui/web/frontend/src/store/wallpaper.test.ts
+++ b/jarvis/ui/web/frontend/src/store/wallpaper.test.ts
@@ -152,3 +152,23 @@ describe("reconcile", () => {
expect(selections.dark).toBe("05-noir-03");
});
});
+
+describe("live mascot on the wallpaper", () => {
+ beforeEach(() => {
+ window.localStorage.clear();
+ useWallpaperStore.setState({ mascotOn: true });
+ });
+
+ it("defaults to on when nothing is stored", () => {
+ useWallpaperStore.getState().adopt();
+ expect(useWallpaperStore.getState().mascotOn).toBe(true);
+ });
+
+ it("persists off and comes back in another adopt", () => {
+ useWallpaperStore.getState().setMascotOn(false);
+ expect(window.localStorage.getItem("jarvis.wallpaper.mascot.v1")).toBe("0");
+ useWallpaperStore.setState({ mascotOn: true });
+ useWallpaperStore.getState().adopt();
+ expect(useWallpaperStore.getState().mascotOn).toBe(false);
+ });
+});
diff --git a/jarvis/ui/web/frontend/src/store/wallpaper.ts b/jarvis/ui/web/frontend/src/store/wallpaper.ts
index 10015d2302..5f1571de25 100644
--- a/jarvis/ui/web/frontend/src/store/wallpaper.ts
+++ b/jarvis/ui/web/frontend/src/store/wallpaper.ts
@@ -75,6 +75,17 @@ function migrateLegacySelection(): void {
*/
const FAVORITES_KEY = "jarvis.wallpaper.favorites.v1";
+/**
+ * Whether the live Gigi mascot sits ON the wallpaper as its own layer.
+ *
+ * The pictures themselves stay empty of the mascot: painting Gigi into the
+ * pixels made him a sticker, and taking him out of the pixels made the
+ * desktop lose its hero. The mascot is the real Gigi component, composited
+ * on top of whatever picture is showing. Default on — a fresh profile
+ * should still have Gigi on the ground.
+ */
+const MASCOT_KEY = "jarvis.wallpaper.mascot.v1";
+
/**
* An id minted by the upload store (`u` + 16 hex), as opposed to one written by
* the library's manifest builder (`03-anime-neon-07`) or one of the few ids
@@ -141,6 +152,17 @@ function readSelections(): Record<Theme, string | null> {
* favourites": the value is hand-editable browser storage, and a malformed
* entry must cost the grid a shortlist, never a mount.
*/
+function readMascotOn(): boolean {
+ if (typeof window === "undefined") return true;
+ try {
+ const raw = window.localStorage.getItem(MASCOT_KEY);
+ if (raw === null) return true;
+ return raw !== "0" && raw !== "false";
+ } catch {
+ return true;
+ }
+}
+
function readFavorites(): string[] {
if (typeof window === "undefined") return [];
try {
@@ -162,8 +184,12 @@ interface WallpaperStore {
selections: Record<Theme, string | null>;
/** Favourited wallpaper ids, oldest first. Shared by both themes. */
favorites: string[];
+ /** Live Gigi on the wallpaper layer. Independent of which picture is showing. */
+ mascotOn: boolean;
/** Persist a choice for one theme. Pass null to go back to the default. */
select: (id: string | null, theme: Theme) => void;
+ /** Show or hide the live mascot on the wallpaper. */
+ setMascotOn: (on: boolean) => void;
/**
* Drop one wallpaper everywhere it is remembered — every theme slot and the
* favourites. For a picture that no longer exists: an id kept for a deleted
@@ -191,6 +217,7 @@ interface WallpaperStore {
export const useWallpaperStore = create<WallpaperStore>((set, get) => ({
selections: readSelections(),
favorites: readFavorites(),
+ mascotOn: readMascotOn(),
select: (id, theme) => {
try {
if (id) window.localStorage.setItem(THEME_KEYS[theme], id);
@@ -238,7 +265,20 @@ export const useWallpaperStore = create<WallpaperStore>((set, get) => ({
}
set({ favorites: next });
},
- adopt: () => set({ selections: readSelections(), favorites: readFavorites() }),
+ setMascotOn: (on) => {
+ try {
+ window.localStorage.setItem(MASCOT_KEY, on ? "1" : "0");
+ } catch {
+ /* the layer still applies to this window */
+ }
+ set({ mascotOn: on });
+ },
+ adopt: () =>
+ set({
+ selections: readSelections(),
+ favorites: readFavorites(),
+ mascotOn: readMascotOn(),
+ }),
reconcile: (themeOf) => {
try {
for (const slot of ["light", "dark"] as Theme[]) {
@@ -276,6 +316,7 @@ export function installWallpaperSync(): () => void {
THEME_KEYS.light,
THEME_KEYS.dark,
FAVORITES_KEY,
+ MASCOT_KEY,
]);
const onStorage = (event: StorageEvent) => {
if (event.key !== null && !watched.has(event.key)) return;
diff --git a/jarvis/ui/web/frontend/src/views/WallpaperView.test.tsx b/jarvis/ui/web/frontend/src/views/WallpaperView.test.tsx
index 824a268719..ecaf607f68 100644
--- a/jarvis/ui/web/frontend/src/views/WallpaperView.test.tsx
+++ b/jarvis/ui/web/frontend/src/views/WallpaperView.test.tsx
@@ -151,6 +151,7 @@ beforeEach(() => {
useWallpaperStore.setState({
selections: { light: null, dark: null },
favorites: [],
+ mascotOn: true,
});
document.documentElement.classList.add("dark");
});
@@ -782,4 +783,24 @@ describe("WallpaperView", () => {
expect(await screen.findByAltText("The Original")).toBeTruthy();
});
+
+ it("toggles the live Gigi layer without changing the picture", async () => {
+ renderView();
+ await screen.findByAltText("The Original");
+
+ const toggle = screen.getByRole("button", {
+ name: "Show Gigi on the wallpaper",
+ });
+ expect(toggle.getAttribute("aria-pressed")).toBe("true");
+ expect(useWallpaperStore.getState().mascotOn).toBe(true);
+
+ fireEvent.click(toggle);
+
+ expect(useWallpaperStore.getState().mascotOn).toBe(false);
+ expect(toggle.getAttribute("aria-pressed")).toBe("false");
+ expect(useWallpaperStore.getState().selections).toEqual({
+ light: null,
+ dark: null,
+ });
+ });
});
diff --git a/jarvis/ui/web/frontend/src/views/WallpaperView.tsx b/jarvis/ui/web/frontend/src/views/WallpaperView.tsx
index 980fa2c89f..c1dd0fd425 100644
--- a/jarvis/ui/web/frontend/src/views/WallpaperView.tsx
+++ b/jarvis/ui/web/frontend/src/views/WallpaperView.tsx
@@ -84,15 +84,18 @@ function SegmentButton({
active,
onClick,
children,
+ "aria-label": ariaLabel,
}: {
active: boolean;
onClick: () => void;
children: React.ReactNode;
+ "aria-label"?: string;
}) {
return (
<button
type="button"
onClick={onClick}
+ aria-label={ariaLabel}
aria-pressed={active}
className={cn(
"flex items-center gap-1.5 rounded-md px-3 py-1.5 text-xs transition-colors",
@@ -512,7 +515,9 @@ export function WallpaperView() {
const activeTheme = useThemeValue();
const selectedId = useWallpaperStore((state) => state.selections[activeTheme]);
const favorites = useWallpaperStore((state) => state.favorites);
+ const mascotOn = useWallpaperStore((state) => state.mascotOn);
const toggleFavorite = useWallpaperStore((state) => state.toggleFavorite);
+ const setMascotOn = useWallpaperStore((state) => state.setMascotOn);
const forget = useWallpaperStore((state) => state.forget);
const reconcile = useWallpaperStore((state) => state.reconcile);
const apply = useApplyWallpaper();
@@ -803,6 +808,16 @@ export function WallpaperView() {
</SegmentButton>
</div>
+ <div className="flex items-center gap-1 rounded-lg border border-border p-0.5">
+ <SegmentButton
+ active={mascotOn}
+ onClick={() => setMascotOn(!mascotOn)}
+ aria-label="Show Gigi on the wallpaper"
+ >
+ Gigi
+ </SegmentButton>
+ </div>
+
<span className="ml-auto text-xs text-muted-foreground">
{visible.length} shown
</span>