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
fix(ui): paint dark sections as a black room with live colour
rubenluetke10-beep92fd398ab45b
diff --git a/jarvis/ui/web/frontend/src/components/extensions/primitives.tsx b/jarvis/ui/web/frontend/src/components/extensions/primitives.tsxindex 379230b9c3..fae9ab1717 100644--- a/jarvis/ui/web/frontend/src/components/extensions/primitives.tsx+++ b/jarvis/ui/web/frontend/src/components/extensions/primitives.tsx@@ -507,12 +507,7 @@ export function ClampedText({/** Rounded card used for the file viewer and the fact sheets. */export function Panel({ children, className }: { children: ReactNode; className?: string }) {return (- <div- className={cn(- "overflow-hidden rounded-xl border border-border bg-card/50",- className,- )}- >+ <div className={cn("jarvis-quiet-panel", className)}>{children}</div>);@@ -551,11 +546,11 @@ export function StatusDot({pulse?: boolean;}) {const color = {- ok: "bg-muted-foreground",+ ok: "bg-success",off: "bg-muted-foreground/40",warn: "bg-foreground",error: "bg-destructive",- busy: "bg-foreground/70",+ busy: "bg-success",}[tone];return (<span className="inline-flex items-center gap-2 text-sm text-muted-foreground">@@ -661,8 +656,8 @@ export function SegmentedFilter<T extends string>({* exactly the drift this file exists to prevent. Four per row on a wide pane,* two on a narrow one — the caller supplies the grid.*- * `tone` colours only the icon; the value itself always stays `foreground` so- * a row of tiles reads as one block of numbers rather than a traffic light.+ * `tone` colours the icon and a live pip; the value itself stays+ * `foreground` so a row of tiles reads as one block of numbers.*/export function StatTile({icon,@@ -685,7 +680,7 @@ export function StatTile({<divrole="group"aria-label={label}- className="rounded-xl border border-border bg-card/50 px-4 py-3.5"+ className="jarvis-stat-tile"><div className="flex items-center gap-2 text-xs text-muted-foreground">{icon ? (@@ -694,10 +689,7 @@ export function StatTile({tone === "warn" && "text-foreground",tone === "danger" && "text-destructive",tone === "primary" && "text-primary",- // Emerald carries a meaning the token set has no name for- // ("finished cleanly") and needs its own value per theme: the- // 400 shade glows on charcoal and drops to ~2:1 on paper.- tone === "success" && "text-muted-foreground",+ tone === "success" && "text-success",)}>{icon}diff --git a/jarvis/ui/web/frontend/src/index.css b/jarvis/ui/web/frontend/src/index.cssindex fe8bd1ef2f..f3723bfbf7 100644--- a/jarvis/ui/web/frontend/src/index.css+++ b/jarvis/ui/web/frontend/src/index.css@@ -490,6 +490,9 @@ label,--accent-foreground: 60 16% 96%;--destructive: 345 64% 49%; /* #C0392B — the light terminal's red */--destructive-foreground: 0 0% 100%;+ /* Live / ok. Dark overrides to a brighter sibling so a 8 px status+ dot still reads on near-black (Grok-Bot green). */+ --success: 152 48% 28%;/* Added / removed code in a chat diff. Green and red were always theweaker half of this signal: a diff already carries + and - in itsgutter, so hue was reinforcement, not information. Monochrome the pair@@ -610,37 +613,32 @@ label,}.dark {- /* --- Dark: charcoal, not inverted cream --------------------------------- The Design.md describes a warm-cream MARKETING page. Inverting that- page — cream #F7F7F4 as ink, hue-50 olive as paper — is what made the- dark theme look muddy: "white" went yellow, cards went brown, muted- text went taupe, hairlines went #322F2B. Measured against a reference- dark messenger (true-neutral greys, fill-only layers, no cream), every- channel that carried warmth was the defect.-- Light mode keeps the paper. Dark mode does not inherit its temperature.- Channels are r = g = b. Layers are FILLS, a long way apart, because- four lightness points that read on cream are invisible on near-black.-- 2 % stage full-bleed canvas behind the knowledge graphs- 2 % background the work surface — #050505, the black void- 10 % sidebar the nav column — #1A1A1A, a grey strip- 14 % card a card / assistant bubble — #242424- 16 % border quiet rim, almost the fill- 18 % secondary hover, menus, composer chrome — #2E2E2E- 34 % user bubble the one lifted grey — #575757- 64 % muted text cool grey, not taupe- 97 % foreground #F7F7F7 crisp, not cream- 100 % primary true white, actions only-- Left rail vs right canvas is the messenger split: a grey column- against a near-black page, not two blacks a few points apart.- The ZONE whispers and the ELEMENTS on it speak. */+ /* --- Dark: one black room, colour only on life -------------------------+ Warm-cream inversion was the first defect (muddy brown cards). The+ charcoal pass after that painted the ROOM grey: a #1A1A1A rail and+ #242424 cards on #050505, every status dot muted, no green. Against a+ live Grok-Bot window (2026-08-31) that is the whole difference: Bot+ is a black void with coloured avatars and green live-dots; our+ sections were grey furniture filling the void.++ The room stays black. Surfaces lift a whisper. Colour is status and+ identity, never walls.++ 2 % background the room — #050505+ 5 % sidebar same night, not a grey wall+ 8 % card a lifted bubble, sized to its content+ 12 % border a rim you should barely see+ 16 % secondary hover / menus+ 34 % user bubble the one obviously-lifted grey+ 46 % success live green (Grok-Bot's heartbeat)+ 64 % muted text+ 97 % foreground+ 100 % primary white, actions only */--background: 0 0% 2%; /* #050505 */--foreground: 0 0% 97%; /* #F7F7F7 — crisp, not cream */- --card: 0 0% 14%; /* #242424 */+ --card: 0 0% 8%; /* #141414 — a bubble, not a grey slab */--card-foreground: 0 0% 97%;- --popover: 0 0% 18%; /* #2E2E2E */+ --popover: 0 0% 16%; /* #292929 */--popover-foreground: 0 0% 97%;/* #FFFFFF. The brand is whichever end of the value scale the ground isnot. Here it sits one step past --foreground because on a near-black@@ -648,22 +646,23 @@ label,and keeps the two equal. 19.8:1. */--primary: 0 0% 100%;--primary-foreground: 0 0% 4%; /* the ground */- --secondary: 0 0% 18%; /* #2E2E2E hover, active rows, composer */+ --secondary: 0 0% 16%; /* #292929 hover, menus, composer */--secondary-foreground: 0 0% 97%;- --muted: 0 0% 18%;+ --muted: 0 0% 16%;--muted-foreground: 0 0% 64%; /* #A3A3A3 cool grey */--accent: 0 0% 100%;--accent-foreground: 0 0% 4%;--destructive: 349 76% 62%;--destructive-foreground: 0 0% 97%;+ --success: 152 62% 46%; /* Grok-Bot live green */--diff-add: 0 0% 97%;--diff-add-bg: 0 0% 14%;--diff-del: 0 0% 64%;--diff-del-bg: 0 0% 4%;- --border: 0 0% 16%; /* #292929 — a rim, not a brown line */- --input: 0 0% 18%;+ --border: 0 0% 12%; /* #1F1F1F — a rim you should barely see */+ --input: 0 0% 16%;--ring: 0 0% 100%;- --sidebar: 0 0% 10%; /* #1A1A1A — grey strip against the black page */+ --sidebar: 0 0% 5%; /* #0D0D0D — same night as the page */--user-bubble: 0 0% 34%; /* #575757 */--user-bubble-foreground: 0 0% 97%;@@ -1098,6 +1097,37 @@ label,transition-colors duration-300hover:border-primary/40;}++ .dark .card-outline {+ border-color: rgb(var(--sheen-rgb) / 0.07);+ background-color: rgb(var(--sheen-rgb) / 0.035);+ }++ /* Headline numbers and table shells. The section-stage rewrite paints+ any `bg-card/50` class opaque, which turned Spend / Automations /+ Local models into grey slabs. These two names sit outside that list+ so dark mode can be a black room with numbers on it. */+ .jarvis-stat-tile {+ @apply rounded-xl border border-border px-4 py-3.5;+ background-color: hsl(var(--card) / 0.5);+ }++ .dark .jarvis-stat-tile {+ border-color: transparent;+ background-color: transparent;+ border-radius: 0;+ padding: 0.5rem 0.25rem;+ }++ .jarvis-quiet-panel {+ @apply overflow-hidden rounded-xl border border-border;+ background-color: hsl(var(--card) / 0.5);+ }++ .dark .jarvis-quiet-panel {+ border-color: rgb(var(--sheen-rgb) / 0.06);+ background-color: rgb(var(--sheen-rgb) / 0.03);+ }}@layer utilities {diff --git a/jarvis/ui/web/frontend/src/views/AutomationsView.tsx b/jarvis/ui/web/frontend/src/views/AutomationsView.tsxindex 07110f9dc2..a2f39b1756 100644--- a/jarvis/ui/web/frontend/src/views/AutomationsView.tsx+++ b/jarvis/ui/web/frontend/src/views/AutomationsView.tsx@@ -273,7 +273,7 @@ export function AutomationsView() {? fill(t("automations_view.stat_active_paused"), { n: stats.paused }): t("automations_view.stat_active_hint")}- tone="primary"+ tone="success"loading={tasksQuery.isLoading}/><StatTilediff --git a/jarvis/ui/web/frontend/src/views/automations/AutomationsPanel.tsx b/jarvis/ui/web/frontend/src/views/automations/AutomationsPanel.tsxindex ef1447e985..4f55d9cc06 100644--- a/jarvis/ui/web/frontend/src/views/automations/AutomationsPanel.tsx+++ b/jarvis/ui/web/frontend/src/views/automations/AutomationsPanel.tsx@@ -37,6 +37,7 @@ import {} from "./automationsModel";import {Countdown,+ IdentityGlyph,ResultText,SectionLabel,StateDot,@@ -181,6 +182,7 @@ function AutomationRow({const paused = task.state === "paused";const running = task.state === "running";const lastState = task.last_run_state ?? null;+ const seed = templateKeyOf(task) || task.id;return (<TableRow@@ -196,9 +198,12 @@ function AutomationRow({><Cell><div className="flex min-w-0 items-center gap-3">- <span className="grid h-8 w-8 shrink-0 place-items-center rounded-lg border border-border bg-secondary/40">- <Icon className="h-4 w-4 text-primary" />- </span>+ <IdentityGlyph+ seed={seed}+ className="h-8 w-8"+ >+ <Icon className="h-4 w-4" />+ </IdentityGlyph><span className="min-w-0"><span className="block truncate font-medium text-foreground">{task.title || t("tasks_view.untitled")}diff --git a/jarvis/ui/web/frontend/src/views/automations/CatalogueCard.tsx b/jarvis/ui/web/frontend/src/views/automations/CatalogueCard.tsxindex 3137d816b9..6e93206cc6 100644--- a/jarvis/ui/web/frontend/src/views/automations/CatalogueCard.tsx+++ b/jarvis/ui/web/frontend/src/views/automations/CatalogueCard.tsx@@ -13,6 +13,7 @@ import { fill, useT } from "@/i18n";import { cn } from "@/lib/utils";import { templateIcon } from "./automationIcons";import { humanizeMissing, type AutomationTemplate } from "./automationsModel";+import { IdentityGlyph } from "./shared";export interface CatalogueCardProps {template: AutomationTemplate;@@ -42,9 +43,9 @@ export function CatalogueCard({)}><div className="flex items-start gap-3">- <span className="grid h-9 w-9 shrink-0 place-items-center rounded-lg border border-border bg-secondary/40">- <Icon className="h-4 w-4 text-primary" />- </span>+ <IdentityGlyph seed={template.key} className="h-9 w-9">+ <Icon className="h-4 w-4" />+ </IdentityGlyph><div className="min-w-0 flex-1"><h3 className="truncate text-sm font-semibold text-foreground">{template.name}</h3><p className="mt-1 line-clamp-2 text-xs leading-relaxed text-muted-foreground">diff --git a/jarvis/ui/web/frontend/src/views/automations/shared.identity.test.tsx b/jarvis/ui/web/frontend/src/views/automations/shared.identity.test.tsxnew file mode 100644index 0000000000..b95d3c3a5c--- /dev/null+++ b/jarvis/ui/web/frontend/src/views/automations/shared.identity.test.tsx@@ -0,0 +1,38 @@+import { render } from "@testing-library/react";+import { describe, expect, it } from "vitest";++import { IdentityGlyph, identityTint } from "./shared";++describe("identityTint", () => {+ it("is stable for the same seed", () => {+ expect(identityTint("inbox-triage")).toBe(identityTint("inbox-triage"));+ });++ it("does not collapse every name onto one hue", () => {+ const seeds = [+ "inbox-triage",+ "morning-briefing",+ "x-marketing",+ "github-hooks",+ "discord-bot",+ "youtube",+ "weather",+ "standup",+ ];+ const hues = new Set(seeds.map(identityTint));+ expect(hues.size).toBeGreaterThan(3);+ });+});++describe("IdentityGlyph", () => {+ it("paints the hashed colour onto the chip", () => {+ const { container } = render(+ <IdentityGlyph seed="x-marketing" className="h-8 w-8">+ <span>X</span>+ </IdentityGlyph>,+ );+ const chip = container.firstElementChild as HTMLElement;+ expect(chip.style.backgroundColor).toBeTruthy();+ expect(chip.className).toContain("rounded-full");+ });+});diff --git a/jarvis/ui/web/frontend/src/views/automations/shared.tsx b/jarvis/ui/web/frontend/src/views/automations/shared.tsxindex a9d07d6577..9a377c0f07 100644--- a/jarvis/ui/web/frontend/src/views/automations/shared.tsx+++ b/jarvis/ui/web/frontend/src/views/automations/shared.tsx@@ -5,7 +5,7 @@* the two semantic tailwind hues the rest of the app already uses for* "good" and "attention"), so light mode keeps its ink-outline look.*/-import { useEffect, useMemo, useState } from "react";+import { useEffect, useMemo, useState, type ReactNode } from "react";import { useT } from "@/i18n";import { cn } from "@/lib/utils";import {@@ -60,15 +60,56 @@ export function useStateLabels(): Record<TaskState, string> {const DOT_CLASS: Record<TaskState, string> = {pending: "bg-muted-foreground/50",- scheduled: "bg-foreground/70",- running: "bg-foreground/70 animate-pulse",+ scheduled: "bg-success",+ running: "bg-success animate-pulse",paused: "bg-muted-foreground/50",- completed: "bg-muted-foreground",+ completed: "bg-success",failed: "bg-destructive",cancelled: "bg-muted-foreground/50",interrupted: "bg-foreground",};+/**+ * A stable saturated hue for an identity chip — the Grok-Bot coloured+ * avatar trick. Hash the seed onto a short palette so two nearby rows+ * do not land on neighbouring yellows.+ */+const IDENTITY_HUES = [262, 221, 199, 152, 28, 8, 338, 291] as const;++export function identityTint(seed: string): string {+ let hash = 2166136261;+ for (let i = 0; i < seed.length; i += 1) {+ hash ^= seed.charCodeAt(i);+ hash = Math.imul(hash, 16777619);+ }+ const hue = IDENTITY_HUES[Math.abs(hash) % IDENTITY_HUES.length];+ return `hsl(${hue} 58% 46%)`;+}++/** Coloured round mark for a person / bot / automation — the live-dot's sibling. */+export function IdentityGlyph({+ seed,+ children,+ className,+}: {+ seed: string;+ children: ReactNode;+ className?: string;+}) {+ return (+ <span+ aria-hidden+ className={cn(+ "grid shrink-0 place-items-center rounded-full text-white",+ className,+ )}+ style={{ backgroundColor: identityTint(seed) }}+ >+ {children}+ </span>+ );+}+/** A coloured state dot with the localized state as its accessible name. */export function StateDot({ state, className }: { state: TaskState | null | undefined; className?: string }) {const labels = useStateLabels();diff --git a/jarvis/ui/web/frontend/tailwind.config.ts b/jarvis/ui/web/frontend/tailwind.config.tsindex 95d212d3de..9a9c85b4d0 100644--- a/jarvis/ui/web/frontend/tailwind.config.ts+++ b/jarvis/ui/web/frontend/tailwind.config.ts@@ -32,6 +32,7 @@ const config: Config = {DEFAULT: "hsl(var(--destructive))",foreground: "hsl(var(--destructive-foreground))",},+ success: "hsl(var(--success))",muted: {DEFAULT: "hsl(var(--muted))",foreground: "hsl(var(--muted-foreground))",