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(ui): neutral design tokens, Inter type scale, shell redesign
rubenluetke10-beep135885c0173b
diff --git a/assets/brand/social-preview.html b/assets/brand/social-preview.htmlindex 6bef63ea48..4021bcc015 100644--- a/assets/brand/social-preview.html+++ b/assets/brand/social-preview.html@@ -15,12 +15,12 @@align-items: center;justify-content: center;}- /* one soft gold glow from above — the brand's single accent, never a fill */+ /* one soft accent glow from above — the brand's single accent, never a fill */.glow {position: absolute; inset: 0;background:- radial-gradient(ellipse 90% 55% at 50% -8%, rgba(255, 214, 10, 0.10), transparent 62%),- radial-gradient(ellipse 120% 40% at 50% 112%, rgba(255, 214, 10, 0.04), transparent 60%);+ radial-gradient(ellipse 90% 55% at 50% -8%, rgba(61, 139, 255, 0.10), transparent 62%),+ radial-gradient(ellipse 120% 40% at 50% 112%, rgba(61, 139, 255, 0.04), transparent 60%);}.card {position: relative;@@ -32,13 +32,13 @@.mascot-wrap { position: relative; width: 128px; height: 128px; }.mascot-wrap .ring {position: absolute; border-radius: 50%;- border: 1px solid rgba(255, 214, 10, 0.32);+ border: 1px solid rgba(250, 250, 250, 0.32);}.ring.r1 { inset: -14px; }- .ring.r2 { inset: -30px; border-color: rgba(255, 214, 10, 0.16); }+ .ring.r2 { inset: -30px; border-color: rgba(250, 250, 250, 0.16); }.mascot {width: 128px; height: 128px; object-fit: contain;- filter: drop-shadow(0 0 26px rgba(255, 214, 10, 0.30));+ filter: drop-shadow(0 0 26px rgba(61, 139, 255, 0.30));}.wordmark {width: 760px; display: block;@@ -50,15 +50,15 @@.tagline {font-family: 'Inter', sans-serif;font-size: 27px; font-weight: 600;- color: #F4F4F5; letter-spacing: -0.01em;+ color: #FAFAFA; letter-spacing: -0.01em;text-align: center;}- .tagline .gold { color: #FFD60A; }+ .tagline .accent { color: #3D8BFF; }.meta {font-family: 'JetBrains Mono', monospace;font-size: 16px; font-weight: 500;letter-spacing: 0.22em;- color: #FFD60A;+ color: #A1A1A1;}</style></head>@@ -71,7 +71,7 @@<img class="mascot" src="../icons/jarvis-gigi-256.png" alt="" /></div><img class="wordmark" src="banner.png" alt="Personal Jarvis" />- <div class="tagline">Talk to your computer — <span class="gold">and watch it do the work.</span></div>+ <div class="tagline">Talk to your computer — <span class="accent">and watch it do the work.</span></div><div class="meta">OPEN SOURCE · APACHE 2.0 · LINUX · MACOS · WINDOWS</div></div></body>diff --git a/docs/BRAND.md b/docs/BRAND.mdindex 077504636a..02d543ce6b 100644--- a/docs/BRAND.md+++ b/docs/BRAND.md@@ -1,9 +1,8 @@# Brand Guidelines-The visual language of Personal Jarvis: ink on paper, paper on ink, and a distressed-wordmark. The interface carries no brand hue; the wordmark below is the one place a-colour treatment survives. The goal is *confident and engineered*, never noisy or-playful.+The visual language of Personal Jarvis: a neutral, cool-black interface with one+restrained accent, and a distressed wordmark. The goal is *confident and engineered*,+never noisy or playful.<p align="center"><img src="../assets/brand/banner.png" alt="Personal Jarvis wordmark" width="720" />@@ -11,68 +10,79 @@ playful.## Color-Two values and the distance between them. The primary is whichever end of the value scale-the ground is not: ink on paper in light mode, white on charcoal in dark mode. State is not a-colour either, so warning and success read on the same ink token. Dark does not inherit the-paper's warmth — that was the muddy look.+Pure neutral in both modes — every surface, rim and ink is `r = g = b`. Elevation is a+surface colour one step lighter than the one under it (canvas → sidebar → card → popover),+never a shadow. One accent (blue) marks links, focus rings, the active nav row, selected+states, progress bars and informational status. Green, amber and red are status only.-| Role | Hex | Chip |+| Role | Dark | Light ||---|---|---|-| Ink (light primary, light text) | `#26251E` |  |-| Canvas / paper (light ground, dark text) | `#F7F7F4` |  |-| Ground (dark canvas) | `#121212` |  |-| White (dark primary, actions only) | `#FFFFFF` |  |-| Foreground, dark | `#F0F0F0` |  |-| Card, light | `#FFFFFF` |  |-| Card, dark | `#1F1F1F` |  |-| Sidebar, dark | `#171717` |  |-| Hover / selected, dark | `#292929` |  |-| User bubble, dark | `#2E2E2E` |  |-| Hairline, light | `#DFDDD5` |  |-| Hairline, dark | `#2B2B2B` |  |-| Muted text, light | `#66635A` |  |-| Muted text, dark | `#A3A3A3` |  |-| Destructive, light | `#BE1744` |  |--Surfaces, rims and ink are neutral. Colour is spent only where it carries information:-provider logos in their real colours, the sixteen ANSI slots, and the five colour jobs-below (signal, life, fault, degraded, info) plus coloured diffs. Everything else is ink-and paper.+| Canvas (`--background`) | `#0A0A0A`  | `#FFFFFF`  |+| Sidebar (`--sidebar`) | `#0F0F0F`  | `#FAFAFA`  |+| Card (`--card`) | `#171717`  | `#FFFFFF`  |+| Popover (`--popover`) | `#1C1C1C`  | `#FFFFFF`  |+| Hover / input (`--secondary`, `--muted`, `--input`) | `#1F1F1F`  | `#F5F5F5`  |+| Raised (`--surface-raised`) | `#262626`  | `#EDEDED`  |+| Hairline (`--border`) | `#262626`  | `#E5E5E5`  |+| Strong rim (`--border-strong`) | `#383838`  | `#D1D1D1`  |+| Foreground (`--foreground`) | `#FAFAFA`  | `#171717`  |+| Secondary ink (`--foreground-secondary`) | `#B8B8B8`  | `#525252`  |+| Muted ink (`--muted-foreground`) | `#A1A1A1`  | `#666666`  |+| Faint ink (`--foreground-faint`) | `#737373`  | `#999999`  |+| Primary fill (`--primary`) | `#FAFAFA`  | `#171717`  |+| Accent (`--accent`) | `#3D8BFF`  | `#0A6FF5`  |+| Success (`--success`) | `#22C35E`  | `#15803D`  |+| Warning (`--warning`) | `#F59E0B`  | `#BD5E05`  |+| Destructive (`--destructive`) | `#DC2828`  | `#C52020`  |These are the exact tokens from the desktop app-(`jarvis/ui/web/frontend/src/index.css`). The README, the product, and any brand asset-must stay on the same values so nothing drifts.+(`jarvis/ui/web/frontend/src/index.css`). `jarvis/ui/theme.py` (`WINDOW_BACKGROUND`),+the boot splash tokens in `frontend/index.html` (`--jbs-*`), the README, and any brand+asset must stay on the same values so nothing drifts.### Rules-- **Full white is for actions.** On the dark ground, white is the primary. Spend it on- something the reader can press, not on an indicator that is merely reporting a fact.-- **Dark is graphite, not a void and not inverted cream.** Light mode is the Design.md- paper (`#F7F7F4` canvas, warm ink). Dark mode does not flip that page: greys are- `r = g = b`, the room is `#121212` (never `#0A0A0A` — that read as a skeleton), body- text is `#F0F0F0` not cream, muted is `#A3A3A3` not taupe, every card has a visible- hairline, and chat bubbles are quiet fills (`#1F1F1F` in, `#2E2E2E` out).+- **Neutral, both modes.** Surfaces, rims and ink carry zero saturation. Dark is a+ cool black room (`#0A0A0A`) with objects one step lighter each; light is the same ladder+ inverted on white. No warm cast, no blue-black, no cream.+- **One accent.** Blue (`#3D8BFF` dark / `#0A6FF5` light) is the only hue that means+ "interactive or selected": links, focus rings, the active nav row's bar, selected rows+ (`--accent` at 12 % as the wash), progress bars, informational callouts. It never fills a+ primary button — that stays white on dark and black on light.+- **Status colours are for status.** Green for live dots and "running", amber for paused or+ quota, red for failed and destructive actions. Provider logos keep their real colours,+ the sixteen ANSI slots stay coloured, diffs stay green/red.+- **Elevation by surface, not shadow.** Shadows exist only on popovers, dialogs and the+ composer. No glows.- **Both modes, always.** A colour comes from a theme token or from the per-appearancetables in `terminalThemes.ts`. Never hardcode one mode's value.-- **One signal hue, five colour jobs, no brand hue.** Surfaces and rims stay neutral. Colour- appears only where it means something: `signal` blue (`#81A1C1` dark / `#2778C1` light)- for links, focus and the active row's bar; `life` green, `fault` rose, `degraded` amber and- `info` cyan for state; green/rose grounds under diffs. All of it on Cursor's desaturated- values so the set reads as one family. The cyan and magenta in the wordmark are a *glitch- artifact*, never UI colours. **Gigi** is black-and-white: a black body, white eyes and- outline, no disc behind it.+- **Gigi** is black-and-white: a black body, white eyes and outline, no disc behind it.- **Rasters convert on max(r, g, b), the orb on luma.** That is what keeps a mark legibleafter it loses its colour.## Typography+One family. Six sizes. Three weights.+| Use | Typeface | Notes ||---|---|---|-| Display / wordmark | **Space Grotesk** (700) | Uppercase, tight tracking (`-4 to -5px` at hero size) |-| Body / UI | **Inter Variable** | The product UI font, −0.01 em tracking at interface sizes |+| Interface and display | **Inter Variable** | 400 body, 500 labels / nav / buttons, 600 titles. Display text is the same family with `-0.02em` tracking. No 700 in UI text. || Code / mono / tagline | **JetBrains Mono** (500) | Letter-spaced caps for taglines and labels |-All three ship inside the app bundle (`@fontsource` packages, SIL OFL 1.1); nothing is+| Step | Size / line | Use |+|---|---|---|+| `text-xs` | 12 / 16 | badges, keyboard hints, table meta — the only 12 px |+| `text-sm` | 13 / 18 | dense table cells, chip labels, code |+| `text-base` | 14 / 20 | body, sidebar items, inputs, buttons |+| `text-lg` | 16 / 24 | card and list titles, composer text |+| `text-xl` | 20 / 28 | view titles |+| `text-2xl` | 28 / 34 | home greeting only |++Spacing sits on a 4 px grid. Radii: 4 px badges, 8 px buttons / inputs / chips / menu+items, 12 px cards / panels / dialogs, 16 px only the composer and hero cards, full only+avatars and status dots. No pill-shaped buttons or chips.++Both families ship inside the app bundle (`@fontsource` packages, SIL OFL 1.1); nothing isfetched from a remote host.## The wordmarkdiff --git a/docs/design/redesign/phase-1-chats-dark.png b/docs/design/redesign/phase-1-chats-dark.pngnew file mode 100644index 0000000000..a9d4e6b056Binary files /dev/null and b/docs/design/redesign/phase-1-chats-dark.png differdiff --git a/docs/design/redesign/phase-1-chats-light.png b/docs/design/redesign/phase-1-chats-light.pngnew file mode 100644index 0000000000..84c8506a2aBinary files /dev/null and b/docs/design/redesign/phase-1-chats-light.png differdiff --git a/docs/design/redesign/phase-1-local-models-dark.png b/docs/design/redesign/phase-1-local-models-dark.pngnew file mode 100644index 0000000000..49abe6c9d3Binary files /dev/null and b/docs/design/redesign/phase-1-local-models-dark.png differdiff --git a/docs/design/redesign/phase-1-local-models-light.png b/docs/design/redesign/phase-1-local-models-light.pngnew file mode 100644index 0000000000..2b04be2033Binary files /dev/null and b/docs/design/redesign/phase-1-local-models-light.png differdiff --git a/jarvis/ui/theme.py b/jarvis/ui/theme.pyindex ad342b66d2..23936e1caf 100644--- a/jarvis/ui/theme.py+++ b/jarvis/ui/theme.py@@ -34,22 +34,24 @@ Theme = Literal["dark", "light"]#: resolved to one of the two concrete themes by :func:`resolve_theme`.THEME_CHOICES: tuple[str, ...] = ("dark", "light", "system")-#: Window/holding-page ground per theme. Dark is the deep slate the app shell-#: sits on; light is the warm paper of ``--background``.+#: Window/holding-page ground per theme — ``--background`` in ``index.css``+#: (neutral, zero saturation, v4 2026-09-02). Mirrored by the ``--jbs-bg``+#: tokens in ``frontend/index.html`` and the hex table in ``docs/BRAND.md``.WINDOW_BACKGROUND: dict[str, str] = {- "dark": "#0a0e14",- "light": "#fcfbf8",+ "dark": "#0a0a0a",+ "light": "#ffffff",}-#: Text colours for the holding page, so it is legible on either ground.+#: Text colours for the holding page (``--foreground``), legible on either ground.HOLDING_PAGE_FOREGROUND: dict[str, str] = {- "dark": "#e6e6e6",- "light": "#2b2b33",+ "dark": "#fafafa",+ "light": "#171717",}+#: ``--muted-foreground``: the holding page's secondary line.HOLDING_PAGE_MUTED: dict[str, str] = {- "dark": "#9aa3ad",- "light": "#6b6b76",+ "dark": "#a1a1a1",+ "light": "#666666",}_DEFAULT_THEME: Theme = "dark"diff --git a/jarvis/ui/web/frontend/index.html b/jarvis/ui/web/frontend/index.htmlindex d51e7603e0..c3a6c80671 100644--- a/jarvis/ui/web/frontend/index.html+++ b/jarvis/ui/web/frontend/index.html@@ -65,21 +65,22 @@replaced by the real UI automatically.The two grounds match the pywebview window colour for their theme- (jarvis/ui/shell/window.py), so the window frame and its contents are- one surface from the first frame. Keep the pairs in lockstep. */+ (jarvis/ui/theme.py WINDOW_BACKGROUND) and --background in index.css,+ so the window frame and its contents are one surface from the first+ frame. The accent is --accent. Keep the three in lockstep. */:root {- --jbs-bg: #fcfbf8;- --jbs-accent: #a86b00;- --jbs-ring: rgba(168, 107, 0, 0.22);- --jbs-name: #2b2b33;- --jbs-sub: #6b6b76;+ --jbs-bg: #ffffff;+ --jbs-accent: #0a6ff5;+ --jbs-ring: rgba(10, 111, 245, 0.22);+ --jbs-name: #171717;+ --jbs-sub: #666666;}:root.dark {- --jbs-bg: #0a0e14;- --jbs-accent: #e7c46e;- --jbs-ring: rgba(231, 196, 110, 0.2);- --jbs-name: #e6e6e6;- --jbs-sub: #9aa3ad;+ --jbs-bg: #0a0a0a;+ --jbs-accent: #3d8bff;+ --jbs-ring: rgba(61, 139, 255, 0.2);+ --jbs-name: #fafafa;+ --jbs-sub: #a1a1a1;}html, body { margin: 0; height: 100%; background: var(--jbs-bg); }#jarvis-boot-splash {diff --git a/jarvis/ui/web/frontend/src/components/home/RecentChats.tsx b/jarvis/ui/web/frontend/src/components/home/RecentChats.tsxindex 0a035c1487..3bb03ebaea 100644--- a/jarvis/ui/web/frontend/src/components/home/RecentChats.tsx+++ b/jarvis/ui/web/frontend/src/components/home/RecentChats.tsx@@ -8,7 +8,7 @@ import { AllChatsDialog } from "@/components/home/AllChatsDialog";import { formatChatWhen, useChatRows, type ChatRow } from "@/components/home/chatRows";import { CONVERSATIONS_REFRESH_MS } from "@/hooks/useConversations";-export const RECENT_CHATS_FOLDED = 3;+export const RECENT_CHATS_FOLDED = 5;export const RECENT_CHATS_UNFOLDED = 15;/**@@ -67,7 +67,7 @@ export function RecentChats() {<><div data-testid="recent-chats" className="pb-1 pt-0.5">{shown.length === 0 ? (- <p className="py-1 pl-9 pr-2 text-[11px] text-muted-foreground/70">+ <p className="py-1 pl-9 pr-2 text-sm text-foreground-faint">{t("sidebar.no_chats")}</p>) : (@@ -95,7 +95,7 @@ export function RecentChats() {aria-hiddenclassName={cn("h-3.5 w-3.5 shrink-0 transition-transform", open && "rotate-180")}/>- <span className="min-w-0 flex-1 truncate text-xs">+ <span className="min-w-0 flex-1 truncate text-sm">{open ? t("sidebar.show_less") : t("sidebar.show_all")}</span>{!open && hidden > 0 && <Count n={hidden} />}@@ -109,7 +109,7 @@ export function RecentChats() {className={TAIL_ROW}><Archive aria-hidden className="h-3.5 w-3.5 shrink-0" />- <span className="min-w-0 flex-1 truncate text-xs">{t("sidebar.see_all_chats")}</span>+ <span className="min-w-0 flex-1 truncate text-sm">{t("sidebar.see_all_chats")}</span>{open && hidden > 0 && <Count n={hidden} />}</button>)}@@ -130,14 +130,14 @@ const TREE_GUIDE =/** "Show all" and "See all chats": the two quiet rows that close the list. */const TAIL_ROW = cn(- "flex w-full items-center gap-2 rounded-lg py-1.5 pl-9 pr-2 text-left transition-colors",- "text-muted-foreground hover:bg-background/60 hover:text-foreground",- "focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",+ "flex h-8 w-full items-center gap-2 rounded-md pl-9 pr-2 text-left transition-colors",+ "text-muted-foreground hover:bg-secondary hover:text-foreground",+ "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",);function Count({ n }: { n: number }) {return (- <span className="shrink-0 font-mono text-micro tabular-nums text-muted-foreground/70">+ <span className="shrink-0 text-sm tabular-nums text-foreground-faint">+{n}</span>);@@ -167,21 +167,19 @@ function ChatRowItem({data-testid="recent-chat-row"data-kind={row.kind}className={cn(- "flex w-full items-center gap-2 rounded-lg py-1.5 pl-9 pr-2 text-left transition-colors",- "focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",- // The open one wears the same yellow edge as the active nav row, so+ "flex h-8 w-full items-center gap-2 rounded-md pl-9 pr-2 text-left transition-colors",+ "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",+ // The open one wears the same accent edge as the active nav row, so// "where am I" is said in one voice all the way down the column.- active- ? "bg-card text-foreground shadow-[inset_2px_0_0_hsl(var(--primary))]"- : "hover:bg-background/60",+ active ? "jarvis-nav-active bg-secondary text-foreground" : "hover:bg-secondary",)}><Iconaria-hidden- className={cn("h-3.5 w-3.5 shrink-0", active ? "text-primary" : "text-muted-foreground")}+ className={cn("h-3.5 w-3.5 shrink-0", active ? "text-foreground" : "text-muted-foreground")}/>- <span className="min-w-0 flex-1 truncate text-xs text-foreground">{title}</span>- <span className="shrink-0 font-mono text-micro tabular-nums text-muted-foreground">+ <span className="min-w-0 flex-1 truncate text-base text-foreground">{title}</span>+ <span className="shrink-0 text-sm tabular-nums text-foreground-faint">{formatChatWhen(row.updatedMs)}</span></button>diff --git a/jarvis/ui/web/frontend/src/components/home/SurfaceSwitch.tsx b/jarvis/ui/web/frontend/src/components/home/SurfaceSwitch.tsxindex 708fb3cc53..9ef7815e4a 100644--- a/jarvis/ui/web/frontend/src/components/home/SurfaceSwitch.tsx+++ b/jarvis/ui/web/frontend/src/components/home/SurfaceSwitch.tsx@@ -30,7 +30,7 @@ export function SurfaceSwitch({ className }: { className?: string }) {aria-label={t("sidebar.surface_hint")}data-testid="home-surface-switch"className={cn(- "grid grid-cols-2 gap-0.5 rounded-xl bg-background p-0.5",+ "grid h-9 grid-cols-2 gap-0.5 rounded-md border border-border bg-background p-0.5",className,)}>@@ -73,11 +73,11 @@ function SurfaceTab({data-testid={testId}onClick={onClick}className={cn(- "flex items-center justify-center gap-1.5 rounded-[10px] px-2 py-1.5 text-xs font-medium transition-colors",- "focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",+ "flex items-center justify-center gap-1.5 rounded-[6px] px-2 text-base font-medium transition-colors",+ "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",active? "bg-secondary text-foreground"- : "text-foreground/70 hover:text-foreground",+ : "text-muted-foreground hover:text-foreground",)}>{icon}diff --git a/jarvis/ui/web/frontend/src/components/layout/CodingModeBadge.test.tsx b/jarvis/ui/web/frontend/src/components/layout/CodingModeBadge.test.tsxindex 25e765b3f3..f6f0c814bf 100644--- a/jarvis/ui/web/frontend/src/components/layout/CodingModeBadge.test.tsx+++ b/jarvis/ui/web/frontend/src/components/layout/CodingModeBadge.test.tsx@@ -33,14 +33,15 @@ describe("CodingModeBadge", () => {expect(badge.getAttribute("title")).toContain("Personal Jarvis");});- it("distinguishes 'agents running' from 'Jarvis is in their context'", () => {+ it("says nothing while agents run but Jarvis is not in their context", () => {useEventStore.setState({codingMode: { active: false, hasWorkspace: true, workspace: "" },activeSection: "settings",});render(<CodingModeBadge />);- const badge = screen.getByTestId("coding-mode-badge");- expect(badge.textContent).toMatch(/OFF|AUS|INACTIVO/);+ // OFF is the absence of the badge: a permanent "OFF" pill in the chrome+ // of every screen was a reminder of a thing that was not happening.+ expect(screen.queryByTestId("coding-mode-badge")).toBeNull();});it("navigates to the workspace instead of toggling the mode", () => {diff --git a/jarvis/ui/web/frontend/src/components/layout/CodingModeBadge.tsx b/jarvis/ui/web/frontend/src/components/layout/CodingModeBadge.tsxindex dec261e2bd..32ad90fc9e 100644--- a/jarvis/ui/web/frontend/src/components/layout/CodingModeBadge.tsx+++ b/jarvis/ui/web/frontend/src/components/layout/CodingModeBadge.tsx@@ -38,7 +38,9 @@ export function CodingModeBadge({ className }: { className?: string }) {const setActiveSection = useEventStore((s) => s.setActiveSection);const activeSection = useEventStore((s) => s.activeSection);- if (!mode.hasWorkspace) return null;+ // Only while the mode is ON. An "OFF" pill in the chrome of every screen+ // was a permanent reminder of a thing that was not happening.+ if (!mode.hasWorkspace || !mode.active) return null;const label = mode.active? t("topbar.coding_mode_on")@@ -67,24 +69,16 @@ export function CodingModeBadge({ className }: { className?: string }) {// would drop it in favour of the state colour below, leaving the chip at// the inherited 16 px.className={clsx(- "inline-flex h-8 items-center gap-2 rounded-md px-3",- "text-body font-medium transition-colors disabled:cursor-default",- "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-border-strong",- // ON is a live state, so it says so in the one hue that means "this is- // running" — a green dot beside plain ink, rather than a whole chip- // recoloured in the accent, which put the loudest mark in the window- // on a status. OFF keeps the quiet chrome shape.- mode.active- ? "bg-card text-foreground hover:bg-secondary"- : "text-muted-foreground hover:bg-secondary hover:text-foreground",+ // A `success` badge with a glyph: ON is a live state, and the soft+ // green wash is the one hue that means "this is running".+ "inline-flex h-6 items-center gap-1.5 rounded-md border border-success/20 bg-success/[0.12] px-2",+ "text-xs font-medium text-success transition-colors disabled:cursor-default",+ "hover:bg-success/20",+ "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",className,)}>- {mode.active ? (- <span aria-hidden className="h-2 w-2 shrink-0 rounded-full bg-success" />- ) : (- <Brain aria-hidden className="h-4 w-4 shrink-0" />- )}+ <Brain aria-hidden className="h-3.5 w-3.5 shrink-0" />{label}</button>);diff --git a/jarvis/ui/web/frontend/src/components/layout/DockRail.test.tsx b/jarvis/ui/web/frontend/src/components/layout/DockRail.test.tsxindex 06fbf686c5..725b07e63b 100644--- a/jarvis/ui/web/frontend/src/components/layout/DockRail.test.tsx+++ b/jarvis/ui/web/frontend/src/components/layout/DockRail.test.tsx@@ -3,7 +3,7 @@ import { QueryClient, QueryClientProvider } from "@tanstack/react-query";import { afterEach, beforeEach, describe, expect, test, vi } from "vitest";import { DOCK_RAIL_GEOMETRY, DockRail } from "@/components/layout/DockRail";-import { NAV_GROUPS } from "@/components/layout/navGroups";+import { NAV_FOOTER_ITEMS, NAV_GROUPS } from "@/components/layout/navGroups";import { useEventStore } from "@/store/events";// usePluginAttention polls /api/marketplace/plugins; the test drives it.@@ -15,7 +15,8 @@ vi.mock("@/hooks/usePluginAttention", () => ({: { count: 0, names: [] },}));-const ITEMS = NAV_GROUPS.flat();+// The rail lists the footer's Feedback row too, behind one more hairline.+const ITEMS = [...NAV_GROUPS.flat(), ...NAV_FOOTER_ITEMS];const { BASE, GAP, PAD_TOP } = DOCK_RAIL_GEOMETRY;/** clientY that lands on the centre of icon `i` (jsdom rects sit at 0,0). */diff --git a/jarvis/ui/web/frontend/src/components/layout/DockRail.tsx b/jarvis/ui/web/frontend/src/components/layout/DockRail.tsxindex fcc65a39d9..877f841e9a 100644--- a/jarvis/ui/web/frontend/src/components/layout/DockRail.tsx+++ b/jarvis/ui/web/frontend/src/components/layout/DockRail.tsx@@ -10,6 +10,7 @@ import {} from "framer-motion";import { useEventStore, type SectionId } from "@/store/events";import {+ NAV_FOOTER_ITEMS,NAV_GROUPS,presentNavItem,resolveNavLabel,@@ -79,7 +80,8 @@ export function DockRail({ className }: { className?: string }) {// expanded sidebar says "Voice".const surface = useHomeStore((s) => s.surface);const items = useMemo(- () => NAV_GROUPS.flat().map((item) => presentNavItem(item, surface)),+ () =>+ [...NAV_GROUPS.flat(), ...NAV_FOOTER_ITEMS].map((item) => presentNavItem(item, surface)),[surface],);const groupBreaks = useMemo(() => {@@ -91,6 +93,8 @@ export function DockRail({ className }: { className?: string }) {if (g > 0) breaks.add(n);n += NAV_GROUPS[g].length;}+ // The footer items (Feedback) sit behind one more hairline.+ breaks.add(n);return breaks;}, []);diff --git a/jarvis/ui/web/frontend/src/components/layout/EmptyState.tsx b/jarvis/ui/web/frontend/src/components/layout/EmptyState.tsxindex 86c700d915..987ad156f5 100644--- a/jarvis/ui/web/frontend/src/components/layout/EmptyState.tsx+++ b/jarvis/ui/web/frontend/src/components/layout/EmptyState.tsx@@ -1,22 +1,14 @@import type { ReactNode } from "react";-import { cn } from "@/lib/utils";+import { EmptyState as UiEmptyState } from "@/components/ui/empty-state";/**- * The "there is nothing here yet" surface, for every section that can be empty.+ * Compatibility face of `components/ui/empty-state`.*- * Replaces the dimmed centred word each view invented for itself — a single- * `text-muted-foreground` line floating in a black rectangle, which is- * indistinguishable from a section that failed to load. An empty state is a- * designed surface with two jobs: say what will appear here, and offer the one- * action that makes it appear. If a section has no such action, it has no empty- * state either — it has a sentence.- *- * A card, so it is a real object on the page rather than a hole in it, and- * capped at the form measure so it stays sized to its content: a full-bleed- * surface never rises above the room it sits in.- *- * Locale-free: the caller passes already-translated strings.+ * The original layout-level component took `body` + `action`; the primitive+ * takes `description` + `actions` and always wants a title. Existing call+ * sites keep their props and land on the one design — new code imports the+ * primitive directly.*/export function EmptyState({icon,@@ -25,40 +17,19 @@ export function EmptyState({action,className,}: {- /** A 20px lucide glyph. Rendered in secondary ink; pass no colour class. */icon?: ReactNode;- /** Optional short headline — skip it when `body` already says everything. */title?: string;- /** One sentence: what appears here, and when. Already translated. */body: string;- /** The one control that fills this section. Omit only if none exists. */action?: ReactNode;className?: string;}) {return (- <div- data-testid="empty-state"- className={cn(- "mx-auto flex w-full max-w-form flex-col items-center gap-3",- "rounded-lg bg-card px-block py-10 text-center shadow-rim",- className,- )}- >- {icon && (- <span- aria-hidden- className="text-muted-foreground [&>svg]:h-5 [&>svg]:w-5"- >- {icon}- </span>- )}- {title && (- <p className="text-title font-semibold text-foreground-strong">- {title}- </p>- )}- <p className="max-w-reading text-body text-muted-foreground">{body}</p>- {action && <div className="mt-1">{action}</div>}- </div>+ <UiEmptyState+ icon={icon}+ title={title ?? body}+ description={title ? body : undefined}+ actions={action}+ className={className}+ />);}diff --git a/jarvis/ui/web/frontend/src/components/layout/PageHeader.tsx b/jarvis/ui/web/frontend/src/components/layout/PageHeader.tsxnew file mode 100644index 0000000000..a842012cc2--- /dev/null+++ b/jarvis/ui/web/frontend/src/components/layout/PageHeader.tsx@@ -0,0 +1,59 @@+import type { ReactNode } from "react";++import { cn } from "@/lib/utils";++/**+ * The ONE header every view starts with — that is what gives the app one+ * voice.+ *+ * Title at the xl step (20/600), an optional one-line description in muted+ * ink beneath it, a right-aligned actions slot, and an optional `tabs` slot+ * (a `SectionTabBar`) under the title row. The rhythm is fixed here: 24 px+ * above, 24 px below, so no view decides its own.+ *+ * Locale-free: the caller passes already-translated strings.+ */+export function PageHeader({+ icon,+ title,+ description,+ actions,+ tabs,+ className,+}: {+ /** A 20 px lucide glyph, rendered in muted ink; pass no colour class. */+ icon?: ReactNode;+ title: string;+ description?: string;+ /** Right-aligned controls — the view's own actions, if it has any. */+ actions?: ReactNode;+ /** A `SectionTabBar` (or equivalent) drawn under the title row. */+ tabs?: ReactNode;+ className?: string;+}) {+ return (+ <header+ data-testid="section-header"+ className={cn("flex shrink-0 flex-col pt-6", tabs ? "pb-0" : "pb-6", className)}+ >+ <div className="flex items-start gap-3">+ {icon && (+ <span+ aria-hidden+ className="mt-1 flex h-5 w-5 shrink-0 items-center justify-center text-muted-foreground [&>svg]:h-5 [&>svg]:w-5"+ >+ {icon}+ </span>+ )}+ <div className="min-w-0 flex-1">+ <h1 className="truncate text-xl font-semibold text-foreground-strong">{title}</h1>+ {description && (+ <p className="mt-1 text-base text-muted-foreground">{description}</p>+ )}+ </div>+ {actions && <div className="flex shrink-0 items-center gap-2">{actions}</div>}+ </div>+ {tabs && <div className="mt-4">{tabs}</div>}+ </header>+ );+}diff --git a/jarvis/ui/web/frontend/src/components/layout/SectionHeader.tsx b/jarvis/ui/web/frontend/src/components/layout/SectionHeader.tsxindex c8bedd39bf..52800c559c 100644--- a/jarvis/ui/web/frontend/src/components/layout/SectionHeader.tsx+++ b/jarvis/ui/web/frontend/src/components/layout/SectionHeader.tsx@@ -1,26 +1,11 @@import type { ReactNode } from "react";-import { cn } from "@/lib/utils";+import { PageHeader } from "@/components/layout/PageHeader";/**- * The ONE header every section of the app wears.- *- * Replaces the ~46 hand-rolled header rows the views grew independently — each- * with its own size, weight, ink and padding, several of them a tiny all-caps- * label over a 12px title. A header is a role, not a layout each view gets to- * reinvent, and a product whose 46 screens introduce themselves 46 different- * ways reads as 46 products.- *- * The type is fixed here so a call site cannot pick a size: the title is the- * `page` step (20/600) in the ink ceiling, the subtitle is `meta` in secondary- * ink, and the icon is a 20px glyph in the same secondary ink — never brighter- * than the heading it labels. The rhythm is fixed too: 28px above (the page- * step) and 32px below (the group step), which is the gap that was missing- * everywhere and is why sections read as one undifferentiated mesh.- *- * Locale-free on purpose: the caller passes already-translated strings, the- * same way the sidebar's rows do, so this component never grows a dependency- * on the i18n bundle.+ * Compatibility face of `PageHeader`: the header the views adopted under this+ * name keeps its props (`subtitle`) and lands on the one design. New code+ * imports `PageHeader` directly.*/export function SectionHeader({icon,@@ -29,43 +14,19 @@ export function SectionHeader({actions,className,}: {- /** A 20px lucide glyph. Rendered in secondary ink; pass no colour class. */icon?: ReactNode;- /** The section's name, already translated. */title: string;- /** One line saying what the section is for. Longer than a line: cut it. */subtitle?: string;- /** Right-aligned controls — the section's own actions, if it has any. */actions?: ReactNode;className?: string;}) {return (- <header- data-testid="section-header"- className={cn("flex shrink-0 items-start gap-3 pb-group pt-7", className)}- >- {icon && (- // A sizing box rather than a decorative wrapper: it pins every- // section's glyph to the same 20px square on the title's first line,- // and to the one ink an icon is allowed to carry.- <span- aria-hidden- className="mt-0.5 flex h-5 w-5 shrink-0 items-center justify-center text-muted-foreground [&>svg]:h-5 [&>svg]:w-5"- >- {icon}- </span>- )}- <div className="min-w-0 flex-1">- <h1 className="truncate text-page font-semibold text-foreground-strong">- {title}- </h1>- {subtitle && (- <p className="mt-1 text-meta text-muted-foreground">{subtitle}</p>- )}- </div>- {actions && (- <div className="flex shrink-0 items-center gap-2">{actions}</div>- )}- </header>+ <PageHeader+ icon={icon}+ title={title}+ description={subtitle}+ actions={actions}+ className={className}+ />);}diff --git a/jarvis/ui/web/frontend/src/components/layout/SectionTabBar.tsx b/jarvis/ui/web/frontend/src/components/layout/SectionTabBar.tsxindex 11e82270fd..9e6c747fe9 100644--- a/jarvis/ui/web/frontend/src/components/layout/SectionTabBar.tsx+++ b/jarvis/ui/web/frontend/src/components/layout/SectionTabBar.tsx@@ -1,5 +1,4 @@-import { clsx } from "clsx";-+import { cn } from "@/lib/utils";import { useEventStore, type SectionId } from "@/store/events";import { useT } from "@/i18n";@@ -9,13 +8,15 @@ export interface SectionTab {}/**- * Shared flat top tab bar for merged sidebar sections (e.g. "Skills & Tools"- * fronting skills/plugins/mcps, and "CLIs" fronting clis/cli-test-hub).+ * The underline tab bar: base step, 500 weight, a 2 px accent underline under+ * the active tab, a hairline under the row. Never pill segments.*- * Each tab maps to a real section id; the active section id (`activeSection` in- * the event store) doubles as the tab state, so routing, deep-links and voice- * navigation ("öffne Plugins") keep working unchanged and land on the right i18n-allow- * tab. Clicking a tab just sets the active section.+ * Two faces. `SectionTabBar` is bound to the event store — each tab maps to a+ * real section id, and the active section doubles as the tab state, so+ * routing, deep links and voice navigation ("öffne Plugins") keep working i18n-allow+ * unchanged. `TabBar` is the same look for a view's OWN tabs (a local+ * `useState`), so a Preview / Files / Run switch inside one view draws the+ * same bar as the section switch above it.*/export function SectionTabBar({ tabs }: { tabs: readonly SectionTab[] }) {const t = useT();@@ -23,56 +24,62 @@ export function SectionTabBar({ tabs }: { tabs: readonly SectionTab[] }) {const setActive = useEventStore((s) => s.setActiveSection);return (- // The horizontal padding stays matched to the header this bar sits under- // (`ViewHeader`, px-6). It comes off the day the views take the shared- // `SectionHeader`, which carries none — the shell supplies the page- // padding then, and a second inset here would push the tabs off the title.- <div className="flex items-center gap-6 border-b border-border px-6">- {tabs.map((tab) => (- <PrimaryTab- key={tab.id}- label={t(tab.labelKey)}- active={active === tab.id}- onClick={() => setActive(tab.id)}- />- ))}- </div>+ <TabBar+ tabs={tabs.map((tab) => ({ id: tab.id, label: t(tab.labelKey) }))}+ active={active}+ onChange={(id) => setActive(id as SectionId)}+ />);}-function PrimaryTab({- label,+export interface TabBarItem {+ id: string;+ label: string;+ /** A small count after the label, rendered in muted ink. */+ count?: number;+}++export function TabBar({+ tabs,active,- onClick,+ onChange,+ className,}: {- label: string;- active: boolean;- onClick: () => void;+ tabs: readonly TabBarItem[];+ active: string;+ onChange: (id: string) => void;+ className?: string;}) {return (- <button- type="button"- onClick={onClick}- aria-current={active ? "page" : undefined}- // `clsx`, not `cn`: tailwind-merge classifies the design system's- // `text-body` as a text COLOUR, so merging it with `text-muted-foreground`- // drops the size and the tab jumps to the inherited 16 px.- className={clsx(- "relative py-3 text-body font-medium transition-colors",- "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-border-strong",- active- ? "text-foreground-strong"- : "text-muted-foreground hover:text-foreground",- )}+ <div+ role="tablist"+ className={cn("flex items-center gap-6 border-b border-border", className)}>- {label}- {active && (- // An active indicator is one of the four things `--primary` is for.- <span- aria-hidden- className="absolute inset-x-0 bottom-0 h-0.5 rounded-full bg-primary"- />- )}- </button>+ {tabs.map((tab) => {+ const isActive = active === tab.id;+ return (+ <button+ key={tab.id}+ type="button"+ role="tab"+ aria-selected={isActive}+ aria-current={isActive ? "page" : undefined}+ onClick={() => onChange(tab.id)}+ className={cn(+ "relative -mb-px flex h-10 items-center gap-2 border-b-2 text-base font-medium transition-colors",+ "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background",+ isActive+ ? "border-accent text-foreground-strong"+ : "border-transparent text-muted-foreground hover:text-foreground",+ )}+ >+ {tab.label}+ {tab.count !== undefined && (+ <span className="text-sm tabular-nums text-foreground-faint">{tab.count}</span>+ )}+ </button>+ );+ })}+ </div>);}diff --git a/jarvis/ui/web/frontend/src/components/layout/Sidebar.test.tsx b/jarvis/ui/web/frontend/src/components/layout/Sidebar.test.tsxindex 84e5022e97..a0115d9f79 100644--- a/jarvis/ui/web/frontend/src/components/layout/Sidebar.test.tsx+++ b/jarvis/ui/web/frontend/src/components/layout/Sidebar.test.tsx@@ -1,4 +1,4 @@-import { act, cleanup, render, screen } from "@testing-library/react";+import { act, cleanup, fireEvent, render, screen } from "@testing-library/react";import { QueryClient, QueryClientProvider } from "@tanstack/react-query";import { afterEach, beforeEach, describe, expect, test, vi } from "vitest";@@ -567,6 +567,9 @@ describe("Sidebar icon rail", () => {renderSidebar(SIDEBAR_DEFAULT_WIDTH);expect(screen.getByTestId("sidebar").dataset.railed).toBe("false");+ // "Tools" starts folded so the column fits 1080 px; its label is the fold.+ expect(screen.getByTestId("nav-group-tools").dataset.open).toBe("false");+ fireEvent.click(screen.getByTestId("nav-group-toggle-tools"));// The label is ON the row, and names the workspace rather than carrying// the retired generic "Chat" label shown in the product screenshot.expect(screen.getByTestId("nav-row-agentic-ide").textContent).toContain(diff --git a/jarvis/ui/web/frontend/src/components/layout/Sidebar.tsx b/jarvis/ui/web/frontend/src/components/layout/Sidebar.tsxindex 9caa9e2961..517d7d3b9b 100644--- a/jarvis/ui/web/frontend/src/components/layout/Sidebar.tsx+++ b/jarvis/ui/web/frontend/src/components/layout/Sidebar.tsx@@ -9,6 +9,8 @@ import {Plus,} from "lucide-react";import {+ NAV_FOOTER_ITEMS,+ NAV_GROUP_META,NAV_GROUPS,presentNavItem,resolveNavLabel,@@ -39,6 +41,26 @@ import { GigiMark } from "@/components/GigiMark";/** Where the Chat row remembers whether its history is folded out. */const CHATS_OPEN_KEY = "jarvis.sidebar.recent-chats-open";+/** Where each nav group remembers whether it is folded. One key per group. */+const GROUP_OPEN_KEY = "jarvis.sidebar.group-open.v1";++function readGroupOpen(): Record<string, boolean> {+ try {+ const raw = window.localStorage.getItem(GROUP_OPEN_KEY);+ return raw ? (JSON.parse(raw) as Record<string, boolean>) : {};+ } catch {+ return {};+ }+}++function writeGroupOpen(state: Record<string, boolean>): void {+ try {+ window.localStorage.setItem(GROUP_OPEN_KEY, JSON.stringify(state));+ } catch {+ // Storage denied: the fold still works for this visit.+ }+}+/** Why `clsx` and not `cn` on the rows below.*@@ -135,13 +157,11 @@ export interface SidebarProps {}/** Width the sidebar was designed at, and the one a double-click restores.- * 320 since 2026-08-23: the front page's controls live in this column now- * and the maintainer dragged it wider on first use — that is the default.- * 400 since 2026-08-27: the Agentic IDE's chat mode lists the workspace's- * sessions by their titles, and at 320 a title was an ellipsis after four- * words. The maintainer dragged the column to about 400 to read them and- * asked for that to be where it starts. */-export const SIDEBAR_DEFAULT_WIDTH = 400;+ * 240 since 2026-09-02 (v4 redesign): the Cursor / Grok column. The+ * navigation is a single 14 px list now, so it fits; the Agentic IDE's+ * chat list, which drove the older 400, is still one drag away and the+ * dragged width is remembered. */+export const SIDEBAR_DEFAULT_WIDTH = 240;/*** localStorage key the dragged width is remembered under.@@ -157,8 +177,10 @@ export const SIDEBAR_DEFAULT_WIDTH = 400;** `v3` with the 400 px default (same day): the wider column is the point of* the change, so every existing column is re-seeded at it once more.+ *+ * `v4` with the 240 px default (2026-09-02): the redesign's column.*/-export const SIDEBAR_WIDTH_STORAGE_KEY = "jarvis.sidebar.width.v3";+export const SIDEBAR_WIDTH_STORAGE_KEY = "jarvis.sidebar.width.v4";/*** Narrowest the sidebar goes: the nav icons, and nothing else.@@ -279,6 +301,20 @@ export function Sidebar({useEffect(() => {if (chatFace) setSectionsShown(false);}, [chatFace]);+ /*+ * Which nav groups are folded. A group's default comes from NAV_GROUP_META+ * and the user's choice outranks it, remembered per group. A group that+ * holds the ACTIVE section is always shown open, so "where am I" is never+ * hidden behind a fold.+ */+ const [groupOpen, setGroupOpen] = useState<Record<string, boolean>>(readGroupOpen);+ const toggleGroup = useCallback((id: string, fallback: boolean) => {+ setGroupOpen((current) => {+ const next = { ...current, [id]: !(current[id] ?? fallback) };+ writeGroupOpen(next);+ return next;+ });+ }, []);const resetTranscript = useHomeStore((s) => s.resetTranscript);// On the voice stage: clear the lane, drop the open voice thread and let the// backend forget the one it was seeded with. We stay on Voice and the mic@@ -412,10 +448,10 @@ export function Sidebar({{/* One 8px gutter down the whole column — header, navigation and footershare it, so the rows, the "+ New" button and the brain card all lineup on the same left edge. */}- <div className={cn("border-b border-border px-2", railed ? "py-2.5" : "py-3")}>+ <div className={cn("px-3", railed ? "py-2.5" : "pb-2 pt-3")}><divclassName={cn(- "flex items-center gap-3",+ "flex items-center gap-2.5",railed && "flex-col justify-center gap-1.5",)}>@@ -423,22 +459,22 @@ export function Sidebar({data-testid="sidebar-style-avatar"data-variant="logo"title={railed ? `${assistantName} — ${voiceLabel}` : undefined}- className={cn("relative shrink-0", railed ? "h-9 w-9" : "h-11 w-11")}+ className={cn("relative shrink-0", railed ? "h-9 w-9" : "h-7 w-7")}>{railed && devTag && (<spandata-testid="sidebar-instance-tag"title={t("sidebar.instance_dev_hint")}- className="absolute -bottom-1 -right-1 z-10 rounded-full bg-primary px-1 text-micro font-medium leading-none text-primary-foreground"+ className="absolute -bottom-1 -right-1 z-10 rounded-sm bg-primary px-1 text-xs font-medium leading-none text-primary-foreground">{devTag}</span>)}- <GigiMark size={railed ? 36 : 44} />+ <GigiMark size={railed ? 36 : 28} /></span>{!railed && (<div className="flex min-w-0 flex-1 flex-col">- <span className="flex min-w-0 items-center gap-2 font-display text-title font-semibold text-foreground-strong">+ <span className="flex min-w-0 items-center gap-2 text-base font-medium text-foreground-strong"><span className="truncate">{assistantName}</span>{devTag && (// A mark, not a status: the fill is the neutral accent, so it@@ -447,36 +483,51 @@ export function Sidebar({<spandata-testid="sidebar-instance-tag"title={t("sidebar.instance_dev_hint")}- className="shrink-0 rounded-full bg-primary px-1.5 text-micro font-medium leading-none text-primary-foreground"+ className="shrink-0 rounded-sm bg-primary px-1.5 text-xs font-medium leading-none text-primary-foreground">{devTag}</span>)}</span>- {/* The state, as a plain line rather than a tiny all-caps chip.- The dot to its right already carries the colour; a pill here- was a second, louder copy of the same fact. */}- <span className="truncate text-meta text-muted-foreground">- {voiceLabel}+ {/* The state: a 6 px dot in the status colour, then the word. */}+ <span className="flex min-w-0 items-center gap-1.5 text-sm text-muted-foreground">+ {showSpinner ? (+ <Loader2+ className="h-3 w-3 shrink-0 animate-spin"+ data-testid="voice-starting-spinner"+ aria-hidden+ />+ ) : (+ <span+ className={cn(+ "h-1.5 w-1.5 shrink-0 rounded-full",+ vs.dot,+ vs.pulse && "animate-jarvis-pulse",+ )}+ aria-hidden+ />+ )}+ <span className="truncate">{voiceLabel}</span></span></div>)}- {showSpinner ? (- <Loader2- className="h-3.5 w-3.5 shrink-0 animate-spin text-muted-foreground"- data-testid="voice-starting-spinner"- aria-hidden- />- ) : (- <span- className={cn(- "h-2 w-2 rounded-full",- vs.dot,- vs.pulse && "animate-jarvis-pulse",- )}- aria-hidden- />- )}+ {railed &&+ (showSpinner ? (+ <Loader2+ className="h-3.5 w-3.5 shrink-0 animate-spin text-muted-foreground"+ data-testid="voice-starting-spinner"+ aria-hidden+ />+ ) : (+ <span+ className={cn(+ "h-2 w-2 rounded-full",+ vs.dot,+ vs.pulse && "animate-jarvis-pulse",+ )}+ aria-hidden+ />+ ))}{onToggleCollapsed && (<buttontype="button"@@ -492,7 +543,7 @@ export function Sidebar({// over the rail — on near-black that is darker than rest, so// the control dimmed under the pointer."transition-colors hover:bg-secondary hover:text-foreground",- "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-border-strong",+ "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",railed ? "h-7 w-7" : "-mr-1 h-7 w-7",)}>@@ -511,18 +562,15 @@ export function Sidebar({onto the voice stage itself, where it has the room to be read.Hidden while the IDE's chats own the column: two switches with"Chat" on both halves are two questions nobody asked. */}- <SurfaceSwitch className="mt-2" />- {/* An object that answers a pointer by stepping up one surface —- `bg-card` at rest, `bg-secondary` under the cursor. The old- `hover:bg-secondary/80` went the other way: it thinned the fill- the button already had. */}+ <SurfaceSwitch className="mt-3" />+ {/* A full-width outline button: the one action this column offers. */}<buttontype="button"onClick={onVoiceSurface ? startNewVoice : startNewChat}data-testid="sidebar-new-chat"- className="mt-2 flex h-9 w-full items-center gap-2 rounded-md bg-card px-3 text-body font-medium text-foreground transition-colors hover:bg-secondary focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-border-strong"+ className="mt-2 flex h-9 w-full items-center justify-center gap-2 rounded-md border border-border-strong px-3 text-base font-medium text-foreground transition-colors hover:bg-secondary focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-sidebar">- <Plus aria-hidden className="h-4 w-4 shrink-0 text-muted-foreground" />+ <Plus aria-hidden className="h-4 w-4 shrink-0" />{onVoiceSurface ? t("sidebar.new_voice_chat") : t("sidebar.new_chat")}</button><BrowserRealtimeControl />@@ -551,9 +599,9 @@ export function Sidebar({onClick={() => setSectionsShown(true)}data-testid="sidebar-show-sections"className={clsx(- "group mx-2 mb-2 mt-3 flex h-10 shrink-0 items-center gap-2 rounded-md px-3 text-body transition-colors",+ "group mx-2 mb-2 mt-3 flex h-9 shrink-0 items-center gap-2 rounded-md px-3 text-base font-medium transition-colors","text-muted-foreground hover:bg-secondary hover:text-foreground",- "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-border-strong",+ "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",)}><LayoutList@@ -578,9 +626,9 @@ export function Sidebar({onClick={() => setSectionsShown(false)}data-testid="sidebar-show-chats"className={clsx(- "group mb-2 flex h-10 w-full items-center gap-2 rounded-md px-3 text-body transition-colors",+ "group mb-2 flex h-9 w-full items-center gap-2 rounded-md px-3 text-base font-medium transition-colors","text-muted-foreground hover:bg-secondary hover:text-foreground",- "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-border-strong",+ "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",)}><ChevronLeft@@ -590,17 +638,58 @@ export function Sidebar({<span className="flex-1 text-left">{t("sidebar.back_to_chats")}</span></button>)}- {NAV_GROUPS.map((group, groupIndex) => (+ {NAV_GROUPS.map((group, groupIndex) => {+ const meta = NAV_GROUP_META[groupIndex];+ const collapsible = Boolean(meta?.labelKey);+ const holdsActive = group.some((raw) =>+ raw.matchIds ? raw.matchIds.includes(active) : raw.id === active,+ );+ const open =+ !collapsible ||+ holdsActive ||+ (groupOpen[meta.id] ?? meta.defaultOpen);+ const groupLabel = meta?.labelKey+ ? resolveNavLabel(t, {+ id: "chats",+ labelKey: meta.labelKey,+ icon: Plus,+ fallbackLabel: meta.fallbackLabel,+ })+ : null;+ return (<ul- key={groupIndex}- className={cn(- "space-y-0.5",- // One window: groups sit in one list. A hairline here read as- // a dead rule; a large gap read as separate panes.- groupIndex > 0 && "mt-1",- )}+ key={meta?.id ?? groupIndex}+ data-testid={meta ? `nav-group-${meta.id}` : undefined}+ data-open={open ? "true" : "false"}+ className={cn("space-y-0.5", groupIndex > 0 && "mt-5")}>- {group.map((raw) => {+ {groupLabel && (+ <li>+ {/* The group label doubles as its fold. Uppercase, faint+ ink, the xs step — a heading, never a row. */}+ <button+ type="button"+ onClick={() => toggleGroup(meta.id, meta.defaultOpen)}+ aria-expanded={open}+ data-testid={`nav-group-toggle-${meta.id}`}+ className={clsx(+ "group mb-1 flex h-6 w-full items-center gap-1 rounded-sm px-3 text-xs font-medium uppercase tracking-wide",+ "text-foreground-faint transition-colors hover:text-muted-foreground",+ "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",+ )}+ >+ <span className="flex-1 truncate text-left">{groupLabel}</span>+ <ChevronDown+ aria-hidden+ className={cn(+ "h-3 w-3 shrink-0 opacity-0 transition-[opacity,transform] group-hover:opacity-100 group-focus-visible:opacity-100",+ !open && "-rotate-90 opacity-100",+ )}+ />+ </button>+ </li>+ )}+ {open && group.map((raw) => {const item = presentNavItem(raw, surface);return (<NavRow@@ -658,20 +747,45 @@ export function Sidebar({);})}</ul>- ))}+ );+ })}</nav>)}</div>)}- <div className="border-t border-border p-2">+ <div className={cn("flex flex-col gap-1 border-t border-border", railed ? "p-2" : "p-3")}>+ {!railed &&+ NAV_FOOTER_ITEMS.map((item) => {+ const Icon = item.icon;+ const isActive = item.id === active;+ return (+ <button+ key={item.id}+ type="button"+ data-testid={`nav-row-${item.id}`}+ onClick={() => setActive(item.id)}+ className={clsx(+ "group flex h-9 w-full items-center gap-2 rounded-md px-3 text-base font-medium transition-colors",+ "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",+ isActive+ ? "jarvis-nav-active bg-secondary text-foreground"+ : "text-muted-foreground hover:bg-secondary hover:text-foreground",+ )}+ >+ <Icon aria-hidden className="h-4 w-4 shrink-0" />+ <span className="truncate">{resolveNavLabel(t, item)}</span>+ </button>+ );+ })}<buttontype="button"onClick={() => setActive("apikeys")}+ data-testid="sidebar-brain-card"className={cn(- "group flex w-full items-center rounded-lg bg-card text-left transition-colors hover:bg-secondary",- "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-border-strong",- railed ? "justify-center px-2 py-2" : "gap-3 px-3 py-2",+ "group flex w-full items-center rounded-lg border border-border bg-card text-left transition-colors hover:border-border-strong",+ "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-sidebar",+ railed ? "justify-center px-2 py-2" : "gap-3 p-3",)}// On the rail the card shrinks to its status dot, so everything it// would have said moves into the hover text — otherwise the dot is a@@ -700,12 +814,12 @@ export function Sidebar({{!railed && (<div className="flex-1 min-w-0"><div- className="text-meta text-muted-foreground"+ className="text-xs uppercase tracking-wide text-foreground-faint"data-testid="sidebar-footer-tier">{footerLabel}</div>- <div className="truncate text-title font-semibold text-foreground-strong">+ <div className="truncate text-base font-medium text-foreground-strong">{footerProvider}</div>{/* The model id actually in use (e.g. "claude-opus-4-8", or the@@ -713,7 +827,7 @@ export function Sidebar({model is in use, not just the provider. */}{footerModel && (<div- className="truncate text-meta text-muted-foreground"+ className="truncate text-sm text-muted-foreground"title={footerModel}data-testid="sidebar-brain-model">@@ -796,22 +910,23 @@ function NavRow({onClick={onClick}title={hint}className={clsx(- "group relative flex h-10 w-full items-center gap-2 rounded-md px-3 text-body font-medium transition-colors",- "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-border-strong",+ "group relative flex h-9 w-full items-center gap-2.5 rounded-md px-3 text-base font-medium transition-colors",+ "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",// Leave the chevron its own column so the two buttons never overlap.expand && "pr-9",+ // Rest is muted ink; hover AND active are the same lift with body+ // ink, and only the active row carries the 2 px accent bar at the+ // left edge (`.jarvis-nav-active`).active- ? "jarvis-nav-active bg-secondary text-foreground-strong"- : "text-foreground hover:bg-card",+ ? "jarvis-nav-active bg-secondary text-foreground"+ : "text-muted-foreground hover:bg-secondary hover:text-foreground",)}><Iconaria-hiddenclassName={cn("h-4 w-4 shrink-0 transition-colors",- active- ? "text-foreground-strong"- : "text-muted-foreground group-hover:text-foreground",+ active ? "text-foreground" : "text-muted-foreground group-hover:text-foreground",)}/><span className="flex min-w-0 flex-1 items-center gap-2 text-left">@@ -821,7 +936,7 @@ function NavRow({{betaLabel && (<spandata-testid={`nav-beta-${item.id}`}- className="shrink-0 rounded-full bg-secondary px-1.5 text-micro text-muted-foreground"+ className="shrink-0 rounded-sm border border-border bg-secondary px-1 text-xs font-medium text-muted-foreground">{betaLabel}</span>@@ -846,7 +961,7 @@ function NavRow({/>)}{badge !== undefined && badge > 0 && (- <span className="shrink-0 rounded-full bg-secondary px-1.5 text-micro tabular-nums text-muted-foreground">+ <span className="shrink-0 rounded-sm bg-secondary px-1 text-xs tabular-nums text-muted-foreground">{badge}</span>)}@@ -863,8 +978,8 @@ function NavRow({"absolute right-2 top-1/2 flex h-6 w-6 -translate-y-1/2 items-center justify-center rounded-md transition-colors",// `hover:bg-background/60` painted the PAGE over the rail here,// i.e. it went darker under the pointer. Up the ladder instead.- "text-muted-foreground hover:bg-secondary hover:text-foreground",- "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-border-strong",+ "text-muted-foreground hover:bg-surface-raised hover:text-foreground",+ "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",)}><ChevronDowndiff --git a/jarvis/ui/web/frontend/src/components/layout/TopBar.tsx b/jarvis/ui/web/frontend/src/components/layout/TopBar.tsxindex a43c7b6e7b..0d309b9615 100644--- a/jarvis/ui/web/frontend/src/components/layout/TopBar.tsx+++ b/jarvis/ui/web/frontend/src/components/layout/TopBar.tsx@@ -2,6 +2,7 @@ import { useCallback, useEffect, useRef, useState } from "react";import { AppWindow, Download, RotateCw } from "lucide-react";import { useEventStore, type SectionId } from "@/store/events";+import { NAV_FOOTER_ITEMS, NAV_GROUPS, resolveNavLabel } from "@/components/layout/navGroups";import {fetchUpdateProgress,useUpdate,@@ -65,10 +66,10 @@ const CONFIRM_TIMEOUT_MS = 4000;* change.)*/const CHROME_BUTTON =- "inline-flex h-8 shrink-0 items-center gap-2 rounded-md px-3 text-body font-medium " ++ "inline-flex h-8 shrink-0 items-center gap-2 rounded-md px-3 text-base font-medium " +"transition-[background-color,color,transform] duration-150 " +"motion-safe:active:scale-[0.98] focus-visible:outline-none focus-visible:ring-2 " +- "focus-visible:ring-border-strong disabled:cursor-default disabled:opacity-70";+ "focus-visible:ring-ring disabled:cursor-default disabled:opacity-70";/** Resting chrome: no fill of its own, one step up under the pointer. */const CHROME_QUIET = "text-muted-foreground hover:bg-secondary hover:text-foreground";@@ -86,10 +87,20 @@ const CODING_SECTIONS = new Set<SectionId>(["chat-workspace",]);+/** The active section's own nav label — the bar's breadcrumb-style title. */+function useViewTitle(activeSection: SectionId): string {+ const t = useT();+ const item = [...NAV_GROUPS.flat(), ...NAV_FOOTER_ITEMS].find((row) =>+ row.matchIds ? row.matchIds.includes(activeSection) : row.id === activeSection,+ );+ return item ? resolveNavLabel(t, item) : "";+}+export function TopBar() {const activeSection = useEventStore((s) => s.activeSection);const solo = useEventStore((s) => s.solo);const detachedViews = useEventStore((s) => s.detachedViews);+ const viewTitle = useViewTitle(activeSection);// The coding workspace takes the actions into its own toolbar row, under// every id that reaches it. The rule is "the section carries the actions// itself" — a section that does not would lose Restart, which is the one@@ -114,14 +125,21 @@ export function TopBar() {}return (- // 44px, so a 32px control has room to breathe in it. At 40px the buttons- // filled the bar edge to edge and the strip read as a container that had- // burst rather than as chrome.- <div className="jarvis-shell-surface flex h-11 shrink-0 items-center justify-end gap-2 border-b border-border px-4 backdrop-blur-md">- {/* Status, not an action — `mr-auto` pins it left so it never crowds- the buttons. The deck header does not pass this: it already sits- in a right-hand cluster. */}- <CodingModeBadge className="mr-auto" />+ // 48 px on the page ground with a hairline beneath. Left: the view's+ // name, and the coding-mode badge only while the mode is ON. Right: the+ // app-chrome actions.+ <div className="jarvis-shell-surface flex h-12 shrink-0 items-center gap-2 border-b border-border px-4">+ <div className="mr-auto flex min-w-0 items-center gap-3">+ {viewTitle && (+ <span+ data-testid="topbar-view-title"+ className="truncate text-base font-medium text-foreground"+ >+ {viewTitle}+ </span>+ )}+ <CodingModeBadge />+ </div><TopBarActions /></div>);diff --git a/jarvis/ui/web/frontend/src/components/layout/navGroups.ts b/jarvis/ui/web/frontend/src/components/layout/navGroups.tsindex a5401f0ae1..badc9c7300 100644--- a/jarvis/ui/web/frontend/src/components/layout/navGroups.ts+++ b/jarvis/ui/web/frontend/src/components/layout/navGroups.ts@@ -81,20 +81,51 @@ export interface NavItem {}-// Sidebar nav, clustered into logical groups separated by a thin divider:-// 1) daily tools 2) content & data 3) configuration 4) social links.-// The render walks the groups in order and draws a separator between them, so-// the order below IS the on-screen order.+/**+ * The sidebar's group labels, one per entry of `NAV_GROUPS`, by position.+ *+ * The first group (the front page) carries no label and is never collapsed.+ * Every other group is collapsible; `defaultOpen` is what a fresh install+ * shows, and the user's choice is remembered per group in localStorage.+ * "Tools" and "You" start folded so the column fits 1080 px without a+ * scrollbar with the defaults.+ */+export interface NavGroupMeta {+ id: string;+ labelKey?: string;+ fallbackLabel?: string;+ defaultOpen: boolean;+}++export const NAV_GROUP_META: readonly NavGroupMeta[] = [+ { id: "home", defaultOpen: true },+ {+ id: "workspace",+ labelKey: "nav.group_workspace",+ fallbackLabel: "Workspace",+ defaultOpen: true,+ },+ { id: "tools", labelKey: "nav.group_tools", fallbackLabel: "Tools", defaultOpen: false },+ { id: "you", labelKey: "nav.group_you", fallbackLabel: "You", defaultOpen: false },+ { id: "system", labelKey: "nav.group_system", fallbackLabel: "System", defaultOpen: true },+];++// Sidebar nav in four labelled groups (v4, 2026-09-02):+// Workspace · Tools · You · System — preceded by the front page's own row.+// The render walks the groups in order, so the order below IS the on-screen+// order. Every section id is unchanged, so routing, deep links and the+// navigate parity tests do not move.//// Exported because the mission deck shows every section at once and jumps to// them. A second hand-written list there would be the classic drift trap// (AP-4): a section added here would silently never appear on the deck.export const NAV_GROUPS: NavItem[][] = [- // 1) Daily tools — what the user reaches for most often.+ // 0) The front page — Voice or Chat, named after the face the switch picked.+ [{ id: "chats", labelKey: "nav.chats", icon: MessageSquare }],+ // 1) Workspace — what the user builds with and reads back.[- { id: "chats", labelKey: "nav.chats", icon: MessageSquare },{ id: "agents", labelKey: "nav.agents", icon: Users },- // Skills & Tools — Skills + Plugins + MCPs behind one tab switch. The id+ // Skills & Plugins — Skills + Plugins + MCPs behind one tab switch. The id// "skills" is the default landing (Skills tab); matchIds keeps the row// highlighted for any of the fronted sections.{@@ -103,36 +134,20 @@ export const NAV_GROUPS: NavItem[][] = [icon: Boxes,matchIds: ["skills", "plugins", "mcps"],},- // CLIs — the CLIs list + the CLI Test Hub behind one tab switch (CLIs first).- { id: "clis", labelKey: "nav.clis_hub", icon: Terminal, matchIds: ["clis", "cli-test-hub"] },- // The marketplace. Sits right under Skills & Tools because that is what- // fills those lists: a plugin, a skill or a wallpaper published there ends- // up in one of them once installed. Same Store icon as the badge that- // marks an installed entry, so the mark and its origin read as one thing.+ // The marketplace fills those lists: a plugin, a skill or a wallpaper+ // published there ends up in one of them once installed.{id: "marketplace",labelKey: "nav.marketplace",icon: Store,fallbackLabel: "Marketplace",},- ],- // 2) Content & data — things the user reads, edits, or browses.- [// Automations — the recurring agent tasks and their catalogue. The id stays// "tasks" (navigate parity, deep links); only the label and glyph changed.{ id: "tasks", labelKey: "nav.tasks", icon: Workflow, fallbackLabel: "Automations" },- { id: "sessions", labelKey: "nav.sessions", icon: Mic },- { id: "run_inspector", labelKey: "nav.run_inspector", icon: Gauge },- // Spend & Tokens — every token the app spent, priced per provider,- // model and role. Sits with the other things the user reads back- // rather than with the settings: it reports, it does not configure.- { id: "costs", labelKey: "nav.costs", icon: Wallet, fallbackLabel: "Spend" },- // Artifacts — everything a run produced: the pages and pictures on a- // full-size stage, and every other run (its files, status and controls)- // in the same rail. The Outputs section that used to list the runs- // folded into this one (2026-08-23); the id stays "visualization" because- // it crosses the navigate parity test, the detachable-view registry and- // deep links.+ // Artifacts — everything a run produced. The id stays "visualization"+ // because it crosses the navigate parity test, the detachable-view+ // registry and deep links.{id: "visualization",labelKey: "nav.visualization",@@ -141,7 +156,31 @@ export const NAV_GROUPS: NavItem[][] = [},{ id: "board", labelKey: "nav.board", icon: Sparkles },{ id: "memory", labelKey: "nav.wiki", icon: Notebook },- { id: "contacts", labelKey: "nav.contacts", icon: Contact },+ { id: "docs", labelKey: "nav.docs", icon: BookOpen },+ ],+ // 2) Tools — the instruments: transcription, the run inspector, the CLIs+ // and the Agentic IDE (which puts real coding agents to work in a folder,+ // so its row says "Beta" up front).+ [+ { id: "sessions", labelKey: "nav.sessions", icon: Mic },+ { id: "run_inspector", labelKey: "nav.run_inspector", icon: Gauge },+ // CLIs — the CLIs list + the CLI Test Hub behind one tab switch (CLIs first).+ { id: "clis", labelKey: "nav.clis_hub", icon: Terminal, matchIds: ["clis", "cli-test-hub"] },+ {+ id: "agentic-ide",+ labelKey: "nav.agentic_ide",+ icon: MessagesSquare,+ fallbackLabel: "Agentic IDE",+ // The classic grid is the same destination as far as the row is+ // concerned: someone who stepped back into it should still see where+ // they are in the navigation.+ matchIds: ["agentic-ide", "chat-workspace", "agentic-ide-classic"],+ beta: true,+ },+ ],+ // 3) You — what the assistant knows about the user, and the user's own+ // ledgers.+ [{ id: "profile", labelKey: "nav.profile", icon: UserCircle2 },{id: "agent-instructions",@@ -149,14 +188,17 @@ export const NAV_GROUPS: NavItem[][] = [icon: ScrollText,fallbackLabel: "Instructions",},- { id: "docs", labelKey: "nav.docs", icon: BookOpen },+ { id: "contacts", labelKey: "nav.contacts", icon: Contact },+ // Spend & Tokens — every token the app spent, priced per provider, model+ // and role. It reports, it does not configure.+ { id: "costs", labelKey: "nav.costs", icon: Wallet, fallbackLabel: "Spend" },+ { id: "socials", labelKey: "nav.socials", icon: Share2 },],- // 3) Configuration. API Keys now also fronts the former "Telephony" screen —- // the telephony status/credentials/scripts/calls live as a section inside the+ // 4) System. API Keys also fronts the former "Telephony" screen — the+ // telephony status/credentials/scripts/calls live as a section inside the// API-Keys view, so matchIds keeps this row highlighted when a "geh zur// Telefonie" voice command lands on the "telephony" id. Settings likewise- // fronts the former "Taskbar" + "Languages" sections (overlay/dictation- // controls live in OverlayTaskbarGroup, language selectors in LanguagesGroup).+ // fronts the former "Taskbar" + "Languages" sections.[{id: "apikeys",@@ -180,9 +222,7 @@ export const NAV_GROUPS: NavItem[][] = [},// The voice section — dictation, the custom vocabulary, the keys that start// it, the dictation language and the speech-to-text providers — behind one- // tab switch. "dictation" is the default landing; matchIds keeps the row- // highlighted for any of the fronted tabs. The label carries the {name}- // token, so the row reads as the user's own wake-word brand.+ // tab switch. "dictation" is the default landing.{id: "dictation",labelKey: "nav.voice",@@ -198,8 +238,6 @@ export const NAV_GROUPS: NavItem[][] = [// missing from a locale, and it is NOT interpolated.fallbackLabel: "Voice",},- // Appearance. Sits with the configuration group rather than with the- // content views: it changes how the app looks, not what it holds.{id: "wallpaper",labelKey: "nav.wallpaper",@@ -207,26 +245,13 @@ export const NAV_GROUPS: NavItem[][] = [fallbackLabel: "Wallpaper",},],- // 4) Social links + in-app feedback.- [- { id: "socials", labelKey: "nav.socials", icon: Share2 },- { id: "feedback", labelKey: "nav.feedback", icon: MessageSquareWarning },- ],- // 5) The Agentic IDE — its own bottom group on purpose. It is not one more- // page among the tools above: opening it puts real coding agents to work in a- // folder and can narrow the assistant to that workspace, so it sits apart- // with its own divider rather than blending into the list.- [- {- id: "agentic-ide",- labelKey: "nav.agentic_ide",- icon: MessagesSquare,- fallbackLabel: "Agentic IDE",- // The classic grid is the same destination as far as the row is- // concerned: someone who stepped back into it should still see where- // they are in the navigation.- matchIds: ["agentic-ide", "chat-workspace", "agentic-ide-classic"],- beta: true,- },- ],+];++/**+ * Feedback lives in the sidebar's footer beside the brain card, not in a+ * group: it is a door out of the product, not a section of it. Kept as a+ * `NavItem` so the deck and the rail can still list it from one definition.+ */+export const NAV_FOOTER_ITEMS: NavItem[] = [+ { id: "feedback", labelKey: "nav.feedback", icon: MessageSquareWarning },];diff --git a/jarvis/ui/web/frontend/src/components/ui/badge.tsx b/jarvis/ui/web/frontend/src/components/ui/badge.tsxindex d84e939fa6..d9f8ca1c27 100644--- a/jarvis/ui/web/frontend/src/components/ui/badge.tsx+++ b/jarvis/ui/web/frontend/src/components/ui/badge.tsx@@ -3,43 +3,42 @@ import { cva, type VariantProps } from "class-variance-authority";import { cn } from "@/lib/utils";/**- * A chip. Pill-shaped, 11px, and quiet unless it is carrying a status.+ * A badge: 24 px tall, 8 px radius, the xs step, and quiet unless it carries+ * a status.*- * The default used to be `bg-foreground/70` — a near-white slab that made a- * neutral label the loudest object on a screen and inverted the ink ramp. It- * now rests on --secondary, the same lift every other small surface uses, and- * the three variants that mean something (`life`, `fault`, `degraded`) are the- * only ones carrying hue. A status is never drawn in --foreground or- * --primary: white "cancelled" outshouting a green "running" is exactly the- * inversion those variants exist to prevent.+ * The neutral default rests on --secondary with meta ink. The four coloured+ * variants (`accent`, `success`, `warning`, `destructive`) are SOFT washes —+ * the hue at 12 % under text in the hue — so a status never becomes the+ * loudest object on a screen the way a solid fill did. `solid` is the rare+ * deliberate --primary fill for the one chip that must be looked at.*- * `solid` is the rare deliberate --primary fill; reach for it when a chip is- * genuinely the one thing to look at, never as a default.- *- * A badge does not hover: it is a label, not a control. It is also the ONE- * place in the product where `uppercase` is allowed, and callers opt into it.+ * The older names (`life`, `fault`, `degraded`, `info`) stay as aliases onto+ * the soft variants so their call sites keep compiling and land on the new+ * look without an edit. A badge does not hover: it is a label, not a control.+ * It is also the ONE place `uppercase` is allowed, and callers opt into it.*/const badgeVariants = cva(- "inline-flex items-center rounded-full border px-2.5 py-0.5 text-[11px] font-medium transition-colors ring-offset-background focus:outline-none focus:ring-2 focus:ring-border-strong focus:ring-offset-2",+ "inline-flex h-6 items-center gap-1 whitespace-nowrap rounded-md border px-2 text-xs font-medium ring-offset-background focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 [&>svg]:h-3.5 [&>svg]:w-3.5 [&>svg]:shrink-0",{variants: {variant: {- default: "border-border bg-secondary text-foreground",+ default: "border-border bg-secondary text-muted-foreground",secondary: "border-transparent bg-secondary text-muted-foreground",outline: "border-border-strong bg-transparent text-muted-foreground",solid: "border-transparent bg-primary text-primary-foreground",+ /** Informational: selected, new, a count worth noting. */+ accent: "border-accent/20 bg-accent-soft text-accent",/** Running, live, connected, on, passed. */- life: "border-transparent bg-success text-primary-foreground",+ success: "border-success/20 bg-success/[0.12] text-success",+ /** Paused, stale, partial, over quota. */+ warning: "border-warning/20 bg-warning/[0.12] text-warning",/** Failed, blocked, disconnected, error. */- fault: "border-transparent bg-destructive text-destructive-foreground",- /** Stale, partial, needs attention. */- degraded: "border-transparent bg-warning text-primary-foreground",- info: "border-transparent bg-info text-info-foreground",- /**- * Retained so the ~30 existing call sites keep compiling; `fault` is- * the name to use for new code.- */- destructive: "border-transparent bg-destructive text-destructive-foreground",+ destructive: "border-destructive/20 bg-destructive/[0.12] text-destructive",+ // Aliases retained for existing call sites; use the four above.+ life: "border-success/20 bg-success/[0.12] text-success",+ fault: "border-destructive/20 bg-destructive/[0.12] text-destructive",+ degraded: "border-warning/20 bg-warning/[0.12] text-warning",+ info: "border-accent/20 bg-accent-soft text-accent",},},defaultVariants: { variant: "default" },diff --git a/jarvis/ui/web/frontend/src/components/ui/button.tsx b/jarvis/ui/web/frontend/src/components/ui/button.tsxindex 7d9ae5dec7..b63a30b9ab 100644--- a/jarvis/ui/web/frontend/src/components/ui/button.tsx+++ b/jarvis/ui/web/frontend/src/components/ui/button.tsx@@ -4,35 +4,38 @@ import { cva, type VariantProps } from "class-variance-authority";import { cn } from "@/lib/utils";/*- * The interaction ladder only ever goes UP.+ * The ONE button. Weight 500, 8 px radius, the base type step, and a focus+ * ring in the accent — the same ring every interactive element in the app+ * wears, so keyboard focus is one colour everywhere.*- * `ghost` and `outline` used to hover to --accent, which in dark mode is pure- * white: brushing a toolbar painted a white slab where a quiet control had- * been. Both now answer with --secondary, one step up the surface ladder in- * either theme, and keep their ink at --foreground.+ * The interaction ladder only ever goes UP: `outline`, `ghost` and `secondary`+ * answer a pointer with the next surface step, never with --primary (which in+ * dark mode is near-white and would paint a slab under the cursor).*- * Focus is a --border-strong ring rather than --ring: a ring is a rim, and a- * rim is never the brightest thing on the screen.+ * default the primary action: white on dark, black on light+ * secondary a lifted control that hovers to --surface-raised+ * outline a strong rim on a transparent ground+ * ghost no ground at rest, --secondary under the pointer+ * link the accent, underlined on hover+ * destructive red fill; only for the action that deletes or stops*/const buttonVariants = cva(- "inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-[background-color,border-color,color,transform] duration-150 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-border-strong focus-visible:ring-offset-2 motion-safe:active:scale-[0.98] disabled:pointer-events-none disabled:opacity-50",+ "inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-base font-medium ring-offset-background transition-[background-color,border-color,color,transform] duration-150 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 motion-safe:active:scale-[0.98] disabled:pointer-events-none disabled:opacity-50 [&>svg]:h-4 [&>svg]:w-4 [&>svg]:shrink-0",{variants: {variant: {default: "bg-primary text-primary-foreground hover:bg-primary/90",destructive: "bg-destructive text-destructive-foreground hover:bg-destructive/90",- outline: "border border-border-strong bg-transparent hover:bg-secondary hover:text-foreground",- // A lift-resting control answers with the float step above it.- secondary: "bg-secondary text-secondary-foreground hover:bg-popover",- ghost: "hover:bg-secondary hover:text-foreground",- // --primary is a fill, never running text, so a link button reads in- // body ink and marks itself with the underline instead.- link: "text-foreground underline-offset-4 hover:underline",+ outline:+ "border border-border-strong bg-transparent text-foreground hover:bg-secondary",+ secondary: "bg-secondary text-secondary-foreground hover:bg-surface-raised",+ ghost: "text-foreground hover:bg-secondary",+ link: "h-auto px-0 text-accent underline-offset-4 hover:underline",},size: {- default: "h-9 px-4 py-2",- sm: "h-8 rounded-md px-3 text-[13px]",- lg: "h-10 rounded-md px-8",+ default: "h-9 px-4",+ sm: "h-8 px-3 text-sm",+ lg: "h-10 px-5",icon: "h-9 w-9",},},diff --git a/jarvis/ui/web/frontend/src/components/ui/card.tsx b/jarvis/ui/web/frontend/src/components/ui/card.tsxindex 7edf79463b..99f5d6c3bb 100644--- a/jarvis/ui/web/frontend/src/components/ui/card.tsx+++ b/jarvis/ui/web/frontend/src/components/ui/card.tsx@@ -4,27 +4,31 @@ import { cn } from "@/lib/utils";/*** The one card recipe: an OBJECT sized to its content, never a wall.*- * --card may only paint something bounded by its content or by a max-width. A- * wrapper carrying `flex-1`, `h-full`, `w-full` or `inset-0` is a full-bleed- * region and belongs at --background or --sidebar; putting this component- * around one is the mistake that produced "grey slabs" twice.+ * `rounded-lg border border-border bg-card`, no shadow — elevation in this+ * system is the surface colour (canvas → sidebar → card → popover), and a+ * shadow on a resting object is a second, contradicting depth cue. Shadows+ * belong to popovers, dialogs and the composer only.*- * Separation is fill first: the surface does the work, the hairline only- * finishes the edge (--border is LIGHTER than --card, so on near-black it- * reads as a lit top edge rather than a drawn outline), and the rim shadow- * replaces the drop shadow that is mathematically invisible on this ground.- * No `shadow-float` here — that belongs to menus, dialogs and tooltips.+ * `interactive` marks a card that is pressed as a whole: the rim steps up to+ * --border-strong under the pointer and the cursor says so. A card that holds+ * its own buttons is not interactive — the buttons are.*- * The 20px block padding lives on the parts rather than on the root, so a card- * can also hold a full-bleed child — a table, a list, a code block — without- * cancelling an outer padding with a negative margin.+ * The 20 px block padding lives on the parts rather than on the root, so a+ * card can also hold a full-bleed child — a table, a list, a code block —+ * without cancelling an outer padding with a negative margin.*/-const Card = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(- ({ className, ...props }, ref) => (+export interface CardProps extends React.HTMLAttributes<HTMLDivElement> {+ interactive?: boolean;+}++const Card = React.forwardRef<HTMLDivElement, CardProps>(+ ({ className, interactive = false, ...props }, ref) => (<divref={ref}className={cn(- "rounded-lg border border-border bg-card text-foreground shadow-rim",+ "rounded-lg border border-border bg-card text-foreground",+ interactive &&+ "cursor-pointer transition-colors hover:border-border-strong focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background",className,)}{...props}@@ -35,7 +39,7 @@ Card.displayName = "Card";const CardHeader = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(({ className, ...props }, ref) => (- <div ref={ref} className={cn("flex flex-col gap-1.5 p-5", className)} {...props} />+ <div ref={ref} className={cn("flex flex-col gap-1 p-5 pb-3", className)} {...props} />),);CardHeader.displayName = "CardHeader";@@ -44,7 +48,7 @@ const CardTitle = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivE({ className, ...props }, ref) => (<divref={ref}- className={cn("text-[15px] font-semibold text-foreground-strong", className)}+ className={cn("text-lg font-semibold text-foreground-strong", className)}{...props}/>),@@ -53,7 +57,7 @@ CardTitle.displayName = "CardTitle";const CardDescription = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(({ className, ...props }, ref) => (- <div ref={ref} className={cn("text-[13px] text-muted-foreground", className)} {...props} />+ <div ref={ref} className={cn("text-base text-muted-foreground", className)} {...props} />),);CardDescription.displayName = "CardDescription";diff --git a/jarvis/ui/web/frontend/src/components/ui/empty-state.tsx b/jarvis/ui/web/frontend/src/components/ui/empty-state.tsxnew file mode 100644index 0000000000..f76143d188--- /dev/null+++ b/jarvis/ui/web/frontend/src/components/ui/empty-state.tsx@@ -0,0 +1,56 @@+import type { ReactNode } from "react";++import { cn } from "@/lib/utils";++/**+ * The "there is nothing here yet" surface, for every view that can be empty.+ *+ * Centred, capped at 420 px, with the glyph in a 48 px --secondary square so+ * the state reads as designed rather than as a section that failed to load.+ * Two jobs: say what will appear here, and offer the action that makes it+ * appear — at most two, the first of them primary.+ *+ * Locale-free: the caller passes already-translated strings.+ */+export function EmptyState({+ icon,+ title,+ description,+ actions,+ className,+}: {+ /** A lucide glyph; sized here, pass no size or colour class. */+ icon?: ReactNode;+ title: string;+ /** One or two sentences: what appears here, and when. Already translated. */+ description?: string;+ /** Up to two controls — a `default` Button first, an `outline` one second. */+ actions?: ReactNode;+ className?: string;+}) {+ return (+ <div+ data-testid="empty-state"+ className={cn(+ "mx-auto flex w-full max-w-[420px] flex-col items-center gap-4 py-12 text-center",+ className,+ )}+ >+ {icon && (+ <span+ aria-hidden+ className="flex h-12 w-12 items-center justify-center rounded-lg bg-secondary text-muted-foreground [&>svg]:h-5 [&>svg]:w-5"+ >+ {icon}+ </span>+ )}+ <div className="flex flex-col gap-1">+ <p className="text-lg font-semibold text-foreground-strong">{title}</p>+ {description && (+ <p className="text-base text-muted-foreground">{description}</p>+ )}+ </div>+ {actions && <div className="flex flex-wrap items-center justify-center gap-2">{actions}</div>}+ </div>+ );+}diff --git a/jarvis/ui/web/frontend/src/components/ui/input.tsx b/jarvis/ui/web/frontend/src/components/ui/input.tsxnew file mode 100644index 0000000000..82ee8cff88--- /dev/null+++ b/jarvis/ui/web/frontend/src/components/ui/input.tsx@@ -0,0 +1,28 @@+import * as React from "react";+import { cn } from "@/lib/utils";++/**+ * The one text field: 36 px, 8 px radius, a --border-strong rim on the input+ * ground, faint-ink placeholder, and the accent on focus. Native `<input>`+ * only — a `<select>` is the `Select` primitive.+ */+const Input = React.forwardRef<HTMLInputElement, React.InputHTMLAttributes<HTMLInputElement>>(+ ({ className, type = "text", ...props }, ref) => (+ <input+ type={type}+ ref={ref}+ className={cn(+ "flex h-9 w-full rounded-md border border-border-strong bg-input px-3 text-base text-foreground",+ "placeholder:text-foreground-faint",+ "transition-colors focus-visible:border-accent focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background",+ "disabled:cursor-not-allowed disabled:opacity-50",+ "file:border-0 file:bg-transparent file:text-base file:font-medium",+ className,+ )}+ {...props}+ />+ ),+);+Input.displayName = "Input";++export { Input };diff --git a/jarvis/ui/web/frontend/src/components/ui/textarea.tsx b/jarvis/ui/web/frontend/src/components/ui/textarea.tsxnew file mode 100644index 0000000000..7262ff3705--- /dev/null+++ b/jarvis/ui/web/frontend/src/components/ui/textarea.tsx@@ -0,0 +1,27 @@+import * as React from "react";+import { cn } from "@/lib/utils";++/**+ * The one multi-line field. Same rim, ground, placeholder ink and focus ring+ * as `Input`; the base step with a 20 px line by default, and callers that+ * hold running prose raise it to `text-base leading-7`.+ */+const Textarea = React.forwardRef<+ HTMLTextAreaElement,+ React.TextareaHTMLAttributes<HTMLTextAreaElement>+>(({ className, ...props }, ref) => (+ <textarea+ ref={ref}+ className={cn(+ "flex min-h-[80px] w-full rounded-md border border-border-strong bg-input px-3 py-2 text-base text-foreground",+ "placeholder:text-foreground-faint",+ "transition-colors focus-visible:border-accent focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background",+ "disabled:cursor-not-allowed disabled:opacity-50",+ className,+ )}+ {...props}+ />+));+Textarea.displayName = "Textarea";++export { Textarea };diff --git a/jarvis/ui/web/frontend/src/i18n/locales/de.json b/jarvis/ui/web/frontend/src/i18n/locales/de.jsonindex 635ef1ff1e..6a2c7d84e4 100644--- a/jarvis/ui/web/frontend/src/i18n/locales/de.json+++ b/jarvis/ui/web/frontend/src/i18n/locales/de.json@@ -103,6 +103,10 @@"taskbar": "Taskbar","contacts": "Kontakte","feedback": "Feedback",+ "group_workspace": "Arbeitsbereich",+ "group_tools": "Werkzeuge",+ "group_you": "Du",+ "group_system": "System","agent_instructions": "{name}.md","wallpaper": "Hintergrund","marketplace": "Marketplace",diff --git a/jarvis/ui/web/frontend/src/i18n/locales/en.json b/jarvis/ui/web/frontend/src/i18n/locales/en.jsonindex 6e74ee5575..48c64ffe56 100644--- a/jarvis/ui/web/frontend/src/i18n/locales/en.json+++ b/jarvis/ui/web/frontend/src/i18n/locales/en.json@@ -103,6 +103,10 @@"taskbar": "Taskbar","contacts": "Contacts","feedback": "Feedback",+ "group_workspace": "Workspace",+ "group_tools": "Tools",+ "group_you": "You",+ "group_system": "System","agent_instructions": "{name}.md","wallpaper": "Wallpaper","marketplace": "Marketplace",@@ -5259,12 +5263,23 @@"name": "Name","name_placeholder": "Scout","title_field": "Title",- "title_placeholder": "Research scout",+ "title_placeholder": "Research, marketing, admin","title_fallback": "Specialist","description": "Description",- "description_placeholder": "What this agent owns, how it works, and where it must ask first.",- "description_hint": "Standing instructions — the agent's own rulebook. One-off tasks go in the chat.",- "advanced": "Advanced",+ "description_placeholder": "What this agent is for.",+ "description_hint": "Standing instructions — the agent's own rulebook. Everything else you tell it in its chat.",+ "brain": "Runs on",+ "brain_hint": "Only what is connected on this machine is listed. Connect more subscriptions or API keys on the Agents board behind this dialog.",+ "nothing_connected": "Nothing is connected yet. Connect a subscription or an API key on the Agents board behind this dialog — until then the agent runs on Jarvis' default brain.",+ "kind_subscription": "Subscription",+ "kind_api": "API key",+ "kind_local": "Local",+ "account": "Login",+ "account_active": "The active login",+ "effort": "Effort",+ "focus_title": "Focus",+ "grant_mode_hint": "Everything Jarvis has connected — skills, plugins, MCP servers, memory — stays available; the focus only says what comes first.",+ "advanced": "More","provider": "Provider","provider_unknown": "No provider catalog reachable — the agent keeps Jarvis' default brain.","catalog_loading": "Loading the provider catalog…",diff --git a/jarvis/ui/web/frontend/src/i18n/locales/es.json b/jarvis/ui/web/frontend/src/i18n/locales/es.jsonindex 3eb150f227..fb9c0b5397 100644--- a/jarvis/ui/web/frontend/src/i18n/locales/es.json+++ b/jarvis/ui/web/frontend/src/i18n/locales/es.json@@ -103,6 +103,10 @@"taskbar": "Barra","contacts": "Contactos","feedback": "Comentarios",+ "group_workspace": "Espacio de trabajo",+ "group_tools": "Herramientas",+ "group_you": "Tú",+ "group_system": "Sistema","agent_instructions": "{name}.md","wallpaper": "Fondo de pantalla","marketplace": "Marketplace",diff --git a/jarvis/ui/web/frontend/src/index.css b/jarvis/ui/web/frontend/src/index.cssindex 0e88189c78..d791b6a2ee 100644--- a/jarvis/ui/web/frontend/src/index.css+++ b/jarvis/ui/web/frontend/src/index.css@@ -1,11 +1,11 @@-/* The three interface families ship WITH the application. The desktop app is+/* The two interface families ship WITH the application. The desktop app isa WebView that regularly starts with no network; a remote font import meantevery such launch rendered the whole product in Segoe UI / system fallbacks— a different typeface at a different width on every surface at once, whichis one of the two things behind "you cannot recognise the type".Inter is the variable build (one file per script subset, every weight);- the two others are static cuts of the weights the scale actually uses.+ JetBrains Mono ships as static cuts of the weights the scale uses.Vite resolves these bare specifiers and fingerprints the woff2 files intothe bundle. Licences: SIL OFL 1.1 — see public/THIRD_PARTY_NOTICES.txt. */@import "@fontsource-variable/inter/index.css";@@ -13,9 +13,6 @@@import "@fontsource/jetbrains-mono/500.css";@import "@fontsource/jetbrains-mono/600.css";@import "@fontsource/jetbrains-mono/700.css";-@import "@fontsource/space-grotesk/500.css";-@import "@fontsource/space-grotesk/600.css";-@import "@fontsource/space-grotesk/700.css";@tailwind base;@tailwind components;@@ -478,9 +475,10 @@ label,*/:root {/* --- Light: the same system, the value scale inverted ------------------- Warm paper, warm near-black ink. Every role below has exactly the job- its dark twin has; only the brightness swaps. Objects rise TOWARD white- and interaction answers by going DOWN into warm grey — the role is "the+ White room, neutral near-black ink — the same zero-saturation system+ as dark. Every role below has exactly the job its dark twin has; only+ the brightness swaps. Objects sit ON white and are edged by --border;+ interaction answers by going DOWN into neutral grey — the role is "thesurface that responds", not "the lighter surface".The one rule that governs both themes holds here too: lift scales@@ -489,31 +487,32 @@ label,wider than ~720px never rises above --sidebar. *//* --- The surface ladder ---------------------------------------------- */- --background: 60 16% 96%; /* #F7F7F4 — the room, every full-bleed region */- --sidebar: 50 17% 93%; /* #F1F0EA — the rail, standing chrome */- --card: 0 0% 100%; /* #FFFFFF — an OBJECT: card, bubble, panel */- --card-foreground: 53 12% 13%;- --secondary: 50 11% 89%; /* #E6E5E0 — the LIFT: hover, selected, tile */- --secondary-foreground: 50 13% 8%; /* a selected label is ink-strong */- --muted: 50 11% 89%; /* = --secondary: the ~65 hover:bg-muted sites read this */- --input: 50 11% 89%; /* a field is a lift surface */+ --background: 0 0% 100%; /* #FFFFFF — the room, every full-bleed region */+ --sidebar: 0 0% 98%; /* #FAFAFA — the rail, standing chrome */+ --card: 0 0% 100%; /* #FFFFFF — an OBJECT: card, bubble, panel (edged by --border) */+ --card-foreground: 0 0% 9%;+ --secondary: 0 0% 96%; /* #F5F5F5 — the LIFT: hover, selected, tile */+ --secondary-foreground: 0 0% 9%; /* a selected label is ink-strong */+ --muted: 0 0% 96%; /* = --secondary: the ~65 hover:bg-muted sites read this */+ --input: 0 0% 96%; /* a field is a lift surface */--popover: 0 0% 100%; /* #FFFFFF — the floating layer, plus .shadow-float */- --popover-foreground: 53 12% 13%;- --user-bubble: 50 11% 89%; /* #E6E5E0 — the speaker: quiet lift, strong ink */- --user-bubble-foreground: 50 13% 8%;-- /* --- Rims. Two values, because one border cannot do two jobs ---------- */- --border: 45 10% 86%; /* #DFDDD5 — a hairline that can actually be seen */- --border-strong: 45 8% 72%; /* #BDBAB0 — composer outline, float rim, focus */+ --popover-foreground: 0 0% 9%;+ --user-bubble: 0 0% 96%; /* #F5F5F5 — the speaker: quiet lift, strong ink */+ --user-bubble-foreground: 0 0% 9%;+ --surface-raised: 0 0% 93%; /* #EDEDED — pressed/selected rows, code blocks */+ --border: 0 0% 90%; /* #E5E5E5 — hairline */+ --border-strong: 0 0% 82%; /* #D1D1D1 — input borders, focused card, float rim *//* --- Ink. Four steps, one job each ------------------------------------The split is what stops a single ink slab from reading as harsh: withno hierarchy behind it, one maximum-contrast value across a whole apphas nothing to justify its weight. */- --foreground-strong: 50 13% 8%; /* #171610 — headings, headline numbers */- --foreground: 53 12% 13%; /* #26251E — body, labels, running text */- --muted-foreground: 46 6% 38%; /* #66635A — meta, timestamps, table heads */- --faint-foreground: 44 6% 52%; /* #8B877C — placeholder + disabled ONLY */+ --foreground-strong: 0 0% 4%; /* #0A0A0A — headings, headline numbers */+ --foreground: 0 0% 9%; /* #171717 — body, labels, running text */+ --muted-foreground: 0 0% 40%; /* #666666 — labels, meta, table heads (5.7:1) */+ --faint-foreground: 0 0% 60%; /* #999999 — placeholder + disabled ONLY */+ --foreground-faint: 0 0% 60%; /* = --faint-foreground; the Tailwind name */+ --foreground-secondary: 0 0% 32%; /* #525252 — body on cards, descriptions *//* --primary is a FILL, not an ink: buttons, marks, active indicators,focus rings. It never paints running text, a byline or a decorative@@ -521,11 +520,11 @@ label,above `ink` the way the dark one has white above 96% — so --primary and--foreground share a value here, and emphasis in running text iscarried by weight and by --foreground-strong instead. 14.3:1 on paper. */- --primary: 53 12% 13%;- --primary-foreground: 60 16% 96%; /* the paper, not pure white */- --accent: 206 66% 45%; /* #2778C1 — the SIGNAL: links, focus, active marks */- --accent-foreground: 0 0% 99%;- --ring: 206 66% 45%;+ --primary: 0 0% 9%;+ --primary-foreground: 0 0% 100%;+ --accent: 212 92% 50%; /* #0A6FF5 — the SIGNAL: links, focus, active, selected, info */+ --accent-foreground: 0 0% 100%;+ --ring: 212 92% 50%;/* --- Status. Colour has jobs again (v3.1, 2026-09-01) ------------------The all-neutral product read as dead. Cursor's Anysphere theme is the@@ -533,10 +532,10 @@ label,semantic set — green life, rose fault, amber degraded, cyan info —plus coloured diffs and a coloured run graph. Same meanings in boththemes; the lightness is tuned per ground. */- --success: 156 100% 22%; /* #007041 — life */- --destructive: 344 78% 42%; /* #BE1744 — fault */+ --success: 142 72% 29%; /* #15803D — life */+ --destructive: 0 72% 45%; /* #C52020 — fault */--destructive-foreground: 0 0% 100%;- --warning: 38 100% 32%; /* #A46700 — degraded */+ --warning: 32 95% 38%; /* #BD5E05 — degraded *//* Added / removed code in a chat diff. Green and red were always theweaker half of this signal: a diff already carries + and - in its@@ -555,18 +554,18 @@ label,/* The accent as raw channels, for glows / grid lines / halos. Now the inkitself: on paper a "glow" means a faint darkening, not a light source,so every grid and halo built from this reads as a pencil rule. */- --accent-rgb: 39 120 193;+ --accent-rgb: 10 111 245;/* What a translucent overlay DARKENS with (backdrops, vignettes, shadows).Warm near-black rather than pure black, so a scrim over paper does notturn grey-blue. */- --scrim-rgb: 38 37 30;+ --scrim-rgb: 0 0 0;/* What a translucent overlay LIGHTENS with (hatching, glass rims, sheen).In light mode "highlight" means going darker, so this is the ink colour —the two swap roles between themes, which is exactly the point. */- --sheen-rgb: 38 37 30;+ --sheen-rgb: 23 23 23;/* The ground colour of the app shell as channels, for glass pills thatmust read as "the app, blurred" rather than a grey rectangle. */- --shell-rgb: 247 247 244;+ --shell-rgb: 255 255 255;/* --- Glass alphas — WALLPAPER PATH ONLY -------------------------------These are read exclusively by the readability floor further down, which@@ -586,13 +585,13 @@ label,a force graph needs its own depth cue, so it gets its own ground, itsown centre-of-gravity glow, and its own dot field. Light mode exposesthe wallpaper while retaining ink-dark stars and ink state cues. */- --stage-bg: 60 16% 96%;- --stage-dot-rgb: 38 37 30;+ --stage-bg: 0 0% 100%;+ --stage-dot-rgb: 23 23 23;--stage-dot-strong: 0.28;--stage-dot-soft: 0.16;- --stage-wash-rgb: 38 37 30;+ --stage-wash-rgb: 23 23 23;--stage-wash-strength: 0.08;- --stage-vignette-rgb: 38 37 30;+ --stage-vignette-rgb: 23 23 23;--stage-vignette-strength: 0.1;/* --- Run-graph node categories (Visualization) -----------------------@@ -605,7 +604,7 @@ label,What survives is the only distinction worth a value: where a run startsand where it lands are full ink, everything in between is neutral. Onlythe card's icon tile reads `hsl(var(--viz-*))`. */- --viz-trigger: 206 66% 45%;+ --viz-trigger: 212 92% 50%;--viz-reasoning: 247 45% 52%;--viz-terminal: 184 67% 27%;--viz-file: 38 100% 32%;@@ -613,7 +612,7 @@ label,--viz-web: 184 67% 27%;--viz-integration: 315 75% 33%;--viz-agent: 330 60% 45%;- --viz-tool: 46 6% 38%;+ --viz-tool: 0 0% 40%;--viz-result: 156 100% 22%;--viz-deliverable: 38 100% 32%;@@ -634,20 +633,18 @@ label,themes. Trim (outline, arms) flips with the PAGE so the silhouettereads on paper and on charcoal. */--gigi-on-body: 0 0% 100%; /* white eyes on the black body */- --gigi-trim: 53 12% 13%; /* ink — reads on paper */+ --gigi-trim: 0 0% 9%; /* ink — reads on paper *//* Legacy aliases. The names outlived the colour — nothing yellow is leftin either theme — and no rule reads them any more either; they staydeclared until the last call sites that predate the token set arerenamed in their own pass, because a rename and a recolour in onecommit hides both. */- --jarvis-yellow: 38 37 30;- --jarvis-yellow-dim: 128 125 114;- --jarvis-grid: 45 10% 86%;-- /* --- Info. The fourth semantic hue — see .dark ------------------------- */- --info: 184 67% 27%; /* #176C74 */- --info-foreground: 0 0% 99%;+ --jarvis-yellow: 23 23 23;+ --jarvis-yellow-dim: 102 102 102;+ --jarvis-grid: 0 0% 90%;+ --info: 212 92% 50%; /* = --accent: one signal hue carries counts and hints too */+ --info-foreground: 0 0% 100%;}@@ -666,73 +663,71 @@ label,tile, a composer, a menu. A surface wider than ~720px never rises above--sidebar, whatever class it carries.- GRAPHITE, NOT VOID (v3, 2026-09-01). The 4 % room of the previous- ladder was rejected by the maintainer as "dead, like a skeleton",- "a funeral", "the type is illegible". Re-measured against the live- references that evening: Grok's stage sits at #181716 with its rail- at #131211, ChatGPT's rail at #131313 on a #000 page, Cursor's stage- at #141414 — none of them a void with grey floating in it. What all- three share is what the old ladder lacked: hairlines you can see- (white at 8–20 % alpha), muted ink at #9E–#AF rather than #94, and- body ink at #F0–#FC rather than #E6. So the room rises to 7 %, every- rim rises until it is visible on the surface it encloses, and ink- moves up two steps. Still neutral, still r = g = b, still no hue.-- 7 % background the room, every full-bleed region- 9 % sidebar the rail, standing chrome (edged)- 12 % card an OBJECT: card, bubble, composer, panel- 16 % secondary / input the LIFT: hover, selected, field, tile- 17 % border hairline — visible on room, rail AND card- 18 % user bubble the speaker: quiet fill, strong ink- 19 % popover the floating layer- 25 % border-strong composer outline, floating rim, focus- 48 % faint ink placeholder and disabled only- 64 % muted ink meta, timestamps, table heads- 94 % foreground body, labels, running text- 98 % foreground-strong headings, headline numbers- 100 % primary white — a fill, never an ink */+ NEUTRAL, COOL BLACK (v4, 2026-09-02). Re-measured against Cursor and+ Grok: a pure-neutral ladder from a 4 % room, with every step one notch+ lighter than the one under it, hairlines that read on every surface+ they enclose, and ink at 98 / 72 / 63 / 45 %. Elevation is the surface+ colour, never a shadow. One restrained accent (blue) marks links,+ focus, the active row and selection; green, amber and red are status+ only. r = g = b everywhere else.++ 4 % background the room, every full-bleed region+ 6 % sidebar the rail, standing chrome (edged)+ 9 % card an OBJECT: card, bubble, composer, panel+ 11 % popover the floating layer+ 12 % secondary / input the LIFT: hover, selected, field, tile+ 15 % surface-raised pressed / selected rows, code blocks+ 15 % border hairline — visible on room, rail AND card+ 22 % border-strong input borders, focused card, floating rim+ 45 % faint ink placeholder and disabled only+ 63 % muted ink labels, meta, table heads+ 72 % secondary ink body on cards, descriptions+ 98 % foreground body, labels, running text+ 100 % foreground-strong headings, headline numbers+ 98 % primary near-white — a fill, never an ink *//* --- The surface ladder ---------------------------------------------- */- --background: 0 0% 7%; /* #121212 — the room. One notch above the void */- --sidebar: 0 0% 9%; /* #171717 — the rail, one step up, with a visible edge */- --card: 0 0% 12%; /* #1F1F1F — an OBJECT: card, bubble, composer, panel */- --card-foreground: 0 0% 94%;- --secondary: 0 0% 16%; /* #292929 — the LIFT: hover, selected, tile, field */+ --background: 0 0% 4%; /* #0A0A0A — the room, every full-bleed region */+ --sidebar: 0 0% 6%; /* #0F0F0F — the rail, one step up, with a visible edge */+ --card: 0 0% 9%; /* #171717 — an OBJECT: card, bubble, composer, panel */+ --card-foreground: 0 0% 98%;+ --secondary: 0 0% 12%; /* #1F1F1F — the LIFT: hover, selected, tile, field */--secondary-foreground: 0 0% 98%; /* a selected label is ink-strong */- --muted: 0 0% 16%; /* = --secondary: the ~65 hover:bg-muted sites read this */- --input: 0 0% 16%; /* a field is a lift surface */- --popover: 0 0% 19%; /* #303030 — the floating layer, plus .shadow-float */- --popover-foreground: 0 0% 94%;- --user-bubble: 0 0% 18%; /* #2E2E2E — the speaker: quiet fill, strong ink */+ --muted: 0 0% 12%; /* = --secondary: the ~65 hover:bg-muted sites read this */+ --input: 0 0% 12%; /* a field is a lift surface */+ --popover: 0 0% 11%; /* #1C1C1C — the floating layer, plus .shadow-float */+ --popover-foreground: 0 0% 98%;+ --user-bubble: 0 0% 12%; /* #1F1F1F — the speaker: quiet fill, strong ink */--user-bubble-foreground: 0 0% 98%;/* --- Rims. A rim is LIGHTER than the fill it encloses ------------------On near-black a dark border around a dark fill reads as a wireframewith nothing inside it. Cursor's rims cover 0.2 % of its window — acomposer outline and a few dividers, not an edge around every card. */- --border: 0 0% 17%; /* #2B2B2B — a hairline that can actually be seen */- --border-strong: 0 0% 25%; /* #404040 — composer outline, float rim, focus */+ --surface-raised: 0 0% 15%; /* #262626 — pressed/selected rows, code blocks */+ --border: 0 0% 15%; /* #262626 — a hairline visible on room, rail AND card */+ --border-strong: 0 0% 22%; /* #383838 — input borders, focused card, float rim *//* --- Ink -------------------------------------------------------------- */- --foreground-strong: 0 0% 98%; /* #FAFAFA — headings, headline numbers */- --foreground: 0 0% 94%; /* #F0F0F0 — body, labels, running text */- --muted-foreground: 0 0% 64%; /* #A3A3A3 — meta, timestamps, table heads */- --faint-foreground: 0 0% 48%; /* #7A7A7A — placeholder + disabled ONLY */+ --foreground-strong: 0 0% 100%; /* #FFFFFF — headings, headline numbers */+ --foreground: 0 0% 98%; /* #FAFAFA — body, labels, running text */+ --muted-foreground: 0 0% 63%; /* #A1A1A1 — labels, meta, table heads (7.9:1 on #0A0A0A) */+ --faint-foreground: 0 0% 45%; /* #737373 — placeholder + disabled ONLY */+ --foreground-faint: 0 0% 45%; /* = --faint-foreground; the Tailwind name */+ --foreground-secondary: 0 0% 72%; /* #B8B8B8 — body on cards, descriptions *//* #FFFFFF, and a FILL. It sits one step past --foreground because anear-black ground has headroom above the ink ceiling; the light themehas none above `ink` and keeps the two equal. 19.8:1. */- --primary: 0 0% 100%;- --primary-foreground: 0 0% 7%; /* the room */- --accent: 208 33% 63%; /* #81A1C1 — the SIGNAL: links, focus, active marks */- --accent-foreground: 0 0% 8%;- --ring: 208 33% 63%;-- /* --- Status. Same meanings as light; Cursor Dark's own values ---------- */- --success: 143 43% 44%; /* #3FA266 — life: running, live, passed */- --destructive: 344 74% 58%; /* #E34671 — fault: failed, blocked, error */- --destructive-foreground: 0 0% 98%;- --warning: 36 76% 67%; /* #F1B467 — degraded: stale, modified, attention */+ --primary: 0 0% 98%;+ --primary-foreground: 0 0% 4%; /* the room */+ --accent: 212 100% 62%; /* #3D8BFF — the SIGNAL: links, focus, active, selected, info */+ --accent-foreground: 0 0% 100%;+ --ring: 212 100% 62%;+ --success: 142 70% 45%; /* #22C35E — life: running, live, passed */+ --destructive: 0 72% 51%; /* #DC2828 — fault: failed, blocked, error */+ --destructive-foreground: 0 0% 100%;+ --warning: 38 92% 50%; /* #F59E0B — degraded: stale, modified, attention *//* Added / removed code — see :root. The added line takes the lift so itcomes forward off the card it sits on; the deleted line takes the card@@ -743,17 +738,17 @@ label,--diff-del: 350 96% 71%; /* #FC6B83 */--diff-del-bg: 336 100% 36%; /* #B80049, read at 20 % */- --accent-rgb: 129 161 193;+ --accent-rgb: 61 139 255;--scrim-rgb: 0 0 0;--sheen-rgb: 255 255 255;- --shell-rgb: 18 18 18; /* the room, as channels */+ --shell-rgb: 10 10 10; /* the room, as channels *//* Wallpaper path only — see the note in :root. */--surface-card-alpha: 0.6;--surface-panel-alpha: 0.58;--surface-control-alpha: 0.72;- --stage-bg: 0 0% 7%;+ --stage-bg: 0 0% 4%;--stage-dot-rgb: 255 255 255;--stage-dot-strong: 0.5;--stage-dot-soft: 0.35;@@ -765,7 +760,7 @@ label,/* Run-graph node categories — see :root. Ignition and landing take thefull accent; every step between them is neutral and leaves the tellingto its glyph. */- --viz-trigger: 208 33% 63%; /* blue — the run's ignition */+ --viz-trigger: 212 100% 62%; /* blue — the run's ignition */--viz-reasoning: 247 90% 80%; /* lavender — thinking */--viz-terminal: 193 43% 67%; /* cyan — shell */--viz-file: 36 76% 67%; /* amber — writes */@@ -773,7 +768,7 @@ label,--viz-web: 193 43% 67%; /* cyan — fetch/web */--viz-integration: 308 18% 62%; /* mauve — MCP / external */--viz-agent: 317 63% 75%; /* pink — sub-agents */- --viz-tool: 0 0% 64%; /* neutral — unrecognised tools */+ --viz-tool: 0 0% 63%; /* neutral — unrecognised tools */--viz-result: 143 43% 44%; /* green — the run's landing */--viz-deliverable: 36 76% 67%; /* amber — files left behind */@@ -783,14 +778,14 @@ label,/* Legacy aliases — see :root. Declared, read by nothing. */--jarvis-yellow: 255 255 255;- --jarvis-yellow-dim: 163 163 163;- --jarvis-grid: 0 0% 17%;+ --jarvis-yellow-dim: 161 161 161;+ --jarvis-grid: 0 0% 15%;/* --- Info. The fourth semantic hue --------------------------------------Cursor's badge / untracked / find-match cyan (#88C0D0). It says "notethis" without saying "something is wrong": counts, new items, hints. */- --info: 193 43% 67%;- --info-foreground: 0 0% 8%;+ --info: 212 100% 62%; /* = --accent: one signal hue carries counts and hints too */+ --info-foreground: 0 0% 100%;}}@@ -815,6 +810,10 @@ label,body {@apply bg-background text-foreground antialiased;+ /* The base step of the six-step scale (text-base = 14 / 20). Set on body+ rather than html so rem-based spacing keeps its 16 px root. */+ font-size: 14px;+ line-height: 20px;overflow-x: hidden;}}@@ -830,9 +829,9 @@ label,back to Consolas. Unlayered CSS after `@tailwind utilities` wins that tiefor good, whatever Tailwind generates.- Interface = Inter, display = Space Grotesk (section titles and headline- numbers only), code = JetBrains Mono. See the known-gap note at the top of- this file: they are still fetched from a remote host.+ Interface AND display = Inter (display is the same family at 600 with+ tighter tracking — one voice, no second typeface), code = JetBrains Mono.+ Both ship in the bundle; see the note at the top of this file.---------------------------------------------------------------------- */body {font-family:@@ -853,8 +852,9 @@ body {}.font-display {- font-family: "Space Grotesk", "Inter Variable", "Inter", ui-sans-serif, system-ui, sans-serif;- font-feature-settings: "ss01", "ss02";+ font-family: "Inter Variable", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;+ font-feature-settings: "cv02", "cv03", "cv04", "cv11";+ font-weight: 600;letter-spacing: -0.02em;}@@ -1082,8 +1082,8 @@ body {:root.jarvis-wallpaper:not(.dark) .jarvis-section-stage,:root.jarvis-wallpaper:not(.dark) .jarvis-nav-surface,:root.jarvis-wallpaper:not(.dark) .jarvis-shell-surface {- --muted-foreground: 240 9% 18%;- --border: 40 12% 46%;+ --muted-foreground: 0 0% 18%;+ --border: 0 0% 46%;/* Subtitle-grade outline, not a soft glow: eight hard offsets close afull-opacity ivory ring around every glyph — the only treatment thatkeeps dark ink legible when the artwork behind it is busy or dark.@@ -1124,7 +1124,7 @@ body {above (the stage floor alone was tuned for text on glass cards). */:root.jarvis-wallpaper:not(.dark) [data-testid="agentic-toolbar"],:root.jarvis-wallpaper:not(.dark) [data-testid="agentic-chat-rail"] {- --muted-foreground: 240 9% 18%;+ --muted-foreground: 0 0% 18%;text-shadow:1px 0 0 rgb(var(--shell-rgb)),-1px 0 0 rgb(var(--shell-rgb)),@@ -1238,23 +1238,24 @@ body {paper it was never visible at all. Hover is one step of the fill, which isthe same move every other interactive surface in the app makes. */.btn-primary {- @apply inline-flex items-center justify-center gap-2 rounded-full px-6 py-3 font-medium+ @apply inline-flex h-9 items-center justify-center gap-2 rounded-md px-4 text-base font-mediumbg-primary text-primary-foreground- transition-colors duration-200+ transition-colors duration-150hover:bg-primary/90- active:scale-[0.98] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring;+ active:scale-[0.98] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background;}.btn-ghost {- @apply inline-flex items-center justify-center gap-2 rounded-full px-6 py-3 font-medium- text-foreground border border-border- transition-colors duration-200+ @apply inline-flex h-9 items-center justify-center gap-2 rounded-md px-4 text-base font-medium+ text-foreground border border-border-strong+ transition-colors duration-150hover:bg-secondary- active:scale-[0.98] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring;+ active:scale-[0.98] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background;}.btn-ghost:hover {border-color: hsl(var(--border-strong));+ background-color: hsl(var(--secondary));}/* A chip is a lift surface with meta ink on it. The 60 % wash it used to@@ -1262,8 +1263,8 @@ body {expressed as opacity; the border stays because several call sites answera hover on it. */.chip {- @apply inline-flex items-center gap-2 rounded-full border border-border- px-3 py-1 text-xs font-medium text-muted-foreground;+ @apply inline-flex h-6 items-center gap-1.5 rounded-md border border-border+ px-2 text-xs font-medium text-muted-foreground;background-color: hsl(var(--secondary));}@@ -1271,8 +1272,8 @@ body {ink instead of meta: a state marker may never be painted in --primary,which on a black ground would make it the loudest mark on the screen. */.chip-yellow {- @apply inline-flex items-center gap-2 rounded-full border border-border- px-3 py-1 text-xs font-semibold;+ @apply inline-flex h-6 items-center gap-1.5 rounded-md border border-border+ px-2 text-xs font-medium;background-color: hsl(var(--secondary));color: hsl(var(--foreground-strong));}@@ -1718,7 +1719,7 @@ body {) {/* Firmer than the stage's hairline: this edge separates the overlay fromwhatever it happens to hang over, not two cards on one ground. */- --border: 40 12% 52%;+ --border: 0 0% 52%;background-color: hsl(var(--popover) / 0.97);-webkit-backdrop-filter: blur(16px) saturate(1.02);backdrop-filter: blur(16px) saturate(1.02);diff --git a/jarvis/ui/web/frontend/src/lib/utils.ts b/jarvis/ui/web/frontend/src/lib/utils.tsindex b500fb167f..aa46f0ddc8 100644--- a/jarvis/ui/web/frontend/src/lib/utils.ts+++ b/jarvis/ui/web/frontend/src/lib/utils.ts@@ -1,5 +1,23 @@import { clsx, type ClassValue } from "clsx";-import { twMerge } from "tailwind-merge";+import { extendTailwindMerge } from "tailwind-merge";++/*+ * tailwind-merge only knows Tailwind's stock size names. Anything else that+ * starts with `text-` it files as a text COLOUR, so `cn("text-body",+ * "text-muted-foreground")` used to return just the colour and the element+ * fell back to the inherited size. Teaching it the design system's aliases+ * (display … micro) lets every component compose with `cn` again instead of+ * the `clsx` workaround several of them carry.+ */+const twMerge = extendTailwindMerge({+ extend: {+ classGroups: {+ "font-size": [+ { text: ["display", "page", "title", "reading", "body", "meta", "micro"] },+ ],+ },+ },+});export function cn(...inputs: ClassValue[]): string {return twMerge(clsx(inputs));diff --git a/jarvis/ui/web/frontend/tailwind.config.ts b/jarvis/ui/web/frontend/tailwind.config.tsindex 2f3db10c07..d0d85d7386 100644--- a/jarvis/ui/web/frontend/tailwind.config.ts+++ b/jarvis/ui/web/frontend/tailwind.config.ts@@ -101,6 +101,24 @@ const config: Config = {"border-strong": "hsl(var(--border-strong))","foreground-strong": "hsl(var(--foreground-strong))","faint-foreground": "hsl(var(--faint-foreground))",+ /*+ * v4 (2026-09-02) — the neutral ladder's three new steps.+ *+ * surface-raised pressed / selected rows, code blocks: one+ * step above --secondary.+ * foreground-secondary body on cards, descriptions: between body+ * ink and meta ink.+ * foreground-faint the same value as faint-foreground under the+ * name the scale reads top-down (foreground →+ * foreground-secondary → muted-foreground →+ * foreground-faint).+ * accent-soft the selected-row wash: the accent at 12 %,+ * the only alpha surface the system keeps.+ */+ "surface-raised": "hsl(var(--surface-raised))",+ "foreground-secondary": "hsl(var(--foreground-secondary))",+ "foreground-faint": "hsl(var(--foreground-faint))",+ "accent-soft": "rgb(var(--accent-rgb) / 0.12)",},/** The three families, restated here so the utility layer and the base@@ -124,12 +142,15 @@ const config: Config = {"Segoe UI","sans-serif",],+ // Inter only (v4): `display` is the same family — the class survives+ // for its call sites and carries weight + tracking from index.css.display: [- "Space Grotesk","Inter Variable","Inter","ui-sans-serif","system-ui",+ "-apple-system",+ "Segoe UI","sans-serif",],mono: [@@ -141,38 +162,40 @@ const config: Config = {],},/*- * The seven-step type scale, each step carrying its own line height and- * tracking so a size cannot be picked without the leading that goes with- * it.- *- * No named scale existed, so authors reached for arbitrary values: of- * ~2,956 explicit size classes, 2,181 are 12px or under, bottoming out at- * a single `text-[7px]`. Named steps give the seven sizes the design- * actually has, and 11px (`text-micro`) is the hard floor — there is no- * step below it to reach for.+ * The SIX-step type scale (v4, 2026-09-02). Tailwind's own names carry+ * it, so `text-sm` / `text-base` land on the scale instead of on the+ * framework's 16 px default, and 12 px is the floor — there is no step+ * below it to reach for.*- * Tailwind's own xs/sm/base/lg/... entries are deliberately left intact:- * thousands of call sites use them and this wave does not migrate them.+ * xs 12/16 badges, keyboard hints, table meta — the ONLY 12 px+ * sm 13/18 dense table cells, chip labels, code+ * base 14/20 default body, sidebar items, inputs, buttons+ * lg 16/24 card titles, list item titles, composer text+ * xl 20/28 view titles (the h1 inside a view)+ * 2xl 28/34 hero / home greeting only*- * display 24/1.2 section headline, the largest thing on a screen- * page 20/1.3 the title of a view- * title 15/1.4 card and row titles (600)- * reading 15/1.6 running prose — chat, docs, descriptions- * body 14/1.5 the default for everything else- * meta 13/1.45 timestamps, table heads, secondary detail- * micro 11/1.4 badges and dense labels. THE FLOOR.+ * The earlier named steps (display … micro) stay as ALIASES onto these+ * six so their ~1,100 call sites keep compiling and land on the scale:+ * display→2xl, page→xl, title/reading→lg, body→base, meta→sm, micro→xs.+ * `reading` keeps the loose leading running prose needs.*/fontSize: {+ xs: ["12px", { lineHeight: "16px" }],+ sm: ["13px", { lineHeight: "18px" }],+ base: ["14px", { lineHeight: "20px" }],+ lg: ["16px", { lineHeight: "24px" }],+ xl: ["20px", { lineHeight: "28px", letterSpacing: "-0.015em" }],+ "2xl": ["28px", { lineHeight: "34px", letterSpacing: "-0.02em" }],display: [- "24px",- { lineHeight: "1.2", letterSpacing: "-0.02em", fontWeight: "600" },+ "28px",+ { lineHeight: "34px", letterSpacing: "-0.02em", fontWeight: "600" },],- page: ["20px", { lineHeight: "1.3", letterSpacing: "-0.015em" }],- title: ["15px", { lineHeight: "1.4" }],- reading: ["15px", { lineHeight: "1.6" }],- body: ["14px", { lineHeight: "1.5" }],- meta: ["13px", { lineHeight: "1.45" }],- micro: ["11px", { lineHeight: "1.4", letterSpacing: "0.01em" }],+ page: ["20px", { lineHeight: "28px", letterSpacing: "-0.015em" }],+ title: ["16px", { lineHeight: "24px" }],+ reading: ["16px", { lineHeight: "28px" }],+ body: ["14px", { lineHeight: "20px" }],+ meta: ["13px", { lineHeight: "18px" }],+ micro: ["12px", { lineHeight: "16px" }],},/** Two elevations, and nothing else.diff --git a/scripts/design_screenshots.py b/scripts/design_screenshots.pynew file mode 100644index 0000000000..5f6531aaf4--- /dev/null+++ b/scripts/design_screenshots.py@@ -0,0 +1,168 @@+"""Screenshot app views in an isolated headless Chrome for design review.++Drives Chrome over the DevTools protocol against a running app instance (the+live one on 127.0.0.1:47821 by default). Look and layout are seeded through+localStorage in a THROWAWAY profile, so the maintainer's own app state is never+touched. Recent chats are hidden (they list real conversations).++ python scripts/design_screenshots.py --out docs/design/redesign --prefix phase-1 \\+ --views chats,local-models --themes dark,light++Every path handed to Chrome must be a native Windows path on Windows.+"""+from __future__ import annotations++import argparse+import asyncio+import base64+import json+import shutil+import subprocess+import sys+import tempfile+import time+import urllib.request+from pathlib import Path++CHROME_CANDIDATES = [+ Path(r"C:/Program Files/Google/Chrome/Application/chrome.exe"),+ Path(r"C:/Program Files (x86)/Google/Chrome/Application/chrome.exe"),+ Path("/Applications/Google Chrome.app/Contents/MacOS/Google Chrome"),+ Path("/usr/bin/google-chrome"),+ Path("/usr/bin/chromium"),+]++HIDE_CSS = '[data-testid="recent-chats"] { display: none !important; }'++SEED = {+ "jarvis.background.v1": "solid",+ "jarvis.sidebar.collapsed.v1": "0",+ "jarvis.sidebar.width.v4": "240",+}+++def find_chrome() -> Path:+ for c in CHROME_CANDIDATES:+ if c.exists():+ return c+ found = shutil.which("chrome") or shutil.which("google-chrome") or shutil.which("chromium")+ if found:+ return Path(found)+ raise SystemExit("no Chrome binary found")+++def launch(args: argparse.Namespace, profile: Path) -> tuple[subprocess.Popen, str]:+ """Start headless Chrome and return the process plus its page's DevTools URL."""+ proc = subprocess.Popen( # noqa: S603 — fixed argv+ [+ str(find_chrome()),+ "--headless=new",+ f"--remote-debugging-port={args.port}",+ f"--user-data-dir={profile}",+ f"--window-size={args.width},{args.height}",+ "--hide-scrollbars",+ "--use-fake-device-for-media-stream",+ "--use-fake-ui-for-media-stream",+ "--no-first-run",+ "--disable-gpu",+ "about:blank",+ ],+ stdout=subprocess.DEVNULL,+ stderr=subprocess.DEVNULL,+ )+ for _ in range(50):+ try:+ with urllib.request.urlopen(f"http://127.0.0.1:{args.port}/json") as r: # noqa: S310+ tabs = json.load(r)+ page = next(t for t in tabs if t["type"] == "page")+ return proc, page["webSocketDebuggerUrl"]+ except Exception: # noqa: BLE001 — Chrome is still starting+ time.sleep(0.2)+ proc.kill()+ raise SystemExit("Chrome did not expose a page target")+++async def capture(args: argparse.Namespace, ws_url: str) -> list[tuple[str, bytes]]:+ import websockets++ shots: list[tuple[str, bytes]] = []+ async with websockets.connect(ws_url, max_size=64 * 1024 * 1024) as ws:+ seq = 0++ async def call(method: str, **params):+ nonlocal seq+ seq += 1+ await ws.send(json.dumps({"id": seq, "method": method, "params": params}))+ while True:+ msg = json.loads(await ws.recv())+ if msg.get("id") == seq:+ if "error" in msg:+ raise RuntimeError(msg["error"])+ return msg.get("result", {})++ await call("Page.enable")+ await call("Runtime.enable")+ await call(+ "Emulation.setDeviceMetricsOverride",+ width=args.width,+ height=args.height,+ deviceScaleFactor=1,+ mobile=False,+ )+ for theme in args.themes.split(","):+ await call("Page.navigate", url=args.base)+ await asyncio.sleep(1.0)+ seed = {**SEED, "jarvis.theme": theme}+ js = "".join(+ f"localStorage.setItem({json.dumps(k)}, {json.dumps(v)});"+ for k, v in seed.items()+ )+ await call("Runtime.evaluate", expression=js)+ for view in args.views.split(","):+ await call("Page.navigate", url=f"{args.base}?view={view}")+ await asyncio.sleep(args.settle)+ await call(+ "Runtime.evaluate",+ expression=(+ "(function(){var s=document.createElement('style');"+ f"s.textContent={json.dumps(HIDE_CSS)};document.head.appendChild(s);"+ "return document.documentElement.className;})()"+ ),+ )+ await asyncio.sleep(0.4)+ shot = await call("Page.captureScreenshot", format="png")+ shots.append((f"{args.prefix}-{view}-{theme}.png", base64.b64decode(shot["data"])))+ return shots+++def main() -> None:+ ap = argparse.ArgumentParser()+ ap.add_argument("--base", default="http://127.0.0.1:47821/")+ ap.add_argument("--out", default="docs/design/redesign")+ ap.add_argument("--prefix", default="shot")+ ap.add_argument("--views", default="chats")+ ap.add_argument("--themes", default="dark")+ ap.add_argument("--width", type=int, default=1920)+ ap.add_argument("--height", type=int, default=1080)+ ap.add_argument("--settle", type=float, default=5.0)+ ap.add_argument("--port", type=int, default=9333)+ args = ap.parse_args()++ profile = Path(tempfile.mkdtemp(prefix="jarvis-shots-"))+ proc, ws_url = launch(args, profile)+ try:+ shots = asyncio.run(capture(args, ws_url))+ finally:+ proc.kill()+ shutil.rmtree(profile, ignore_errors=True)++ out = Path(args.out)+ out.mkdir(parents=True, exist_ok=True)+ for name, data in shots:+ target = out / name+ target.write_bytes(data)+ print(target, file=sys.stderr)+++if __name__ == "__main__":+ main()