Skip to content

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.

feat(ui): redesign local models, instructions, profile, artifacts, automations

rubenluetke10-beep17b02acfc5b7
diff --git a/docs/design/redesign/phase-2-agent-instructions-dark.png b/docs/design/redesign/phase-2-agent-instructions-dark.png
new file mode 100644
index 0000000000..7b0b32ea67
Binary files /dev/null and b/docs/design/redesign/phase-2-agent-instructions-dark.png differ
diff --git a/docs/design/redesign/phase-2-agent-instructions-light.png b/docs/design/redesign/phase-2-agent-instructions-light.png
new file mode 100644
index 0000000000..1c20893144
Binary files /dev/null and b/docs/design/redesign/phase-2-agent-instructions-light.png differ
diff --git a/docs/design/redesign/phase-2-local-models-dark.png b/docs/design/redesign/phase-2-local-models-dark.png
new file mode 100644
index 0000000000..0e4695d126
Binary files /dev/null and b/docs/design/redesign/phase-2-local-models-dark.png differ
diff --git a/docs/design/redesign/phase-2-local-models-light.png b/docs/design/redesign/phase-2-local-models-light.png
new file mode 100644
index 0000000000..f81076668d
Binary files /dev/null and b/docs/design/redesign/phase-2-local-models-light.png differ
diff --git a/docs/design/redesign/phase-2-profile-dark.png b/docs/design/redesign/phase-2-profile-dark.png
new file mode 100644
index 0000000000..31caa22ca9
Binary files /dev/null and b/docs/design/redesign/phase-2-profile-dark.png differ
diff --git a/docs/design/redesign/phase-2-profile-light.png b/docs/design/redesign/phase-2-profile-light.png
new file mode 100644
index 0000000000..31caa22ca9
Binary files /dev/null and b/docs/design/redesign/phase-2-profile-light.png differ
diff --git a/docs/design/redesign/phase-2-tasks-dark.png b/docs/design/redesign/phase-2-tasks-dark.png
new file mode 100644
index 0000000000..d2972563fc
Binary files /dev/null and b/docs/design/redesign/phase-2-tasks-dark.png differ
diff --git a/docs/design/redesign/phase-2-tasks-light.png b/docs/design/redesign/phase-2-tasks-light.png
new file mode 100644
index 0000000000..d2972563fc
Binary files /dev/null and b/docs/design/redesign/phase-2-tasks-light.png differ
diff --git a/docs/design/redesign/phase-2-visualization-dark.png b/docs/design/redesign/phase-2-visualization-dark.png
new file mode 100644
index 0000000000..5629e73772
Binary files /dev/null and b/docs/design/redesign/phase-2-visualization-dark.png differ
diff --git a/docs/design/redesign/phase-2-visualization-light.png b/docs/design/redesign/phase-2-visualization-light.png
new file mode 100644
index 0000000000..5629e73772
Binary files /dev/null and b/docs/design/redesign/phase-2-visualization-light.png differ
diff --git a/jarvis/ui/web/frontend/src/components/extensions/primitives.tsx b/jarvis/ui/web/frontend/src/components/extensions/primitives.tsx
index e93064f1a7..93ea09005f 100644
--- a/jarvis/ui/web/frontend/src/components/extensions/primitives.tsx
+++ b/jarvis/ui/web/frontend/src/components/extensions/primitives.tsx
@@ -39,11 +39,9 @@ export function PanelHeader({
return (
<div className={cn("flex items-start justify-between gap-4", className)}>
<div className="min-w-0">
- <h2 className="font-display text-base font-semibold tracking-tight text-foreground">
- {title}
- </h2>
+ <h2 className="text-lg font-semibold text-foreground-strong">{title}</h2>
{subtitle ? (
- <p className="mt-0.5 text-xs text-muted-foreground">{subtitle}</p>
+ <p className="mt-1 text-base text-muted-foreground">{subtitle}</p>
) : null}
</div>
{actions ? (
@@ -84,8 +82,9 @@ export function IconButton({
title={label}
className={cn(
"grid h-8 w-8 place-items-center rounded-md text-muted-foreground transition-colors",
- "hover:bg-accent hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",
- active && "bg-accent text-foreground",
+ "hover:bg-secondary hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",
+ "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background",
+ active && "bg-secondary text-foreground",
className,
)}
>
@@ -126,11 +125,13 @@ export function SoftButton({
aria-expanded={ariaExpanded}
aria-haspopup={ariaHasPopup}
className={cn(
- "inline-flex h-8 items-center gap-1.5 rounded-md px-3 text-xs font-medium transition-colors",
+ "inline-flex h-9 items-center gap-2 rounded-md px-3 text-base font-medium transition-colors",
"disabled:cursor-not-allowed disabled:opacity-50",
+ "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background",
+ "[&>svg]:h-4 [&>svg]:w-4 [&>svg]:shrink-0",
primary
? "bg-primary text-primary-foreground hover:bg-primary/90"
- : "bg-secondary text-foreground hover:bg-popover",
+ : "bg-secondary text-foreground hover:bg-surface-raised",
className,
)}
>
@@ -219,7 +220,7 @@ export function ActionMenu({
}}
className={cn(
"flex w-full items-center gap-2 rounded-md px-2.5 py-1.5 text-left text-xs transition-colors",
- "hover:bg-accent disabled:cursor-not-allowed disabled:opacity-50",
+ "hover:bg-secondary disabled:cursor-not-allowed disabled:opacity-50",
a.destructive && "text-destructive hover:bg-secondary",
)}
>
@@ -288,7 +289,7 @@ export function TableHead({ columns }: { columns: Column[] }) {
return (
<div
role="row"
- className="grid items-center gap-x-5 border-b border-border px-3 py-2.5 text-meta text-muted-foreground"
+ className="grid items-center gap-x-5 border-b border-border px-3 py-2.5 text-sm text-muted-foreground"
style={{ gridTemplateColumns: gridTemplate(columns) }}
>
{columns.map((c) => (
@@ -349,10 +350,10 @@ export function TableRow({
: undefined
}
className={cn(
- "group grid min-h-[54px] items-center gap-x-5 border-b border-border px-3 py-2.5 transition-colors last:border-b-0",
+ "group grid min-h-[48px] items-center gap-x-5 border-b border-border px-3 py-2 transition-colors last:border-b-0",
clickable &&
"cursor-pointer hover:bg-secondary focus:outline-none focus-visible:bg-secondary",
- selected && "bg-sheen/[0.06]",
+ selected && "bg-accent-soft",
className,
)}
style={{ gridTemplateColumns: gridTemplate(columns) }}
@@ -397,7 +398,7 @@ export function Cell({
/** The empty-state block under a table: short, centred, dashed frame. */
export function EmptyRow({ children }: { children: ReactNode }) {
return (
- <div className="rounded-lg border border-dashed border-border px-6 py-10 text-center text-sm text-muted-foreground">
+ <div className="rounded-lg border border-dashed border-border px-6 py-10 text-center text-base text-muted-foreground">
{children}
</div>
);
@@ -412,7 +413,7 @@ export function BackLink({ label, onClick }: { label: string; onClick: () => voi
<button
type="button"
onClick={onClick}
- className="inline-flex items-center gap-1.5 text-sm font-medium text-foreground transition-colors hover:text-foreground"
+ className="inline-flex items-center gap-1.5 rounded-sm text-base font-medium text-muted-foreground transition-colors hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
>
<ArrowLeft className="h-4 w-4" />
{label}
@@ -439,10 +440,10 @@ export function DetailHeader({
{leading}
<div className="min-w-0">
<div className="flex items-center gap-2">
- <h3 className="truncate text-xl font-semibold leading-tight">{title}</h3>
+ <h3 className="truncate text-xl font-semibold text-foreground-strong">{title}</h3>
{titleAccessory}
</div>
- {byline ? <p className="mt-1 text-sm text-muted-foreground">{byline}</p> : null}
+ {byline ? <p className="mt-1 text-base text-muted-foreground">{byline}</p> : null}
</div>
</div>
{actions ? <div className="flex shrink-0 items-center gap-2">{actions}</div> : null}
@@ -596,7 +597,7 @@ export function InlineSearch({
onChange={(e) => onChange(e.target.value)}
placeholder={placeholder}
aria-label={placeholder}
- className="h-8 w-full rounded-md border border-border bg-background px-3 text-sm placeholder:text-faint-foreground focus:outline-none focus:ring-2 focus:ring-border-strong"
+ className="h-9 w-full rounded-md border border-border-strong bg-input px-3 text-base placeholder:text-foreground-faint transition-colors focus:border-accent focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 focus:ring-offset-background"
/>
);
}
@@ -614,7 +615,9 @@ export function SegmentedFilter<T extends string>({
label: string;
}) {
return (
- <div role="tablist" aria-label={label} className="flex items-center gap-1">
+ // Underline tabs (v4): a 2 px accent line under the active tab, a hairline
+ // under the row. Never pill segments.
+ <div role="tablist" aria-label={label} className="flex items-center gap-6 border-b border-border">
{options.map((o) => {
const active = o.id === value;
return (
@@ -625,17 +628,16 @@ export function SegmentedFilter<T extends string>({
aria-selected={active}
onClick={() => onChange(o.id)}
className={cn(
- "inline-flex h-7 items-center gap-1.5 rounded-md px-2.5 text-xs transition-colors",
+ "relative -mb-px inline-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",
active
- ? "bg-secondary font-medium text-foreground"
- : "text-muted-foreground hover:text-foreground",
+ ? "border-accent text-foreground-strong"
+ : "border-transparent text-muted-foreground hover:text-foreground",
)}
>
{o.label}
{typeof o.count === "number" && (
- <span className={cn("tabular-nums", active ? "text-muted-foreground" : "text-muted-foreground/60")}>
- {o.count}
- </span>
+ <span className="text-sm tabular-nums text-foreground-faint">{o.count}</span>
)}
</button>
);
@@ -659,6 +661,25 @@ export function SegmentedFilter<T extends string>({
* `tone` colours the icon and a live pip; the value itself stays
* `foreground` so a row of tiles reads as one block of numbers.
*/
+/**
+ * Four (or fewer) headline numbers as ONE card, the cells separated by
+ * hairlines — the v4 stat row. Put `StatTile`s with `cell` inside.
+ */
+export function StatGroup({ children, className }: { children: ReactNode; className?: string }) {
+ return (
+ <div
+ className={cn(
+ "grid grid-cols-2 overflow-hidden rounded-lg border border-border bg-card xl:grid-cols-4",
+ "[&>*]:border-border [&>*:nth-child(even)]:border-l [&>*:nth-child(n+3)]:border-t",
+ "xl:[&>*:nth-child(n+2)]:border-l xl:[&>*:nth-child(n+3)]:border-t-0",
+ className,
+ )}
+ >
+ {children}
+ </div>
+ );
+}
+
export function StatTile({
icon,
label,
@@ -666,6 +687,7 @@ export function StatTile({
hint,
tone = "ok",
loading,
+ cell = false,
}: {
icon?: ReactNode;
label: string;
@@ -673,6 +695,8 @@ export function StatTile({
hint?: ReactNode;
tone?: "ok" | "warn" | "danger" | "primary" | "success";
loading?: boolean;
+ /** Render as a cell of a `StatGroup` (no ground of its own). */
+ cell?: boolean;
}) {
return (
// A named group, so a screen reader announces "Failed, 0, nothing broke"
@@ -680,9 +704,9 @@ export function StatTile({
<div
role="group"
aria-label={label}
- className="jarvis-stat-tile"
+ className={cell ? "min-w-0 px-5 py-4" : "jarvis-stat-tile"}
>
- <div className="flex items-center gap-2 text-xs text-muted-foreground">
+ <div className="flex items-center gap-2 text-sm text-muted-foreground">
{icon ? (
<span
className={cn(
@@ -715,8 +739,8 @@ export function StatTile({
) : (
<div
className={cn(
- "mt-1.5 truncate font-display text-[22px] font-semibold tabular-nums",
- "tracking-tight text-foreground",
+ "mt-1.5 truncate text-2xl font-semibold tabular-nums",
+ tone === "danger" ? "text-destructive" : "text-foreground-strong",
)}
title={typeof value === "string" ? value : undefined}
>
@@ -729,7 +753,7 @@ export function StatTile({
</div>
) : hint ? (
<div
- className="mt-0.5 truncate text-micro text-muted-foreground"
+ className="mt-0.5 truncate text-sm text-foreground-faint"
title={typeof hint === "string" ? hint : undefined}
>
{hint}
diff --git a/jarvis/ui/web/frontend/src/views/AgentInstructionsView.tsx b/jarvis/ui/web/frontend/src/views/AgentInstructionsView.tsx
index afcb1ad0e4..4a6c6a537f 100644
--- a/jarvis/ui/web/frontend/src/views/AgentInstructionsView.tsx
+++ b/jarvis/ui/web/frontend/src/views/AgentInstructionsView.tsx
@@ -1,31 +1,36 @@
-import { useEffect, useState } from "react";
-import { FilePlus2, RotateCcw, Save, ScrollText } from "lucide-react";
+import { useEffect, useRef, useState } from "react";
+import { FilePlus2, PenLine, RotateCcw, Save, ScrollText } from "lucide-react";
+import { Badge } from "@/components/ui/badge";
import { Button } from "@/components/ui/button";
+import { Card } from "@/components/ui/card";
+import { EmptyState } from "@/components/ui/empty-state";
+import { Textarea } from "@/components/ui/textarea";
+import { PageHeader } from "@/components/layout/PageHeader";
import { useAgentInstructions } from "@/hooks/useAgentInstructions";
import { useEventStore } from "@/store/events";
import { useT } from "@/i18n";
/**
- * AgentInstructionsView — full-page editor for the user's personal
- * standing-instructions file (an AGENTS.md / CLAUDE.md equivalent). The file is
- * named after the assistant (the heading shows the dynamic `<Name>.md`, e.g.
- * "Ruben.md"). It is distinct from the System Prompt: here the user writes their
- * own preferences for how the assistant works with them. Changes apply on the
- * assistant's next message — no restart.
+ * The assistant's standing instructions — one markdown file, edited in place.
*
- * Backed by /api/settings/agent-instructions (GET/PUT/DELETE) via
- * useAgentInstructions.
+ * A PageHeader named after the file, the content capped at the reading
+ * measure, and the editor as ONE card: the textarea, a character count, and
+ * a sticky action row at its foot. Empty, the card opens with an EmptyState
+ * offering the template or a blank page; the textarea stays mounted so the
+ * page never swaps its editor out from under a keyboard.
*/
export function AgentInstructionsView() {
const t = useT();
const { config, loading, error, save } = useAgentInstructions();
const pushToast = useEventStore((s) => s.pushToast);
+ const editorRef = useRef<HTMLTextAreaElement>(null);
const [draft, setDraft] = useState("");
const [saving, setSaving] = useState(false);
+ // "Write from scratch" hides the empty state for this visit even though the
+ // draft is still blank — the user asked for the blank page.
+ const [writing, setWriting] = useState(false);
- // Reflect the server value on load and after every save. Coalesce a
- // missing `content` to "" so a malformed response degrades instead of crashing.
useEffect(() => {
if (config) setDraft(config.content ?? "");
}, [config]);
@@ -35,6 +40,9 @@ export function AgentInstructionsView() {
const dirty = !!config && draft !== (config.content ?? "");
const canRevert = dirty;
const trimmedEmpty = draft.trim().length === 0;
+ // Also while loading: the template button must be the same element before
+ // and after the config lands, so a click queued on it is never lost.
+ const showEmpty = trimmedEmpty && !writing;
async function onSave() {
if (!dirty) return;
@@ -57,94 +65,98 @@ export function AgentInstructionsView() {
if (config?.template) setDraft(config.template);
}
+ function onWriteFromScratch() {
+ setWriting(true);
+ requestAnimationFrame(() => editorRef.current?.focus());
+ }
+
return (
- <div className="flex h-full flex-col gap-4 overflow-y-auto p-6">
- <div className="flex items-start gap-3">
- <ScrollText className="mt-1 h-5 w-5 shrink-0 text-primary" />
- <div className="min-w-0 flex-1">
- <div className="flex items-center gap-2">
- <h1 className="font-display text-xl font-semibold">{filename}</h1>
- <span
- className={`rounded-full px-2 py-0.5 text-micro font-medium uppercase tracking-wide ${
- exists
- ? "border border-primary/40 bg-primary/10 text-primary"
- : "border border-border bg-muted/60 text-muted-foreground"
- }`}
- >
- {exists
- ? t("agent_instructions.active_badge")
- : t("agent_instructions.empty_badge")}
- </span>
- </div>
- <p className="mt-1 max-w-prose text-sm text-muted-foreground">
- {t("agent_instructions.subtitle")}
- </p>
- </div>
- </div>
+ <div className="flex h-full flex-col overflow-y-auto px-8 pb-6">
+ <div className="mx-auto w-full max-w-3xl">
+ <PageHeader
+ icon={<ScrollText />}
+ title={filename}
+ description={t("agent_instructions.subtitle")}
+ actions={
+ !exists ? (
+ <Badge variant="secondary">{t("agent_instructions.empty_badge")}</Badge>
+ ) : undefined
+ }
+ />
- {error && <p className="text-xs text-destructive">{error}</p>}
+ {error && <p className="mb-4 text-sm text-destructive">{error}</p>}
- <div>
- <label className="block text-xs font-medium text-muted-foreground">
- {t("agent_instructions.editor_label")}
- </label>
- <textarea
- data-testid="agent-instructions-editor"
- value={draft}
- onChange={(e) => setDraft(e.target.value)}
- disabled={loading}
- spellCheck={false}
- rows={18}
- placeholder={t("agent_instructions.placeholder")}
- className="jarvis-input-surface mt-1 w-full resize-y rounded-md border border-input px-3 py-2 font-mono text-xs leading-relaxed focus:outline-none focus:ring-1 focus:ring-primary disabled:opacity-50"
- />
- <div className="mt-1.5 flex items-center justify-between">
- <span className="font-mono text-[11px] text-muted-foreground">
- {t("agent_instructions.chars").replace("{0}", String(draft.length))}
- </span>
- {trimmedEmpty && (
- <span className="text-[11px] text-foreground">
- {t("agent_instructions.empty_hint")}
- </span>
+ <Card className="flex flex-col overflow-hidden">
+ <label className="sr-only" htmlFor="agent-instructions-editor">
+ {t("agent_instructions.editor_label")}
+ </label>
+ {showEmpty && (
+ <EmptyState
+ icon={<ScrollText />}
+ title={t("agent_instructions.empty_badge")}
+ description={t("agent_instructions.empty_hint")}
+ actions={
+ <>
+ <Button onClick={onLoadTemplate} disabled={!config?.template}>
+ <FilePlus2 />
+ {t("agent_instructions.load_template")}
+ </Button>
+ <Button variant="outline" onClick={onWriteFromScratch}>
+ <PenLine />
+ {t("agent_instructions.write_from_scratch")}
+ </Button>
+ </>
+ }
+ />
)}
- </div>
- </div>
+ <Textarea
+ id="agent-instructions-editor"
+ ref={editorRef}
+ data-testid="agent-instructions-editor"
+ value={draft}
+ onChange={(e) => setDraft(e.target.value)}
+ onFocus={() => setWriting(true)}
+ disabled={loading}
+ spellCheck={false}
+ placeholder={t("agent_instructions.placeholder")}
+ className={
+ showEmpty
+ ? "sr-only"
+ : "min-h-[60vh] resize-y rounded-none border-0 p-5 text-base leading-7 focus-visible:ring-0 focus-visible:ring-offset-0"
+ }
+ />
+ {/* Sticky action row: count left, Save + Revert right. */}
+ <div className="sticky bottom-0 flex items-center justify-between gap-3 border-t border-border bg-card px-5 py-3">
+ <span className="text-sm tabular-nums text-foreground-faint">
+ {t("agent_instructions.chars").replace("{0}", String(draft.length))}
+ </span>
+ <div className="flex items-center gap-2">
+ {!showEmpty && (
+ <Button
+ variant="ghost"
+ onClick={onLoadTemplate}
+ disabled={loading || !config?.template}
+ >
+ <FilePlus2 />
+ {t("agent_instructions.load_template")}
+ </Button>
+ )}
+ <Button variant="ghost" onClick={onRevert} disabled={loading || !canRevert}>
+ <RotateCcw />
+ {t("agent_instructions.revert")}
+ </Button>
+ <Button onClick={onSave} disabled={saving || loading || !dirty}>
+ <Save />
+ {saving ? t("agent_instructions.saving") : t("agent_instructions.save")}
+ </Button>
+ </div>
+ </div>
+ </Card>
- <div className="flex flex-wrap items-center gap-3">
- <Button
- size="sm"
- onClick={onSave}
- disabled={saving || loading || !dirty}
- className="gap-1.5"
- >
- <Save className="h-3.5 w-3.5" />
- {saving ? t("agent_instructions.saving") : t("agent_instructions.save")}
- </Button>
- <Button
- size="sm"
- variant="outline"
- onClick={onLoadTemplate}
- disabled={loading || !config?.template}
- className="gap-1.5"
- >
- <FilePlus2 className="h-3.5 w-3.5" />
- {t("agent_instructions.load_template")}
- </Button>
- <Button
- size="sm"
- variant="outline"
- onClick={onRevert}
- disabled={loading || !canRevert}
- className="gap-1.5"
- >
- <RotateCcw className="h-3.5 w-3.5" />
- {t("agent_instructions.revert")}
- </Button>
+ <p className="mt-3 text-sm text-muted-foreground">
+ {t("agent_instructions.applies_next_turn")}
+ </p>
</div>
-
- <p className="text-[11px] text-muted-foreground">
- {t("agent_instructions.applies_next_turn")}
- </p>
</div>
);
}
diff --git a/jarvis/ui/web/frontend/src/views/AutomationsView.tsx b/jarvis/ui/web/frontend/src/views/AutomationsView.tsx
index 0f92b13fa5..b2ee93f314 100644
--- a/jarvis/ui/web/frontend/src/views/AutomationsView.tsx
+++ b/jarvis/ui/web/frontend/src/views/AutomationsView.tsx
@@ -42,6 +42,7 @@ import {
PanelHeader,
SegmentedFilter,
SoftButton,
+ StatGroup,
StatTile,
} from "@/components/extensions/primitives";
import { fill, useT } from "@/i18n";
@@ -208,7 +209,7 @@ export function AutomationsView() {
return (
<div className="flex h-full flex-col">
<ViewHeader
- icon={<Workflow className="h-4 w-4" />}
+ icon={<Workflow />}
title={t("automations_view.title")}
subtitle={t("automations_view.subtitle")}
right={
@@ -238,7 +239,7 @@ export function AutomationsView() {
)}
<ScrollArea className="flex-1">
- <div className="flex flex-col gap-group py-6">
+ <div className="flex flex-col gap-6 px-8 py-6">
{notice && (
<div
role="status"
@@ -266,8 +267,9 @@ export function AutomationsView() {
)}
{/* Headline numbers — what is armed, what happens next, what broke. */}
- <div className="grid gap-stack sm:grid-cols-2 xl:grid-cols-4">
+ <StatGroup>
<StatTile
+ cell
icon={<Zap className="h-4 w-4" />}
label={t("automations_view.stat_active")}
value={stats.active}
@@ -280,6 +282,7 @@ export function AutomationsView() {
loading={tasksQuery.isLoading}
/>
<StatTile
+ cell
icon={<Timer className="h-4 w-4" />}
label={t("automations_view.stat_next")}
value={<NextRunValue dueNs={stats.nextDueNs} />}
@@ -287,6 +290,7 @@ export function AutomationsView() {
loading={tasksQuery.isLoading}
/>
<StatTile
+ cell
icon={<CalendarClock className="h-4 w-4" />}
label={t("automations_view.stat_schedules")}
value={stats.schedules}
@@ -294,6 +298,7 @@ export function AutomationsView() {
loading={tasksQuery.isLoading}
/>
<StatTile
+ cell
icon={<AlertTriangle className="h-4 w-4" />}
label={t("automations_view.stat_problems")}
value={stats.problems}
@@ -301,7 +306,7 @@ export function AutomationsView() {
tone={stats.problems > 0 ? "danger" : "success"}
loading={tasksQuery.isLoading}
/>
- </div>
+ </StatGroup>
<SegmentedFilter<Tab>
label={t("automations_view.tabs_label")}
diff --git a/jarvis/ui/web/frontend/src/views/ChatsView.tsx b/jarvis/ui/web/frontend/src/views/ChatsView.tsx
index 81ec0c0813..b1e0156e14 100644
--- a/jarvis/ui/web/frontend/src/views/ChatsView.tsx
+++ b/jarvis/ui/web/frontend/src/views/ChatsView.tsx
@@ -1,4 +1,5 @@
import { useCallback, useEffect, useLayoutEffect, type ReactNode } from "react";
+import { PageHeader } from "@/components/layout/PageHeader";
import { MessageSquare, Mic, Plus, Trash2, AudioLines } from "lucide-react";
import { identityInitial, identityMark } from "@/lib/identityHue";
import {
@@ -525,37 +526,28 @@ export function ViewHeader({
}: {
icon: ReactNode;
title: string;
- // Optional inline accessory rendered right next to the title (e.g. a
- // "Research Preview" / "Beta" pill). Absent for every other view.
titleBadge?: ReactNode;
subtitle?: string;
right?: ReactNode;
}) {
+ // The one header every view wears (v4): `PageHeader` at the view gutter.
+ // `titleBadge` rides in the actions slot, before the view's own controls.
return (
- <header className="flex items-center gap-stack border-b border-border px-6 py-4">
- {/*
- * The icon box is a lift tile with no rim — a fill and a border around
- * the same 32px square is the belt-and-braces this system drops. The
- * `[&_svg]:` rule is the single point where the mark is neutralised:
- * most call sites hand this header an icon painted with --primary, and
- * --primary is a fill, never a decorative glyph. Setting it here means
- * one edit answers for every section instead of thirty.
- */}
- <div className="flex h-8 w-8 shrink-0 items-center justify-center rounded-md bg-secondary [&_svg]:text-muted-foreground">
- {icon}
- </div>
- <div className="flex-1 min-w-0">
- <div className="flex items-center gap-row">
- <h2 className="truncate font-display text-page font-semibold text-foreground-strong">
- {title}
- </h2>
- {titleBadge}
- </div>
- {subtitle && (
- <p className="truncate text-meta text-muted-foreground">{subtitle}</p>
- )}
- </div>
- {right}
- </header>
+ <div className="shrink-0 px-8">
+ <PageHeader
+ icon={icon}
+ title={title}
+ description={subtitle}
+ className="pb-4"
+ actions={
+ titleBadge || right ? (
+ <>
+ {titleBadge}
+ {right}
+ </>
+ ) : undefined
+ }
+ />
+ </div>
);
}
diff --git a/jarvis/ui/web/frontend/src/views/LocalModelsView.tsx b/jarvis/ui/web/frontend/src/views/LocalModelsView.tsx
index e7728d73c0..b1fbf577db 100644
--- a/jarvis/ui/web/frontend/src/views/LocalModelsView.tsx
+++ b/jarvis/ui/web/frontend/src/views/LocalModelsView.tsx
@@ -27,8 +27,9 @@ import {
Panel,
PanelHeader,
SegmentedFilter,
- SoftButton,
} from "@/components/extensions/primitives";
+import { Button } from "@/components/ui/button";
+import { PageHeader } from "@/components/layout/PageHeader";
import { useInventory, useReloadLocalModels } from "@/hooks/useLocalModels";
import { useProviders } from "@/hooks/useProviders";
import {
@@ -46,6 +47,7 @@ import { InventoryPanel } from "@/views/local-models/InventoryPanel";
import { OverviewPanel } from "@/views/local-models/OverviewPanel";
import { ServerPanel } from "@/views/local-models/ServerPanel";
import { TuneSheet } from "@/views/local-models/TuneSheet";
+import { OllamaIcon } from "@/components/icons/OllamaIcon";
import { useEventStore } from "@/store/events";
import { useLocaleChunk, useT } from "@/i18n";
@@ -150,41 +152,39 @@ export function LocalModelsView() {
return (
<div className="flex h-full min-h-0 w-full flex-col">
- <div className="flex w-full shrink-0 flex-col gap-4 px-8 py-6">
- <BackLink
- label={t("local_models.back")}
- onClick={() => setActiveSection("apikeys")}
- />
- <PanelHeader
+ <div className="w-full shrink-0 px-8">
+ <div className="pt-4">
+ <BackLink label={t("local_models.back")} onClick={() => setActiveSection("apikeys")} />
+ </div>
+ <PageHeader
+ icon={<OllamaIcon />}
title={t("local_models.title")}
- subtitle={t("local_models.subtitle")}
+ description={t("local_models.subtitle")}
+ className="pt-3"
+ actions={
+ <Button
+ variant="outline"
+ onClick={onReload}
+ disabled={!providerId || reloading}
+ aria-label={t("local_models.reload")}
+ >
+ {reloading ? <Loader2 className="animate-spin" /> : <RefreshCw />}
+ {t("local_models.reload")}
+ </Button>
+ }
+ tabs={
+ <SegmentedFilter<LocalModelsTab>
+ label={t("local_models.tabs_label")}
+ value={tab}
+ onChange={setTab}
+ options={tabs}
+ />
+ }
/>
-
- <div className="flex flex-wrap items-center justify-between gap-3">
- <SegmentedFilter<LocalModelsTab>
- label={t("local_models.tabs_label")}
- value={tab}
- onChange={setTab}
- options={tabs}
- />
- <SoftButton
- onClick={onReload}
- disabled={!providerId || reloading}
- ariaLabel={t("local_models.reload")}
- className="h-8"
- >
- {reloading ? (
- <Loader2 className="h-3.5 w-3.5 animate-spin" />
- ) : (
- <RefreshCw className="h-3.5 w-3.5" />
- )}
- {t("local_models.reload")}
- </SoftButton>
- </div>
</div>
<ScrollArea className="min-h-0 flex-1">
- <div className="flex w-full flex-col gap-4 px-8 pb-6">
+ <div className="flex w-full flex-col gap-5 px-8 py-6">
{loading && !providerId && (
<p className="text-sm text-muted-foreground">
{t("local_models.loading")}
diff --git a/jarvis/ui/web/frontend/src/views/ProfileView.tsx b/jarvis/ui/web/frontend/src/views/ProfileView.tsx
index f2eae4b896..e4915e6495 100644
--- a/jarvis/ui/web/frontend/src/views/ProfileView.tsx
+++ b/jarvis/ui/web/frontend/src/views/ProfileView.tsx
@@ -183,9 +183,9 @@ function RailHeading({
}) {
return (
<div className="flex items-baseline gap-2">
- <h3 className="text-title font-semibold text-foreground-strong">{title}</h3>
+ <h3 className="text-sm font-medium uppercase tracking-wide text-foreground-faint">{title}</h3>
{count !== undefined && count !== "" && (
- <span className="text-meta tabular-nums text-muted-foreground">{count}</span>
+ <span className="text-sm tabular-nums text-foreground-faint">{count}</span>
)}
<span className="ml-auto flex items-center">{right}</span>
</div>
@@ -246,13 +246,17 @@ export function ProfileView() {
<div
className={cn(
"grid min-h-0 flex-1 grid-cols-1 overflow-y-auto scrollbar-jarvis",
- "lg:grid-cols-[minmax(320px,1fr)_minmax(0,1.15fr)_minmax(280px,330px)]",
+ "lg:grid-cols-[minmax(360px,1fr)_minmax(0,1.25fr)]",
"lg:overflow-hidden",
)}
>
<LedgerRail meta={meta} />
- <SourceRail />
- <MarginRail data={data} meta={meta} />
+ {/* Two columns (v4): the source, with the "would love to know"
+ prompt and the review queue stacked under it as cards. */}
+ <div className="flex min-w-0 flex-col lg:min-h-0 lg:overflow-y-auto scrollbar-jarvis">
+ <SourceRail />
+ <MarginRail data={data} meta={meta} />
+ </div>
</div>
</>
)}
@@ -301,17 +305,30 @@ 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-6 py-3">
+ <div className="profile-rise flex items-center gap-row border-b border-border px-8 py-3">
<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="font-display text-title font-semibold text-foreground-strong">{headline}</h1>
- <span className="text-meta text-muted-foreground">
+ <h1 className="text-lg font-semibold text-foreground-strong">{headline}</h1>
+ <span className="text-sm text-muted-foreground">
{t(`profile_view.stages.${stage.key}`)}
</span>
</div>
- <div className="ml-auto flex shrink-0 items-center text-meta text-muted-foreground">
+ <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"
+ role="progressbar"
+ aria-valuemin={0}
+ aria-valuemax={TOTAL_FIELDS}
+ aria-valuenow={filled}
+ data-testid="profile-progress"
+ >
+ <span
+ className="block h-full rounded-full bg-accent"
+ style={{ width: `${Math.round((filled / Math.max(TOTAL_FIELDS, 1)) * 100)}%` }}
+ />
+ </span>
<span className="tabular-nums text-foreground">{ratio}</span>
<Dot />
{peopleLine}
@@ -470,12 +487,12 @@ function LedgerRail({ meta }: { meta: Record<string, unknown> }) {
const t = useT();
return (
- <section className="flex min-w-0 flex-col bg-sidebar px-6 py-6 lg:min-h-0 lg:overflow-y-auto lg:py-7 scrollbar-jarvis">
+ <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">
<div className="profile-rise" style={{ animationDelay: "60ms" }}>
- <h2 className="font-display text-page font-semibold text-foreground-strong">
+ <h2 className="text-lg font-semibold text-foreground-strong">
{t("profile_view.section_knowledge")}
</h2>
- <p className="mt-1 text-meta text-muted-foreground">
+ <p className="mt-1 text-base text-muted-foreground">
{t("profile_view.section_knowledge_sub")}
</p>
</div>
@@ -669,15 +686,15 @@ function EditableFieldRow({
// affordance that fills it in.
if (!editing) {
return (
- <div className="group flex items-baseline justify-between gap-3 rounded-md px-2 py-1.5 -mx-2 transition-colors hover:bg-secondary">
- <dt className="shrink-0 text-meta text-muted-foreground">{label}</dt>
+ <div className="group -mx-2 flex min-h-10 items-center justify-between gap-3 rounded-md px-2 py-1 transition-colors hover:bg-secondary">
+ <dt className="shrink-0 text-base text-muted-foreground">{label}</dt>
<dd className="flex min-w-0 max-w-[68%] items-center justify-end gap-2">
{kind === "list" && !empty ? (
<div className="flex flex-wrap justify-end gap-1">
{(value as unknown[]).map((item) => (
<span
key={String(item)}
- className="rounded-full bg-secondary px-2 py-0.5 text-meta text-foreground group-hover:bg-popover"
+ className="rounded-md border border-border bg-secondary px-2 text-sm leading-6 text-foreground"
>
{String(item)}
</span>
@@ -687,12 +704,12 @@ function EditableFieldRow({
<span
aria-label={t("profile_view.field_unknown")}
title={t("profile_view.field_unknown")}
- className="text-body text-faint-foreground"
+ className="text-base text-foreground-faint"
>
—
</span>
) : (
- <span className="text-body text-foreground [overflow-wrap:anywhere]">
+ <span className="text-base text-foreground [overflow-wrap:anywhere]">
{renderValue(t, value)}
</span>
)}
@@ -851,7 +868,7 @@ function MarginRail({
meta: Record<string, unknown>;
}) {
return (
- <aside className="flex min-w-0 flex-col gap-group bg-sidebar px-5 py-6 lg:min-h-0 lg:overflow-y-auto lg:py-8 scrollbar-jarvis">
+ <aside className="flex min-w-0 flex-col gap-6 border-t border-border px-8 py-6">
<div className="profile-rise" style={{ animationDelay: "80ms" }}>
<AskCard meta={meta} />
</div>
@@ -882,8 +899,8 @@ function AskCard({ meta }: { meta: Record<string, unknown> }) {
// rail. The nested "say this" well steps UP to --secondary rather than down
// into a translucent wash of the page behind it.
return (
- <div className="rounded-lg bg-card p-block shadow-rim">
- <div className="flex items-center gap-1.5 text-meta text-muted-foreground">
+ <div className="rounded-lg border border-border bg-card p-5">
+ <div className="flex items-center gap-1.5 text-sm text-muted-foreground">
<Sparkles className="h-3.5 w-3.5" />
{t("profile_view.ask_title")}
<span className="ml-auto tabular-nums">
@@ -891,7 +908,7 @@ function AskCard({ meta }: { meta: Record<string, unknown> }) {
</span>
</div>
- <p className="mt-2.5 font-display text-title font-semibold text-foreground-strong">
+ <p className="mt-2.5 text-lg font-semibold text-foreground-strong">
{t(`profile_view.questions.${q.field}`)}
</p>
@@ -911,7 +928,7 @@ function AskCard({ meta }: { meta: Record<string, unknown> }) {
type="button"
data-testid="ask-next"
onClick={() => setIdx((i) => i + 1)}
- className="inline-flex items-center gap-1 rounded-full bg-secondary px-3 py-1 text-meta font-medium text-foreground transition-colors hover:bg-popover"
+ className="inline-flex h-8 items-center gap-1 rounded-md border border-border-strong px-3 text-sm font-medium text-foreground transition-colors hover:bg-secondary focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
>
{t("profile_view.ask_next")}
<ChevronRight className="h-3 w-3" />
@@ -1527,9 +1544,10 @@ function SourceRail() {
data-testid="profile-source-markdown"
className={cn(
PROSE_BASE,
- "max-w-reading text-reading text-foreground",
- "prose-headings:font-display prose-headings:text-foreground-strong",
- "prose-h1:text-page prose-h2:mt-group prose-h2:text-title prose-h3:text-title",
+ "max-w-3xl text-base leading-7 text-foreground",
+ "prose-headings:text-foreground-strong",
+ "prose-h1:text-xl prose-h2:mt-group prose-h2:text-lg prose-h3:text-lg",
+ "prose-blockquote:border-l-2 prose-blockquote:border-border prose-blockquote:pl-4 prose-blockquote:font-normal prose-blockquote:not-italic prose-blockquote:text-muted-foreground",
"prose-p:text-foreground prose-li:text-foreground prose-strong:text-foreground-strong",
)}
>
diff --git a/jarvis/ui/web/frontend/src/views/VisualizationView.tsx b/jarvis/ui/web/frontend/src/views/VisualizationView.tsx
index 0144b64951..915c7d2326 100644
--- a/jarvis/ui/web/frontend/src/views/VisualizationView.tsx
+++ b/jarvis/ui/web/frontend/src/views/VisualizationView.tsx
@@ -17,6 +17,7 @@ import {
} from "lucide-react";
import { Button } from "@/components/ui/button";
+import { EmptyState } from "@/components/ui/empty-state";
import { ScrollArea } from "@/components/ui/scroll-area";
import { OutputPreview } from "@/components/visualization/OutputPreview";
import { RunGraphPanel } from "@/components/visualization/RunGraphPanel";
@@ -97,11 +98,11 @@ import {
/** What a row's status dot means — the run vocabulary, one language. */
const RUN_DOT: Record<OutputStatus, string> = {
- success: "bg-muted-foreground",
+ success: "bg-success",
error: "bg-destructive",
- running: "bg-foreground/70 animate-pulse",
- cancelled: "bg-foreground",
- unknown: "bg-muted-foreground/50",
+ running: "bg-success animate-pulse",
+ cancelled: "bg-warning",
+ unknown: "bg-muted-foreground",
};
const KIND_ICON: Record<VisualKind, typeof Globe> = {
@@ -383,21 +384,20 @@ export function VisualizationView() {
return (
<div className="flex h-full min-h-0 flex-col">
<ViewHeader
- icon={<Shapes className="h-4 w-4 text-primary" aria-hidden />}
+ icon={<Shapes aria-hidden />}
title={t("visualization.title")}
subtitle={t("visualization.subtitle")}
right={
<Button
variant="outline"
- size="sm"
onClick={refetch}
disabled={loading}
data-testid="visualization-refresh"
>
{loading ? (
- <Loader2 className="mr-1.5 h-3.5 w-3.5 animate-spin" aria-hidden />
+ <Loader2 className="animate-spin" aria-hidden />
) : (
- <RefreshCw className="mr-1.5 h-3.5 w-3.5" aria-hidden />
+ <RefreshCw aria-hidden />
)}
{t("visualization.refresh")}
</Button>
@@ -406,20 +406,12 @@ export function VisualizationView() {
<div className="flex min-h-0 flex-1">
{/* Rail — builds in progress first, then every artifact and run, newest first. */}
- <aside className="flex w-72 shrink-0 flex-col border-r border-border">
- <div className="flex flex-col gap-2 border-b border-border px-3 py-2">
- <p className="text-[11px] font-medium uppercase tracking-wide text-muted-foreground">
- {t("visualization.rail")}
- {rows.length > 0 && (
- <span className="ml-1.5 normal-case tracking-normal text-muted-foreground/70">
- · {rows.length}
- </span>
- )}
- </p>
+ <aside className="flex w-80 shrink-0 flex-col border-r border-border bg-sidebar">
+ <div className="flex flex-col gap-2 px-3 pt-1">
<RailFilterControl filter={filter} counts={counts} onChange={setFilter} />
</div>
<ScrollArea className="min-h-0 flex-1">
- <ul className="space-y-1 p-2" data-testid="visualization-artifacts">
+ <ul className="space-y-0.5 p-2" data-testid="visualization-artifacts">
{rows.map((row) => (
<li key={row.key}>
<RailRowButton
@@ -431,7 +423,7 @@ export function VisualizationView() {
))}
</ul>
{gallery.skippedRuns > 0 && (
- <p className="px-3 pb-3 text-[11px] text-muted-foreground/70">
+ <p className="px-3 pb-3 text-sm text-foreground-faint">
{t("visualization.older_not_scanned").replace(
"{0}",
String(gallery.scannedRuns),
@@ -483,10 +475,11 @@ function RailFilterControl({
{ id: "outputs", label: t("visualization.filter_outputs") },
];
return (
+ // Underline tabs (v4), never pill segments.
<div
role="radiogroup"
aria-label={t("visualization.rail_filter")}
- className="flex items-center rounded-md border border-border bg-secondary/40 p-0.5"
+ className="flex items-center gap-5 border-b border-border"
data-testid="visualization-filter"
>
{options.map(({ id, label }) => (
@@ -498,14 +491,15 @@ function RailFilterControl({
onClick={() => onChange(id)}
data-testid={`visualization-filter-${id}`}
className={cn(
- "inline-flex flex-1 items-center justify-center gap-1 rounded px-1.5 py-1 text-[11px] font-medium transition-colors",
+ "relative -mb-px inline-flex h-10 items-center gap-1.5 border-b-2 text-base font-medium transition-colors",
+ "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
filter === id
- ? "bg-background text-foreground"
- : "text-muted-foreground hover:text-foreground",
+ ? "border-accent text-foreground-strong"
+ : "border-transparent text-muted-foreground hover:text-foreground",
)}
>
{label}
- <span className="tabular-nums text-muted-foreground/70">{counts[id]}</span>
+ <span className="text-sm tabular-nums text-foreground-faint">{counts[id]}</span>
</button>
))}
</div>
@@ -523,10 +517,11 @@ function RailRowButton({
}) {
const t = useT();
const base = cn(
- "flex w-full items-start gap-2 rounded-md px-2 py-2 text-left text-xs transition-colors",
+ "flex w-full items-start gap-2.5 rounded-md px-3 py-3 text-left text-sm transition-colors",
+ "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
active
- ? "bg-primary/15 text-foreground"
- : "text-muted-foreground hover:bg-secondary/60 hover:text-foreground",
+ ? "bg-secondary text-foreground"
+ : "text-muted-foreground hover:bg-secondary hover:text-foreground",
);
// Every row can be dragged onto the Jarvis dock — the run is what the dock
// takes, whichever of its artifacts the row happens to show.
@@ -552,7 +547,7 @@ function RailRowButton({
>
<Loader2 className="mt-0.5 h-3.5 w-3.5 shrink-0 animate-spin text-primary" aria-hidden />
<span className="min-w-0 flex-1">
- <span className="block truncate font-medium text-foreground">
+ <span className="block truncate text-base font-medium text-foreground">
{parsed?.title || t("visualization.building")}
</span>
<span className="block truncate">{t("visualization.building")}</span>
@@ -586,7 +581,7 @@ function RailRowButton({
/>
</span>
<span className="min-w-0 flex-1">
- <span className="block truncate font-medium text-foreground">{visual.title}</span>
+ <span className="block truncate text-base font-medium text-foreground">{visual.title}</span>
<span className="block truncate">
{[
formatWhen(visual.mtime),
@@ -627,7 +622,7 @@ function RailRowButton({
)}
</span>
<span className="min-w-0 flex-1">
- <span className="block truncate font-medium text-foreground">{runTitle(run)}</span>
+ <span className="block truncate text-base font-medium text-foreground">{runTitle(run)}</span>
<span className="block truncate">
{[formatWhen(runWhen(run)), run.summary?.trim() || run.terminal_reason || status]
.filter(Boolean)
@@ -807,22 +802,25 @@ function ArtifactToolbar({
];
return (
- <div className="flex shrink-0 items-center gap-3 border-b border-border px-4 py-2">
- <div className="min-w-0 flex-1">
- <div className="flex min-w-0 items-center gap-2">
- <p className="truncate text-sm font-medium" data-testid="visualization-title">
+ <div className="flex shrink-0 items-end gap-4 border-b border-border px-6 pt-4">
+ <div className="min-w-0 flex-1 pb-3">
+ <div className="flex min-w-0 items-center gap-3">
+ <p
+ className="truncate text-xl font-semibold text-foreground-strong"
+ data-testid="visualization-title"
+ >
{title}
</p>
{run && <RunStatusBadge run={run} />}
{run && <RunActions run={run} onJumpToRun={onJumpToRun} />}
</div>
- <p className="truncate text-[11px] text-muted-foreground">{caption}</p>
+ <p className="mt-0.5 truncate text-sm text-muted-foreground">{caption}</p>
</div>
<div
role="tablist"
aria-label={t("visualization.stage_tabs")}
- className="flex shrink-0 items-center rounded-md border border-border bg-secondary/40 p-0.5"
+ className="-mb-px flex shrink-0 items-center gap-5"
>
{tabs
.filter((tab) => tab.show)
@@ -835,19 +833,20 @@ function ArtifactToolbar({
onClick={() => onMode(id)}
data-testid={`visualization-tab-${id}`}
className={cn(
- "inline-flex items-center gap-1.5 rounded px-2 py-1 text-[11px] font-medium transition-colors",
+ "relative inline-flex h-10 items-center gap-1.5 border-b-2 text-base font-medium transition-colors",
+ "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
mode === id
- ? "bg-background text-foreground"
- : "text-muted-foreground hover:text-foreground",
+ ? "border-accent text-foreground-strong"
+ : "border-transparent text-muted-foreground hover:text-foreground",
)}
>
- <Icon className="h-3.5 w-3.5" aria-hidden />
+ <Icon className="h-4 w-4" aria-hidden />
{label}
</button>
))}
</div>
- <div className="flex shrink-0 items-center gap-1">
+ <div className="flex shrink-0 items-center gap-1 pb-3">
{mode === "run" && slug && (
<Button
variant="ghost"
@@ -928,7 +927,7 @@ function ArtifactStage({ visual }: { visual: VisualArtifact }) {
if (failed) {
return (
<div className="flex h-full items-center justify-center p-8 text-center">
- <p className="max-w-sm text-xs text-muted-foreground">
+ <p className="max-w-sm text-base text-muted-foreground">
{t("visualization.render_failed")}
</p>
</div>
@@ -963,7 +962,7 @@ function ArtifactStage({ visual }: { visual: VisualArtifact }) {
sandbox="allow-scripts"
className="min-h-0 w-full flex-1 border-0 bg-background"
/>
- <p className="flex shrink-0 items-center gap-1.5 border-t border-border px-4 py-1.5 text-[11px] text-muted-foreground">
+ <p className="flex shrink-0 items-center gap-1.5 border-t border-border px-4 py-1.5 text-sm text-muted-foreground">
<ShieldCheck className="h-3 w-3 shrink-0" aria-hidden />
{t("visualization.page_sandbox_note")}
</p>
@@ -984,7 +983,7 @@ function ArtifactStage({ visual }: { visual: VisualArtifact }) {
sandbox=""
className="min-h-0 w-full flex-1 border-0 bg-white"
/>
- <p className="flex shrink-0 items-center gap-1.5 border-t border-border px-4 py-1.5 text-[11px] text-muted-foreground">
+ <p className="flex shrink-0 items-center gap-1.5 border-t border-border px-4 py-1.5 text-sm text-muted-foreground">
<ShieldCheck className="h-3 w-3 shrink-0" aria-hidden />
{t("visualization.sandbox_note")}
</p>
@@ -1006,13 +1005,13 @@ function ArtifactSource({ slug, path }: { slug: string; path: string }) {
if (file.isError || !file.data) {
return (
<div className="flex h-full items-center justify-center p-8 text-center">
- <p className="text-xs text-muted-foreground">{t("visualization.source_failed")}</p>
+ <p className="text-base text-muted-foreground">{t("visualization.source_failed")}</p>
</div>
);
}
return (
<pre
- className="h-full overflow-auto whitespace-pre-wrap break-words p-4 font-mono text-[11px] leading-relaxed text-foreground/90"
+ className="h-full overflow-auto whitespace-pre-wrap break-words p-4 font-mono text-sm leading-relaxed text-foreground/90"
data-testid="visualization-source"
>
{file.data.text}
@@ -1028,16 +1027,16 @@ function BuildingStage({ run }: { run: OutputSummary }) {
const parsed = parseArtifactUtterance(run.utterance);
return (
<div
- className="flex min-h-0 flex-1 flex-col items-center justify-center gap-3 p-8 text-center"
+ className="flex min-h-0 flex-1 flex-col items-center justify-center p-8"
data-testid="visualization-building"
>
- <Loader2 className="h-6 w-6 animate-spin text-primary" aria-hidden />
- <p className="text-sm font-medium">
- {t("visualization.building_title").replace("{0}", parsed?.title ?? "")}
- </p>
- <p className="max-w-sm text-xs text-muted-foreground">{t("visualization.building_body")}</p>
+ <EmptyState
+ icon={<Loader2 className="animate-spin" aria-hidden />}
+ title={t("visualization.building_title").replace("{0}", parsed?.title ?? "")}
+ description={t("visualization.building_body")}
+ />
{parsed?.request && (
- <p className="max-w-md truncate text-[11px] text-muted-foreground/70">{parsed.request}</p>
+ <p className="max-w-md truncate text-sm text-foreground-faint">{parsed.request}</p>
)}
</div>
);
@@ -1047,20 +1046,20 @@ function EmptyStage({ loading, error }: { loading: boolean; error: boolean }) {
const t = useT();
return (
<div
- className="flex min-h-0 flex-1 flex-col items-center justify-center gap-2 p-8 text-center"
+ className="flex min-h-0 flex-1 flex-col items-center justify-center p-8"
data-testid="visualization-empty"
>
- {loading && !error ? (
- <Loader2 className="h-5 w-5 animate-spin text-muted-foreground" aria-hidden />
- ) : (
- <Shapes className="h-6 w-6 text-muted-foreground" aria-hidden />
- )}
- <p className="text-sm font-medium">
- {t(error ? "visualization.error_title" : "visualization.empty_title")}
- </p>
- <p className="max-w-sm text-xs text-muted-foreground">
- {t(error ? "visualization.error_body" : "visualization.empty_body")}
- </p>
+ <EmptyState
+ icon={
+ loading && !error ? (
+ <Loader2 className="animate-spin" aria-hidden />
+ ) : (
+ <Shapes aria-hidden />
+ )
+ }
+ title={t(error ? "visualization.error_title" : "visualization.empty_title")}
+ description={t(error ? "visualization.error_body" : "visualization.empty_body")}
+ />
</div>
);
}
diff --git a/jarvis/ui/web/frontend/src/views/automations/AutomationsPanel.tsx b/jarvis/ui/web/frontend/src/views/automations/AutomationsPanel.tsx
index a9c6187484..bdcf86c382 100644
--- a/jarvis/ui/web/frontend/src/views/automations/AutomationsPanel.tsx
+++ b/jarvis/ui/web/frontend/src/views/automations/AutomationsPanel.tsx
@@ -219,7 +219,7 @@ function AutomationRow({
<Icon className="h-4 w-4" />
</IdentityGlyph>
<span className="min-w-0">
- <span className="block truncate font-medium text-foreground">
+ <span className="block truncate text-base font-medium text-foreground">
{task.title || t("tasks_view.untitled")}
</span>
<AutomationSubline task={task} fallback={template?.description ?? ""} />
@@ -299,7 +299,7 @@ function AutomationSubline({ task, fallback }: { task: TaskSummary; fallback: st
const { data } = useTaskDetail(task.id, needsSpec);
const text = fallback || firstLine(promptOfSpec(data?.spec));
if (!text) return null;
- return <span className="block truncate text-meta text-muted-foreground">{text}</span>;
+ return <span className="block truncate text-sm text-muted-foreground">{text}</span>;
}
/** The one-question delete confirmation, in place under its row. */
diff --git a/jarvis/ui/web/frontend/src/views/local-models/CapabilityIcons.tsx b/jarvis/ui/web/frontend/src/views/local-models/CapabilityIcons.tsx
new file mode 100644
index 0000000000..e95b66a7c3
--- /dev/null
+++ b/jarvis/ui/web/frontend/src/views/local-models/CapabilityIcons.tsx
@@ -0,0 +1,53 @@
+import { AudioLines, Brain, Eye, Wrench, type LucideIcon } from "lucide-react";
+
+import { cn } from "@/lib/utils";
+
+/**
+ * A model's capabilities as ONE compact icon row — tools, thinking, vision,
+ * audio — each glyph carrying its name as a tooltip. Replaces the four text
+ * chips that used to repeat on every model row and card (v4, 2026-09-02).
+ * Unknown capabilities are skipped: the row says what a glyph exists for.
+ */
+const CAPABILITY_ICON: Record<string, LucideIcon> = {
+ tools: Wrench,
+ thinking: Brain,
+ vision: Eye,
+ audio: AudioLines,
+};
+
+export function CapabilityIcons({
+ capabilities,
+ className,
+ testId,
+}: {
+ capabilities: readonly string[];
+ className?: string;
+ testId?: string;
+}) {
+ const known = capabilities.filter((c) => c in CAPABILITY_ICON);
+ if (known.length === 0) return null;
+ return (
+ <span
+ className={cn("inline-flex items-center gap-1", className)}
+ data-testid={testId}
+ role="list"
+ aria-label={known.join(", ")}
+ >
+ {known.map((cap) => {
+ const Icon = CAPABILITY_ICON[cap];
+ return (
+ <span
+ key={cap}
+ role="listitem"
+ title={cap}
+ aria-label={cap}
+ data-capability={cap}
+ className="grid h-6 w-6 place-items-center rounded-md bg-secondary text-muted-foreground"
+ >
+ <Icon aria-hidden className="h-3.5 w-3.5" />
+ </span>
+ );
+ })}
+ </span>
+ );
+}
diff --git a/jarvis/ui/web/frontend/src/views/local-models/InstalledPanel.tsx b/jarvis/ui/web/frontend/src/views/local-models/InstalledPanel.tsx
index 7cfd05258a..7496b8781b 100644
--- a/jarvis/ui/web/frontend/src/views/local-models/InstalledPanel.tsx
+++ b/jarvis/ui/web/frontend/src/views/local-models/InstalledPanel.tsx
@@ -26,6 +26,7 @@ import { cn } from "@/lib/utils";
import { formatContext, formatGb } from "./localModelsFormat";
import { canonical } from "./localSetup";
import { modelLabel } from "./modelNames";
+import { CapabilityIcons } from "./CapabilityIcons";
export interface InstalledPanelProps {
models: LocalModelRow[];
@@ -59,10 +60,8 @@ function Chip({
return (
<span
className={cn(
- "inline-flex shrink-0 items-center rounded-full px-1.5 py-0.5 text-micro font-medium",
- tone === "primary"
- ? "bg-secondary text-foreground-strong"
- : "bg-secondary text-muted-foreground",
+ "inline-flex h-6 shrink-0 items-center rounded-md border border-border bg-secondary px-2 text-xs font-medium",
+ tone === "primary" ? "text-foreground" : "text-muted-foreground",
)}
>
{children}
@@ -158,7 +157,7 @@ export function InstalledPanel({
{sorted.length > 0 && (
<ul
aria-label={k("list_label")}
- className="divide-y divide-border/70 overflow-hidden rounded-xl border border-border bg-card"
+ className="divide-y divide-border overflow-hidden rounded-lg border border-border bg-card"
>
{sorted.map((row) => {
const caps = row.probed
@@ -170,20 +169,20 @@ export function InstalledPanel({
return (
<li
key={row.name}
- className="grid gap-2 px-3.5 py-2.5 sm:grid-cols-[minmax(0,1.6fr)_minmax(0,1fr)_minmax(0,1.4fr)] sm:items-center"
+ className="grid min-h-12 gap-2 px-4 py-2 transition-colors hover:bg-secondary sm:grid-cols-[minmax(0,1.6fr)_minmax(0,1fr)_minmax(0,1.4fr)] sm:items-center"
data-testid={`installed-${row.name}`}
>
<div className="min-w-0">
<StatusDot
tone={row.loaded ? "ok" : "off"}
label={
- <span className="text-sm text-foreground">
+ <span className="text-base font-medium text-foreground">
{modelLabel(row)}
</span>
}
/>
- <div className="ml-4 mt-0.5 text-micro text-muted-foreground">
- <span className="font-mono text-foreground">{row.name}</span>
+ <div className="ml-4 mt-0.5 text-sm text-muted-foreground">
+ <span className="font-mono">{row.name}</span>
{[
row.quant_label || row.quantization_level,
formatGb(row.size_bytes),
@@ -197,7 +196,7 @@ export function InstalledPanel({
</div>
<div className="flex flex-wrap gap-1">
{row.probed ? (
- caps.map((cap) => <Chip key={cap}>{cap}</Chip>)
+ <CapabilityIcons capabilities={caps} />
) : (
<Chip>{k("unknown_caps")}</Chip>
)}
@@ -210,7 +209,7 @@ export function InstalledPanel({
))}
{picks.length > 0 && (
<span
- className="text-micro text-muted-foreground"
+ className="text-sm text-muted-foreground"
data-testid={`installed-recommended-${row.name}`}
>
{fill(k("recommended_for"), {
diff --git a/jarvis/ui/web/frontend/src/views/local-models/MemoryStrip.tsx b/jarvis/ui/web/frontend/src/views/local-models/MemoryStrip.tsx
index 1791ea58e3..25075c9d7e 100644
--- a/jarvis/ui/web/frontend/src/views/local-models/MemoryStrip.tsx
+++ b/jarvis/ui/web/frontend/src/views/local-models/MemoryStrip.tsx
@@ -22,6 +22,11 @@ export interface MemoryStripProps {
const GIB = 1024 ** 3;
+/** One segment per resident model, stepping down the ink ladder; the
+ * reserve takes the faintest step. Monochrome on purpose: the legend names
+ * the segments, colour would only say it twice. */
+const SEGMENT_TONE = ["bg-foreground/80", "bg-foreground/50", "bg-foreground/30"];
+
export function MemoryStrip({ resident, roleLabel }: MemoryStripProps) {
const t = useT();
if (!resident || resident.items.length === 0) return null;
@@ -42,17 +47,17 @@ export function MemoryStrip({ resident, roleLabel }: MemoryStripProps) {
return (
<section
- className="rounded-2xl border border-border bg-card px-4 py-3"
+ className="rounded-lg border border-border bg-card p-4"
data-testid="memory-strip"
data-over={resident.over ? "true" : "false"}
aria-label={k("resident_title")}
>
<div className="flex flex-wrap items-baseline justify-between gap-x-4 gap-y-1">
- <p className="text-xs text-muted-foreground">{k("resident_title")}</p>
+ <p className="text-sm text-muted-foreground">{k("resident_title")}</p>
<p
className={cn(
- "text-xs font-medium tabular-nums",
- resident.over ? "text-foreground" : "text-foreground",
+ "text-sm font-medium tabular-nums",
+ resident.over ? "text-warning" : "text-foreground",
)}
data-testid="memory-strip-total"
>
@@ -60,19 +65,19 @@ export function MemoryStrip({ resident, roleLabel }: MemoryStripProps) {
</p>
</div>
<div
- className="mt-2 flex h-2.5 overflow-hidden rounded-full bg-secondary"
+ className="mt-3 flex h-2 gap-px overflow-hidden rounded-full bg-secondary"
role="img"
aria-label={headline}
>
{resident.items.map((item, i) => (
<span key={item.tag} className="contents">
<span
- className={cn("h-full bg-secondary", i % 2 === 1 && "opacity-75")}
+ className={cn("h-full", SEGMENT_TONE[i % SEGMENT_TONE.length])}
style={{ width: width(item.weights_gb) }}
title={`${item.display_label || item.tag} · ${gb(item.weights_gb)}`}
/>
<span
- className="h-full bg-secondary"
+ className={cn("h-full", SEGMENT_TONE[i % SEGMENT_TONE.length], "opacity-60")}
style={{ width: width(item.context_gb) }}
title={`${k("resident_context")} · ${gb(item.context_gb)}`}
/>
@@ -80,17 +85,20 @@ export function MemoryStrip({ resident, roleLabel }: MemoryStripProps) {
))}
{resident.reserve_gb > 0 && (
<span
- className="h-full bg-secondary"
+ className="h-full bg-foreground/15"
style={{ width: width(resident.reserve_gb) }}
title={`${k("resident_reserve")} · ${gb(resident.reserve_gb)}`}
/>
)}
</div>
- <ul className="mt-2 flex flex-wrap gap-x-4 gap-y-1 text-micro text-muted-foreground">
- {resident.items.map((item) => (
+ <ul className="mt-3 flex flex-wrap gap-x-5 gap-y-1 text-sm text-muted-foreground">
+ {resident.items.map((item, i) => (
<li key={item.tag} className="flex items-center gap-1.5" data-testid={`memory-strip-${item.tag}`}>
- <i className="inline-block h-2 w-2 rounded-[2px] bg-secondary" aria-hidden />
- <span className="text-foreground/90">{item.display_label || item.tag}</span>
+ <i
+ className={cn("inline-block h-2 w-2 rounded-[2px]", SEGMENT_TONE[i % SEGMENT_TONE.length])}
+ aria-hidden
+ />
+ <span className="text-foreground">{item.display_label || item.tag}</span>
<span>
{item.roles.map(roleLabel).join(" · ")} · {gb(item.weights_gb)}
{item.context_gb > 0 ? ` + ${gb(item.context_gb)} ${k("resident_context_short")}` : ""}
@@ -100,7 +108,7 @@ export function MemoryStrip({ resident, roleLabel }: MemoryStripProps) {
))}
{resident.reserve_gb > 0 && (
<li className="flex items-center gap-1.5">
- <i className="inline-block h-2 w-2 rounded-[2px] bg-secondary" aria-hidden />
+ <i className="inline-block h-2 w-2 rounded-[2px] bg-foreground/15" aria-hidden />
<span>
{k("resident_reserve")} · {gb(resident.reserve_gb)}
</span>
diff --git a/jarvis/ui/web/frontend/src/views/local-models/ModelCard.tsx b/jarvis/ui/web/frontend/src/views/local-models/ModelCard.tsx
index a23b9797fd..babe2e0be9 100644
--- a/jarvis/ui/web/frontend/src/views/local-models/ModelCard.tsx
+++ b/jarvis/ui/web/frontend/src/views/local-models/ModelCard.tsx
@@ -29,6 +29,8 @@ import { fill, useT } from "@/i18n";
import { cn } from "@/lib/utils";
import { estimateContextGb, formatContext, formatGb } from "./localModelsFormat";
+import { Badge } from "@/components/ui/badge";
+import { CapabilityIcons } from "./CapabilityIcons";
import { capabilityChips, findModel, labelFor, modelLabel } from "./modelNames";
import { RolePicker } from "./RolePicker";
import type { RoleProgress } from "./useRoleActions";
@@ -90,19 +92,19 @@ const RING: Record<ModelCardState, string> = {
unknown: "border-border",
// Amber and red carry meanings the token set has no name for; the accent
// stays for the memory bar and the primary button.
- slow: "border-foreground/40",
+ slow: "border-warning/40",
unfit: "border-destructive/50",
- missing: "border-foreground/50",
+ missing: "border-warning/50",
empty: "border-dashed border-border",
blocked: "border-border/60",
};
const VERDICT_TONE: Record<ModelCardState, string> = {
- ready: "text-muted-foreground",
+ ready: "text-success",
unknown: "text-muted-foreground",
- slow: "text-foreground",
+ slow: "text-warning",
unfit: "text-destructive",
- missing: "text-foreground",
+ missing: "text-warning",
empty: "text-muted-foreground",
blocked: "text-muted-foreground",
};
@@ -200,28 +202,27 @@ export function ModelCard({
}
})();
- const chips: Array<{ text: string; on?: boolean }> = [];
+ // One line of spec ("14B · Q4_K_M · 8.4 GB · 128k ctx"), the capabilities
+ // as an icon row, and the loaded state as a success badge (v4).
+ const facts: string[] = [];
if (current) {
- if (current.params_label) chips.push({ text: current.params_label, on: true });
+ if (current.params_label) facts.push(current.params_label);
if (current.quant_label || current.quantization_level)
- chips.push({ text: current.quant_label || current.quantization_level });
- chips.push({ text: formatGb(current.size_bytes) });
+ facts.push(current.quant_label || current.quantization_level);
+ facts.push(formatGb(current.size_bytes));
if (current.context_length) {
- chips.push({
- text:
- row.id === "voice" && row.context_tokens
- ? fill(t("local_models.jobs.context_of"), {
- context: formatContext(row.context_tokens),
- native: formatContext(current.context_length),
- })
- : `${formatContext(current.context_length)} ctx`,
- on: row.id === "voice",
- });
+ facts.push(
+ row.id === "voice" && row.context_tokens
+ ? fill(t("local_models.jobs.context_of"), {
+ context: formatContext(row.context_tokens),
+ native: formatContext(current.context_length),
+ })
+ : `${formatContext(current.context_length)} ctx`,
+ );
}
- for (const cap of capabilityChips(current)) chips.push({ text: cap, on: true });
- if (current.source) chips.push({ text: current.source });
- if (current.loaded) chips.push({ text: t("local_models.jobs.loaded_now"), on: true });
+ if (current.source) facts.push(current.source);
}
+ const caps = current ? capabilityChips(current) : [];
const memoryText = (() => {
if (share <= 0) return t("local_models.jobs.memory_unknown");
@@ -243,7 +244,7 @@ export function ModelCard({
return (
<article
className={cn(
- "flex flex-col rounded-2xl border bg-card p-4 transition-colors",
+ "flex h-full flex-col rounded-lg border bg-card p-5 transition-colors",
RING[state],
)}
data-testid={`model-card-${row.id}`}
@@ -253,10 +254,10 @@ export function ModelCard({
{/* The job: an eyebrow, because the job is the category and the model
below it is the value — not the other way round. */}
<div className="flex items-baseline justify-between gap-2">
- <p className="text-micro font-medium text-muted-foreground">
+ <p className="text-sm font-medium uppercase tracking-wide text-foreground-faint">
{t(row.label_key)}
</p>
- <p className="truncate text-micro text-muted-foreground">
+ <p className="truncate text-sm text-muted-foreground">
{t(`local_models.jobs.${row.id}_purpose`)}
</p>
</div>
@@ -268,29 +269,33 @@ export function ModelCard({
<>
<p className="flex flex-wrap items-baseline gap-x-2">
<span
- className="font-display text-lg font-semibold tracking-tight text-foreground"
+ className="text-lg font-semibold text-foreground-strong"
data-testid={`model-card-current-${row.id}`}
>
{modelLabel(current, row.current)}
</span>
<span
- className="truncate font-mono text-micro text-muted-foreground"
+ className="truncate font-mono text-sm text-muted-foreground"
title={row.current}
data-testid={`model-card-tag-${row.id}`}
>
{row.current}
</span>
</p>
- {chips.length > 0 ? (
- <p className="mt-1.5 flex flex-wrap gap-1" data-testid={`model-card-chips-${row.id}`}>
- {chips.map((chip) => (
- <Chip key={chip.text} on={chip.on}>
- {chip.text}
- </Chip>
- ))}
- </p>
+ {facts.length > 0 ? (
+ <div className="mt-1.5 space-y-2" data-testid={`model-card-chips-${row.id}`}>
+ <p className="text-sm text-muted-foreground">{facts.join(" · ")}</p>
+ {(caps.length > 0 || current?.loaded) && (
+ <p className="flex flex-wrap items-center gap-2">
+ <CapabilityIcons capabilities={caps} />
+ {current?.loaded && (
+ <Badge variant="success">{t("local_models.jobs.loaded_now")}</Badge>
+ )}
+ </p>
+ )}
+ </div>
) : (
- <p className="mt-1 text-micro text-muted-foreground">
+ <p className="mt-1 text-sm text-muted-foreground">
{state === "missing"
? t("local_models.jobs.not_on_disk")
: t("local_models.jobs.no_facts")}
@@ -305,7 +310,7 @@ export function ModelCard({
{/* The verdict: one line, one rule, the same the picker uses. */}
{row.current && (
<p
- className={cn("mt-2 flex gap-1.5 text-xs leading-snug", VERDICT_TONE[state])}
+ className={cn("mt-2 flex gap-1.5 text-sm", VERDICT_TONE[state])}
data-testid={`model-card-verdict-${row.id}`}
>
<span aria-hidden className="w-3 shrink-0 text-center font-semibold">
@@ -352,7 +357,7 @@ export function ModelCard({
/>
)}
</div>
- <p className="mt-1 text-micro tabular-nums text-muted-foreground">{memoryText}</p>
+ <p className="mt-1 text-sm tabular-nums text-muted-foreground">{memoryText}</p>
</div>
)}
@@ -405,7 +410,7 @@ export function ModelCard({
{/* The plumbing, one click away: where the pick lives, what the job
asks for, what the recommendation would be and why. */}
- <details className="mt-3 border-t border-dashed border-border pt-2 text-micro text-muted-foreground">
+ <details className="mt-3 border-t border-dashed border-border pt-2 text-sm text-muted-foreground">
<summary className="cursor-pointer select-none">{t("local_models.jobs.details")}</summary>
<dl className="mt-1.5 grid grid-cols-[auto_minmax(0,1fr)] gap-x-3 gap-y-1">
<dt>{t("local_models.jobs.details_config")}</dt>
diff --git a/jarvis/ui/web/frontend/src/views/local-models/OverviewPanel.tsx b/jarvis/ui/web/frontend/src/views/local-models/OverviewPanel.tsx
index 01f2820ae9..562c492605 100644
--- a/jarvis/ui/web/frontend/src/views/local-models/OverviewPanel.tsx
+++ b/jarvis/ui/web/frontend/src/views/local-models/OverviewPanel.tsx
@@ -26,7 +26,7 @@
* now nothing hides one either.
*/
import { useCallback, useEffect, useMemo, useRef, useState } from "react";
-import { Loader2 } from "lucide-react";
+import { Info, Loader2 } from "lucide-react";
import { SoftButton, StatusDot } from "@/components/extensions/primitives";
import {
@@ -182,24 +182,29 @@ export function OverviewPanel({
</p>
)}
{otherBrainActive && (
- <p
- className="text-sm text-foreground"
+ // An info callout — the accent wash with a link button — rather
+ // than a sentence lost between the tabs and the memory strip.
+ <div
+ className="flex flex-wrap items-center gap-x-3 gap-y-1 rounded-lg border border-accent/20 bg-accent-soft px-4 py-3 text-base text-foreground"
data-testid="overview-brain-clause"
>
- {fill(t("local_models.overview.status_brain_other"), {
- server: serverLabel,
- brain: activeBrain?.label ?? "",
- })}{" "}
+ <Info aria-hidden className="h-4 w-4 shrink-0 text-accent" />
+ <span className="min-w-0 flex-1">
+ {fill(t("local_models.overview.status_brain_other"), {
+ server: serverLabel,
+ brain: activeBrain?.label ?? "",
+ })}
+ </span>
{onOpenApiKeys && (
<button
type="button"
onClick={onOpenApiKeys}
- className="font-medium text-foreground-strong hover:underline"
+ className="shrink-0 rounded-sm font-medium text-accent underline-offset-4 hover:underline focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
>
{t("local_models.roles.other_brain_link")}
</button>
)}
- </p>
+ </div>
)}
</div>
)}
@@ -208,7 +213,7 @@ export function OverviewPanel({
{/* The grid. Peers, two columns on a wide pane. */}
<div
- className="grid grid-cols-1 gap-3 md:grid-cols-2 xl:grid-cols-4"
+ className="grid grid-cols-1 gap-4 md:grid-cols-2 min-[1400px]:grid-cols-4"
data-testid="model-card-grid"
>
{cardRows.length === 0 && overview.isLoading
@@ -295,7 +300,7 @@ export function OverviewPanel({
function CardSkeleton() {
return (
<div
- className="h-[17rem] animate-pulse rounded-2xl border border-dashed border-border bg-card"
+ className="h-[17rem] animate-pulse rounded-lg border border-dashed border-border bg-card"
data-testid="model-card-skeleton"
/>
);
@@ -331,14 +336,14 @@ function SideJobRow({
const current = findModel(models, row.current);
return (
<div
- className="grid gap-3 rounded-xl border border-border bg-card px-4 py-3 lg:grid-cols-[minmax(0,1fr)_minmax(0,22rem)_auto] lg:items-center"
+ className="grid gap-3 rounded-lg border border-border bg-card px-5 py-4 lg:grid-cols-[minmax(0,1fr)_minmax(0,22rem)_auto] lg:items-center"
data-testid={`side-job-${row.id}`}
>
<div className="min-w-0">
- <p className="text-micro font-medium text-muted-foreground">
+ <p className="text-sm font-medium uppercase tracking-wide text-foreground-faint">
{t(row.label_key)}
</p>
- <p className="mt-0.5 text-xs text-muted-foreground">
+ <p className="mt-0.5 text-sm text-muted-foreground">
{row.note || t(`local_models.jobs.${row.id}_purpose`)}
{current && (
<span className="ml-2 text-foreground">
@@ -349,7 +354,7 @@ function SideJobRow({
</div>
<div className="min-w-0">
{blocked ? (
- <span className="text-xs text-muted-foreground">
+ <span className="text-sm text-muted-foreground">
{t("local_models.roles.read_only")}
</span>
) : (
@@ -364,12 +369,12 @@ function SideJobRow({
</div>
<div className="flex items-center gap-2 lg:justify-end">
{missing && (
- <span className="text-xs text-foreground">
+ <span className="text-sm text-warning">
{t("local_models.jobs.not_on_disk")}
</span>
)}
{row.current_fit === "unfit" && row.current_reason && (
- <span className="text-xs text-destructive">{row.current_reason}</span>
+ <span className="text-sm text-destructive">{row.current_reason}</span>
)}
{onTune && row.current && row.installed && (
<SoftButton onClick={() => onTune(row.current)} className="h-8">
@@ -392,7 +397,7 @@ function FootnoteJobs({
t: (key: string) => string;
}) {
return (
- <p className="text-xs text-muted-foreground" data-testid="roles-more">
+ <p className="text-sm text-muted-foreground" data-testid="roles-more">
{rows.map((row, i) => (
<span key={row.id}>
{i > 0 && " · "}
@@ -540,7 +545,7 @@ function SetupProgress({
return (
<div
- className="mt-3 space-y-1 border-t border-border pt-3 text-xs"
+ className="mt-3 space-y-1 border-t border-border pt-3 text-sm"
data-testid="setup-progress"
>
<StatusDot tone={tone} pulse={tone === "busy"} label={text} />