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): rebuild transcription, docs, profile, contacts and settings
rubenluetke10-beep74c2a98339aa
diff --git a/docs/design/redesign/phase-4-contacts-dark.png b/docs/design/redesign/phase-4-contacts-dark.pngnew file mode 100644index 0000000000..3d10617362Binary files /dev/null and b/docs/design/redesign/phase-4-contacts-dark.png differdiff --git a/docs/design/redesign/phase-4-docs-dark.png b/docs/design/redesign/phase-4-docs-dark.pngnew file mode 100644index 0000000000..be72a37573Binary files /dev/null and b/docs/design/redesign/phase-4-docs-dark.png differdiff --git a/docs/design/redesign/phase-4-profile-dark.png b/docs/design/redesign/phase-4-profile-dark.pngnew file mode 100644index 0000000000..ccc3e70b44Binary files /dev/null and b/docs/design/redesign/phase-4-profile-dark.png differdiff --git a/docs/design/redesign/phase-4-sessions-dark.png b/docs/design/redesign/phase-4-sessions-dark.pngnew file mode 100644index 0000000000..b927a577d4Binary files /dev/null and b/docs/design/redesign/phase-4-sessions-dark.png differdiff --git a/docs/design/redesign/phase-4-sessions-light.png b/docs/design/redesign/phase-4-sessions-light.pngnew file mode 100644index 0000000000..0018f92d9aBinary files /dev/null and b/docs/design/redesign/phase-4-sessions-light.png differdiff --git a/docs/design/redesign/phase-4-settings-dark.png b/docs/design/redesign/phase-4-settings-dark.pngnew file mode 100644index 0000000000..bee4f476b0Binary files /dev/null and b/docs/design/redesign/phase-4-settings-dark.png differdiff --git a/docs/design/redesign/phase-4-settings-light.png b/docs/design/redesign/phase-4-settings-light.pngnew file mode 100644index 0000000000..cf1ca8af6cBinary files /dev/null and b/docs/design/redesign/phase-4-settings-light.png differdiff --git a/jarvis/ui/web/frontend/src/components/docs/DocsOverview.tsx b/jarvis/ui/web/frontend/src/components/docs/DocsOverview.tsxindex da3a97012b..a2afcd89d9 100644--- a/jarvis/ui/web/frontend/src/components/docs/DocsOverview.tsx+++ b/jarvis/ui/web/frontend/src/components/docs/DocsOverview.tsx@@ -34,16 +34,16 @@ export function DocsOverview({ onSelect }: Props) {const featured = allDocs.slice(0, 4);return (- <section className="mx-auto min-h-full w-full max-w-5xl px-8 py-10 lg:px-12">+ <section className="mx-auto min-h-full w-full max-w-5xl px-8 py-8 lg:px-12"><div className="border-b border-border pb-8">- <div className="mb-4 flex items-center gap-2 text-micro font-semibold uppercase tracking-[0.24em] text-primary">- <BookOpen className="h-3.5 w-3.5" aria-hidden="true" />+ <div className="mb-3 flex items-center gap-2 text-sm font-medium text-muted-foreground">+ <BookOpen className="h-4 w-4" aria-hidden="true" />{t("docs_overview.eyebrow")}</div>- <h1 className="text-3xl tracking-tight text-foreground lg:text-4xl">+ <h1 className="text-2xl font-semibold text-foreground-strong">{t("docs_overview.title")}</h1>- <p className="mt-3 max-w-2xl text-sm leading-6 text-muted-foreground">+ <p className="mt-2 max-w-2xl text-base text-muted-foreground">{t("docs_overview.description")}</p><a@@ -53,7 +53,7 @@ export function DocsOverview({ onSelect }: Props) {void openExternalUrl(ONLINE_DOCS_URL);}}rel="noopener noreferrer"- className="mt-5 inline-flex items-center gap-2 rounded-md border border-primary/30 bg-primary/10 px-3 py-2 text-xs font-medium text-primary transition hover:border-primary/60 hover:bg-primary/15"+ className="mt-5 inline-flex h-9 items-center gap-2 rounded-md border border-border-strong px-4 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-background">{t("docs_overview.online_docs")}<ExternalLink className="h-3.5 w-3.5" aria-hidden="true" />@@ -63,14 +63,14 @@ export function DocsOverview({ onSelect }: Props) {{isLoading ? (<OverviewSkeleton />) : error ? (- <div className="mt-8 rounded-xl border border-destructive/30 bg-destructive/5 p-6">+ <div className="mt-8 rounded-lg border border-destructive/20 bg-destructive/[0.08] p-5"><div className="flex items-start gap-3"><FileWarning className="mt-0.5 h-5 w-5 text-destructive" aria-hidden="true" /><div>- <h2 className="text-sm font-semibold">+ <h2 className="text-lg font-semibold text-foreground-strong">{t("docs_overview.load_failed_title")}</h2>- <p className="mt-1 text-xs leading-5 text-muted-foreground">+ <p className="mt-1 text-base text-muted-foreground">{t("docs_overview.load_failed_description")}</p><button@@ -92,12 +92,12 @@ export function DocsOverview({ onSelect }: Props) {</div></div>) : featured.length === 0 ? (- <div className="mt-8 rounded-xl border border-border bg-card/40 p-8 text-center">+ <div className="mt-8 rounded-lg border border-border bg-card p-8 text-center"><BookOpen className="mx-auto h-8 w-8 text-muted-foreground/50" aria-hidden="true" />- <h2 className="mt-3 text-sm font-semibold">+ <h2 className="mt-3 text-lg font-semibold text-foreground-strong">{t("docs_overview.empty_title")}</h2>- <p className="mt-1 text-xs text-muted-foreground">+ <p className="mt-1 text-base text-muted-foreground">{t("docs_overview.empty_description")}</p></div>@@ -105,32 +105,32 @@ export function DocsOverview({ onSelect }: Props) {<div className="mt-10"><div className="mb-5 flex items-end justify-between gap-4"><div>- <h2 className="text-lg font-semibold">+ <h2 className="text-lg font-semibold text-foreground-strong">{t("docs_overview.local_library")}</h2>- <p className="mt-1 text-xs text-muted-foreground">+ <p className="mt-1 text-base text-muted-foreground">{t("docs_overview.local_library_description")}</p></div>- <span className="shrink-0 font-mono text-micro uppercase tracking-wider text-muted-foreground">+ <span className="shrink-0 text-sm text-foreground-faint">{allDocs.length} {t("docs_sidebar.documents")}</span></div>- <div className="grid gap-3 sm:grid-cols-2">+ <div className="grid gap-4 sm:grid-cols-2">{featured.map((doc) => (<DocCard key={doc.slug} doc={doc} onSelect={onSelect} />))}</div><div className="mt-12 border-t border-border pt-8">- <h2 className="text-lg font-semibold">+ <h2 className="text-lg font-semibold text-foreground-strong">{t("docs_overview.browse_by_topic")}</h2>- <p className="mt-1 text-xs text-muted-foreground">+ <p className="mt-1 text-base text-muted-foreground">{t("docs_overview.browse_description")}</p>- <div className="mt-5 grid gap-3 md:grid-cols-2 xl:grid-cols-3">+ <div className="mt-5 grid gap-4 md:grid-cols-2 xl:grid-cols-3">{sections.map((section) => (<SectionCard key={section.name} section={section} onSelect={onSelect} />))}@@ -153,16 +153,16 @@ function DocCard({<buttontype="button"onClick={() => onSelect(doc.slug)}- className="group flex min-h-36 flex-col rounded-xl border border-border bg-card/30 p-5 text-left transition hover:border-primary/30 hover:bg-card/70 motion-safe:hover:-translate-y-0.5"+ className="group flex min-h-36 flex-col rounded-lg border border-border bg-card p-5 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-background">- <span className="font-mono text-micro uppercase tracking-wider text-muted-foreground">+ <span className="text-xs font-medium uppercase tracking-wide text-foreground-faint">{doc.section}</span>- <span className="mt-2 flex items-center gap-2 text-sm font-semibold text-foreground group-hover:text-primary">+ <span className="mt-2 flex items-center gap-2 text-lg font-semibold text-foreground-strong">{doc.title}- <ArrowRight className="h-3.5 w-3.5 transition motion-safe:group-hover:translate-x-0.5" aria-hidden="true" />+ <ArrowRight className="h-4 w-4 text-muted-foreground transition motion-safe:group-hover:translate-x-0.5" aria-hidden="true" /></span>- <span className="mt-3 text-xs leading-5 text-muted-foreground">+ <span className="mt-2 text-base text-muted-foreground">{doc.summary}</span></button>@@ -182,16 +182,16 @@ function SectionCard({<buttontype="button"onClick={() => onSelect(first.slug)}- className="group rounded-lg border border-border bg-card/20 p-4 text-left transition-colors hover:border-primary/30 hover:bg-card/60"+ className="group rounded-lg border border-border bg-card p-5 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-background">- <span className="flex items-center justify-between gap-3 text-sm font-semibold">+ <span className="flex items-center justify-between gap-3 text-lg font-semibold text-foreground-strong">{section.name}- <ArrowRight className="h-3.5 w-3.5 text-muted-foreground transition-transform motion-safe:group-hover:translate-x-0.5" aria-hidden="true" />+ <ArrowRight className="h-4 w-4 text-muted-foreground transition-transform motion-safe:group-hover:translate-x-0.5" aria-hidden="true" /></span>- <span className="mt-2 block text-xs leading-5 text-muted-foreground">+ <span className="mt-2 block text-base text-muted-foreground">{first.summary}</span>- <span className="mt-3 block text-micro uppercase tracking-wider text-muted-foreground/70">+ <span className="mt-3 block text-sm text-foreground-faint">{section.docs.length}{" "}{section.docs.length === 1? t("docs_overview.guide")@@ -205,14 +205,14 @@ function OverviewSkeleton() {const t = useT();return (<div className="mt-8" role="status" aria-live="polite">- <div className="flex items-start gap-3 rounded-xl border border-primary/20 bg-primary/5 p-4">+ <div className="flex items-start gap-3 rounded-lg border border-accent/20 bg-accent-soft p-4"><Loader2className="mt-0.5 h-4 w-4 animate-spin text-primary motion-reduce:animate-none"aria-hidden="true"/><div>- <p className="text-sm font-medium">{t("docs_overview.indexing_title")}</p>- <p className="mt-1 text-xs leading-5 text-muted-foreground">+ <p className="text-base font-medium">{t("docs_overview.indexing_title")}</p>+ <p className="mt-1 text-base text-muted-foreground">{t("docs_overview.indexing_description")}</p></div>diff --git a/jarvis/ui/web/frontend/src/components/docs/DocsSidebar.tsx b/jarvis/ui/web/frontend/src/components/docs/DocsSidebar.tsxindex 7939c29d72..efe39e3f61 100644--- a/jarvis/ui/web/frontend/src/components/docs/DocsSidebar.tsx+++ b/jarvis/ui/web/frontend/src/components/docs/DocsSidebar.tsx@@ -65,14 +65,14 @@ export function DocsSidebar({// takes the rail ground and separates from the page by fill alone — a// content-sized surface is what earns --card, and this is not one.return (- <aside className="flex h-full w-72 shrink-0 flex-col bg-sidebar">+ <aside className="flex h-full w-72 shrink-0 flex-col border-r border-border bg-sidebar">{/* Header */}<div className="border-b border-border px-3 py-3"><div className="mb-2 flex items-center justify-between"><buttontype="button"onClick={onShowOverview}- className="rounded-sm text-sm font-semibold tracking-tight transition-colors hover:text-primary focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"+ className="rounded-sm text-base font-semibold text-foreground-strong transition-colors hover:text-accent focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring">{t("docs_sidebar.title")}</button>@@ -81,7 +81,7 @@ export function DocsSidebar({onClick={onOpenSearch}title={t("docs.fulltext_search")}aria-label={t("docs.fulltext_search")}- className="rounded-md p-1 text-muted-foreground transition hover:bg-muted hover:text-foreground"+ className="rounded-md p-1.5 text-muted-foreground transition hover:bg-secondary hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"><Search className="h-4 w-4" aria-hidden="true" /></button>@@ -99,7 +99,7 @@ export function DocsSidebar({onChange={(e: React.ChangeEvent<HTMLInputElement>) =>setQuery(e.target.value)}- className="flex h-8 w-full rounded-md border border-input bg-background px-2 text-xs ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2"+ className="flex h-9 w-full rounded-md border border-border-strong bg-input px-3 text-base ring-offset-sidebar 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"/>{isLoading ? (<div@@ -125,7 +125,7 @@ export function DocsSidebar({{t("docs_sidebar.retry")}</button>) : (- <p className="mt-1 text-xs text-muted-foreground">+ <p className="mt-2 text-sm text-foreground-faint">{totalCount} {t("docs_sidebar.documents")}</p>)}@@ -139,10 +139,10 @@ export function DocsSidebar({{/* Recent docs — only when not filtered + at least 1 entry */}{!isLoading && !query && recent.length > 0 && (<div className="mb-2">- <div className="flex w-full items-center gap-1 rounded-md px-2 py-1 text-xs font-semibold uppercase tracking-wider text-muted-foreground">+ <div className="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"><Clock className="h-3 w-3" aria-hidden="true" /><span>{t("docs.recent")}</span>- <span className="ml-auto text-micro font-normal text-muted-foreground/70">+ <span className="ml-auto text-xs font-normal normal-case tracking-normal">{recent.length}</span></div>@@ -153,15 +153,14 @@ export function DocsSidebar({onClick={() => onSelect(doc.slug)}data-active={doc.slug === selectedSlug || undefined}className={cn(- "flex w-full items-start gap-2 rounded-md px-2 py-1.5 text-left text-xs transition",- "hover:bg-muted/60",- doc.slug === selectedSlug &&- "bg-muted font-medium border-l-2 border-primary -ml-px pl-[7px]",+ "flex min-h-8 w-full items-start gap-2 rounded-md px-3 py-1.5 text-left text-base text-muted-foreground transition-colors",+ "hover:bg-secondary hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",+ doc.slug === selectedSlug && "jarvis-nav-active bg-secondary font-medium text-foreground",)}title={doc.title}>- <FileText className="mt-0.5 h-3 w-3 shrink-0 text-muted-foreground" aria-hidden="true" />- <span className="flex-1 break-words leading-snug line-clamp-2">+ <FileText className="mt-1 h-3.5 w-3.5 shrink-0" aria-hidden="true" />+ <span className="flex-1 break-words line-clamp-2">{doc.title}</span></button>@@ -183,7 +182,7 @@ export function DocsSidebar({setCollapsed(next);}}aria-expanded={!isCollapsed}- className="flex w-full items-center gap-1 rounded-md px-2 py-1 text-xs font-semibold uppercase tracking-wider text-muted-foreground hover:bg-muted/50"+ className="group mb-1 mt-4 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">{isCollapsed ? (<ChevronRight className="h-3 w-3" aria-hidden="true" />@@ -191,7 +190,7 @@ export function DocsSidebar({<ChevronDown className="h-3 w-3" aria-hidden="true" />)}<span>{section.name}</span>- <span className="ml-auto text-micro font-normal text-muted-foreground/70">+ <span className="ml-auto text-xs font-normal normal-case tracking-normal">{section.docs.length}</span></button>@@ -209,7 +208,7 @@ export function DocsSidebar({})}{!isLoading && !error && totalCount === 0 && (- <div className="px-3 py-8 text-center text-xs text-muted-foreground">+ <div className="px-3 py-8 text-center text-base text-muted-foreground">{t("docs_sidebar.no_results")}</div>)}@@ -263,15 +262,14 @@ function SidebarItem({ doc, active, onClick }: ItemProps) {data-active={active || undefined}aria-current={active ? "page" : undefined}className={cn(- "flex w-full items-start gap-2 rounded-md px-2 py-1.5 text-left text-xs transition",- "hover:bg-muted/60",- active &&- "bg-muted font-medium border-l-2 border-primary -ml-px pl-[7px]",+ "flex min-h-8 w-full items-start gap-2 rounded-md px-3 py-1.5 text-left text-base text-muted-foreground transition-colors",+ "hover:bg-secondary hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",+ active && "jarvis-nav-active bg-secondary font-medium text-foreground",)}title={doc.title}>- <FileText className="mt-0.5 h-3 w-3 shrink-0 text-muted-foreground" aria-hidden="true" />- <span className="flex-1 break-words leading-snug line-clamp-2">+ <FileText className="mt-1 h-3.5 w-3.5 shrink-0" aria-hidden="true" />+ <span className="flex-1 break-words line-clamp-2">{doc.title}</span></button>diff --git a/jarvis/ui/web/frontend/src/components/sessions/SessionDetail.tsx b/jarvis/ui/web/frontend/src/components/sessions/SessionDetail.tsxindex 95c0651e34..ed83f44863 100644--- a/jarvis/ui/web/frontend/src/components/sessions/SessionDetail.tsx+++ b/jarvis/ui/web/frontend/src/components/sessions/SessionDetail.tsx@@ -1,22 +1,16 @@-/**- * Detail pane for a single voice session: header (aggregates) +- * turn timeline + a global click-to-copy for the whole session.- *- * Loading/empty/error states are rendered inline — no modal.- */import {+ ChevronDown,Code2,Copy,Download,- FileCode2,- FileJson,- FileText,Loader2,+ MessagesSquare,} from "lucide-react";import { useCallback, useMemo, useState } from "react";-import { Badge } from "@/components/ui/badge";+import { ActionMenu, type MenuAction } from "@/components/extensions/primitives";import { Button } from "@/components/ui/button";+import { EmptyState } from "@/components/ui/empty-state";import { ScrollArea } from "@/components/ui/scroll-area";import { OpenWithDialog } from "@/components/OpenWithDialog";import { useEventStore } from "@/store/events";@@ -35,6 +29,7 @@ import {import { useT, useUiLanguage } from "@/i18n";import { fetchSessionExport, openSessionWith, sessionExportUrl } from "./api";+import { hangupLabel } from "./SessionList";import { TurnCard } from "./TurnCard";import { VoiceModeBadge } from "./VoiceModeBadge";import type {@@ -50,44 +45,41 @@ const FORMAT_LABEL: Record<ExportFormat, string> = {json: "JSON",};+const FORMATS: ExportFormat[] = ["plain", "markdown", "json"];+interface Props {detail: SessionDetailModel | undefined;loading: boolean;error: Error | null;}+/**+ * One session, read like a conversation.+ *+ * The header is a title row (name, mode badge, when) with one muted line of+ * facts and a single Export menu — nine icon buttons in a column were a+ * toolbar nobody asked for. The turns below are a chat timeline capped at+ * the reading measure: no card around each turn, no box around each line.+ */export function SessionDetail({ detail, loading, error }: Props) {const t = useT();const uiLanguage = useUiLanguage();const locale =uiLanguage === "de" ? "de-DE" : uiLanguage === "es" ? "es-ES" : "en-US";const pushToast = useEventStore((s) => s.pushToast);- // Desktop shell? Then save straight to ~/Downloads (browser downloads are- // silently dropped by pywebview); otherwise use the normal browser download.const caps = useCapabilities();const native = caps.data?.native_file_actions ?? false;- // "Open in editor" — reuses the Outputs view's opener list + remembered- // default (shared `[ui] preferred_opener`), so the chosen editor is the same- // everywhere. The chooser tracks which format row triggered it.const openers = useOpeners();const preferred = usePreferredOpener();const setPreferred = useSetPreferredOpener();const [editorFormat, setEditorFormat] = useState<ExportFormat | null>(null);- // Group the SpeechSpoken raw events under their turn so each TurnCard can- // render the playback-confirmed track. Reply entries replace generated model- // text; all other kinds appear in the separate Spoken-output section. Hook- // runs unconditionally (before the early returns) per the rules of hooks.const spokenByTurn = useMemo(() => {const map = new Map<string, VoiceSpokenLine[]>();for (const e of detail?.events ?? []) {if (e.kind !== "SpeechSpoken") continue;const text = String((e.payload as { text?: unknown })?.text ?? "");if (!text.trim()) continue;- // The technical diagnostic rides on the recorded event; it is carried on- // the projection for parity with the payload but deliberately NOT rendered- // in the transcript (TurnCard) — it is surfaced in the Run Inspector- // instead (user request 2026-06-22, reversing the 2026-06-16 ask).const rawDetail = (e.payload as { detail?: unknown })?.detail;const detail =typeof rawDetail === "string" && rawDetail.trim()@@ -128,7 +120,7 @@ export function SessionDetail({ detail, loading, error }: Props) {);}},- [detail, pushToast],+ [detail, pushToast, t],);const downloadAsFormat = useCallback(@@ -136,7 +128,6 @@ export function SessionDetail({ detail, loading, error }: Props) {if (!detail) return;try {const text = await fetchSessionExport(detail.session.id, format);- // First user utterance as the filename slug — falls back to session_id.const preview =detail.turns.find((t) => t.user_text)?.user_text ?? "";const filename = buildSessionFilename(detail.session, preview, format);@@ -160,10 +151,9 @@ export function SessionDetail({ detail, loading, error }: Props) {);}},- [detail, pushToast, native],+ [detail, pushToast, native, t],);- // Launch the transcript in a local app (editor / default / browser).const launchInEditor = useCallback(async (format: ExportFormat, opener: string) => {if (!detail) return;@@ -189,7 +179,6 @@ export function SessionDetail({ detail, loading, error }: Props) {(format: ExportFormat) => {if (!detail) return;if (!native) {- // Headless VPS / browser: no local apps — open the export in a new tab.window.open(sessionExportUrl(detail.session.id, format),"_blank",@@ -216,10 +205,37 @@ export function SessionDetail({ detail, loading, error }: Props) {[editorFormat, launchInEditor, setPreferred],);+ const exportActions = useMemo<MenuAction[]>(() => {+ const actions: MenuAction[] = [];+ for (const format of FORMATS) {+ const label = FORMAT_LABEL[format];+ actions.push({+ id: `copy-${format}`,+ label: `${t("session_detail.copy_action")} ${label}`,+ icon: <Copy className="h-4 w-4" />,+ onSelect: () => void copyAs(format),+ separatorAbove: format !== "plain",+ });+ actions.push({+ id: `download-${format}`,+ label: `${t("session_detail.download_file_action")} ${label}`,+ icon: <Download className="h-4 w-4" />,+ onSelect: () => void downloadAsFormat(format),+ });+ actions.push({+ id: `open-${format}`,+ label: `${t("session_detail.open_editor_action")} ${label}`,+ icon: <Code2 className="h-4 w-4" />,+ onSelect: () => openInEditor(format),+ });+ }+ return actions;+ }, [t, copyAs, downloadAsFormat, openInEditor]);+if (loading) {return (- <div className="flex h-full items-center justify-center text-sm text-muted-foreground">- <Loader2 className="mr-2 h-4 w-4 animate-spin" />+ <div className="flex h-full items-center justify-center gap-2 text-base text-muted-foreground">+ <Loader2 className="h-4 w-4 animate-spin" />{t("session_detail.loading")}</div>);@@ -228,8 +244,8 @@ export function SessionDetail({ detail, loading, error }: Props) {if (error) {return (<div className="flex h-full items-center justify-center p-6">- <div className="max-w-md rounded-lg border border-destructive/40 bg-destructive/5 p-4 text-sm">- <div className="font-semibold text-destructive">{t("session_detail.load_error")}</div>+ <div className="max-w-md rounded-lg border border-destructive/20 bg-destructive/[0.08] p-4 text-base">+ <div className="font-medium text-destructive">{t("session_detail.load_error")}</div><div className="mt-1 text-muted-foreground">{error.message}</div></div></div>@@ -238,8 +254,8 @@ export function SessionDetail({ detail, loading, error }: Props) {if (!detail) {return (- <div className="flex h-full items-center justify-center p-6 text-sm text-muted-foreground">- {t("sessions.select_one")}+ <div className="flex h-full items-center justify-center p-6">+ <EmptyState icon={<MessagesSquare />} title={t("sessions.select_one")} /></div>);}@@ -247,77 +263,51 @@ export function SessionDetail({ detail, loading, error }: Props) {const { session, turns } = detail;const startedDt = new Date(session.started_ms);const endedDt = session.ended_ms ? new Date(session.ended_ms) : null;+ const facts = [+ `${session.turn_count} ${t("session_detail.turns")}`,+ session.language,+ session.hangup_reason ? hangupLabel(session.hangup_reason) : null,+ ...session.providers_used,+ session.total_cost_usd > 0 ? `$${session.total_cost_usd.toFixed(4)}` : null,+ session.total_tokens_in > 0 || session.total_tokens_out > 0+ ? `${formatTokens(session.total_tokens_in + session.total_tokens_out)} tok`+ : null,+ ].filter(Boolean) as string[];return (<div className="flex h-full min-h-0 flex-col">- {/* Header */}- <div className="shrink-0 border-b border-border px-5 py-4">- <div className="flex items-start justify-between gap-3">+ <div className="shrink-0 border-b border-border px-8 pb-4 pt-5">+ <div className="flex items-start justify-between gap-4"><div className="min-w-0">- <div className="flex flex-wrap items-center gap-2.5">- <div className="font-display text-lg font-semibold">+ <div className="flex flex-wrap items-center gap-3">+ <h2 className="text-xl font-semibold text-foreground-strong">{t("session_detail.title")}- </div>+ </h2><VoiceModeBadge mode={session.voice_mode} prominence="prominent" /></div>- <div className="font-mono text-xs text-muted-foreground">+ <p className="mt-1 text-base text-muted-foreground">{startedDt.toLocaleString(locale)}- {endedDt && ` — ${endedDt.toLocaleTimeString(locale)}`}- </div>- <div className="mt-2 flex flex-wrap items-center gap-1.5">- <Badge variant="secondary">{session.turn_count} {t("session_detail.turns")}</Badge>- <Badge variant="secondary">{session.language}</Badge>- {session.hangup_reason && (- <Badge variant="outline">{session.hangup_reason}</Badge>- )}- {session.providers_used.map((p) => (- <Badge key={p} variant="outline" className="font-mono text-micro">- {p}- </Badge>- ))}- {session.total_cost_usd > 0 && (- <Badge variant="outline">- ${session.total_cost_usd.toFixed(4)}- </Badge>- )}- {(session.total_tokens_in > 0 || session.total_tokens_out > 0) && (- <Badge variant="outline" className="text-micro">- {session.total_tokens_in}+{session.total_tokens_out} tok- </Badge>- )}- </div>+ {endedDt && ` – ${endedDt.toLocaleTimeString(locale)}`}+ </p>+ <p className="mt-2 text-sm text-foreground-faint">{facts.join(" · ")}</p></div>- {/* Export actions: one row per format with copy + download */}- <div className="flex shrink-0 flex-col gap-1.5">- <div className="text-micro font-medium uppercase tracking-wider text-muted-foreground">- Export- </div>- <ExportRow- icon={<FileText className="h-3.5 w-3.5" />}- label="Text"- onCopy={() => copyAs("plain")}- onDownload={() => downloadAsFormat("plain")}- onOpenEditor={() => openInEditor("plain")}- variant="primary"- />- <ExportRow- icon={<FileCode2 className="h-3.5 w-3.5" />}- label="Markdown"- onCopy={() => copyAs("markdown")}- onDownload={() => downloadAsFormat("markdown")}- onOpenEditor={() => openInEditor("markdown")}- variant="outline"- />- <ExportRow- icon={<FileJson className="h-3.5 w-3.5" />}- label="JSON"- onCopy={() => copyAs("json")}- onDownload={() => downloadAsFormat("json")}- onOpenEditor={() => openInEditor("json")}- variant="outline"- />- </div>+ <ActionMenu+ label={t("session_detail.export_label")}+ actions={exportActions}+ trigger={({ open, toggle }) => (+ <Button+ variant="outline"+ onClick={toggle}+ aria-expanded={open}+ aria-haspopup="menu"+ >+ <Download />+ {t("session_detail.export_label")}+ <ChevronDown className={open ? "rotate-180" : undefined} />+ </Button>+ )}+ /></div></div>@@ -332,14 +322,14 @@ export function SessionDetail({ detail, loading, error }: Props) {/>)}- {/* Turns */}<ScrollArea className="min-h-0 flex-1">- <div className="space-y-3 p-5">+ <div className="mx-auto w-full max-w-3xl space-y-8 px-8 py-6">{turns.length === 0 ? (- <div className="rounded-lg border border-dashed border-border p-6 text-center text-sm text-muted-foreground">- {t("sessions.no_turns")}- {t("session_detail.no_turns_suffix")}- </div>+ <EmptyState+ icon={<MessagesSquare />}+ title={t("sessions.no_turns")}+ description={t("session_detail.no_turns_suffix")}+ />) : (turns.map((t, index) => (<TurnCard@@ -356,70 +346,8 @@ export function SessionDetail({ detail, loading, error }: Props) {);}--interface ExportRowProps {- icon: React.ReactNode;- label: string;- onCopy: () => void;- onDownload: () => void;- onOpenEditor: () => void;- variant: "primary" | "outline";-}--/**- * One row per export format: the format label (with icon) on the left,- * three compact action buttons (copy / download / open in editor) on the right.- */-function ExportRow({- icon,- label,- onCopy,- onDownload,- onOpenEditor,- variant,-}: ExportRowProps) {- const t = useT();- const labelClass =- variant === "primary"- ? "rounded-md border border-primary/40 bg-primary/10 px-2 py-1 text-xs font-medium text-primary"- : "rounded-md border border-border bg-background/40 px-2 py-1 text-xs font-medium text-foreground/90";-- return (- <div className="flex items-center gap-1.5">- <div className={`${labelClass} flex flex-1 items-center gap-1.5`}>- {icon}- {label}- </div>- <Button- type="button"- size="sm"- variant="ghost"- onClick={onCopy}- className="h-7 w-7 shrink-0 p-0"- title={`${t("session_detail.copy_action")} ${label}`}- >- <Copy className="h-3.5 w-3.5" />- </Button>- <Button- type="button"- size="sm"- variant="ghost"- onClick={onDownload}- className="h-7 w-7 shrink-0 p-0"- title={`${t("session_detail.download_file_action")} ${label}`}- >- <Download className="h-3.5 w-3.5" />- </Button>- <Button- type="button"- size="sm"- variant="ghost"- onClick={onOpenEditor}- className="h-7 w-7 shrink-0 p-0"- title={`${t("session_detail.open_editor_action")} ${label}`}- >- <Code2 className="h-3.5 w-3.5" />- </Button>- </div>- );+function formatTokens(n: number): string {+ if (n >= 1_000_000) return `${(n / 1_000_000).toFixed(1)}M`;+ if (n >= 1_000) return `${Math.round(n / 1_000)}k`;+ return String(n);}diff --git a/jarvis/ui/web/frontend/src/components/sessions/SessionList.tsx b/jarvis/ui/web/frontend/src/components/sessions/SessionList.tsxindex 798e1c4fc7..8eb3afe34a 100644--- a/jarvis/ui/web/frontend/src/components/sessions/SessionList.tsx+++ b/jarvis/ui/web/frontend/src/components/sessions/SessionList.tsx@@ -1,15 +1,6 @@-/**- * Sidebar list of voice sessions, newest first.- *- * One row = one session card with:- * - Date + time (relative to now)- * - Duration / turn count- * - First user utterance as a preview- * - Hangup reason as a badge- */-import { Clock, Loader2, Mic, MicOff } from "lucide-react";+import { Loader2, Mic, MicOff } from "lucide-react";-import { Badge } from "@/components/ui/badge";+import { EmptyState } from "@/components/ui/empty-state";import { ScrollArea } from "@/components/ui/scroll-area";import { translate, useT } from "@/i18n";import { cn } from "@/lib/utils";@@ -24,12 +15,18 @@ interface Props {loading: boolean;}+/**+ * The session rail: one row per voice session — the first thing said as the+ * title, one muted meta line under it (when · how long · turns · cost), a+ * status dot for a live session. No pills: the mode and the hang-up reason+ * belong to the detail header, where there is room to read them.+ */export function SessionList({ sessions, selectedId, onSelect, loading }: Props) {const t = useT();if (loading) {return (- <div className="flex h-full items-center justify-center text-sm text-muted-foreground">- <Loader2 className="mr-2 h-4 w-4 animate-spin" />+ <div className="flex h-full items-center justify-center gap-2 text-base text-muted-foreground">+ <Loader2 className="h-4 w-4 animate-spin" />{t("session_list.loading")}</div>);@@ -37,80 +34,73 @@ export function SessionList({ sessions, selectedId, onSelect, loading }: Props)if (sessions.length === 0) {return (- <div className="flex h-full flex-col items-center justify-center gap-2 p-6 text-center text-sm text-muted-foreground">- <MicOff className="h-8 w-8 opacity-40" />- <div className="font-medium">{t("session_list.empty_title")}</div>- <div className="text-xs">- {t("session_list.empty_hint")}- </div>+ <div className="flex h-full items-center justify-center p-6">+ <EmptyState+ icon={<MicOff />}+ title={t("session_list.empty_title")}+ description={t("session_list.empty_hint")}+ /></div>);}return (<ScrollArea className="h-full">- <ul className="space-y-1 p-2">- {sessions.map((s) => (- <li key={s.id}>- <button- type="button"- onClick={() => onSelect(s.id)}- className={cn(- "group w-full rounded-lg border border-transparent p-3 text-left text-sm transition-all",- "hover:border-border hover:bg-background/60",- s.id === selectedId &&- "border-primary/40 bg-background shadow-[inset_2px_0_0_hsl(var(--primary))]",- )}- >- <div className="mb-1 flex items-center justify-between gap-2">- <span className="flex items-center gap-1.5 text-xs text-muted-foreground">- <Mic className="h-3 w-3" />- {formatRelative(s.started_ms)}- </span>- <span className="flex shrink-0 items-center gap-1">- <VoiceModeBadge mode={s.voice_mode} />- {s.ended_ms === null ? (- <Badge variant="default" className="animate-pulse">- {t("sessions.running")}- </Badge>- ) : (- <Badge variant="secondary" className="text-micro">- {hangupLabel(s.hangup_reason)}- </Badge>+ <ul className="space-y-0.5 p-2">+ {sessions.map((s) => {+ const active = s.id === selectedId;+ const live = s.ended_ms === null;+ const meta = [+ formatRelative(s.started_ms),+ formatDuration(s.duration_s),+ `${s.turn_count} ${t("session_list.turns")}`,+ s.total_cost_usd > 0 ? `$${s.total_cost_usd.toFixed(2)}` : null,+ ].filter(Boolean);+ return (+ <li key={s.id}>+ <button+ type="button"+ onClick={() => onSelect(s.id)}+ aria-current={active ? "true" : undefined}+ className={cn(+ "flex w-full items-start gap-3 rounded-md px-3 py-3 text-left transition-colors",+ "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",+ active+ ? "bg-secondary text-foreground"+ : "text-muted-foreground hover:bg-secondary hover:text-foreground",+ )}+ >+ <span className="relative mt-1 shrink-0">+ <Mic aria-hidden className="h-4 w-4" />+ {live && (+ <span+ aria-label={t("sessions.running")}+ className="absolute -right-0.5 -top-0.5 h-2 w-2 animate-pulse rounded-full bg-success ring-2 ring-sidebar"+ />)}</span>- </div>- <div className="line-clamp-2 text-foreground/90">- {s.preview || (- <span className="italic text-muted-foreground/70">- {t("session_list.no_user_text")}+ <span className="min-w-0 flex-1">+ <span className="block truncate text-base font-medium text-foreground">+ {s.preview || (+ <span className="font-normal italic text-muted-foreground">+ {t("session_list.no_user_text")}+ </span>+ )}+ </span>+ <span className="mt-0.5 block truncate text-sm text-muted-foreground">+ {meta.join(" · ")}</span>- )}- </div>- <div className="mt-1.5 flex items-center gap-3 text-micro text-muted-foreground">- <span className="flex items-center gap-1">- <Clock className="h-3 w-3" />- {formatDuration(s.duration_s)}</span>- <span>· {s.turn_count} {t("session_list.turns")}</span>- {s.total_cost_usd > 0 && (- <span>· ${s.total_cost_usd.toFixed(4)}</span>- )}- </div>- </button>- </li>- ))}+ <VoiceModeBadge mode={s.voice_mode} className="mt-0.5" />+ </button>+ </li>+ );+ })}</ul></ScrollArea>);}-// --- Helpers -----------------------------------------------------------// Compose "vor 5 min" / "5 min ago" / "hace 5 min" from a localized prefix and-// suffix so the word order stays correct in every language. One side is empty-// per locale (de/es use a prefix, en uses the "ago" suffix). Joined with a-// single space and trimmed so the empty side leaves no double gap.function ago(value: string): string {const prefix = translate("session_list.ago_prefix");const suffix = translate("session_list.ago_suffix");@@ -139,7 +129,7 @@ function formatDuration(secs: number | null): string {)}`;}-function hangupLabel(reason: string): string {+export function hangupLabel(reason: string): string {switch (reason) {case "voice_pattern":return translate("session_list.hangup_voice_pattern");diff --git a/jarvis/ui/web/frontend/src/components/sessions/TurnCard.test.tsx b/jarvis/ui/web/frontend/src/components/sessions/TurnCard.test.tsxindex 74e27f7ba8..c94a5ad2b8 100644--- a/jarvis/ui/web/frontend/src/components/sessions/TurnCard.test.tsx+++ b/jarvis/ui/web/frontend/src/components/sessions/TurnCard.test.tsx@@ -233,8 +233,7 @@ describe("TurnCard spoken track", () => {// tint used by every other spoken kind.const line = container.querySelector('[data-spoken-kind="subagent"]');expect(line).not.toBeNull();- expect(line?.className).toContain("violet");- expect(line?.className).not.toContain("sky-400");+ expect(line?.getAttribute("data-spoken-tone")).toBe("agent");});it("keeps a generic completion readback on the sky-tinted track", () => {@@ -246,8 +245,7 @@ describe("TurnCard spoken track", () => {);expect(screen.getByText("Background result")).toBeTruthy();const line = container.querySelector('[data-spoken-kind="completion"]');- expect(line?.className).toContain("sky-400");- expect(line?.className).not.toContain("violet");+ expect(line?.getAttribute("data-spoken-tone")).toBe("status");});it("labels a pending two-turn confirmation reply distinctly", () => {diff --git a/jarvis/ui/web/frontend/src/components/sessions/TurnCard.tsx b/jarvis/ui/web/frontend/src/components/sessions/TurnCard.tsxindex cc72fbce1a..a44a1874bb 100644--- a/jarvis/ui/web/frontend/src/components/sessions/TurnCard.tsx+++ b/jarvis/ui/web/frontend/src/components/sessions/TurnCard.tsx@@ -1,39 +1,17 @@-/**- * A single voice turn — user block + brain meta + tools + Jarvis block.- *- * The click-to-copy button lets the user copy just the turn text- * (without the session frame).- */-import {- Brain,- Clock,- Copy,- Download,- Hourglass,- MessageSquareWarning,- Mic2,- Volume2,- Wrench,-} from "lucide-react";+import { Copy, Download, Mic, Volume2, Wrench } from "lucide-react";import { useCallback, useState } from "react";import { Badge } from "@/components/ui/badge";import { Button } from "@/components/ui/button";-import { Card, CardContent } from "@/components/ui/card";import { agentBrand } from "@/lib/agentBrand";import { robustCopy, saveOrDownload } from "@/lib/clipboard";import { useCapabilities } from "@/hooks/useCapabilities";import { useEventStore } from "@/store/events";import { useT } from "@/i18n";+import { cn } from "@/lib/utils";import type { VoiceSpokenLine, VoiceTurnRow } from "./types";-// Human-readable label per SpeechSpoken spoken_kind. Mirror of-// jarvis/sessions/constants.py SPOKEN_KINDS — every kind needs an entry-// (parity: tests/unit/sessions/test_spoken_kind_parity.py). An unknown kind-// falls back to the kind string itself so it still renders. The `subagent`-// entry here is the name-free fallback; the display path overlays the-// wake-word-derived agent brand via spokenKindLabels(assistantName).export const SPOKEN_KIND_LABEL: Record<string, string> = {reply: "Reply",clarify: "Clarifying question",@@ -52,8 +30,6 @@ export const SPOKEN_KIND_LABEL: Record<string, string> = {other: "Spoken",};-// The agent brand follows the wake-word-derived assistant name (2026-07-17-// rebrand): "Ruben" -> "Ruben-Agent / Output", for ANY configured wake word.export function spokenKindLabels(assistantName: string): Record<string, string> {return {...SPOKEN_KIND_LABEL,@@ -67,12 +43,18 @@ interface Props {spoken?: VoiceSpokenLine[];}+const PROSE = "min-w-0 whitespace-pre-wrap break-words text-base leading-7 [overflow-wrap:anywhere]";++/**+ * One turn of a voice session, drawn like a chat: a quiet turn line (number,+ * time, latency, copy), the user's words as a bubble on the lift surface, the+ * assistant's reply on the card surface, and the facts of the exchange —+ * brain, tokens, cost, tools, how long it thought and spoke — as ONE muted+ * line underneath. No box inside a box.+ */export function TurnCard({ turn, displayNumber, spoken = [] }: Props) {const t = useT();const [showRaw, setShowRaw] = useState(false);- // `null` unless a polished reading exists AND differs from what was said.- // A stored value equal to the raw text is not a rewrite, and showing a badge- // for it would claim a change that never happened.const rawUserText = turn.user_text ?? "";const polishedUserText = (turn.user_text_polished ?? "").trim();const polished =@@ -81,7 +63,6 @@ export function TurnCard({ turn, displayNumber, spoken = [] }: Props) {: null;const pushToast = useEventStore((s) => s.pushToast);const assistantName = useEventStore((s) => s.assistantName);- // Desktop shell → save to ~/Downloads via the backend; browser → blob download.const caps = useCapabilities();const native = caps.data?.native_file_actions ?? false;const visibleTurnNumber = displayNumber ?? turn.idx + 1;@@ -129,82 +110,78 @@ export function TurnCard({ turn, displayNumber, spoken = [] }: Props) {second: "2-digit",});+ const facts: string[] = [];+ if (turn.provider) facts.push(turn.provider);+ if (turn.model) facts.push(turn.model);+ if (turn.tier) facts.push(turn.tier);+ if (turn.tokens_in > 0 || turn.tokens_out > 0)+ facts.push(`${turn.tokens_in}+${turn.tokens_out} tok`);+ if (turn.cost_usd > 0) facts.push(`$${turn.cost_usd.toFixed(4)}`);+ if (turn.think_ms > 0) facts.push(`${t("turn_card.thought")} ${formatMs(turn.think_ms)}`);+ if (turn.speak_ms > 0) facts.push(`${t("turn_card.spoke")} ${formatMs(turn.speak_ms)}`);+return (- <Card className="min-w-0 max-w-full bg-background/40">- <CardContent className="min-w-0 space-y-3 p-4">- {/* Header */}- <div className="flex items-center justify-between gap-2">- <div className="flex items-center gap-2 text-xs text-muted-foreground">- <span className="font-mono">Turn {visibleTurnNumber}</span>- <span>·</span>- <span>{startedAt}</span>- {turn.latency_total_ms > 0 && (- <>- <span>·</span>- <span className="flex items-center gap-1">- <Clock className="h-3 w-3" />- {formatMs(turn.latency_total_ms)}- </span>- </>- )}- </div>- <div className="flex items-center gap-1">- <Button- type="button"- variant="ghost"- size="sm"- onClick={copyTurn}- className="h-7 px-2 text-xs"- title={t("turn_card.copy_turn")}- >- <Copy className="mr-1 h-3 w-3" />- {t("turn_card.copy")}- </Button>- <Button- type="button"- variant="ghost"- size="sm"- onClick={downloadTurn}- className="h-7 w-7 p-0"- title={t("turn_card.download_turn")}- >- <Download className="h-3 w-3" />- </Button>- </div>+ <article className="group/turn min-w-0 max-w-full" data-testid="turn-card">+ {/* The turn line: quiet, with the actions appearing on hover. */}+ <div className="flex h-8 items-center justify-between gap-2">+ <div className="flex items-center gap-2 text-sm text-foreground-faint">+ <span className="font-medium text-muted-foreground">Turn {visibleTurnNumber}</span>+ <span>·</span>+ <span className="tabular-nums">{startedAt}</span>+ {turn.latency_total_ms > 0 && (+ <>+ <span>·</span>+ <span className="tabular-nums">{formatMs(turn.latency_total_ms)}</span>+ </>+ )}+ </div>+ <div className="flex items-center gap-1 opacity-0 transition-opacity focus-within:opacity-100 group-hover/turn:opacity-100">+ <Button+ type="button"+ variant="ghost"+ size="sm"+ onClick={copyTurn}+ title={t("turn_card.copy_turn")}+ >+ <Copy />+ {t("turn_card.copy")}+ </Button>+ <Button+ type="button"+ variant="ghost"+ size="icon"+ className="h-8 w-8"+ onClick={downloadTurn}+ title={t("turn_card.download_turn")}+ aria-label={t("turn_card.download_turn")}+ >+ <Download />+ </Button></div>+ </div>- {/* User */}+ <div className="space-y-3">+ {/* The user: a bubble on the lift surface, right-aligned like a chat. */}{turn.user_text && (- <div className="space-y-1">- <div className="flex items-center gap-1.5 text-xs uppercase tracking-wider text-muted-foreground">- <Mic2 className="h-3 w-3" />- User- <Badge variant="secondary" className="ml-1 text-micro">- {turn.user_lang}- </Badge>- {/* Shown only when the two actually differ, so the badge means- "this was rewritten" rather than "the feature is on". */}+ <div className="flex flex-col items-end gap-1">+ <div className="flex items-center gap-2 text-sm text-muted-foreground">+ <Mic aria-hidden className="h-3.5 w-3.5" />+ <span>User</span>+ <span className="text-foreground-faint">{turn.user_lang}</span>{polished && (- <Badge- variant="outline"- className="ml-1 text-micro"- data-testid="turn-polished-badge"- >+ <Badge variant="secondary" data-testid="turn-polished-badge">{t("session_turn.polished")}</Badge>)}</div>- <div className="min-w-0 whitespace-pre-wrap break-words rounded-md border border-muted-foreground/20 bg-muted-foreground/5 p-2 text-sm [overflow-wrap:anywhere]">+ <div className={cn(PROSE, "max-w-[85%] rounded-lg bg-secondary px-4 py-3 text-foreground")}>{polished ?? turn.user_text}</div>- {/* The original is never more than one click away. A transcript is- a RECORD of what was said, and a view that shows only a model's- reading of it — with no way back — is no longer a record. */}{polished && (<buttontype="button"onClick={() => setShowRaw((v) => !v)}- className="text-xs text-muted-foreground underline-offset-2 hover:underline"+ className="rounded-sm text-sm text-muted-foreground underline-offset-4 hover:underline focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"data-testid="turn-polished-toggle">{showRaw@@ -214,7 +191,7 @@ export function TurnCard({ turn, displayNumber, spoken = [] }: Props) {)}{polished && showRaw && (<div- className="min-w-0 whitespace-pre-wrap break-words rounded-md border border-border/60 bg-background/40 p-2 text-sm text-muted-foreground [overflow-wrap:anywhere]"+ className={cn(PROSE, "max-w-[85%] rounded-lg border border-dashed border-border px-4 py-3 text-muted-foreground")}data-testid="turn-raw-text">{turn.user_text}@@ -223,71 +200,29 @@ export function TurnCard({ turn, displayNumber, spoken = [] }: Props) {</div>)}- {/* Brain-Meta */}- {(turn.tier ||- turn.provider ||- turn.tokens_in > 0 ||- turn.cost_usd > 0) && (- <div className="flex flex-wrap items-center gap-1.5 text-xs">- <Brain className="h-3 w-3 text-primary" />- {turn.tier && (- <Badge variant="outline" className="text-micro">- {turn.tier}- </Badge>- )}- {turn.provider && (- <Badge variant="outline" className="text-micro">- {turn.provider}- </Badge>- )}- {turn.model && (- <Badge variant="outline" className="font-mono text-micro">- {turn.model}- </Badge>- )}- {(turn.tokens_in > 0 || turn.tokens_out > 0) && (- <span className="text-muted-foreground">- {turn.tokens_in}+{turn.tokens_out} tok- </span>- )}- {turn.cost_usd > 0 && (- <span className="text-muted-foreground">- · ${turn.cost_usd.toFixed(4)}- </span>- )}- </div>- )}-- {/* Tools */}+ {/* Tools the turn reached for. */}{turn.tool_calls.length > 0 && (- <div className="flex flex-wrap items-center gap-1.5 text-xs">- <Wrench className="h-3 w-3 text-foreground" />- <span className="text-muted-foreground">Tools:</span>+ <div className="flex flex-wrap items-center gap-1.5 text-sm text-muted-foreground">+ <Wrench aria-hidden className="h-3.5 w-3.5" />+ <span>Tools:</span>{turn.tool_calls.map((tc) => (- <Badge- key={tc}- variant="secondary"- className="font-mono text-micro"- >+ <Badge key={tc} variant="secondary" className="font-mono">{tc}</Badge>))}</div>)}- {/* Jarvis */}+ {/* The assistant: on the card surface, with its voice named beside it. */}{audibleReply && (- <div className="space-y-1">- <div className="flex items-center gap-1.5 text-xs uppercase tracking-wider text-primary">- <Volume2 className="h-3 w-3" />- {assistantName}- <Badge variant="secondary" className="ml-1 text-micro">- {turn.jarvis_lang}- </Badge>+ <div className="flex flex-col items-start gap-1">+ <div className="flex flex-wrap items-center gap-2 text-sm text-muted-foreground">+ <Volume2 aria-hidden className="h-3.5 w-3.5" />+ <span className="font-medium text-foreground">{assistantName}</span>+ <span className="text-foreground-faint">{turn.jarvis_lang}</span>{turn.voice_name && (- <Badge- variant="outline"- className="ml-1 font-mono text-micro normal-case text-muted-foreground"+ <span+ className="text-foreground-faint"title={turn.voice_verified === false? `Requested voice (native audio is not a verified speaker): ${@@ -300,104 +235,65 @@ export function TurnCard({ turn, displayNumber, spoken = [] }: Props) {: `Voice: ${turn.voice_name}`}>- {turn.voice_name}- {turn.voice_provider ? ` · ${turn.voice_provider}` : ""}- {turn.voice_verified === false ? " · requested" : ""}- </Badge>+ {[+ turn.voice_name,+ turn.voice_provider,+ turn.voice_verified === false ? "requested" : null,+ ]+ .filter(Boolean)+ .join(" · ")}+ </span>)}{turn.awaiting_confirmation && (- <Badge- variant="outline"- className="ml-1 border-foreground/40 text-micro text-foreground"- >- Awaiting confirmation- </Badge>+ <Badge variant="warning">Awaiting confirmation</Badge>)}</div>- <div className="min-w-0 whitespace-pre-wrap break-words rounded-md border border-primary/20 bg-primary/5 p-2 text-sm [overflow-wrap:anywhere]">+ <div className={cn(PROSE, "w-full rounded-lg border border-border bg-card p-4 text-foreground")}>{audibleReply}</div></div>)}- {/* Supplemental spoken output. Playback-confirmed normal replies render- in the main assistant block above; status phrases and readbacks stay- distinct here while preserving their audible order. */}+ {/* Supplemental spoken output: status phrases and readbacks, in the+ order they were heard, each with its kind as a small badge. */}{auxiliarySpoken.length > 0 && (- <div className="space-y-1.5 border-t border-border/50 pt-2">- <div className="flex items-center gap-1.5 text-xs uppercase tracking-wider text-sky-300">- <MessageSquareWarning className="h-3 w-3" />- Spoken output- </div>- <div className="space-y-1">- {auxiliarySpoken.map((s, i) => {- // A spawned sub-agent / mission result gets its own colour so it- // reads distinctly from a generic background completion and from- // a normal reply: violet ("agent") vs. the sky tint of the rest.- const isSubagent = s.spoken_kind === "subagent";- return (- <div- key={`${s.ts_ms}-${i}`}- data-spoken-kind={s.spoken_kind}- className={- isSubagent- ? "flex items-start gap-2 rounded-md border border-violet-400/30 bg-violet-400/10 p-2 text-sm"- : "flex items-start gap-2 rounded-md border border-sky-400/20 bg-sky-400/5 p-2 text-sm"- }- >- <Badge- variant="secondary"- className={- isSubagent- ? "mt-0.5 shrink-0 border-violet-400/40 text-micro uppercase tracking-wide text-violet-200"- : "mt-0.5 shrink-0 text-micro uppercase tracking-wide"- }- >- {kindLabel[s.spoken_kind] ?? s.spoken_kind}- </Badge>- <div className="min-w-0 flex-1">- {/* Only the spoken phrase belongs in the transcript. The- technical diagnostic (exit code + raw harness reason)- stays on the recorded SpeechSpoken event and is shown- in the Run Inspector — never here (user request- 2026-06-22, reversing the 2026-06-16 ask). */}- <span className="whitespace-pre-wrap break-words [overflow-wrap:anywhere]">- {s.text}- </span>- </div>- </div>- );- })}- </div>+ <div className="space-y-2" data-testid="turn-spoken-output">+ <div className="text-sm text-muted-foreground">Spoken output</div>+ {auxiliarySpoken.map((s, i) => (+ <div+ key={`${s.ts_ms}-${i}`}+ data-spoken-kind={s.spoken_kind}+ data-spoken-tone={s.spoken_kind === "subagent" ? "agent" : "status"}+ className={cn(+ "flex items-start gap-3 rounded-lg border p-3",+ s.spoken_kind === "subagent"+ ? "border-accent/20 bg-accent-soft"+ : "border-border bg-card",+ )}+ >+ <Badge+ variant={s.spoken_kind === "subagent" ? "accent" : "secondary"}+ className="mt-0.5 shrink-0"+ >+ {kindLabel[s.spoken_kind] ?? s.spoken_kind}+ </Badge>+ <span className={cn(PROSE, "flex-1 text-foreground")}>{s.text}</span>+ </div>+ ))}</div>)}- {/* Latency breakdown — how long Jarvis thought / spoke */}- {(turn.think_ms > 0 || turn.speak_ms > 0) && (- <div className="grid grid-cols-2 gap-2 border-t border-border/50 pt-2 text-xs">- <div className="flex items-center gap-1.5">- <Hourglass className="h-3 w-3 text-foreground" />- <span className="text-muted-foreground">{t("turn_card.thought")}</span>- <span className="font-mono text-foreground/90">- {turn.think_ms > 0 ? formatMs(turn.think_ms) : "—"}- </span>- </div>- <div className="flex items-center gap-1.5">- <Volume2 className="h-3 w-3 text-primary" />- <span className="text-muted-foreground">{t("turn_card.spoke")}</span>- <span className="font-mono text-foreground/90">- {turn.speak_ms > 0 ? formatMs(turn.speak_ms) : "—"}- </span>- </div>- </div>+ {/* The facts of the exchange, in one muted line. */}+ {facts.length > 0 && (+ <p className="text-sm text-foreground-faint" data-testid="turn-facts">+ {facts.join(" · ")}+ </p>)}- </CardContent>- </Card>+ </div>+ </article>);}-// --- Helpers ----------------------------------------------------------function formatMs(ms: number): string {if (ms < 1000) return `${ms} ms`;return `${(ms / 1000).toFixed(2)} s`;@@ -407,8 +303,6 @@ export function formatTurnPlain(turn: VoiceTurnRow,spoken: VoiceSpokenLine[] = [],displayNumber: number = turn.idx + 1,- // Callers with store access pass spokenKindLabels(assistantName); the- // default keeps the export usable without a React context (neutral name).kindLabel: Record<string, string> = spokenKindLabels(""),): string {const lines: string[] = [];@@ -446,8 +340,6 @@ export function formatTurnPlain(continue;}const label = (kindLabel[s.spoken_kind] ?? s.spoken_kind).toUpperCase();- // The technical detail is deliberately excluded from the transcript copy —- // it lives in the Run Inspector, not in what was said (user request 2026-06-22).jarvisLines.push({ ts_ms: s.ts_ms, lines: [`[SPOKEN: ${label}] ${s.text}`] });}jarvisLinesdiff --git a/jarvis/ui/web/frontend/src/components/sessions/VoiceModeBadge.tsx b/jarvis/ui/web/frontend/src/components/sessions/VoiceModeBadge.tsxindex 055ae7a92f..044a496953 100644--- a/jarvis/ui/web/frontend/src/components/sessions/VoiceModeBadge.tsx+++ b/jarvis/ui/web/frontend/src/components/sessions/VoiceModeBadge.tsx@@ -11,12 +11,15 @@ interface VoiceModeBadgeProps {className?: string;}+/**+ * The one badge recipe (24 px, 8 px radius, xs step). Realtime wears the+ * accent wash — it is the state worth noticing — pipeline and unknown stay+ * neutral. `prominent` adds the word "Mode" before the value.+ */const MODE_STYLES: Record<KnownVoiceMode, string> = {- realtime:- "border-primary/70 bg-primary/20 text-primary",- pipeline:- "border-sky-500/50 bg-sky-500/15 text-sky-700 dark:text-sky-300",- unknown: "border-border bg-muted/70 text-muted-foreground",+ realtime: "border-accent/20 bg-accent-soft text-accent",+ pipeline: "border-border bg-secondary text-foreground",+ unknown: "border-border bg-secondary text-muted-foreground",};export function VoiceModeBadge({@@ -44,25 +47,20 @@ export function VoiceModeBadge({role="group"aria-label={`${t("voice_mode.label")}: ${modeLabel}`}data-voice-mode={knownMode}+ title={modeLabel}className={cn(- "inline-flex shrink-0 items-center rounded-md border font-semibold",+ "inline-flex h-6 shrink-0 items-center gap-1.5 rounded-md border text-xs font-medium",+ prominence === "prominent" ? "px-2" : "w-6 justify-center",MODE_STYLES[knownMode],- prominence === "prominent"- ? "gap-2 px-2.5 py-1.5 text-xs"- : "gap-1 px-1.5 py-0.5 text-micro",className,)}>+ <ModeIcon aria-hidden="true" className="h-3.5 w-3.5" />{prominence === "prominent" && (- <span className="text-micro font-bold uppercase tracking-[0.14em] opacity-75">- {t("voice_mode.label")}- </span>+ <span className="opacity-70">{t("voice_mode.label")}</span>)}- <ModeIcon- aria-hidden="true"- className={prominence === "prominent" ? "h-4 w-4" : "h-3 w-3"}- />- <span>{modeLabel}</span>+ {/* Compact rows show the glyph alone; the word stays for readers. */}+ <span className={prominence === "prominent" ? undefined : "sr-only"}>{modeLabel}</span></span>);}diff --git a/jarvis/ui/web/frontend/src/i18n/locales/de.json b/jarvis/ui/web/frontend/src/i18n/locales/de.jsonindex 705cf50213..0e8dfaa582 100644--- a/jarvis/ui/web/frontend/src/i18n/locales/de.json+++ b/jarvis/ui/web/frontend/src/i18n/locales/de.json@@ -2317,6 +2317,22 @@"title": "Einstellungen","subtitle": "Wake-Word, Hotkeys, Safety-Policies, Autostart.","overlay_taskbar_group_title": "Leiste & Overlay",+ "nav": {+ "languages": "Sprachen",+ "app": "App",+ "permissions": "Datenschutz-Freigaben",+ "screen_context": "Bildschirmkontext",+ "realtime_voice": "Realtime-Stimme",+ "system_prompt": "Systemprompt",+ "wake_word": "Weckwort",+ "silence_window": "Stillefenster",+ "volume": "Lautstärke",+ "audio_devices": "Audiogeräte",+ "music": "Musik",+ "keybinds": "Tastenkürzel",+ "more": "Weiteres",+ "overlay_taskbar": "Overlay & Taskleiste"+ },"languages_group_title": "Sprachen","music_group_title": "Musik","music": {diff --git a/jarvis/ui/web/frontend/src/i18n/locales/en.json b/jarvis/ui/web/frontend/src/i18n/locales/en.jsonindex d74f7edeb5..b7c05afd4f 100644--- a/jarvis/ui/web/frontend/src/i18n/locales/en.json+++ b/jarvis/ui/web/frontend/src/i18n/locales/en.json@@ -2317,6 +2317,22 @@"title": "Settings","subtitle": "Wake-word, hotkeys, safety policies, autostart.","overlay_taskbar_group_title": "Bar & Overlay",+ "nav": {+ "languages": "Languages",+ "app": "App",+ "permissions": "Privacy permissions",+ "screen_context": "Screen context",+ "realtime_voice": "Realtime voice",+ "system_prompt": "System prompt",+ "wake_word": "Wake word",+ "silence_window": "Silence window",+ "volume": "Volume",+ "audio_devices": "Audio devices",+ "music": "Music",+ "keybinds": "Keyboard shortcuts",+ "more": "More",+ "overlay_taskbar": "Overlay & taskbar"+ },"languages_group_title": "Languages","music_group_title": "Music","music": {diff --git a/jarvis/ui/web/frontend/src/i18n/locales/es.json b/jarvis/ui/web/frontend/src/i18n/locales/es.jsonindex 450e61313e..05584660e9 100644--- a/jarvis/ui/web/frontend/src/i18n/locales/es.json+++ b/jarvis/ui/web/frontend/src/i18n/locales/es.json@@ -2317,6 +2317,22 @@"title": "Ajustes","subtitle": "Palabra de activación, atajos, políticas de seguridad, inicio automático.","overlay_taskbar_group_title": "Barra y superposición",+ "nav": {+ "languages": "Idiomas",+ "app": "Aplicación",+ "permissions": "Permisos de privacidad",+ "screen_context": "Contexto de pantalla",+ "realtime_voice": "Voz en tiempo real",+ "system_prompt": "Prompt del sistema",+ "wake_word": "Palabra de activación",+ "silence_window": "Ventana de silencio",+ "volume": "Volumen",+ "audio_devices": "Dispositivos de audio",+ "music": "Música",+ "keybinds": "Atajos de teclado",+ "more": "Más",+ "overlay_taskbar": "Overlay y barra de tareas"+ },"languages_group_title": "Idiomas","music_group_title": "Música","music": {diff --git a/jarvis/ui/web/frontend/src/views/ProfileView.tsx b/jarvis/ui/web/frontend/src/views/ProfileView.tsxindex e4915e6495..0c35ec3d84 100644--- a/jarvis/ui/web/frontend/src/views/ProfileView.tsx+++ b/jarvis/ui/web/frontend/src/views/ProfileView.tsx@@ -305,19 +305,19 @@ function IdentityStrip({: t("profile_view.people_known").replace("{0}", String(data.people.length));return (- <div className="profile-rise flex items-center gap-row border-b border-border px-8 py-3">+ <div className="profile-rise mx-8 mb-5 flex items-center gap-4 rounded-lg border border-border bg-card p-5"><AvatarButton name={name} hasAvatar={!!data.has_avatar} />- <div className="flex min-w-0 flex-wrap items-baseline gap-x-2.5 gap-y-0.5">- <h1 className="text-lg font-semibold text-foreground-strong">{headline}</h1>- <span className="text-sm text-muted-foreground">+ <div className="flex min-w-0 flex-col gap-0.5">+ <h1 className="truncate text-xl font-semibold text-foreground-strong">{headline}</h1>+ <span className="text-base text-muted-foreground">{t(`profile_view.stages.${stage.key}`)}</span></div><div className="ml-auto flex shrink-0 items-center text-sm text-muted-foreground"><span- className="mr-2 hidden h-1 w-24 overflow-hidden rounded-full bg-secondary sm:block"+ className="mr-3 hidden h-1.5 w-40 overflow-hidden rounded-full bg-secondary sm:block"role="progressbar"aria-valuemin={0}aria-valuemax={TOTAL_FIELDS}@@ -426,7 +426,7 @@ function AvatarButton({ name, hasAvatar }: { name: string | null; hasAvatar: boodisabled={busy}title={hasAvatar ? t("profile_view.avatar_change") : t("profile_view.avatar_upload")}aria-label={hasAvatar ? t("profile_view.avatar_change") : t("profile_view.avatar_upload")}- className="relative flex h-9 w-9 items-center justify-center overflow-hidden rounded-full bg-secondary outline-none transition-colors focus-visible:ring-2 focus-visible:ring-border-strong"+ className="relative flex h-12 w-12 items-center justify-center overflow-hidden rounded-full bg-secondary outline-none transition-colors focus-visible:ring-2 focus-visible:ring-ring">{/* The person's own coloured mark, not a grey disc: identity is one ofthe three jobs colour has, and this is the app's own owner. */}@@ -444,7 +444,7 @@ function AvatarButton({ name, hasAvatar }: { name: string | null; hasAvatar: boodraggable={false}/>) : (- <UserCircle2 className="h-5 w-5 text-muted-foreground" />+ <UserCircle2 className="h-6 w-6 text-muted-foreground" />)}<span className="pointer-events-none absolute inset-0 flex items-center justify-center rounded-full bg-scrim/70 opacity-0 transition-opacity duration-200 group-hover/avatar:opacity-100 group-focus-visible/avatar:opacity-100">@@ -487,7 +487,7 @@ function LedgerRail({ meta }: { meta: Record<string, unknown> }) {const t = useT();return (- <section className="flex min-w-0 flex-col border-r border-border px-8 py-6 lg:min-h-0 lg:overflow-y-auto scrollbar-jarvis">+ <section className="flex min-w-0 flex-col border-r border-border px-8 pb-6 pt-1 lg:min-h-0 lg:overflow-y-auto scrollbar-jarvis"><div className="profile-rise" style={{ animationDelay: "60ms" }}><h2 className="text-lg font-semibold text-foreground-strong">{t("profile_view.section_knowledge")}diff --git a/jarvis/ui/web/frontend/src/views/SessionsView.tsx b/jarvis/ui/web/frontend/src/views/SessionsView.tsxindex 74e9035eda..61e42af907 100644--- a/jarvis/ui/web/frontend/src/views/SessionsView.tsx+++ b/jarvis/ui/web/frontend/src/views/SessionsView.tsx@@ -1,10 +1,3 @@-/**- * Transcription view — master-detail layout for voice sessions.- *- * Left pane: SessionList (chronological). Right pane: detail with header- * + turn timeline + click-to-copy. Live updates via the useSessions hook,- * which reacts to VoiceSessionStarted/Ended bus events.- */import { AlertTriangle, Mic } from "lucide-react";import { useEffect, useState } from "react";import { useEventStore } from "@/store/events";@@ -16,17 +9,16 @@ import { resolveSelectedSessionId } from "@/components/sessions/sessionSelectionimport { useSessionDetail, useSessions } from "@/hooks/useSessions";import { useT } from "@/i18n";+/**+ * Transcription: a 320 px rail of sessions on the sidebar ground, and the+ * chosen session read as a conversation on the page ground.+ */export function SessionsView() {const assistantName = useEventStore((s) => s.assistantName);const t = useT();const sessionsQuery = useSessions();const [selectedId, setSelectedId] = useState<string | null>(null);- // Keep selection aligned with the visible list. A running attempt can be- // selected and then disappear after hangup when the API confirms that it- // contains no transcript. In that case, move to the newest finished- // transcript instead of leaving an invisible row selected in the detail- // pane. Initial selection follows the same rule.useEffect(() => {const list = sessionsQuery.data;if (!list) return;@@ -43,29 +35,23 @@ export function SessionsView() {return (<div className="flex h-full flex-col">- {/* --primary is a fill, never a decorative glyph. */}<ViewHeader- icon={<Mic className="h-4 w-4 text-foreground" />}+ icon={<Mic />}title={t("sessions_view.title")}subtitle={t("sessions_view.subtitle")}/>{/* The recorder being switched off is a degraded state, not a failure:- everything else on this screen still works. So it is a --warning- glyph on the room's own ground, and NOT the near-white band this- used to be — a full-bleed region never rises above its room, and a- status painted in --foreground outshouts every real heading. */}+ everything else on this screen still works, so it is a warning+ callout on the room's own ground. */}{errorMessage && /HTTP 503/.test(errorMessage) && (- <div className="flex items-start gap-3 border-b border-border px-6 py-4">- <AlertTriangle- aria-hidden="true"- className="mt-0.5 h-4 w-4 shrink-0 text-warning"- />+ <div className="mx-8 mb-4 flex items-start gap-3 rounded-lg border border-warning/20 bg-warning/[0.08] px-4 py-3">+ <AlertTriangle aria-hidden="true" className="mt-0.5 h-4 w-4 shrink-0 text-warning" /><div className="min-w-0">- <div className="text-title font-semibold text-foreground-strong">+ <div className="text-base font-medium text-foreground-strong">{t("sessions_view.recorder_disabled")}</div>- <div className="mt-1 text-meta text-muted-foreground">+ <div className="mt-1 text-sm text-muted-foreground">{t("sessions_view.recorder_hint_a")}{" "}<code className="font-mono">[sessions]</code>{" "}{t("sessions_view.recorder_hint_b")}{" "}@@ -77,8 +63,8 @@ export function SessionsView() {</div>)}- <div className="grid min-h-0 flex-1 grid-cols-[320px_1fr]">- <div className="min-h-0 overflow-hidden border-r border-border">+ <div className="grid min-h-0 flex-1 grid-cols-[320px_1fr] border-t border-border">+ <div className="min-h-0 overflow-hidden border-r border-border bg-sidebar"><SessionListsessions={sessionsQuery.data ?? []}selectedId={selectedId}diff --git a/jarvis/ui/web/frontend/src/views/SettingsView.tsx b/jarvis/ui/web/frontend/src/views/SettingsView.tsxindex 7243de51d1..562552ea28 100644--- a/jarvis/ui/web/frontend/src/views/SettingsView.tsx+++ b/jarvis/ui/web/frontend/src/views/SettingsView.tsx@@ -1,4 +1,4 @@-import { useEffect, useState } from "react";+import { useCallback, useEffect, useRef, useState } from "react";import {Settings,Mic,@@ -6,7 +6,8 @@ import {Loader2,Languages,} from "lucide-react";-import { SectionHeader } from "@/components/layout/SectionHeader";+import { PageHeader } from "@/components/layout/PageHeader";+import { cn } from "@/lib/utils";import { Switch } from "@/components/ui/switch";import { Button } from "@/components/ui/button";import { BrandedSelect } from "@/components/ui/select";@@ -73,11 +74,142 @@ interface SettingRow {export function SettingsView() {const t = useT();- // The "{name} opened X" note after a spoken navigation. This switch used to- // be `<Switch defaultChecked />` with no handler — it toggled nothing.- const [autopilotToasts, setAutopilotToasts] = useState(isAutopilotToastsEnabled);+ const scrollRef = useRef<HTMLDivElement>(null);+ const [activeSection, setActiveSection] = useState<string>(SECTIONS[0].id);++ // The nav follows the scroll: the topmost group intersecting the upper+ // third of the column is the active one.+ useEffect(() => {+ const root = scrollRef.current;+ if (!root || typeof IntersectionObserver === "undefined") return;+ const visible = new Map<string, number>();+ const observer = new IntersectionObserver(+ (entries) => {+ for (const entry of entries) {+ const id = (entry.target as HTMLElement).dataset.settingsSection ?? "";+ if (entry.isIntersecting) visible.set(id, entry.boundingClientRect.top);+ else visible.delete(id);+ }+ if (visible.size === 0) return;+ const [top] = [...visible.entries()].sort((a, b) => a[1] - b[1]);+ setActiveSection(top[0]);+ },+ { root, rootMargin: "0px 0px -66% 0px", threshold: 0 },+ );+ root.querySelectorAll<HTMLElement>("[data-settings-section]").forEach((el) => observer.observe(el));+ return () => observer.disconnect();+ }, []);++ const jumpTo = useCallback((id: string) => {+ setActiveSection(id);+ document.getElementById(`settings-${id}`)?.scrollIntoView({ block: "start", behavior: "smooth" });+ }, []);++ return (+ <div className="flex h-full min-h-0 flex-col">+ <div className="px-8">+ <PageHeader+ icon={<Settings />}+ title={t("settings_view.title")}+ description={t("settings_view.subtitle")}+ className="pb-2"+ />+ </div>+ {/* Two columns (v4): a sticky section nav on the left, the groups as+ cards in a bounded column on the right. Each group is fault-isolated:+ one panel throwing costs that one panel, never the whole page. */}+ <div+ data-testid="settings-scroll"+ className="min-h-0 flex-1 overflow-y-auto scrollbar-jarvis"+ ref={scrollRef}+ >+ <div className="flex gap-10 px-8 pb-12 pt-4">+ <SettingsSectionNav sections={SECTIONS} active={activeSection} onPick={jumpTo} />+ <div className="min-w-0 max-w-[880px] flex-1 space-y-10">+ {SECTIONS.map((section) => (+ <section+ key={section.id}+ id={`settings-${section.id}`}+ data-settings-section={section.id}+ className="scroll-mt-4"+ >+ <SettingsGroupBoundary group={section.id}>+ {section.render()}+ </SettingsGroupBoundary>+ </section>+ ))}+ </div>+ </div>+ </div>+ </div>+ );+}- const rows: SettingRow[] = [+/** The groups in page order; the nav on the left reads the same list. */+const SECTIONS: readonly { id: string; labelKey: string; render: () => React.ReactNode }[] = [+ { id: "languages", labelKey: "settings_view.nav.languages", render: () => <LanguagesGroup /> },+ { id: "app", labelKey: "settings_view.nav.app", render: () => <AppSettingsGroup /> },+ { id: "permissions", labelKey: "settings_view.nav.permissions", render: () => <PermissionsPanel /> },+ { id: "screen-context", labelKey: "settings_view.nav.screen_context", render: () => <ScreenContextGroup /> },+ { id: "realtime-voice", labelKey: "settings_view.nav.realtime_voice", render: () => <RealtimeVoiceGroup /> },+ { id: "system-prompt", labelKey: "settings_view.nav.system_prompt", render: () => <SystemPromptGroup /> },+ { id: "wake-word", labelKey: "settings_view.nav.wake_word", render: () => <WakeWordPanel /> },+ { id: "silence-window", labelKey: "settings_view.nav.silence_window", render: () => <SilenceWindowGroup /> },+ { id: "volume", labelKey: "settings_view.nav.volume", render: () => <VolumeGroup /> },+ { id: "audio-devices", labelKey: "settings_view.nav.audio_devices", render: () => <AudioDevicesGroup /> },+ { id: "music", labelKey: "settings_view.nav.music", render: () => <MusicGroup /> },+ { id: "keybinds", labelKey: "settings_view.nav.keybinds", render: () => <KeybindsPanel /> },+ { id: "more", labelKey: "settings_view.nav.more", render: () => <MoreSettings /> },+ { id: "overlay-taskbar", labelKey: "settings_view.nav.overlay_taskbar", render: () => <OverlayTaskbarGroup /> },+];++function SettingsSectionNav({+ sections,+ active,+ onPick,+}: {+ sections: readonly { id: string; labelKey: string }[];+ active: string;+ onPick: (id: string) => void;+}) {+ const t = useT();+ return (+ <nav+ aria-label={t("settings_view.title")}+ data-testid="settings-section-nav"+ className="sticky top-0 hidden w-52 shrink-0 self-start lg:block"+ >+ <ul className="space-y-0.5">+ {sections.map((s) => {+ const isActive = s.id === active;+ return (+ <li key={s.id}>+ <button+ type="button"+ onClick={() => onPick(s.id)}+ aria-current={isActive ? "true" : undefined}+ className={cn(+ "flex h-8 w-full items-center rounded-md px-3 text-left text-base transition-colors",+ "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",+ isActive+ ? "jarvis-nav-active bg-secondary font-medium text-foreground"+ : "text-muted-foreground hover:bg-secondary hover:text-foreground",+ )}+ >+ {t(s.labelKey)}+ </button>+ </li>+ );+ })}+ </ul>+ </nav>+ );+}++function useMoreSettingRows(): SettingRow[] {+ const t = useT();+ const [autopilotToasts, setAutopilotToasts] = useState(isAutopilotToastsEnabled);+ return [{icon: Settings,title: t("settings_view.rows.toasts_title"),@@ -94,75 +226,16 @@ export function SettingsView() {),},];+}+function MoreSettings() {+ const rows = useMoreSettingRows();return (- <div className="flex h-full min-h-0 flex-col px-6">- <SectionHeader- icon={<Settings />}- title={t("settings_view.title")}- subtitle={t("settings_view.subtitle")}- />- {/* Each group is fault-isolated. The panels are independent, each backed- by its own route, so one of them throwing must cost the user that one- panel — not the ability to change any setting at all.-- Cards run the full section width (the 640px form measure left a- column of cards in a sea of black — the same verdict that retired- the shell-level page measure). Groups sit 32px apart so the section- does not read as one mesh. Horizontal padding lives here: the shell- does not supply it. */}- <div- data-testid="settings-scroll"- className="min-h-0 flex-1 space-y-group overflow-y-auto scrollbar-jarvis pb-group"- >- <SettingsGroupBoundary group="languages">- <LanguagesGroup />- </SettingsGroupBoundary>- <SettingsGroupBoundary group="app">- <AppSettingsGroup />- </SettingsGroupBoundary>- <SettingsGroupBoundary group="permissions">- <PermissionsPanel />- </SettingsGroupBoundary>- <SettingsGroupBoundary group="screen-context">- <ScreenContextGroup />- </SettingsGroupBoundary>- <SettingsGroupBoundary group="realtime-voice">- <RealtimeVoiceGroup />- </SettingsGroupBoundary>- <SettingsGroupBoundary group="system-prompt">- <SystemPromptGroup />- </SettingsGroupBoundary>- <SettingsGroupBoundary group="wake-word">- <WakeWordPanel />- </SettingsGroupBoundary>- <SettingsGroupBoundary group="silence-window">- <SilenceWindowGroup />- </SettingsGroupBoundary>- <SettingsGroupBoundary group="volume">- <VolumeGroup />- </SettingsGroupBoundary>- <SettingsGroupBoundary group="audio-devices">- <AudioDevicesGroup />- </SettingsGroupBoundary>- <SettingsGroupBoundary group="music">- <MusicGroup />- </SettingsGroupBoundary>- <SettingsGroupBoundary group="keybinds">- <KeybindsPanel />- </SettingsGroupBoundary>-- <ul className="space-y-stack">- {rows.map((r) => (- <SettingRow key={r.title} row={r} />- ))}- </ul>-- <SettingsGroupBoundary group="overlay-taskbar">- <OverlayTaskbarGroup />- </SettingsGroupBoundary>- </div>- </div>+ <ul className="space-y-3">+ {rows.map((r) => (+ <SettingRow key={r.title} row={r} />+ ))}+ </ul>);}diff --git a/jarvis/ui/web/frontend/src/views/contacts/ContactDetail.tsx b/jarvis/ui/web/frontend/src/views/contacts/ContactDetail.tsxindex a38d667642..31d60e91a1 100644--- a/jarvis/ui/web/frontend/src/views/contacts/ContactDetail.tsx+++ b/jarvis/ui/web/frontend/src/views/contacts/ContactDetail.tsx@@ -132,7 +132,7 @@ export function ContactDetail({return (<div className="flex h-full flex-col overflow-y-auto bg-background scrollbar-jarvis">- <div className="border-b border-border p-6">+ <div className="border-b border-border px-8 py-6"><div className="flex items-start gap-4">{onBack && (<button@@ -146,7 +146,7 @@ export function ContactDetail({)}<IdentityAvatar name={contact.name} size="lg" /><div className="min-w-0 flex-1">- <h3 className="font-display text-page font-semibold text-foreground-strong">+ <h3 className="text-xl font-semibold text-foreground-strong">{contact.name}</h3>{orgLine && <p className="truncate text-meta text-muted-foreground">{orgLine}</p>}@@ -157,7 +157,7 @@ export function ContactDetail({)}<div className="mt-1 flex flex-wrap items-center gap-2">{rel && (- <span className="inline-block rounded-full bg-secondary px-2 py-0.5 text-micro text-muted-foreground">+ <span className="inline-flex h-6 items-center rounded-md border border-border bg-secondary px-2 text-xs font-medium text-muted-foreground">{rel}</span>)}@@ -211,7 +211,7 @@ export function ContactDetail({<buttontype="button"onClick={() => setConfirmCall(callPhone)}- className="inline-flex items-center gap-1.5 rounded-md bg-primary px-3 py-1.5 text-body font-medium text-primary-foreground transition-opacity hover:opacity-90"+ className="inline-flex h-9 items-center gap-2 rounded-md bg-primary px-4 text-base font-medium text-primary-foreground transition-opacity hover:opacity-90"><PhoneCall className="h-3.5 w-3.5" />{t("contacts.call")}@@ -220,7 +220,7 @@ export function ContactDetail({<buttontype="button"onClick={() => requestWikiPage(contact.slug)}- className="inline-flex items-center gap-1.5 rounded-md bg-secondary px-3 py-1.5 text-body text-foreground transition-colors hover:bg-popover"+ className="inline-flex h-9 items-center gap-2 rounded-md border border-border-strong px-4 text-base font-medium text-foreground transition-colors hover:bg-secondary"><BookOpen className="h-3.5 w-3.5" />{t("contacts.openWiki")}@@ -228,7 +228,7 @@ export function ContactDetail({</div></div>- <div className="max-w-reading space-y-group p-6">+ <div className="max-w-3xl space-y-8 px-8 py-6">{contact.emails.length > 0 && (<Field icon={<Mail className="h-4 w-4" />} label={t("contacts.emails")}><ul className="space-y-1">@@ -334,7 +334,7 @@ export function ContactDetail({className="w-full max-w-sm rounded-lg bg-popover p-6 shadow-float"onClick={(e) => e.stopPropagation()}>- <h3 className="font-display text-page font-semibold text-foreground-strong">+ <h3 className="text-xl font-semibold text-foreground-strong">{t("contacts.callTitle")}</h3><p className="mt-2 text-body text-foreground">diff --git a/jarvis/ui/web/frontend/src/views/contacts/ContactRow.tsx b/jarvis/ui/web/frontend/src/views/contacts/ContactRow.tsxindex 1c5db3b720..3286ea5c8e 100644--- a/jarvis/ui/web/frontend/src/views/contacts/ContactRow.tsx+++ b/jarvis/ui/web/frontend/src/views/contacts/ContactRow.tsx@@ -28,29 +28,30 @@ export function ContactRow({type="button"onClick={onClick}className={cn(- "group flex w-full items-center gap-row rounded-md px-3 py-2 text-left transition-colors",- active ? "bg-secondary" : "hover:bg-secondary",+ "group flex min-h-12 w-full items-center gap-3 rounded-md px-3 py-1.5 text-left transition-colors",+ "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",+ active ? "jarvis-nav-active bg-secondary" : "hover:bg-secondary",)}><IdentityAvatar name={contact.name} /><span className="flex min-w-0 flex-1 flex-col"><spanclassName={cn(- "truncate text-body",+ "truncate text-base font-medium",active ? "text-foreground-strong" : "text-foreground",)}>{contact.name}</span>{subtitle && (- <span className="truncate text-meta text-muted-foreground">{subtitle}</span>+ <span className="truncate text-sm text-muted-foreground">{subtitle}</span>)}</span>{contact.favorite && (<Star aria-hidden className="h-3.5 w-3.5 shrink-0 fill-current text-foreground" />)}{rel && (- <span className="rounded-full bg-popover px-2 py-0.5 text-micro text-muted-foreground">+ <span className="inline-flex h-6 items-center rounded-md border border-border bg-secondary px-2 text-xs font-medium text-muted-foreground">{rel}</span>)}diff --git a/jarvis/ui/web/frontend/src/views/contacts/ContactsView.tsx b/jarvis/ui/web/frontend/src/views/contacts/ContactsView.tsxindex de181c0199..c90ceb9b86 100644--- a/jarvis/ui/web/frontend/src/views/contacts/ContactsView.tsx+++ b/jarvis/ui/web/frontend/src/views/contacts/ContactsView.tsx@@ -1,9 +1,11 @@+import { Button } from "@/components/ui/button";+import { EmptyState } from "@/components/ui/empty-state";+import { Input } from "@/components/ui/input";import { useCallback, useEffect, useMemo, useRef, useState } from "react";import {Contact as ContactIcon,Download,Loader2,- Mic,Plus,Search,Star,@@ -273,7 +275,7 @@ export function ContactsView() {return (<div ref={rootRef} className="flex h-full flex-col"><ViewHeader- icon={<ContactIcon className="h-4 w-4" />}+ icon={<ContactIcon />}title={t("nav.contacts")}subtitle={t("contacts.subtitle")}right={@@ -289,41 +291,30 @@ export function ContactsView() {if (file) void handleImportFile(file);}}/>- <button- type="button"+ <Button+ variant="outline"+ size="icon"onClick={() => fileInputRef.current?.click()}disabled={importing}aria-label={t("contacts.import")}title={t("contacts.import")}- className="rounded-md p-1.5 text-muted-foreground transition-colors hover:bg-secondary hover:text-foreground disabled:opacity-50">- {importing ? (- <Loader2 className="h-3.5 w-3.5 animate-spin" />- ) : (- <Upload className="h-3.5 w-3.5" />- )}- </button>- <button- type="button"+ {importing ? <Loader2 className="animate-spin" /> : <Upload />}+ </Button>+ <Button+ variant="outline"+ size="icon"onClick={() => void handleExport()}disabled={!hasContacts}aria-label={t("contacts.export")}title={t("contacts.export")}- className="rounded-md p-1.5 text-muted-foreground transition-colors hover:bg-secondary hover:text-foreground disabled:opacity-50">- <Download className="h-3.5 w-3.5" />- </button>- {/* --primary is a fill, so the one affirmative action on this- screen is a filled button rather than primary-coloured text on- a primary-coloured wash. */}- <button- type="button"- onClick={() => setDialog("create")}- className="inline-flex items-center gap-1.5 rounded-md bg-primary px-3 py-1.5 text-body font-medium text-primary-foreground transition-opacity hover:opacity-90"- >- <Plus className="h-3.5 w-3.5" />+ <Download />+ </Button>+ <Button onClick={() => setDialog("create")}>+ <Plus />{t("contacts.add")}- </button>+ </Button></div>}/>@@ -336,16 +327,22 @@ export function ContactsView() {// rail's own ground. The hairline it used to rely on was the "three// columns separated by nothing" complaint.<div- className={cn("flex shrink-0 flex-col bg-sidebar", narrow ? "w-full" : "w-[320px]")}+ className={cn(+ "flex shrink-0 flex-col border-r border-border bg-sidebar",+ narrow ? "w-full" : "w-[320px]",+ )}>- <div className="space-y-stack border-b border-border p-3">- <div className="flex items-center gap-2 rounded-md bg-secondary px-2.5 py-1.5">- <Search className="h-3.5 w-3.5 text-muted-foreground" />- <input+ <div className="space-y-3 p-3">+ <div className="relative">+ <Search+ aria-hidden+ className="pointer-events-none absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground"+ />+ <Inputvalue={query}onChange={(e) => setQuery(e.target.value)}placeholder={t("contacts.search")}- className="w-full bg-transparent text-body text-foreground outline-none placeholder:text-faint-foreground"+ className="pl-9 ring-offset-sidebar"/></div>{hasContacts && (@@ -403,24 +400,10 @@ export function ContactsView() {) : error ? (<p className="px-3 py-6 text-center text-body text-destructive">{error}</p>) : !hasContacts ? (- <div className="flex flex-col items-center gap-3 px-3 py-8 text-center">- <ContactIcon className="h-8 w-8 text-muted-foreground" />- <p className="text-body text-foreground">{t("contacts.empty")}</p>- <button- type="button"- onClick={() => setDialog("create")}- className="inline-flex items-center gap-1.5 rounded-md bg-primary px-3 py-1.5 text-body font-medium text-primary-foreground transition-opacity hover:opacity-90"- >- <Plus className="h-3.5 w-3.5" />- {t("contacts.add")}- </button>- <p className="flex items-start gap-1.5 text-meta text-muted-foreground">- <Mic className="mt-0.5 h-3.5 w-3.5 shrink-0" />- {t("contacts.voiceHint")}- </p>- </div>+ // The stage carries the empty state; the rail says nothing twice.+ null) : filtered.length === 0 ? (- <p className="px-3 py-6 text-center text-body text-muted-foreground">+ <p className="px-3 py-6 text-center text-base text-muted-foreground">{t("contacts.noMatches")}</p>) : (@@ -465,10 +448,29 @@ export function ContactsView() {void loadList();}}/>+ ) : !hasContacts && !loading ? (+ <div className="flex h-full items-center justify-center p-8">+ <EmptyState+ icon={<ContactIcon />}+ title={t("contacts.empty")}+ description={t("contacts.voiceHint")}+ actions={+ <>+ <Button onClick={() => setDialog("create")}>+ <Plus />+ {t("contacts.add")}+ </Button>+ <Button variant="outline" onClick={() => fileInputRef.current?.click()}>+ <Upload />+ {t("contacts.import")}+ </Button>+ </>+ }+ />+ </div>) : (- <div className="flex h-full flex-col items-center justify-center gap-3 bg-background text-center text-muted-foreground">- <ContactIcon className="h-8 w-8" />- <p className="text-body">{t("contacts.selectHint")}</p>+ <div className="flex h-full items-center justify-center p-8">+ <EmptyState icon={<ContactIcon />} title={t("contacts.selectHint")} /></div>)}</div>@@ -492,7 +494,7 @@ export function ContactsView() {className="w-full max-w-sm rounded-lg bg-popover shadow-float p-6"onClick={(e) => e.stopPropagation()}>- <h3 className="font-display text-page font-semibold text-foreground-strong">+ <h3 className="text-xl font-semibold text-foreground-strong">{t("contacts.deleteTitle")}</h3><p className="mt-2 text-body text-foreground">diff --git a/jarvis/ui/web/frontend/src/views/settings/AppSettingsGroup.tsx b/jarvis/ui/web/frontend/src/views/settings/AppSettingsGroup.tsxindex c870bdb647..092042ad4e 100644--- a/jarvis/ui/web/frontend/src/views/settings/AppSettingsGroup.tsx+++ b/jarvis/ui/web/frontend/src/views/settings/AppSettingsGroup.tsx@@ -24,7 +24,7 @@ export function AppSettingsGroup() {return (<div className="mt-8 space-y-4">- <h3 className="font-display text-xs font-semibold text-muted-foreground">+ <h3 className="text-lg font-semibold text-foreground-strong">{t("settings_view.app_settings_group_title")}</h3><AppearanceRow />diff --git a/jarvis/ui/web/frontend/src/views/settings/LanguagesGroup.tsx b/jarvis/ui/web/frontend/src/views/settings/LanguagesGroup.tsxindex aa1104b3d4..f75dd73180 100644--- a/jarvis/ui/web/frontend/src/views/settings/LanguagesGroup.tsx+++ b/jarvis/ui/web/frontend/src/views/settings/LanguagesGroup.tsx@@ -49,8 +49,8 @@ export function LanguagesGroup() {}, []);return (- <div className="mb-8 space-y-4">- <h3 className="font-display text-xs font-semibold text-muted-foreground">+ <div className="space-y-5">+ <h3 className="text-lg font-semibold text-foreground-strong">{t("settings_view.languages_group_title")}</h3>@@ -90,7 +90,7 @@ export function LanguagesGroup() {testId="stt-language"/></div>- <p className="mt-2 text-xs text-muted-foreground">+ <p className="mt-2 text-sm text-muted-foreground">{t("languages_view.stt_options.auto")}</p></li>@@ -124,12 +124,12 @@ function Section({children: React.ReactNode;}) {return (- <div>- <div className="mb-1 text-micro text-muted-foreground">- {title}+ <div className="rounded-lg border border-border bg-card">+ <div className="border-b border-border px-5 py-4">+ <div className="text-base font-medium text-foreground-strong">{title}</div>+ <div className="mt-1 text-sm text-muted-foreground">{hint}</div></div>- <div className="mb-3 text-xs text-muted-foreground">{hint}</div>- <ul className="space-y-2">{children}</ul>+ <ul className="divide-y divide-border px-2 py-1">{children}</ul></div>);}@@ -152,17 +152,16 @@ function LanguageRow({onClick={onClick}aria-pressed={active}className={cn(- "flex w-full items-center gap-3 rounded-lg border px-4 py-3 text-left text-sm transition-colors",- active- ? "bg-secondary"- : "border-border bg-card hover:border-border-strong hover:bg-secondary",+ "my-1 flex min-h-11 w-full items-center gap-3 rounded-md px-3 py-2 text-left transition-colors",+ "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",+ active ? "bg-secondary" : "hover:bg-secondary",)}><div className="flex-1">- <div className="font-medium">{label}</div>- <div className="mt-0.5 text-xs text-muted-foreground">{description}</div>+ <div className="text-base font-medium text-foreground">{label}</div>+ <div className="text-sm text-muted-foreground">{description}</div></div>- {active && <Check className="h-4 w-4 shrink-0 text-muted-foreground" />}+ {active && <Check className="h-4 w-4 shrink-0 text-accent" />}</button></li>);diff --git a/jarvis/ui/web/frontend/src/views/settings/MusicGroup.tsx b/jarvis/ui/web/frontend/src/views/settings/MusicGroup.tsxindex 6926724359..4bab256b49 100644--- a/jarvis/ui/web/frontend/src/views/settings/MusicGroup.tsx+++ b/jarvis/ui/web/frontend/src/views/settings/MusicGroup.tsx@@ -58,7 +58,7 @@ export function MusicGroup() {return (<div className="mb-8 space-y-4">- <h3 className="font-display text-xs font-semibold text-muted-foreground">+ <h3 className="text-lg font-semibold text-foreground-strong">{t("settings_view.music_group_title")}</h3>diff --git a/jarvis/ui/web/frontend/src/views/settings/OverlayTaskbarGroup.tsx b/jarvis/ui/web/frontend/src/views/settings/OverlayTaskbarGroup.tsxindex 3f1188eec5..edc3026725 100644--- a/jarvis/ui/web/frontend/src/views/settings/OverlayTaskbarGroup.tsx+++ b/jarvis/ui/web/frontend/src/views/settings/OverlayTaskbarGroup.tsx@@ -28,12 +28,12 @@ export function OverlayTaskbarGroup() {return (<div className="mt-8 space-y-4">- <h3 className="font-display text-xs font-semibold text-muted-foreground">+ <h3 className="text-lg font-semibold text-foreground-strong">{t("settings_view.overlay_taskbar_group_title")}</h3><section>- <h4 className="mb-2 font-display text-xs font-semibold text-muted-foreground">+ <h4 className="mb-2 text-base font-medium text-foreground-strong">{t("taskbar_view.appearance_title")}</h4><OverlayStylePanel />@@ -41,7 +41,7 @@ export function OverlayTaskbarGroup() {</section><section>- <h4 className="mb-2 font-display text-xs font-semibold text-muted-foreground">+ <h4 className="mb-2 text-base font-medium text-foreground-strong">{t("taskbar_view.behavior_title")}</h4><div className="overflow-hidden rounded-lg border border-border bg-card">diff --git a/jarvis/ui/web/frontend/src/views/settings/PermissionsPanel.tsx b/jarvis/ui/web/frontend/src/views/settings/PermissionsPanel.tsxindex 5a295ff48e..6c216f98d8 100644--- a/jarvis/ui/web/frontend/src/views/settings/PermissionsPanel.tsx+++ b/jarvis/ui/web/frontend/src/views/settings/PermissionsPanel.tsx@@ -260,7 +260,7 @@ export function PermissionsPanel() {const t = useT();return (<div className="mt-8 space-y-4">- <h3 className="font-display text-xs font-semibold text-muted-foreground">+ <h3 className="text-lg font-semibold text-foreground-strong">{t("permissions.group_title")}</h3><SettingsBlockdiff --git a/jarvis/ui/web/frontend/src/views/settings/SettingsResilience.test.tsx b/jarvis/ui/web/frontend/src/views/settings/SettingsResilience.test.tsxindex 39e5b06280..5ba9ce1846 100644--- a/jarvis/ui/web/frontend/src/views/settings/SettingsResilience.test.tsx+++ b/jarvis/ui/web/frontend/src/views/settings/SettingsResilience.test.tsx@@ -135,9 +135,9 @@ describe("SettingsView against an empty backend", () => {});expect(screen.getByTestId("combo-field-call")).toBeTruthy();// A 640px form cap left the groups as a left-hand column in a sea of- // black. The section fills the window; page padding is on the column.+ // black. The section fills the window; the page gutter sits on the row inside.const scroll = screen.getByTestId("settings-scroll");expect(scroll.className).not.toMatch(/max-w-form/);- expect(scroll.parentElement?.className).toMatch(/px-6/);+ expect(scroll.firstElementChild?.className).toMatch(/px-8/);});});