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: unify workspace glass contrast
rubenluetke10-beep9898c504b270
diff --git a/jarvis/ui/web/frontend/src/components/ultrawiki/EntityGraph3D.tsx b/jarvis/ui/web/frontend/src/components/ultrawiki/EntityGraph3D.tsxindex 7dbaae169e..0d3c02a1d3 100644--- a/jarvis/ui/web/frontend/src/components/ultrawiki/EntityGraph3D.tsx+++ b/jarvis/ui/web/frontend/src/components/ultrawiki/EntityGraph3D.tsx@@ -80,17 +80,8 @@ const SELECTED_SCALE = 1.4;*/const SPHERE_SCALE = 0.5;-/**- * The colour the scene clears to.- *- * Not transparent, and not by choice: once a post-processing pass is on the- * composer the renderer clears opaque, so anything painted behind the canvas- * in CSS is never seen again. A near-black with a blue cast does the same job- * from inside — the frame reads as depth rather than as a switched-off screen,- * and the warm nodes have something cold to sit against. The CSS layer stays- * as the fallback for a machine where the bloom pass fails to load.- */-const SPACE_COLOUR = "#05070d";+/** Let the shared glass stage and desktop artwork remain visible through WebGL. */+const SPACE_COLOUR = "rgba(0,0,0,0)";/** Focus colours: everything unrelated to what you point at recedes. */const LINK_REST = "rgba(255, 214, 10, 0.16)";@@ -316,41 +307,6 @@ export function EntityGraph3D({[touchesHover],);- /**- * The glow — the single change that turns a field of flat discs into- * something with light in it. One post-processing pass on the composer the- * renderer already exposes; the threshold sits below the warm end of the- * recency ramp so recent topics bloom and old ones stay quiet, which makes- * the encoding easier to read rather than harder.- */- useEffect(() => {- let cancelled = false;- let installed: { dispose?: () => void } | null = null;- void (async () => {- const [{ UnrealBloomPass }, { Vector2 }] = await Promise.all([- import("three/examples/jsm/postprocessing/UnrealBloomPass.js"),- import("three"),- ]);- const composer = graphRef.current?.postProcessingComposer?.();- if (cancelled || !composer) return;- const pass = new UnrealBloomPass(- new Vector2(Math.max(width, 1), Math.max(height, 1)),- 0.9,- 0.8,- 0.16,- );- composer.addPass(pass);- installed = pass;- })();- return () => {- cancelled = true;- installed?.dispose?.();- };- // Once per mount: the pass follows the composer's own resizes, so re-adding- // it per resize would only stack passes.- // eslint-disable-next-line react-hooks/exhaustive-deps- }, []);-return (// The wrapper is what the camera work listens on to know the user has// taken the wheel; the renderer paints into its own canvas inside it.diff --git a/jarvis/ui/web/frontend/src/components/wiki/Graph3D.transparency.test.tsx b/jarvis/ui/web/frontend/src/components/wiki/Graph3D.transparency.test.tsxnew file mode 100644index 0000000000..948fad827c--- /dev/null+++ b/jarvis/ui/web/frontend/src/components/wiki/Graph3D.transparency.test.tsx@@ -0,0 +1,65 @@+import { render, screen } from "@testing-library/react";+import type { ForwardedRef } from "react";+import { forwardRef } from "react";+import { describe, expect, it, vi } from "vitest";++vi.mock("react-force-graph-3d", () => ({+ default: forwardRef(function ForceGraph3DStub(+ props: { backgroundColor?: string },+ _ref: ForwardedRef<unknown>,+ ) {+ return (+ <canvas+ data-testid="force-graph-3d"+ data-background-color={props.backgroundColor}+ />+ );+ }),+}));++vi.mock("@/hooks/useGraphOrbit", () => ({+ useGraphOrbit: vi.fn(),+}));++import { EntityGraph3D } from "@/components/ultrawiki/EntityGraph3D";+import { WikiGraph3D } from "@/components/wiki/WikiGraph3D";++describe("3D graph stage transparency", () => {+ it("lets the wallpaper show through the Wiki graph canvas", () => {+ render(+ <WikiGraph3D+ graphData={{ nodes: [], links: [] }}+ width={800}+ height={600}+ onNodeClick={vi.fn()}+ resetSignal={0}+ nodeLabel={() => ""}+ linkLabel={() => ""}+ />,+ );++ expect(+ screen+ .getByTestId("force-graph-3d")+ .getAttribute("data-background-color"),+ ).toBe("rgba(0,0,0,0)");+ });++ it("lets the wallpaper show through the UltraWiki graph canvas", () => {+ render(+ <EntityGraph3D+ graphData={{ nodes: [], links: [] }}+ width={800}+ height={600}+ selectedKey={null}+ onSelect={vi.fn()}+ />,+ );++ expect(+ screen+ .getByTestId("force-graph-3d")+ .getAttribute("data-background-color"),+ ).toBe("rgba(0,0,0,0)");+ });+});diff --git a/jarvis/ui/web/frontend/src/components/wiki/WikiGraph3D.tsx b/jarvis/ui/web/frontend/src/components/wiki/WikiGraph3D.tsxindex 59b91c742c..0fdcb591c4 100644--- a/jarvis/ui/web/frontend/src/components/wiki/WikiGraph3D.tsx+++ b/jarvis/ui/web/frontend/src/components/wiki/WikiGraph3D.tsx@@ -74,17 +74,8 @@ const LINK_FADED = "rgba(106, 169, 255, 0.06)";const NODE_FADED = "#2c3340";const PARTICLE_COLOUR = "#cfe4ff";-/**- * The colour the scene clears to.- *- * Not transparent, and not by choice: once a post-processing pass is on the- * composer the renderer clears opaque, so anything painted behind the canvas- * in CSS is never seen again. A near-black with a blue cast does the same job- * from inside — the frame reads as depth rather than as a switched-off screen.- * The CSS layer stays as the fallback for a machine where the bloom pass fails- * to load.- */-const SPACE_COLOUR = "#05070d";+/** Let the shared glass stage and desktop artwork remain visible through WebGL. */+const SPACE_COLOUR = "rgba(0,0,0,0)";export interface WikiGraph3DProps {graphData: { nodes: RenderNode[]; links: RenderEdge[] };@@ -284,50 +275,6 @@ export function WikiGraph3D({[isNearHover],);- /**- * The glow.- *- * A force graph drawn as flat-shaded spheres reads as a diagram. The same- * graph with the bright parts bleeding light reads as something with depth- * and mass — and it costs one post-processing pass, because the renderer- * already hands out its composer. The threshold is low so the node colours- * themselves bloom, and the strength stays under the point where labels turn- * into smears.- *- * Loaded on demand: the pass is part of three.js's addons, and this whole- * component is already behind a lazy import, so a flat-map reader never- * downloads a line of it.- */- useEffect(() => {- let cancelled = false;- let installed: { dispose?: () => void } | null = null;- void (async () => {- const [{ UnrealBloomPass }, { Vector2 }] = await Promise.all([- import("three/examples/jsm/postprocessing/UnrealBloomPass.js"),- import("three"),- ]);- const composer = graphRef.current?.postProcessingComposer?.();- if (cancelled || !composer) return;- const pass = new UnrealBloomPass(- new Vector2(Math.max(width, 1), Math.max(height, 1)),- // strength, radius, threshold- 1.15,- 0.85,- 0.08,- );- composer.addPass(pass);- installed = pass;- })();- return () => {- cancelled = true;- installed?.dispose?.();- };- // Deliberately once per mount: the pass reads the canvas size from the- // composer on every resize itself, so re-adding it per resize would only- // stack passes.- // eslint-disable-next-line react-hooks/exhaustive-deps- }, []);-const nodeThreeObject = useCallback((node: NodeObject<RenderNode>): SpriteText | null => {const rendered = node as RenderNode;diff --git a/jarvis/ui/web/frontend/src/index.css b/jarvis/ui/web/frontend/src/index.cssindex c05af0d22e..a001ecedaa 100644--- a/jarvis/ui/web/frontend/src/index.css+++ b/jarvis/ui/web/frontend/src/index.css@@ -319,6 +319,14 @@must read as "the app, blurred" rather than a grey rectangle. */--shell-rgb: 252 251 248;+ /* Shared translucent surfaces. George Voice is the visual reference:+ enough local contrast to read, while the desktop artwork remains part+ of the page instead of disappearing behind opaque application chrome. */+ --surface-card-alpha: 0.72;+ --surface-panel-alpha: 0.68;+ --surface-control-alpha: 0.82;+ --surface-stage-alpha: 0.7;+/* --- Stages ----------------------------------------------------------The full-bleed canvases behind the knowledge maps. They are not chrome:a force graph needs its own depth cue, so it gets its own ground, its@@ -328,8 +336,8 @@--stage-dot-rgb: 43 43 51;--stage-dot-strong: 0.28;--stage-dot-soft: 0.16;- --stage-wash-rgb: 120 148 200;- --stage-wash-strength: 0.16;+ --stage-wash-rgb: 168 107 0;+ --stage-wash-strength: 0.08;--stage-vignette-rgb: 43 40 32;--stage-vignette-strength: 0.1;@@ -367,12 +375,17 @@--sheen-rgb: 255 255 255;--shell-rgb: 10 10 10;+ --surface-card-alpha: 0.6;+ --surface-panel-alpha: 0.58;+ --surface-control-alpha: 0.72;+ --surface-stage-alpha: 0.58;+--stage-bg: 0 0% 4%;--stage-dot-rgb: 255 255 255;--stage-dot-strong: 0.5;--stage-dot-soft: 0.35;- --stage-wash-rgb: 40 78 140;- --stage-wash-strength: 0.22;+ --stage-wash-rgb: 255 214 10;+ --stage-wash-strength: 0.055;--stage-vignette-rgb: 0 0 0;--stage-vignette-strength: 0.62;@@ -497,21 +510,21 @@}.jarvis-panel-surface {- background: rgb(var(--shell-rgb) / 0.1);+ background: rgb(var(--shell-rgb) / var(--surface-panel-alpha));}.jarvis-message-surface {background: linear-gradient(135deg,- rgb(var(--shell-rgb) / 0.28),- rgb(var(--shell-rgb) / 0.14)+ rgb(var(--shell-rgb) / var(--surface-card-alpha)),+ rgb(var(--shell-rgb) / calc(var(--surface-card-alpha) * 0.82)));-webkit-backdrop-filter: blur(12px) saturate(1.08);backdrop-filter: blur(12px) saturate(1.08);}.jarvis-input-surface {- background: rgb(var(--shell-rgb) / 0.16);+ background: rgb(var(--shell-rgb) / var(--surface-control-alpha));-webkit-backdrop-filter: blur(14px) saturate(1.08);backdrop-filter: blur(14px) saturate(1.08);}@@ -524,30 +537,12 @@);}- :root:not(.dark) .jarvis-panel-surface {- background: rgb(var(--shell-rgb) / 0.24);- }-- :root:not(.dark) .jarvis-message-surface {- background: linear-gradient(- 135deg,- rgb(var(--shell-rgb) / 0.52),- rgb(var(--shell-rgb) / 0.3)- );- }-- :root:not(.dark) .jarvis-input-surface {- background: rgb(var(--shell-rgb) / 0.4);- }-/* Section-level grounds disappear everywhere the wallpaper is active. Theselectors intentionally stop at page roots and purpose-built stages: cards,dialogs and data tables retain their own hierarchy and remain readable. */.jarvis-section-stage > [class~="bg-background"],- .jarvis-section-stage section[class~="bg-background"],.jarvis-section-stage .agents-board-stage,- .jarvis-section-stage .uw-stage,- .jarvis-section-stage .wiki-space {+ .jarvis-section-stage .uw-stage {background-color: transparent;}@@ -651,6 +646,57 @@}@layer utilities {+ /*+ * One contrast system for every workspace section. Older views chose their+ * own card opacity (or an opaque background), which made navigation feel+ * like switching products. Exact class-token selectors preserve semantic+ * colours and interaction variants while converging resting surfaces on the+ * George Voice glass balance.+ */+ .jarvis-section-stage+ :where(+ [class~="bg-card"],+ [class~="bg-card/20"],+ [class~="bg-card/25"],+ [class~="bg-card/30"],+ [class~="bg-card/40"],+ [class~="bg-card/50"],+ [class~="bg-card/60"],+ [class~="bg-card/70"],+ [class~="bg-card/80"],+ [class~="bg-card/90"],+ [class~="bg-card/95"]+ ) {+ background-color: hsl(var(--card) / var(--surface-card-alpha));+ }++ .jarvis-section-stage+ :where(+ div,+ aside,+ section,+ article,+ header,+ footer,+ main,+ nav,+ form,+ table,+ thead,+ tbody+ )[class~="bg-background"] {+ background-color: hsl(var(--card) / var(--surface-panel-alpha));+ }++ .jarvis-section-stage+ :where(input, textarea, select)[class~="bg-background"] {+ background-color: hsl(var(--background) / var(--surface-control-alpha));+ }++ .jarvis-section-stage > [class~="bg-background"] {+ background-color: transparent;+ }+/* Staggered reveal on view mount — one orchestrated page-load moment.Pair with an inline `animationDelay` for the stagger cadence. */@keyframes profile-rise {@@ -1480,7 +1526,7 @@* window, which is the same mistake as a #000 terminal in a #12141a shell.*/.wiki-space {- background-color: hsl(var(--stage-bg));+ background-color: rgb(var(--shell-rgb) / var(--surface-stage-alpha));background-image:radial-gradient(ellipse 120% 90% at 50% 42%,@@ -1499,6 +1545,8 @@transparent 0.6px);background-size: 100% 100%, 190px 190px, 97px 97px;+ -webkit-backdrop-filter: blur(4px) saturate(0.94);+ backdrop-filter: blur(4px) saturate(0.94);}.wiki-space-vignette {