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): halo under every HUD stroke, and the wiki map refetches on change
Harald894fcd78a8e9
diff --git a/jarvis/ui/web/frontend/src/components/deck/DeckOrb.tsx b/jarvis/ui/web/frontend/src/components/deck/DeckOrb.tsxindex 4a3e082ed2..9113ceb482 100644--- a/jarvis/ui/web/frontend/src/components/deck/DeckOrb.tsx+++ b/jarvis/ui/web/frontend/src/components/deck/DeckOrb.tsx@@ -1,8 +1,9 @@-import { useEffect, useMemo, useRef, useState } from "react";+import { useEffect, useId, useMemo, useRef, useState } from "react";import { useEventStore } from "@/store/events";import { VoiceOrb } from "@/components/agentic/VoiceOrb";import { MascotGigi } from "@/components/MascotGigi";import type { ThinkingStep } from "@/lib/thinkingSteps";+import { HudHaloDefs } from "@/components/deck/HudFrame";import { cn } from "@/lib/utils";/**@@ -82,10 +83,13 @@ export function DeckOrb({const [sx, sy] = point(sweep, R * 0.94);const [ex, ey] = point(sweep + 36, R * 0.94);const B = 16; // bracket arm+ const haloId = useId();return (<div className={cn("relative shrink-0", className)} style={{ width: size, height: size }}><svg viewBox={`0 0 ${size} ${size}`} className="absolute inset-0 h-full w-full" aria-hidden>+ <HudHaloDefs id={haloId} />+ <g filter={`url(#${haloId})`}>{/* corner brackets — the reticle's bounds */}{[`M 0.5 ${B} V 0.5 H ${B}`,@@ -156,6 +160,7 @@ export function DeckOrb({opacity={0.6}/>)}+ </g></svg><div className="absolute inset-0 grid place-items-center">diff --git a/jarvis/ui/web/frontend/src/components/deck/DeckWiki.tsx b/jarvis/ui/web/frontend/src/components/deck/DeckWiki.tsxindex 651a3d49fc..b4b14c0d30 100644--- a/jarvis/ui/web/frontend/src/components/deck/DeckWiki.tsx+++ b/jarvis/ui/web/frontend/src/components/deck/DeckWiki.tsx@@ -1,6 +1,6 @@import { lazy, Suspense, useCallback, useEffect, useMemo, useRef, useState } from "react";import { createPortal } from "react-dom";-import { useQuery } from "@tanstack/react-query";+import { useQuery, useQueryClient } from "@tanstack/react-query";import { Crosshair, Maximize2, Minimize2, Notebook, X } from "lucide-react";import type { NodeObject } from "react-force-graph-3d";import { useEventStore } from "@/store/events";@@ -125,6 +125,19 @@ export function WikiCard({ className }: { className?: string }) {const graph = useQuery({ queryKey: GRAPH_QUERY_KEY, queryFn: fetchGraph, staleTime: 30_000, retry: false });const tree = useQuery({ queryKey: ["deck", "wiki-tree"], queryFn: fetchWikiTree, refetchInterval: 60_000, retry: false });+ // A page the assistant just wrote should appear on the map without a+ // reload: every WikiPageChanged the deck store folds in re-fetches the graph+ // (and the counts). Debounced by react-query's own dedup, so a burst of+ // writes is one request.+ const queryClient = useQueryClient();+ const changeCount = changes.length;+ const newestTs = changes[0]?.ts ?? 0;+ useEffect(() => {+ if (changeCount === 0) return;+ void queryClient.invalidateQueries({ queryKey: GRAPH_QUERY_KEY });+ void queryClient.invalidateQueries({ queryKey: ["deck", "wiki-tree"] });+ }, [changeCount, newestTs, queryClient]);+const graphData = useMemo(() => {if (!graph.data?.ok) return { nodes: [] as RenderNode[], links: [] as RenderEdge[] };return toGraphData(graph.data);diff --git a/jarvis/ui/web/frontend/src/components/deck/HudFrame.tsx b/jarvis/ui/web/frontend/src/components/deck/HudFrame.tsxindex 5009e0b1bb..bda500dc17 100644--- a/jarvis/ui/web/frontend/src/components/deck/HudFrame.tsx+++ b/jarvis/ui/web/frontend/src/components/deck/HudFrame.tsx@@ -1,4 +1,4 @@-import { useLayoutEffect, useRef, useState, type ReactNode, type RefObject } from "react";+import { useId, useLayoutEffect, useRef, useState, type ReactNode, type RefObject } from "react";import { cn } from "@/lib/utils";/**@@ -46,6 +46,28 @@ export function useElementSize<T extends HTMLElement>(): [RefObject<T>, { w: numreturn [ref, size];}+/**+ * A soft halo in the theme's own ground colour under every HUD stroke — the+ * SVG twin of the stage's text-shadow readability floor. Gold hairlines on a+ * light theme over a dark picture (or the reverse) would otherwise vanish;+ * with the halo they read on any wallpaper in either appearance.+ */+export function HudHaloDefs({ id }: { id: string }) {+ return (+ <defs>+ <filter id={id} x="-10%" y="-10%" width="120%" height="120%">+ <feDropShadow+ dx="0"+ dy="0"+ stdDeviation="1.1"+ floodOpacity="0.85"+ style={{ floodColor: "hsl(var(--background))" }}+ />+ </filter>+ </defs>+ );+}+const CUT = 10; // px — chamfer sizeconst BRACKET = 14; // px — corner bracket arm lengthconst TICK_STEP = 24; // px — ruler tick spacing@@ -75,10 +97,11 @@ export function HudFrameOverlay({live?: boolean;tone?: HudTone;}) {+ const haloId = useId();if (w < 4 || h < 4) return null;const stroke = toneStroke(tone);const faint = "hsl(var(--border))";- const main = live ? 0.95 : 0.55;+ const main = live ? 0.95 : 0.6;return (<svg@@ -87,6 +110,8 @@ export function HudFrameOverlay({preserveAspectRatio="none"aria-hidden>+ <HudHaloDefs id={haloId} />+ <g filter={`url(#${haloId})`}>{variant === "bracket" && (<>{[@@ -147,6 +172,7 @@ export function HudFrameOverlay({<path d={`M ${w - 0.5} 0.5 V ${Math.min(h, 22)}`} stroke={stroke} strokeWidth={1} opacity={0.6} /></>)}+ </g></svg>);}