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 board takes over with a launch, not a fade
Harald0b00421d4a99
diff --git a/jarvis/ui/web/frontend/src/components/deck/DeckReveal.tsx b/jarvis/ui/web/frontend/src/components/deck/DeckReveal.tsxindex f434a3acaf..1f907beec1 100644--- a/jarvis/ui/web/frontend/src/components/deck/DeckReveal.tsx+++ b/jarvis/ui/web/frontend/src/components/deck/DeckReveal.tsx@@ -1,72 +1,286 @@-import { useRef, type CSSProperties, type ReactNode } from "react";+import {+ createContext,+ useContext,+ useEffect,+ useLayoutEffect,+ useRef,+ useState,+ type CSSProperties,+ type ReactNode,+} from "react";import { motion, useReducedMotion } from "framer-motion";-import { revealDelayMs, type BoardSlot } from "@/lib/deckStandby";+import {+ CARD_POWER_ON,+ revealDelayMs,+ revealWipeFor,+ type BoardSlot,+ type WipeDirection,+} from "@/lib/deckStandby";import { cn } from "@/lib/utils";/*** How a board instrument powers on when the board takes over from the standby- * stage: a top-to-bottom wipe with a gold scan bar riding the front, timed- * from the centre outward (`revealDelayMs`) so the board assembles around the- * orb instead of popping in as one block.+ * stage — one beat of the launch (`lib/deckStandby.ts::HANDOFF`), timed from+ * the centre outward (`revealDelayMs`) so the board assembles around the orb+ * as the shockwave reaches each slot:+ *+ * 1. a targeting frame draws itself around the slot — a hairline rectangle+ * drawn from the corner nearest the orb, four brackets sliding in to the+ * corners;+ * 2. a beat later the card MOUNTS and its content wipes in AWAY from the+ * orb — the centre column top-down, the left cards from their right+ * edge, the right cards from their left (`revealWipeFor`) — with a gold+ * scan bar riding the front and a two-frame flicker, the way a hologram+ * settles;+ * 3. the wipe lands with a lock flash, and the ghost frame fades once the+ * card's own frame underneath is there. The slot is now POWERED+ * (`useDeckSlotPowered`), which is when a card may start anything heavy.+ *+ * The cards mount one beat each, not all at once, on purpose: mounting the+ * whole board in the click's own task froze the main thread for most of a+ * second (measured 2026-08-19: the 3D map's WebGL probe, the frames' layout+ * measurements), and every JS-driven animation — the orb's travel above all —+ * simply jumped. Staggering the mounts keeps the launch's first second free,+ * and a card that is heavy (the wiki's WebGL scene) waits for `powered`.+ *+ * Two boxes, on purpose: the OUTER takes the slot's place in the board's grid+ * (`className`, `style` — its size and position there) and hosts the frame,+ * bar and flash; the INNER lays the cards out (`bodyClassName`) and is the+ * one the wipe clips. A frame inside the clipped box would be wiped in with+ * the content instead of drawing ahead of it. Everything that moves here is+ * opacity, clip-path or a whole `transform` string — the values the browser+ * animates off the main thread.** `reveal` is decided ONCE for the board's mount (MissionDeckView): a board* that mounts straight into a running session — a section change and back,- * a reload mid-conversation — is simply there. Either way the wrapper is the- * same element, so a card never remounts because the flag moved.+ * a reload mid-conversation — is simply there, children and all. Either way+ * the wrapper is the same element, so a card never remounts because the flag+ * moved. The overlays unmount when the power-on is over: nothing of it stays+ * in the DOM for the rest of the session.*- * Reduced motion: no wipe, no bar — the same board, at once.+ * Reduced motion: no frame, no wipe, no bar — the same board, at once.*/-const WIPE_S = 0.42;const EASE: [number, number, number, number] = [0.2, 0.8, 0.2, 1];+const BRACKET_PX = 14;++const DeckSlotContext = createContext<{ powered: boolean }>({ powered: true });++/**+ * Whether the slot a card sits in has finished powering on — true at once+ * for a board that did not animate in. A card with something heavy to start+ * (a WebGL scene, a big chunk) waits for this instead of hitting the launch.+ */+export function useDeckSlotPowered(): boolean {+ return useContext(DeckSlotContext).powered;+}export function DeckReveal({slot,reveal,className,style,+ bodyClassName,children,}: {slot: BoardSlot;reveal: boolean;+ /** The slot's place in the board's grid: sizing, shrink, min-height. */className?: string;style?: CSSProperties;+ /** How the cards are laid out inside the slot (flex / grid classes). */+ bodyClassName?: string;children: ReactNode;}) {const reduced = useReducedMotion() ?? false;const animate = reveal && !reduced;const delay = revealDelayMs(slot) / 1000;- const ref = useRef<HTMLDivElement>(null);+ const wipe = revealWipeFor(slot);+ const wipeDelay = delay + CARD_POWER_ON.wipeLeadS;+ const ghostEnd = delay + CARD_POWER_ON.ghostFadeDelayS + CARD_POWER_ON.ghostFadeS;+ const outerRef = useRef<HTMLDivElement>(null);+ const bodyRef = useRef<HTMLDivElement>(null);+ // The ghost frame, scan bar and lock flash live only for the power-on.+ const [powering, setPowering] = useState(animate);+ // The card mounts when its wipe begins — not in the click's own task.+ const [mounted, setMounted] = useState(!animate);+ useEffect(() => {+ if (mounted) return;+ const id = window.setTimeout(() => setMounted(true), wipeDelay * 1000);+ return () => window.clearTimeout(id);+ }, [mounted, wipeDelay]);+ // The slot's box, once, for the scan bar's travel in pixels (a transform,+ // so the bar rides the front off the main thread).+ const [box, setBox] = useState({ w: 0, h: 0 });+ useLayoutEffect(() => {+ if (!animate || !outerRef.current) return;+ setBox({ w: outerRef.current.offsetWidth, h: outerRef.current.offsetHeight });+ }, [animate]);return (- <motion.div- ref={ref}- className={cn("relative", className)}- style={style}- data-testid={`deck-slot-${slot}`}- data-reveal={animate ? "true" : "false"}- initial={animate ? { clipPath: "inset(0 0 100% 0)", opacity: 0.4 } : false}- animate={animate ? { clipPath: "inset(0 0 0% 0)", opacity: 1 } : { opacity: 1 }}- transition={{ delay, duration: WIPE_S, ease: EASE }}- // The wipe done, the clip goes: a card must not stay clipped to its box- // for the rest of the session (focus rings, the frame's halo).- onAnimationComplete={() => {- if (ref.current) ref.current.style.clipPath = "";- }}- >- {children}- {animate && (+ <DeckSlotContext.Provider value={powering ? POWERING : POWERED}>+ <div+ ref={outerRef}+ className={cn("relative flex min-h-0 min-w-0 flex-col", className)}+ style={style}+ data-testid={`deck-slot-${slot}`}+ data-reveal={animate ? "true" : "false"}+ data-wipe={animate ? wipe : undefined}+ data-powered={powering ? "false" : "true"}+ ><motion.div- aria-hidden- className="deck-scan-bar"- initial={{ top: "0%", opacity: 1 }}- animate={{ top: "100%", opacity: 0 }}+ ref={bodyRef}+ className={cn("min-h-0 min-w-0 flex-1", bodyClassName)}+ initial={animate ? { clipPath: clipFrom(wipe), opacity: 0.35 } : false}+ animate={+ animate+ ? { clipPath: "inset(0% 0% 0% 0%)", opacity: [0.35, 1, 0.7, 1] }+ : { opacity: 1 }+ }transition={{- top: { delay, duration: WIPE_S, ease: EASE },- opacity: { delay: delay + WIPE_S - 0.1, duration: 0.14 },+ clipPath: { delay: wipeDelay, duration: CARD_POWER_ON.wipeS, ease: EASE },+ opacity: { delay: wipeDelay, duration: CARD_POWER_ON.wipeS, times: [0, 0.45, 0.6, 1] },+ }}+ // The wipe done, the clip goes: a card must not stay clipped to its+ // box for the rest of the session (focus rings, the frame's halo).+ onAnimationComplete={() => {+ if (bodyRef.current) bodyRef.current.style.clipPath = "";}}- style={{ translateY: "-100%" }}- />- )}- </motion.div>+ >+ {mounted && children}+ </motion.div>++ {powering && (+ <>+ {/* 1. the targeting frame: a hairline drawn from the orb's side,+ and four brackets sliding in to the corners */}+ <motion.svg+ aria-hidden+ data-testid="deck-reveal-frame"+ className="pointer-events-none absolute inset-0 h-full w-full overflow-visible"+ viewBox="0 0 100 100"+ preserveAspectRatio="none"+ initial={{ opacity: 0.9 }}+ animate={{ opacity: 0 }}+ transition={{ delay: delay + CARD_POWER_ON.ghostFadeDelayS, duration: CARD_POWER_ON.ghostFadeS }}+ // The ghost fade is the last beat of the power-on: when it is+ // done, every overlay leaves the DOM and the slot is powered.+ onAnimationComplete={() => setPowering(false)}+ >+ <motion.path+ d={framePath(wipe)}+ fill="none"+ stroke="hsl(var(--primary))"+ strokeWidth={1.5}+ vectorEffect="non-scaling-stroke"+ initial={{ pathLength: 0 }}+ animate={{ pathLength: 1 }}+ transition={{ delay, duration: CARD_POWER_ON.frameS, ease: "easeOut" }}+ />+ </motion.svg>+ {BRACKETS.map((b) => (+ <motion.span+ key={b.key}+ aria-hidden+ className={cn("deck-reveal-bracket pointer-events-none absolute", b.className)}+ data-corner={b.key}+ style={{ width: BRACKET_PX, height: BRACKET_PX }}+ initial={{ transform: `translate(${b.x}px, ${b.y}px)`, opacity: 0 }}+ animate={{ transform: "translate(0px, 0px)", opacity: [0, 1, 1, 0] }}+ transition={{+ transform: { delay, duration: 0.3, ease: EASE },+ opacity: { delay, duration: ghostEnd - delay, times: [0, 0.2, 0.7, 1] },+ }}+ />+ ))}++ {/* 2. the scan bar on the wipe's front */}+ {box.w > 0 && box.h > 0 && (+ <motion.div+ aria-hidden+ className={cn("deck-scan-bar", wipe === "down" ? "deck-scan-bar-h" : "deck-scan-bar-v")}+ initial={{ transform: barFrom(wipe, box), opacity: 1 }}+ animate={{ transform: barTo(wipe, box), opacity: 0 }}+ transition={{+ transform: { delay: wipeDelay, duration: CARD_POWER_ON.wipeS, ease: EASE },+ opacity: { delay: wipeDelay + CARD_POWER_ON.wipeS - 0.1, duration: 0.14 },+ }}+ />+ )}++ {/* 3. the lock flash as the wipe lands */}+ <motion.div+ aria-hidden+ className="pointer-events-none absolute inset-0 bg-primary"+ initial={{ opacity: 0 }}+ animate={{ opacity: [0, 0.16, 0] }}+ transition={{+ delay: wipeDelay + CARD_POWER_ON.wipeS - 0.06,+ duration: CARD_POWER_ON.lockS,+ times: [0, 0.3, 1],+ }}+ />+ </>+ )}+ </div>+ </DeckSlotContext.Provider>);}++const POWERING = { powered: false };+const POWERED = { powered: true };++/** The clip the content starts under: everything hidden, folded away from the orb. */+function clipFrom(wipe: WipeDirection): string {+ switch (wipe) {+ case "down":+ return "inset(0% 0% 100% 0%)";+ case "left":+ return "inset(0% 0% 0% 100%)";+ case "right":+ return "inset(0% 100% 0% 0%)";+ }+}++/** The ghost frame's outline, drawn from the corner nearest the orb. */+function framePath(wipe: WipeDirection): string {+ switch (wipe) {+ case "down":+ return "M 0 0 H 100 V 100 H 0 Z";+ case "left":+ return "M 100 0 H 0 V 100 H 100 Z";+ case "right":+ return "M 0 0 H 100 V 100 H 0 Z";+ }+}++/** Where the scan bar starts: on the orb's side of the slot. */+function barFrom(wipe: WipeDirection, box: { w: number; h: number }): string {+ switch (wipe) {+ case "down":+ return "translateY(0px)";+ case "left":+ return `translateX(${box.w}px)`;+ case "right":+ return "translateX(0px)";+ }+}++/** Where it ends: at the far edge. */+function barTo(wipe: WipeDirection, box: { w: number; h: number }): string {+ switch (wipe) {+ case "down":+ return `translateY(${box.h}px)`;+ case "left":+ return "translateX(0px)";+ case "right":+ return `translateX(${box.w}px)`;+ }+}++/** The four corner brackets: where they sit, and where they slide in from. */+const BRACKETS = [+ { key: "tl", className: "left-0 top-0", x: -10, y: -10 },+ { key: "tr", className: "right-0 top-0", x: 10, y: -10 },+ { key: "bl", className: "bottom-0 left-0", x: -10, y: 10 },+ { key: "br", className: "bottom-0 right-0", x: 10, y: 10 },+] as const;diff --git a/jarvis/ui/web/frontend/src/components/deck/DeckStandby.tsx b/jarvis/ui/web/frontend/src/components/deck/DeckStandby.tsxindex e676feafe0..ba84d2f612 100644--- a/jarvis/ui/web/frontend/src/components/deck/DeckStandby.tsx+++ b/jarvis/ui/web/frontend/src/components/deck/DeckStandby.tsx@@ -1,5 +1,5 @@import { useEffect, useId, useMemo, useRef, useState, type CSSProperties, type ReactNode } from "react";-import { motion, useReducedMotion } from "framer-motion";+import { motion, useIsPresent, useReducedMotion } from "framer-motion";import { useEventStore } from "@/store/events";import { useDeckStore } from "@/store/deck";import type { WakeWordConfig } from "@/hooks/useWakeWord";@@ -13,6 +13,7 @@ import {ringTicks,GATE_ARC_CENTRE,GATE_ARC_SPAN,+ HANDOFF,SETTLE_MS,type Gate,type GateId,@@ -50,12 +51,26 @@ import { useT } from "@/i18n";* standby has to be calm enough to sit next to for an hour.** The board is one press away at all times (`onOpenBoard`), and takes over- * on its own the moment a turn opens — that hand-off is MissionDeckView's,- * with this stage's exit choreographed through framer variants (`exit`).+ * on its own the moment a turn opens — that hand-off is MissionDeckView's.+ * This stage's part of it is the LAUNCH (`lib/deckStandby.ts::HANDOFF`):+ * the orb flares and two shockwaves leave it, the stage flashes, the ring+ * draws breath and bursts past the camera turning while its ticks flare+ * clockwise and the sweep spins up, the cue and the corners get out of the+ * way, and only then does the layer fade — over the board assembling+ * underneath. `useIsPresent` flips `data-leaving`, and the burst — flash,+ * flare, waves, the ring's breath-and-burst, the tick flare, the sweep+ * spin-up — is pure CSS keyed on it (index.css), so it runs on the+ * compositor whatever the main thread is doing while the board mounts; the+ * framer `exit` variants carry only the corners, the cue and the layer's own+ * fade. The maintainer's brief (2026-08-19): a hard switch is ridiculous;+ * this has to be cinematic, Stark-grade, fun to watch.*//** How the orb travels between this ring and its place on the board. */-export const ORB_TRAVEL = { layout: { duration: 0.62, ease: [0.2, 0.8, 0.2, 1] } } as const;+export const ORB_TRAVEL = {+ layout: { duration: HANDOFF.travelS, delay: HANDOFF.travelDelayS, ease: [0.22, 0.85, 0.2, 1] },+} as const;+/** The ring is labelled at the compass points only when there is room. */const LABELS_MIN_RING = 520;/** The corner blocks leave the ring's sides alone from this stage width. */@@ -88,6 +103,10 @@ export function DeckStandby({}) {const t = useT();const reduced = useReducedMotion() ?? false;+ // The stage is on its way out — AnimatePresence keeps it mounted for the+ // exit, and this is how the ring's CSS learns to flare and spin up.+ const present = useIsPresent();+ const leaving = !present && !reduced;const connected = useEventStore((s) => s.connected);const voiceReady = useEventStore((s) => s.voiceReady);const voiceState = useEventStore((s) => s.voiceState);@@ -206,38 +225,77 @@ export function DeckStandby({<div className={cn("absolute z-10", extra)}>{children}</div>);+ // The shockwave has to clear the stage's far corner: scale the reticle-sized+ // ring up to the stage's diagonal, and a little past it.+ const waveScale =+ stage.w && stage.h ? (Math.hypot(stage.w, stage.h) / reticle) * 1.05 : 6;+return (<motion.divref={stageRef}data-testid="deck-standby"data-phase={phase}+ data-leaving={leaving ? "true" : "false"}className={cn("relative overflow-hidden", className)}- variants={{ hidden: {}, show: { opacity: 1 }, exit: { opacity: 0, transition: { duration: 0.32, delay: 0.08 } } }}+ variants={{+ hidden: {},+ show: { opacity: 1 },+ // The layer itself goes LAST: the burst plays out over the board+ // assembling underneath, then the remains fade.+ exit: { opacity: 0, transition: { duration: HANDOFF.stageFadeS, delay: HANDOFF.stageFadeDelayS } },+ }}initial={ignite && !reduced ? "hidden" : "show"}animate="show"exit="exit"><HudFrameOverlay variant="bracket" w={stage.w} h={stage.h} live={phase === "standby"} />+ {/* The launch: the whole stage flashes gold for a blink (CSS, on leaving). */}+ <div aria-hidden className="deck-launch-flash pointer-events-none absolute inset-0 bg-primary" />+{/* The instrument: the ring with the orb in it, centred on the stage. */}<div className={cn("absolute inset-0 grid", wide ? "place-items-center" : "place-items-start justify-items-center pt-3")}><div className="relative" style={{ width: ring, height: ring }}>- {/* On the hand-off the ring folds into the orb while the corners slide out. */}- <motion.div- className="absolute inset-0"- variants={{ exit: { scale: 0.62, opacity: 0, transition: { duration: 0.45, ease: "easeIn" } } }}- >+ {/* On the hand-off the ring draws breath, then bursts past the+ camera, turning (CSS, on leaving) — while the corners slide out+ of the way. */}+ <div className="deck-launch-ring absolute inset-0"><StandbyRingsize={ring}gates={gates}fresh={pendingAtMount}ignite={ignite}+ leaving={leaving}sweep={Boolean(listening) && !reduced}ping={ignite && readyAt !== null && !reduced ? readyAt : null}labels={ring >= LABELS_MIN_RING ? (id) => t(`deck.boot_gate_${id}`) : undefined}reticle={reticle}/>- </motion.div>+ </div>++ {/* The burst: the orb's flare and two shockwaves, from the orb's+ centre, over everything on the stage. Invisible at rest; on+ leaving they fire once (CSS), and the layer fades before they+ are done. `--wave-scale` takes a wave past the stage's corner. */}+ <div+ className="pointer-events-none absolute inset-0 grid place-items-center"+ aria-hidden+ style={{ "--wave-scale": waveScale.toFixed(2) } as CSSProperties}+ >+ <div+ className="deck-handoff-flare absolute rounded-full"+ style={{ width: reticle * 1.2, height: reticle * 1.2 }}+ />+ <div+ className="deck-handoff-wave absolute rounded-full"+ data-testid="deck-handoff-wave"+ style={{ width: reticle, height: reticle }}+ />+ <div+ className="deck-handoff-wave deck-handoff-wave-echo absolute rounded-full"+ style={{ width: reticle, height: reticle }}+ />+ </div><div className="absolute inset-0 grid place-items-center"><motion.div@@ -267,14 +325,20 @@ export function DeckStandby({style={{ top: ring / 2 + reticle / 2 + 12 }}>{phase === "boot" ? (- <BootTitle text={t("deck.boot_title")} animate={!reduced} />+ <motion.div+ key="boot-title"+ variants={{ exit: { opacity: 0, y: -10, scale: 0.9, transition: { duration: 0.22, ease: "easeIn" } } }}+ >+ <BootTitle text={t("deck.boot_title")} animate={!reduced} />+ </motion.div>) : (<motion.divkey="cue"variants={{hidden: { opacity: 0, y: 6 },show: { opacity: 1, y: 0, transition: { duration: 0.5, delay: 0.3 } },- exit: { opacity: 0, y: 6, transition: { duration: 0.2 } },+ // The cue is pulled into the orb as it launches.+ exit: { opacity: 0, y: -10, scale: 0.9, transition: { duration: 0.22, ease: "easeIn" } },}}className="flex flex-col items-center gap-1">@@ -300,7 +364,7 @@ export function DeckStandby({{corner(wide ? "left-5 top-4" : "left-4 top-3",<motion.div- variants={{ exit: { opacity: 0, x: -14, transition: { duration: 0.25 } } }}+ variants={{ exit: { opacity: 0, x: -36, transition: { duration: HANDOFF.cornerS, ease: "easeIn" } } }}className="flex flex-col gap-0.5"><span@@ -327,7 +391,7 @@ export function DeckStandby({{corner(wide ? "bottom-4 left-5 max-w-[320px]" : "inset-x-4 bottom-14",<motion.div- variants={{ exit: { opacity: 0, x: -14, transition: { duration: 0.25 } } }}+ variants={{ exit: { opacity: 0, x: -36, transition: { duration: HANDOFF.cornerS, ease: "easeIn" } } }}className="font-mono text-[10.5px] leading-[1.6]"data-testid="deck-boot-console">@@ -403,7 +467,7 @@ export function DeckStandby({{corner(wide ? "bottom-4 right-5 text-right" : "bottom-3 right-4 text-right",<motion.div- variants={{ exit: { opacity: 0, x: 14, transition: { duration: 0.25 } } }}+ variants={{ exit: { opacity: 0, x: 36, transition: { duration: HANDOFF.cornerS, ease: "easeIn" } } }}className="flex flex-col items-end gap-1.5"><button@@ -469,6 +533,7 @@ function StandbyRing({gates,fresh,ignite,+ leaving,sweep,ping,labels,@@ -479,6 +544,11 @@ function StandbyRing({/** Gates that were pending when the stage mounted — their arcs draw in. */fresh: Set<GateId>;ignite: boolean;+ /**+ * The stage is on its way out: the ticks flare clockwise on the CSS+ * cascade (`--tick-i`), so the ignition's own per-tick delay steps aside.+ */+ leaving: boolean;sweep: boolean;/** Timestamp of the boot's completion, or null — keys the one-shot ping. */ping: number | null;@@ -536,8 +606,9 @@ function StandbyRing({style={{"--tick-opacity": tickOpacity[tk.weight],+ "--tick-i": i,opacity: "var(--tick-opacity)",- animationDelay: ignite ? `${i * 9}ms` : undefined,+ animationDelay: ignite && !leaving ? `${i * 9}ms` : undefined,} as CSSProperties}/>diff --git a/jarvis/ui/web/frontend/src/components/deck/DeckWiki.tsx b/jarvis/ui/web/frontend/src/components/deck/DeckWiki.tsxindex 1538c87f64..56c7b1d157 100644--- a/jarvis/ui/web/frontend/src/components/deck/DeckWiki.tsx+++ b/jarvis/ui/web/frontend/src/components/deck/DeckWiki.tsx@@ -8,6 +8,7 @@ import { useDeckStore } from "@/store/deck";import { fetchWikiTree } from "@/lib/wikiApi";import { toGraphData, type RenderEdge, type RenderNode, type WikiGraphPayload } from "@/lib/wikiGraph";import { detectWebgl } from "@/lib/graphDimension";+import { useDeckSlotPowered } from "@/components/deck/DeckReveal";import { edgeDetails, escapeTooltipText, nodeDetails } from "@/components/wiki/WikiGraph";import { DeckCard, DeckIconButton } from "@/components/deck/DeckCard";import { HudLamp, useElementSize } from "@/components/deck/HudFrame";@@ -31,9 +32,26 @@ import { useT } from "@/i18n";* Only ONE scene is ever mounted: while the expanded overlay is open, the card* shows a placeholder, so there is one WebGL context and one orbit.*/-const WikiGraph3D = lazy(() =>- import("@/components/wiki/WikiGraph3D").then((m) => ({ default: m.WikiGraph3D })),-);+const loadWikiGraph3D = () => import("@/components/wiki/WikiGraph3D");+const WikiGraph3D = lazy(() => loadWikiGraph3D().then((m) => ({ default: m.WikiGraph3D })));++/**+ * Get the scene's heavy parts ready while nothing is happening — the deck+ * calls this from the standby's idle time, so that when the board takes+ * over, the WebGL probe is a cache hit and the 3D chunk is already parsed.+ * Measured 2026-08-19: done on the board's mount instead, the probe alone+ * held the main thread for half a second, in the middle of the launch.+ */+export function warmWikiScene(): void {+ try {+ detectWebgl();+ } catch {+ /* the probe answers false on its own when WebGL is missing */+ }+ void loadWikiGraph3D().catch(() => {+ /* a chunk that fails to preload simply loads later, as it always did */+ });+}const WikiGraph2D = lazy(() =>import("@/components/wiki/WikiGraph").then((m) => ({ default: m.WikiGraph })),);@@ -84,7 +102,10 @@ function DeckWikiScene({[titles],);- const ready = size.w > 20 && size.h > 20;+ // The scene mounts once the card's slot has powered on — during the+ // launch the WebGL init would stall the very beats it sits under.+ const powered = useDeckSlotPowered();+ const ready = powered && size.w > 20 && size.h > 20;return (<div ref={ref} className={cn("relative h-full w-full overflow-hidden", className)}>diff --git a/jarvis/ui/web/frontend/src/index.css b/jarvis/ui/web/frontend/src/index.cssindex 1703d6d0fc..6176c4e9e8 100644--- a/jarvis/ui/web/frontend/src/index.css+++ b/jarvis/ui/web/frontend/src/index.css@@ -2326,9 +2326,202 @@transform: none;}}- /* the scan bar riding the wipe front when a board card powers on */+ /* ===========================================================+ The hand-off — the standby's launch and the board's power-on+ (lib/deckStandby.ts::HANDOFF; DeckStandby, DeckReveal,+ MissionDeckView). The standby's whole burst lives HERE, keyed+ on `data-leaving`: the stage flash, the orb's flare, the two+ shockwaves, the ring's breath-and-burst, the ticks flaring+ clockwise and the sweep spinning up. CSS on purpose — transform+ and opacity run on the compositor, so the launch plays even+ while the main thread is busy mounting the board (the framer+ beats froze and jumped there, seen 2026-08-19). The timings+ mirror HANDOFF: flare 0.6 s, wave 0.95 s (+0.14 s echo), ring+ 0.62 s. Gold from the theme tokens on both grounds.+ =========================================================== */+ /* the stage flashes gold for a blink */+ .deck-launch-flash {+ opacity: 0;+ }+ [data-leaving="true"] .deck-launch-flash {+ animation: deck-launch-flash 500ms ease-out both;+ }+ @keyframes deck-launch-flash {+ 0% {+ opacity: 0;+ }+ 20% {+ opacity: 0.14;+ }+ 100% {+ opacity: 0;+ }+ }+ /* the ring draws breath, then bursts past the camera, turning */+ .deck-launch-ring {+ transform-origin: 50% 50%;+ }+ [data-leaving="true"] .deck-launch-ring {+ animation: deck-launch-ring 620ms cubic-bezier(0.35, 0, 0.15, 1) both;+ will-change: transform, opacity;+ }+ @keyframes deck-launch-ring {+ 0% {+ transform: scale(1) rotate(0deg);+ opacity: 1;+ }+ 22% {+ transform: scale(0.95) rotate(-4deg);+ opacity: 1;+ }+ 100% {+ transform: scale(1.42) rotate(14deg);+ opacity: 0;+ }+ }+ /* the orb's flare: a burst of light from the centre */+ .deck-handoff-flare {+ background: radial-gradient(+ circle,+ hsl(var(--primary) / 0.95) 0%,+ hsl(var(--primary) / 0.55) 28%,+ hsl(var(--primary) / 0.18) 52%,+ hsl(var(--primary) / 0) 70%+ );+ opacity: 0;+ transform: scale(0.4);+ }+ [data-leaving="true"] .deck-handoff-flare {+ animation: deck-handoff-flare 600ms ease-out both;+ will-change: transform, opacity;+ }+ @keyframes deck-handoff-flare {+ 0% {+ opacity: 0;+ transform: scale(0.4);+ }+ 18% {+ opacity: 0.95;+ transform: scale(1);+ }+ 100% {+ opacity: 0;+ transform: scale(2.6);+ }+ }+ /* a shockwave: a bright hairline ring with a glow on both sides. Also+ the orb's landing ring on the board (framer drives that one). */+ .deck-handoff-wave {+ border: 2px solid hsl(var(--primary) / 0.95);+ box-shadow:+ 0 0 14px 2px hsl(var(--primary) / 0.55),+ inset 0 0 14px 2px hsl(var(--primary) / 0.35);+ }+ .deck-handoff-wave-echo {+ border-width: 1px;+ box-shadow:+ 0 0 8px 1px hsl(var(--primary) / 0.4),+ inset 0 0 8px 1px hsl(var(--primary) / 0.25);+ }+ /* a wave rests invisible (framer's inline values win for the landing+ ring) and fires on leaving; `--wave-scale` (set inline from the+ measured stage) takes it past the far corner */+ .deck-handoff-wave {+ opacity: 0;+ transform: scale(0.6);+ }+ [data-leaving="true"] .deck-handoff-wave {+ animation: deck-handoff-wave 950ms cubic-bezier(0.1, 0.7, 0.2, 1) both;+ will-change: transform, opacity;+ }+ [data-leaving="true"] .deck-handoff-wave-echo {+ animation-name: deck-handoff-wave-echo;+ animation-delay: 140ms;+ }+ @keyframes deck-handoff-wave {+ 0% {+ opacity: 0;+ transform: scale(0.6);+ }+ 10% {+ opacity: 0.9;+ transform: scale(1.2);+ }+ 55% {+ opacity: 0.5;+ transform: scale(calc(var(--wave-scale, 6) * 0.7));+ }+ 100% {+ opacity: 0;+ transform: scale(var(--wave-scale, 6));+ }+ }+ @keyframes deck-handoff-wave-echo {+ 0% {+ opacity: 0;+ transform: scale(0.6);+ }+ 10% {+ opacity: 0.6;+ transform: scale(1.1);+ }+ 55% {+ opacity: 0.3;+ transform: scale(calc(var(--wave-scale, 6) * 0.65));+ }+ 100% {+ opacity: 0;+ transform: scale(var(--wave-scale, 6));+ }+ }+ /* the stage is leaving: every tick flares bright, clockwise, in 0.3 s */+ [data-leaving="true"] .deck-ring-tick {+ animation: deck-ring-flare 360ms ease-out both;+ animation-delay: calc(var(--tick-i, 0) * 2.5ms);+ }+ @keyframes deck-ring-flare {+ 0% {+ opacity: var(--tick-opacity, 0.4);+ }+ 30% {+ opacity: 1;+ }+ 100% {+ opacity: var(--tick-opacity, 0.4);+ }+ }+ /* … the sweep spins up from one turn in 14 s to one in 0.5 s … */+ [data-leaving="true"] .deck-ring-sweep {+ animation-duration: 0.5s;+ }+ /* … and the gate arcs flash once, thick and bright */+ [data-leaving="true"] .deck-gate-arc[data-state="ok"] {+ animation: deck-arc-flash 480ms ease-out both;+ }+ @keyframes deck-arc-flash {+ 0% {+ opacity: 0.95;+ stroke-width: 2.5;+ }+ 25% {+ opacity: 1;+ stroke-width: 5;+ }+ 100% {+ opacity: 0.95;+ stroke-width: 2.5;+ }+ }++ /* the scan bar riding the wipe front when a board card powers on —+ horizontal for a top-down wipe, vertical for a sideways one */.deck-scan-bar {position: absolute;+ pointer-events: none;+ will-change: transform, opacity;+ }+ .deck-scan-bar-h {+ top: 0;left: 0;right: 0;height: 2px;@@ -2340,7 +2533,47 @@hsl(var(--primary) / 0));box-shadow: 0 0 10px 1px hsl(var(--primary) / 0.45);- pointer-events: none;+ }+ .deck-scan-bar-v {+ left: 0;+ top: 0;+ bottom: 0;+ width: 2px;+ background: linear-gradient(+ 180deg,+ 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);+ }+ /* the launch's last beat: one scan down the whole board, brighter */+ .deck-board-sweep {+ height: 3px;+ z-index: 5;+ box-shadow: 0 0 18px 2px hsl(var(--primary) / 0.55);+ }+ /* the targeting frame's corner brackets, before a card fills in */+ .deck-reveal-bracket {+ border: 0 solid hsl(var(--primary));+ filter: drop-shadow(0 0 3px hsl(var(--primary) / 0.6));+ }+ .deck-reveal-bracket[data-corner="tl"] {+ border-top-width: 1.5px;+ border-left-width: 1.5px;+ }+ .deck-reveal-bracket[data-corner="tr"] {+ border-top-width: 1.5px;+ border-right-width: 1.5px;+ }+ .deck-reveal-bracket[data-corner="bl"] {+ border-bottom-width: 1.5px;+ border-left-width: 1.5px;+ }+ .deck-reveal-bracket[data-corner="br"] {+ border-bottom-width: 1.5px;+ border-right-width: 1.5px;}@media (prefers-reduced-motion: reduce) {@@ -2353,7 +2586,13 @@.deck-boot-line,.deck-boot-caret,.deck-boot-dots span,- .deck-boot-letter {+ .deck-boot-letter,+ [data-leaving="true"] .deck-ring-tick,+ [data-leaving="true"] .deck-gate-arc,+ .deck-launch-flash,+ .deck-launch-ring,+ .deck-handoff-flare,+ .deck-handoff-wave {animation: none !important;}.deck-ring-tick[data-ignite="true"] {diff --git a/jarvis/ui/web/frontend/src/lib/deckStandby.test.ts b/jarvis/ui/web/frontend/src/lib/deckStandby.test.tsindex 6c0162d5af..4bde3e5c2a 100644--- a/jarvis/ui/web/frontend/src/lib/deckStandby.test.ts+++ b/jarvis/ui/web/frontend/src/lib/deckStandby.test.ts@@ -6,8 +6,12 @@ import {resolvePhase,reticleSizeFor,revealDelayMs,+ revealWipeFor,ringSizeFor,ringTicks,+ CARD_POWER_ON,+ HANDOFF,+ type BoardSlot,type GateInput,type PhaseInput,} from "@/lib/deckStandby";@@ -164,4 +168,64 @@ describe("sizing", () => {expect(revealDelayMs("left-top")).toBe(revealDelayMs("right-top"));expect(revealDelayMs("left-bottom")).toBeGreaterThan(revealDelayMs("right-top"));});++ test("every card wipes in away from the orb", () => {+ expect(revealWipeFor("centre-top")).toBe("down");+ expect(revealWipeFor("centre-bottom")).toBe("down");+ expect(revealWipeFor("left-top")).toBe("left");+ expect(revealWipeFor("left-bottom")).toBe("left");+ expect(revealWipeFor("right-top")).toBe("right");+ expect(revealWipeFor("right-bottom")).toBe("right");+ });+});++describe("the hand-off is one launch on one clock", () => {+ const SLOTS: BoardSlot[] = [+ "centre-top",+ "centre-bottom",+ "left-top",+ "right-top",+ "left-bottom",+ "right-bottom",+ ];++ test("the burst leads, the orb travels through it, the cards follow the wave", () => {+ // The first card's frame starts drawing inside the flare's light, and the+ // flare and the ring are both out before that card has filled in.+ const firstCard = revealDelayMs("centre-top") / 1000;+ const firstCardIn = firstCard + CARD_POWER_ON.wipeLeadS + CARD_POWER_ON.wipeS;+ expect(firstCard).toBeLessThan(HANDOFF.flareS);+ expect(HANDOFF.flareS).toBeLessThanOrEqual(firstCardIn);+ expect(HANDOFF.ringS).toBeLessThanOrEqual(firstCardIn);+ // The orb leaves a beat after the flare starts and is on the board before+ // the standby layer has faded — no moment with two orbs or none.+ expect(HANDOFF.travelDelayS).toBeGreaterThan(0);+ expect(HANDOFF.travelDelayS + HANDOFF.travelS).toBeLessThanOrEqual(+ HANDOFF.stageFadeDelayS + HANDOFF.stageFadeS,+ );+ // The landing ring fires as the orb arrives, the headline after it.+ expect(HANDOFF.landDelayS).toBeGreaterThanOrEqual(HANDOFF.travelDelayS + HANDOFF.travelS - 0.1);+ expect(HANDOFF.headlineDelayS).toBeGreaterThan(HANDOFF.landDelayS);+ // The wave is still out when the cards start — they appear as it passes.+ expect(HANDOFF.waveS).toBeGreaterThan(firstCard);+ });++ test("the final scan runs once every card has locked", () => {+ const lastLock = Math.max(+ ...SLOTS.map(+ (slot) =>+ revealDelayMs(slot) / 1000 + CARD_POWER_ON.wipeLeadS + CARD_POWER_ON.wipeS + CARD_POWER_ON.lockS,+ ),+ );+ expect(HANDOFF.boardSweepDelayS).toBeGreaterThanOrEqual(lastLock - 0.4);+ // The whole launch is over in under two seconds: one of these plays on+ // every first turn of a session, and it has to thrill, not delay.+ expect(HANDOFF.boardSweepDelayS + HANDOFF.boardSweepS).toBeLessThan(2);+ });++ test("a card's frame draws ahead of its content, and its ghost outlives the lock", () => {+ expect(CARD_POWER_ON.wipeLeadS).toBeGreaterThan(0);+ expect(CARD_POWER_ON.frameS).toBeGreaterThan(CARD_POWER_ON.wipeLeadS);+ expect(CARD_POWER_ON.ghostFadeDelayS).toBeGreaterThan(CARD_POWER_ON.wipeLeadS + CARD_POWER_ON.wipeS);+ });});diff --git a/jarvis/ui/web/frontend/src/lib/deckStandby.ts b/jarvis/ui/web/frontend/src/lib/deckStandby.tsindex ddff20ed81..037f01cb6f 100644--- a/jarvis/ui/web/frontend/src/lib/deckStandby.ts+++ b/jarvis/ui/web/frontend/src/lib/deckStandby.ts@@ -205,10 +205,87 @@ export function reticleSizeFor(ring: number): number {return Math.max(RETICLE_MIN, Math.min(RETICLE_MAX, Math.round(ring * RETICLE_OF_RING)));}+/* ------------------------------------------------------------------ */+/* The hand-off — the standby's last second and the board's first */+/* ------------------------------------------------------------------ */++/**+ * The choreography the moment the board takes over, as ONE timeline in+ * seconds from the hand-off (the phase flipping to "board"). The maintainer's+ * verdict on the first cut (2026-08-19): a fade and a wipe read as a hard+ * switch — "ridiculous". The deck is a mission deck; the hand-off has to be+ * a launch. So:+ *+ * 0.00 the orb flares and a shockwave leaves it; the stage flashes gold+ * 0.00 the ring draws breath (shrinks a touch), then bursts past the+ * camera, turning; its ticks flare clockwise, the sweep spins up+ * 0.12 the orb travels from the ring's centre to its place on the board+ * 0.40 the instruments assemble as the wave passes — centre first, then+ * outward: a targeting frame draws itself, the card fills in from+ * the centre's side with a scan bar on the front, and locks with a+ * flash+ * 0.80 the orb lands: one ring leaves it and dies+ * 0.95 the standby stage is gone+ * 1.25 one scan runs down the whole board — the deck is live+ *+ * Every figure lives here so the stage (DeckStandby), the cards+ * (DeckReveal) and the view (MissionDeckView) keep one clock, and the tests+ * can pin the order without reading three components. The standby's burst+ * itself (flash, flare, waves, the ring's breath-and-burst) is CSS keyed on+ * `data-leaving` — index.css mirrors the flare, wave, echo and ring figures+ * below, so it runs on the compositor whatever the main thread is doing.+ */+export const HANDOFF = {+ /** The orb's flare: a burst of light, gone by the time the wave is out. */+ flareS: 0.6,+ /** The shockwave's travel from the orb to past the stage's edge. */+ waveS: 0.95,+ /** The second, fainter wave follows the first by this much. */+ waveEchoDelayS: 0.14,+ /** The ring: breath in, then burst outward — and how far the breath goes. */+ ringS: 0.62,+ ringBreathAt: 0.22,+ ringBreathScale: 0.95,+ ringBurstScale: 1.42,+ ringBurstRotateDeg: 14,+ /** The corners and the cue leave in this long. */+ cornerS: 0.3,+ /** The orb's travel to the board: starts a beat after the flare, takes this long. */+ travelDelayS: 0.12,+ travelS: 0.72,+ /** The standby layer's final fade starts here, so the burst plays out first. */+ stageFadeDelayS: 0.85,+ stageFadeS: 0.25,+ /** The orb's landing ring on the board. */+ landDelayS: 0.8,+ landS: 0.55,+ /** The board's headline fades in once the orb has landed. */+ headlineDelayS: 1.0,+ /** The final scan down the whole board. */+ boardSweepDelayS: 1.25,+ boardSweepS: 0.5,+} as const;++/**+ * How one board instrument powers on (DeckReveal), relative to its slot's+ * `revealDelayMs`: the targeting frame draws in, the card's content wipes+ * in a beat later, the lock flash fires as the wipe lands, and the frame+ * ghost fades once the real frame underneath is there.+ */+export const CARD_POWER_ON = {+ frameS: 0.34,+ wipeLeadS: 0.16,+ wipeS: 0.42,+ lockS: 0.22,+ ghostFadeDelayS: 0.7,+ ghostFadeS: 0.3,+} as const;+/*** The reveal order of the board's cards when the board takes over — the- * centre first, then outward — as a delay in milliseconds for each slot.- * Slots are named so the view cannot mis-number them.+ * centre first, then outward, as the shockwave from the orb reaches each+ * slot — as a delay in milliseconds for each slot. Slots are named so the+ * view cannot mis-number them.*/export type BoardSlot =| "centre-top"@@ -218,8 +295,8 @@ export type BoardSlot =| "left-bottom"| "right-bottom";-const REVEAL_BASE_MS = 140;-const REVEAL_STEP_MS = 90;+const REVEAL_BASE_MS = 400;+const REVEAL_STEP_MS = 130;const REVEAL_ORDER: Record<BoardSlot, number> = {"centre-top": 0,"centre-bottom": 1,@@ -232,3 +309,17 @@ const REVEAL_ORDER: Record<BoardSlot, number> = {export function revealDelayMs(slot: BoardSlot): number {return REVEAL_BASE_MS + REVEAL_ORDER[slot] * REVEAL_STEP_MS;}++/**+ * Which way a slot's content wipes in: away from the orb. The wave comes+ * from the centre, so a card on the left fills from its right edge leftward,+ * a card on the right from its left edge rightward, and the centre column+ * top-down.+ */+export type WipeDirection = "down" | "left" | "right";++export function revealWipeFor(slot: BoardSlot): WipeDirection {+ if (slot.startsWith("left")) return "left";+ if (slot.startsWith("right")) return "right";+ return "down";+}diff --git a/jarvis/ui/web/frontend/src/views/MissionDeckView.phases.test.tsx b/jarvis/ui/web/frontend/src/views/MissionDeckView.phases.test.tsxindex bac673fc99..517f247a33 100644--- a/jarvis/ui/web/frontend/src/views/MissionDeckView.phases.test.tsx+++ b/jarvis/ui/web/frontend/src/views/MissionDeckView.phases.test.tsx@@ -116,9 +116,30 @@ describe("MissionDeckView — the three acts", () => {render(<MissionDeckView />);act(() => useDeckStore.getState().ingest("WakeWordDetected", { keyword: "nova" }, Date.now()));expect(screen.getByTestId("deck-board")).toBeTruthy();- // Arrived from the standby on this screen: the instruments reveal.- expect(screen.getByTestId("deck-slot-left-top").getAttribute("data-reveal")).toBe("true");- await waitFor(() => expect(screen.queryByTestId("deck-standby")).toBeNull(), { timeout: 3000 });+ // Arrived from the standby on this screen: the instruments reveal, each+ // one wiping away from the orb, with the targeting frame drawn ahead.+ const left = screen.getByTestId("deck-slot-left-top");+ expect(left.getAttribute("data-reveal")).toBe("true");+ expect(left.getAttribute("data-wipe")).toBe("left");+ expect(screen.getByTestId("deck-slot-right-top").getAttribute("data-wipe")).toBe("right");+ expect(screen.getByTestId("deck-slot-centre-top").getAttribute("data-wipe")).toBe("down");+ expect(left.querySelector('[data-testid="deck-reveal-frame"]')).toBeTruthy();+ // The cards themselves mount one beat each, not in the click's own task+ // (the launch must not freeze on the board's mount): the slot is there,+ // its card is not yet, and the slot is not powered until its frame fades.+ expect(screen.queryByText("log")).toBeNull();+ expect(left.getAttribute("data-powered")).toBe("false");+ // The orb lands with a ring; the board ends with one scan.+ expect(screen.getByTestId("deck-orb-landing")).toBeTruthy();+ expect(screen.getByTestId("deck-board-sweep")).toBeTruthy();+ // The standby is still on stage for its launch — and knows it is leaving —+ // then it is gone.+ const standby = screen.getByTestId("deck-standby");+ await waitFor(() => expect(standby.getAttribute("data-leaving")).toBe("true"));+ expect(standby.querySelector('[data-testid="deck-handoff-wave"]')).toBeTruthy();+ await waitFor(() => expect(screen.getByText("log")).toBeTruthy(), { timeout: 3000 });+ await waitFor(() => expect(screen.queryByTestId("deck-standby")).toBeNull(), { timeout: 4000 });+ await waitFor(() => expect(left.getAttribute("data-powered")).toBe("true"), { timeout: 4000 });});test("'Open the board' opens it by hand and it stays open", async () => {@@ -146,6 +167,10 @@ describe("MissionDeckView — the three acts", () => {render(<MissionDeckView />);expect(screen.getByTestId("deck-board")).toBeTruthy();expect(screen.queryByTestId("deck-standby")).toBeNull();- expect(screen.getByTestId("deck-slot-left-top").getAttribute("data-reveal")).toBe("false");+ const left = screen.getByTestId("deck-slot-left-top");+ expect(left.getAttribute("data-reveal")).toBe("false");+ // … cards and all, powered from the first render.+ expect(screen.getByText("log")).toBeTruthy();+ expect(left.getAttribute("data-powered")).toBe("true");});});diff --git a/jarvis/ui/web/frontend/src/views/MissionDeckView.tsx b/jarvis/ui/web/frontend/src/views/MissionDeckView.tsxindex f842ba5882..0649711b2a 100644--- a/jarvis/ui/web/frontend/src/views/MissionDeckView.tsx+++ b/jarvis/ui/web/frontend/src/views/MissionDeckView.tsx@@ -1,5 +1,5 @@-import { useEffect, useMemo, useRef, type ReactNode } from "react";-import { AnimatePresence, MotionConfig, motion } from "framer-motion";+import { useEffect, useLayoutEffect, useMemo, useRef, useState, type ReactNode } from "react";+import { AnimatePresence, MotionConfig, motion, useReducedMotion } from "framer-motion";import { useEventStore, type VoiceState } from "@/store/events";import { useDeckStore } from "@/store/deck";import { VoiceWaveform, type WaveformPhase } from "@/components/overlay/VoiceWaveform";@@ -19,13 +19,13 @@ import {import { ApiStatsCard, CaptureCard, LiveCounter } from "@/components/deck/DeckSignalCards";import { LogCard } from "@/components/deck/DeckLogCard";import { TurnCard } from "@/components/deck/DeckTurnCard";-import { WikiCard } from "@/components/deck/DeckWiki";+import { WikiCard, warmWikiScene } from "@/components/deck/DeckWiki";import { useVoiceReadiness } from "@/hooks/useVoiceReadiness";import { useWakeWord } from "@/hooks/useWakeWord";import { useVoiceCall } from "@/components/agentic/useVoiceCall";import { useElementSize } from "@/hooks/useElementSize";import { orbSizeFor, stageVignette } from "@/lib/deckStage";-import { resolvePhase } from "@/lib/deckStandby";+import { HANDOFF, resolvePhase } from "@/lib/deckStandby";import { writeDeckMode } from "@/lib/deckMode";import { cn } from "@/lib/utils";import { useT } from "@/i18n";@@ -63,10 +63,15 @@ import { useT } from "@/i18n";* the stage is `DeckStandby` — the boot sequence while the app comes up,* then the listening ring — and the board takes over the moment a turn* opens or the person asks for it (`lib/deckStandby.ts::resolvePhase`,- * forward only). The hand-off is choreographed: the standby's ring and- * console leave, the orb travels from the ring's centre to its place on the- * board (one `layoutId` on both stages), and the instruments power on from- * the centre outward (`DeckReveal`).+ * forward only). The hand-off is a LAUNCH, on one clock+ * (`lib/deckStandby.ts::HANDOFF`): the orb flares and a shockwave leaves+ * it, the standby's ring bursts past the camera and its console gets out of+ * the way (`DeckStandby`), the orb travels from the ring's centre to its+ * place on the board (one `layoutId` on both stages) and lands with a ring,+ * the instruments assemble from the centre outward as the wave reaches them+ * (`DeckReveal`), and one scan runs down the whole board. The maintainer's+ * verdict on a fade-and-wipe (2026-08-19): a hard switch, ridiculous — this+ * has to be cinematic.** The frames differ on purpose (HudFrame.tsx): brackets for pictures and the* map, chamfers for readouts, rails for streams — a deck of instruments, not@@ -130,6 +135,23 @@ export function MissionDeckView({// the first render so the wrappers never remount because the flag moved.const mountedInto = useRef(phase);const revealBoard = mountedInto.current !== "board";+ // While the stage waits for the first word, the board's heaviest part gets+ // ready in the idle time: the WebGL probe and the 3D map's chunk. Measured+ // 2026-08-19: done in the click's own task they froze the launch for half+ // a second, and every JS-driven beat of it — the orb's travel — jumped.+ useEffect(() => {+ if (phase === "board") return;+ const w = window as Window & {+ requestIdleCallback?: (cb: () => void, opts?: { timeout: number }) => number;+ cancelIdleCallback?: (id: number) => void;+ };+ if (w.requestIdleCallback && w.cancelIdleCallback) {+ const id = w.requestIdleCallback(() => warmWikiScene(), { timeout: 4000 });+ return () => w.cancelIdleCallback?.(id);+ }+ const id = window.setTimeout(() => warmWikiScene(), 1500);+ return () => window.clearTimeout(id);+ }, [phase]);const running = useMemo(() => thinkingSteps.filter((s) => s.status === "active"),@@ -259,10 +281,10 @@ export function MissionDeckView({{phase === "board" && (<divdata-testid="deck-board"- className="grid min-h-0 flex-1 grid-cols-1 gap-3 overflow-y-auto p-3 lg:grid-cols-[minmax(200px,3fr)_minmax(0,6fr)_minmax(240px,4fr)] lg:grid-rows-[minmax(0,1fr)_minmax(0,0.6fr)] lg:overflow-hidden"+ className="relative grid min-h-0 flex-1 grid-cols-1 gap-3 overflow-y-auto p-3 lg:grid-cols-[minmax(200px,3fr)_minmax(0,6fr)_minmax(240px,4fr)] lg:grid-rows-[minmax(0,1fr)_minmax(0,0.6fr)] lg:overflow-hidden">{/* LEFT top: the log — the terminal of the session */}- <DeckReveal slot="left-top" reveal={revealBoard} className="flex min-h-0 flex-col">+ <DeckReveal slot="left-top" reveal={revealBoard} bodyClassName="flex min-h-0 flex-col"><LogCard className="min-h-0 flex-1" /></DeckReveal>@@ -271,7 +293,8 @@ export function MissionDeckView({<DeckRevealslot="centre-top"reveal={revealBoard}- className="grid shrink-0 grid-cols-2 gap-3"+ className="shrink-0"+ bodyClassName="grid grid-cols-2 gap-3"style={{ height: "36%" }}><TurnCard className="min-h-0" />@@ -291,12 +314,17 @@ export function MissionDeckView({</div>{/* RIGHT top: the wiki, in space, tall */}- <DeckReveal slot="right-top" reveal={revealBoard} className="flex min-h-0 flex-col">+ <DeckReveal slot="right-top" reveal={revealBoard} bodyClassName="flex min-h-0 flex-col"><WikiCard className="min-h-0 flex-1" /></DeckReveal>{/* LEFT bottom: outputs and runs */}- <DeckReveal slot="left-bottom" reveal={revealBoard} className="grid min-h-[8rem] grid-cols-2 gap-3">+ <DeckReveal+ slot="left-bottom"+ reveal={revealBoard}+ className="min-h-[8rem]"+ bodyClassName="grid grid-cols-2 gap-3"+ ><OutputsCard className="min-h-0" /><RunsCard className="min-h-0" /></DeckReveal>@@ -305,16 +333,25 @@ export function MissionDeckView({<DeckRevealslot="centre-bottom"reveal={revealBoard}- className="flex min-h-[8rem] items-stretch justify-center"+ className="min-h-[8rem]"+ bodyClassName="flex items-stretch justify-center"><CaptureCard className="w-full max-w-[28rem]" /></DeckReveal>{/* RIGHT bottom: terminals and the coding workspace */}- <DeckReveal slot="right-bottom" reveal={revealBoard} className="grid min-h-[8rem] grid-cols-2 gap-3">+ <DeckReveal+ slot="right-bottom"+ reveal={revealBoard}+ className="min-h-[8rem]"+ bodyClassName="grid grid-cols-2 gap-3"+ ><TerminalsCard className="min-h-0" /><IdeGridCard className="min-h-0" /></DeckReveal>++ {/* The launch's last beat: one scan down the whole board. */}+ {revealBoard && <BoardSweep />}</div>)}@@ -383,6 +420,9 @@ function BoardCentre({const stageRef = useRef<HTMLDivElement>(null);const stage = useElementSize(stageRef);const orbSize = orbSizeFor(stage.width, stage.height);+ const reduced = useReducedMotion() ?? false;+ // The landing ring fires once and leaves the DOM.+ const [landed, setLanded] = useState(false);return (<divref={stageRef}@@ -390,22 +430,35 @@ function BoardCentre({style={{ backgroundImage: stageVignette(orbSize) }}>{/* The same layoutId as the standby's orb: when the board takes over,- the orb travels here instead of blinking. */}- <motion.div layoutId="deck-orb" layoutDependency={orbSize} transition={ORB_TRAVEL}>- <DeckOrb- steps={steps}- busy={busy}- size={orbSize}- readouts={readouts}- onPress={onPress}- pressLabel={pressLabel}- pressDisabled={pressDisabled}- />- </motion.div>+ the orb travels here instead of blinking — and lands with a ring. */}+ <div className="relative">+ <motion.div layoutId="deck-orb" layoutDependency={orbSize} transition={ORB_TRAVEL}>+ <DeckOrb+ steps={steps}+ busy={busy}+ size={orbSize}+ readouts={readouts}+ onPress={onPress}+ pressLabel={pressLabel}+ pressDisabled={pressDisabled}+ />+ </motion.div>+ {reveal && !reduced && !landed && (+ <motion.div+ aria-hidden+ data-testid="deck-orb-landing"+ className="deck-handoff-wave pointer-events-none absolute inset-0 rounded-full"+ initial={{ opacity: 0, transform: "scale(0.7)" }}+ animate={{ opacity: [0, 0.85, 0], transform: ["scale(0.7)", "scale(1.05)", "scale(1.35)"] }}+ transition={{ delay: HANDOFF.landDelayS, duration: HANDOFF.landS, times: [0, 0.15, 1], ease: "easeOut" }}+ onAnimationComplete={() => setLanded(true)}+ />+ )}+ </div><motion.p- initial={reveal ? { opacity: 0 } : false}- animate={{ opacity: 1 }}- transition={{ delay: 0.45, duration: 0.4 }}+ initial={reveal ? { opacity: 0, y: 6 } : false}+ animate={{ opacity: 1, y: 0 }}+ transition={{ delay: HANDOFF.headlineDelayS, duration: 0.4 }}className={cn("max-w-[44ch] text-pretty text-sm leading-relaxed",headlineIsAnswer ? "text-foreground" : "text-muted-foreground",@@ -417,6 +470,40 @@ function BoardCentre({);}+/**+ * The launch's last beat: once the instruments are in, one scan line runs+ * down the whole board and is gone — the deck is live. Mounted only for a+ * board that took over from the standby on this screen; unmounts itself.+ */+function BoardSweep() {+ const reduced = useReducedMotion() ?? false;+ const [done, setDone] = useState(false);+ const ref = useRef<HTMLDivElement>(null);+ // The board's height, once: the bar travels it as a transform (off the+ // main thread), not as `top`.+ const [travel, setTravel] = useState(0);+ useLayoutEffect(() => {+ const parent = ref.current?.parentElement;+ if (parent) setTravel(parent.clientHeight);+ }, []);+ if (reduced || done) return null;+ return (+ <motion.div+ ref={ref}+ aria-hidden+ data-testid="deck-board-sweep"+ className="deck-scan-bar deck-scan-bar-h deck-board-sweep"+ initial={{ transform: "translateY(0px)", opacity: 0 }}+ animate={{ transform: `translateY(${travel}px)`, opacity: [0, 1, 1, 0] }}+ transition={{+ transform: { delay: HANDOFF.boardSweepDelayS, duration: HANDOFF.boardSweepS, ease: [0.3, 0, 0.2, 1] },+ opacity: { delay: HANDOFF.boardSweepDelayS, duration: HANDOFF.boardSweepS, times: [0, 0.1, 0.8, 1] },+ }}+ onAnimationComplete={() => setDone(true)}+ />+ );+}+function waveformPhase(state: VoiceState, connected: boolean): WaveformPhase {if (!connected) return "idle";switch (state) {