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(ultrawiki): an overview that says what happened, instead of seven green ticks

Ruben Lütke5042ff358b7f
diff --git a/jarvis/ui/web/frontend/src/components/ultrawiki/ContentsPanel.test.tsx b/jarvis/ui/web/frontend/src/components/ultrawiki/ContentsPanel.test.tsx
index c5dae0ae64..460523366c 100644
--- a/jarvis/ui/web/frontend/src/components/ultrawiki/ContentsPanel.test.tsx
+++ b/jarvis/ui/web/frontend/src/components/ultrawiki/ContentsPanel.test.tsx
@@ -111,7 +111,11 @@ describe("ContentsPanel", () => {
expect(row.textContent).toContain("Note 1");
// The source is shown by its LABEL, not its generated id.
expect(row.textContent).toContain("My documents");
- expect(row.textContent).toContain("distilled");
+ // The stage is named in words, not by its database value: "distilled" is
+ // a pipeline term, and this row is read by someone who did not write the
+ // pipeline. The raw name must not leak back in.
+ expect(row.textContent).toContain("Fully processed");
+ expect(row.textContent).not.toContain("distilled");
expect(row.textContent).toContain("2 min ago");
// The title links back to where the item came from.
const link = row.querySelector("a");
diff --git a/jarvis/ui/web/frontend/src/components/ultrawiki/ContentsPanel.tsx b/jarvis/ui/web/frontend/src/components/ultrawiki/ContentsPanel.tsx
index c990751c6f..7f2bec06b8 100644
--- a/jarvis/ui/web/frontend/src/components/ultrawiki/ContentsPanel.tsx
+++ b/jarvis/ui/web/frontend/src/components/ultrawiki/ContentsPanel.tsx
@@ -258,7 +258,10 @@ export function ContentsPanel({
)}
data-state={item.state}
>
- {item.state}
+ {/* Through the shared label map, never the raw state
+ name: "embedded" is a pipeline word, and the row is
+ read by someone who did not write the pipeline. */}
+ {t(`ultrawiki.progress.stage_${item.state}`)}
</span>
</td>
<td className="px-3 py-2 text-muted-foreground">
diff --git a/jarvis/ui/web/frontend/src/components/ultrawiki/HealthPanel.tsx b/jarvis/ui/web/frontend/src/components/ultrawiki/HealthPanel.tsx
index 861c25d468..b550cfddda 100644
--- a/jarvis/ui/web/frontend/src/components/ultrawiki/HealthPanel.tsx
+++ b/jarvis/ui/web/frontend/src/components/ultrawiki/HealthPanel.tsx
@@ -24,7 +24,6 @@
* the same status payload the other tabs read, so this screen can never claim
* something the rest of the UI contradicts.
*/
-import { useState } from "react";
import { useQuery } from "@tanstack/react-query";
import {
AlertTriangle,
@@ -37,10 +36,10 @@ import {
import { Button } from "@/components/ui/button";
import { cn } from "@/lib/utils";
import { useT } from "@/i18n";
-import { useEventStore } from "@/store/events";
+import { ReconcileStrip } from "@/components/ultrawiki/ReconcileStrip";
+import { useCheckActions } from "@/components/ultrawiki/overview/useCheckActions";
import {
fetchUltraWikiHealth,
- syncAllUltraWikiSources,
type UltraWikiHealth,
type UltraWikiHealthCheck,
type UltraWikiCheckState,
@@ -76,14 +75,16 @@ export function HealthPanel({
onOpenSources,
onOpenSettings,
onEnableMode,
+ showVerdict = true,
}: {
onOpenSources: () => void;
onOpenSettings: () => void;
onEnableMode?: () => void;
+ /** Off when the overview already carries the verdict above this list —
+ * two headlines saying the same thing is how a screen stops being read. */
+ showVerdict?: boolean;
}): JSX.Element {
const t = useT();
- const pushToast = useEventStore((s) => s.pushToast);
- const [busy, setBusy] = useState(false);
const healthQuery = useQuery({
queryKey: ["ultrawiki", "health"],
@@ -101,26 +102,14 @@ export function HealthPanel({
const health = healthQuery.data ?? null;
- async function runSyncAll() {
- setBusy(true);
- try {
- const result = await syncAllUltraWikiSources();
- pushToast(result.started.length ? "success" : "info", result.detail);
- void healthQuery.refetch();
- } catch (e) {
- pushToast("error", (e as Error).message);
- } finally {
- setBusy(false);
- }
- }
-
- function runAction(check: UltraWikiHealthCheck) {
- const kind = check.action?.kind;
- if (kind === "sync_all") return void runSyncAll();
- if (kind === "open_sources") return onOpenSources();
- if (kind === "open_settings") return onOpenSettings();
- if (kind === "enable_mode" && onEnableMode) return onEnableMode();
- }
+ // Shared with the overview's problem list, so a check offers the same button
+ // wherever it is rendered (see overview/useCheckActions.ts).
+ const { busy, runAction } = useCheckActions({
+ onOpenSources,
+ onOpenSettings,
+ onEnableMode,
+ onChanged: () => void healthQuery.refetch(),
+ });
if (healthQuery.isLoading) {
return (
@@ -149,7 +138,7 @@ export function HealthPanel({
return (
<div className="space-y-4 p-4" data-testid="ultrawiki-health-panel">
- <Verdict health={health} />
+ {showVerdict && <Verdict health={health} />}
<ol className="space-y-2">
{health.checks.map((check, index) => (
@@ -163,6 +152,13 @@ export function HealthPanel({
))}
</ol>
+ {/* The completeness proof. It belongs under the checklist rather than in
+ the inventory: "how many items" is a fact the Contents tab already
+ shows, while "is that all of them" is a VERDICT, and verdicts live
+ here. Re-runs whenever the checks do. */}
+ <ReconcileStrip refreshKey={health.checks.length + (busy ? 1 : 0)} />
+
+
<div className="flex items-center gap-2">
<Button
size="sm"
diff --git a/jarvis/ui/web/frontend/src/components/ultrawiki/ImportProgress.test.tsx b/jarvis/ui/web/frontend/src/components/ultrawiki/ImportProgress.test.tsx
index fdc37b58ba..670bd23259 100644
--- a/jarvis/ui/web/frontend/src/components/ultrawiki/ImportProgress.test.tsx
+++ b/jarvis/ui/web/frontend/src/components/ultrawiki/ImportProgress.test.tsx
@@ -6,30 +6,46 @@
* is already being pulled although nothing was connected. These pin that each
* of the four backend states renders its own honest wording, that the blanket
* "Pipeline running" is gone, and that the waiting state offers the way out.
+ *
+ * The strip now quotes the shared progress model instead of printing the five
+ * raw buckets, so these tests hand it that model — exactly as the backend
+ * sends it — rather than counts the component would have to add up itself.
*/
import { afterEach, describe, expect, it, vi } from "vitest";
import { cleanup, fireEvent, render, screen } from "@testing-library/react";
import { ImportProgress } from "@/components/ultrawiki/ImportProgress";
-import type { UltraWikiCounts, UltraWikiPipeline } from "@/lib/ultrawikiApi";
+import type { UltraWikiPipeline, UltraWikiProgress } from "@/lib/ultrawikiApi";
+
+/** A progress payload shaped like jarvis/ultrawiki/progress.py's output. */
+function progressOf(
+ partial: Partial<UltraWikiProgress> = {},
+): UltraWikiProgress {
+ return {
+ state: "empty",
+ total: 0,
+ searchable: 0,
+ summarised: 0,
+ waiting: 0,
+ failed: 0,
+ next_step: null,
+ waiting_by_bucket: {},
+ buckets: {},
+ milestones: [],
+ ...partial,
+ };
+}
-const NO_COUNTS: Partial<UltraWikiCounts> = {
- captured: 0,
- keyword_indexed: 0,
- embedded: 0,
- distilled: 0,
- failed: 0,
- total: 0,
-};
+const EMPTY = progressOf();
function renderStrip(
pipeline: UltraWikiPipeline,
- counts: Partial<UltraWikiCounts> = NO_COUNTS,
+ progress: UltraWikiProgress | null = EMPTY,
onOpenSources?: () => void,
) {
return render(
<ImportProgress
- counts={counts}
+ progress={progress}
pipeline={pipeline}
jobs={[]}
onChanged={() => {}}
@@ -54,7 +70,7 @@ describe("ImportProgress — honest pipeline state", () => {
"No source is approved yet, so nothing is being read. Approve a source under Sources.",
processed: {},
},
- NO_COUNTS,
+ EMPTY,
onOpenSources,
);
@@ -72,7 +88,7 @@ describe("ImportProgress — honest pipeline state", () => {
expect(onOpenSources).toHaveBeenCalledTimes(1);
});
- it("counts the real backlog while processing", () => {
+ it("quotes the backlog the backend computed, and never re-adds buckets", () => {
renderStrip(
{
running: true,
@@ -80,20 +96,28 @@ describe("ImportProgress — honest pipeline state", () => {
reason: "6 item(s) are queued for processing.",
processed: { keyword: 2 },
},
- {
- captured: 1,
- keyword_indexed: 2,
- embedded: 3,
- distilled: 40, // finished work is NOT pending
- failed: 5, // gave up — also not pending
+ progressOf({
+ state: "working",
total: 51,
- },
+ searchable: 45,
+ summarised: 40,
+ waiting: 6,
+ failed: 5,
+ next_step: "summarising",
+ }),
);
const state = screen.getByTestId("ultrawiki-pipeline-state");
expect(state.getAttribute("data-state")).toBe("processing");
- expect(state.textContent).toContain("Processing (6 pending)");
+ expect(state.textContent).toContain("6");
expect(screen.getByTestId("ultrawiki-pipeline-running")).toBeDefined();
+
+ // The summary reports the corpus in cumulative terms — the reading that
+ // "Keyword-searchable 0 · Embedded 3237" got wrong.
+ const summary = screen.getByTestId("ultrawiki-progress-summary").textContent;
+ expect(summary).toContain("51");
+ expect(summary).toContain("45");
+ expect(summary).toContain("being summarised");
});
it("shows the blocking reason when a slot pauses the pipeline", () => {
@@ -105,7 +129,13 @@ describe("ImportProgress — honest pipeline state", () => {
"12 item(s) are keyword-searchable and waiting for the embedding stage: no Gemini API key is configured",
processed: {},
},
- { captured: 0, keyword_indexed: 12, embedded: 0, distilled: 0, failed: 0 },
+ progressOf({
+ state: "working",
+ total: 12,
+ searchable: 12,
+ waiting: 12,
+ next_step: "embedding",
+ }),
);
const state = screen.getByTestId("ultrawiki-pipeline-state");
@@ -124,7 +154,7 @@ describe("ImportProgress — honest pipeline state", () => {
reason: "Everything ingested so far is fully processed.",
processed: { keyword: 9 },
},
- { captured: 0, keyword_indexed: 0, embedded: 0, distilled: 9, failed: 0 },
+ progressOf({ state: "done", total: 9, searchable: 9, summarised: 9 }),
);
const state = screen.getByTestId("ultrawiki-pipeline-state");
@@ -141,13 +171,19 @@ describe("ImportProgress — honest pipeline state", () => {
screen.getByTestId("ultrawiki-pipeline-state").getAttribute("data-state"),
).toBe("idle");
});
+
+ it("renders no counts at all when the backend has not answered yet", () => {
+ // Zeros the user could mistake for measurements are worse than silence.
+ renderStrip({ running: false, state: "idle", processed: {} }, null);
+ expect(screen.queryByTestId("ultrawiki-progress-summary")).toBeNull();
+ });
});
describe("ImportProgress — retry-failed button", () => {
const IDLE: UltraWikiPipeline = { running: true, state: "processing", processed: {} };
it("is absent while nothing has failed", () => {
- renderStrip(IDLE, { ...NO_COUNTS, failed: 0 });
+ renderStrip(IDLE, progressOf({ failed: 0 }));
expect(screen.queryByTestId("ultrawiki-retry-failed")).toBeNull();
});
@@ -166,7 +202,7 @@ describe("ImportProgress — retry-failed button", () => {
const onChanged = vi.fn();
render(
<ImportProgress
- counts={{ ...NO_COUNTS, failed: 32 }}
+ progress={progressOf({ total: 32, failed: 32 })}
pipeline={IDLE}
jobs={[]}
onChanged={onChanged}
@@ -174,6 +210,7 @@ describe("ImportProgress — retry-failed button", () => {
);
const button = screen.getByTestId("ultrawiki-retry-failed");
+ expect(button.textContent).toContain("32");
fireEvent.click(button);
await vi.waitFor(() => expect(onChanged).toHaveBeenCalledTimes(1));
expect(
diff --git a/jarvis/ui/web/frontend/src/components/ultrawiki/ImportProgress.tsx b/jarvis/ui/web/frontend/src/components/ultrawiki/ImportProgress.tsx
index 577bed9211..a97a99e7e7 100644
--- a/jarvis/ui/web/frontend/src/components/ultrawiki/ImportProgress.tsx
+++ b/jarvis/ui/web/frontend/src/components/ultrawiki/ImportProgress.tsx
@@ -1,12 +1,21 @@
/**
- * Honest staged import-progress strip (design doc 04 "Import progress").
+ * The thin status ribbon above the tabs — "is anything happening right now?".
*
- * Renders the per-stage backlog counts (captured → keyword-searchable →
- * embedded → distilled, plus the failed dead-letter) exactly as the store
- * reports them — the same "honest funnel" idiom as WikiCaptureFunnelStrip —
- * and the active/recent sync jobs with a cancel button per active job.
- * Polling cadence is owned by the parent (UltraWikiPanel speeds the status
- * poll up to a few seconds while a job is active).
+ * It used to print the five raw pipeline buckets: "Captured 0 ·
+ * Keyword-searchable 0 · Embedded 3237 · Distilled 1475 · Failed 0". Because
+ * an item sits in exactly ONE bucket, those numbers described the state
+ * machine rather than the corpus: a store where all 4 712 items were
+ * keyword-searchable reported "Keyword-searchable 0", and the figures ran
+ * backwards as work progressed. Worse, the strip added its own backlog while
+ * the checklist below added a different one, and the two contradicted each
+ * other on screen.
+ *
+ * Now it quotes the shared progress model (`jarvis/ultrawiki/progress.py`) and
+ * says the same three things in words: how much is stored, how much can be
+ * found, and how much is still queued. The Overview tab draws the full
+ * picture, so the ribbon hides there rather than repeating it.
+ *
+ * The live controls stay: cancel a running job, retry the dead-lettered items.
*/
import { useState } from "react";
import {
@@ -18,34 +27,28 @@ import {
XCircle,
} from "lucide-react";
-import { cn } from "@/lib/utils";
import { useT } from "@/i18n";
import { useEventStore } from "@/store/events";
+import { formatCount } from "@/components/ultrawiki/overview/primitives";
import {
ULTRAWIKI_ACTIVE_JOB_STATUSES,
cancelUltraWikiJob,
requeueUltraWikiFailed,
- type UltraWikiCounts,
type UltraWikiJob,
type UltraWikiPipeline,
+ type UltraWikiProgress,
} from "@/lib/ultrawikiApi";
-const STAGES = [
- ["captured", "ultrawiki.progress.stage_captured"],
- ["keyword_indexed", "ultrawiki.progress.stage_keyword_indexed"],
- ["embedded", "ultrawiki.progress.stage_embedded"],
- ["distilled", "ultrawiki.progress.stage_distilled"],
- ["failed", "ultrawiki.progress.stage_failed"],
-] as const;
-
export function ImportProgress({
- counts,
+ progress,
pipeline,
jobs,
onChanged,
onOpenSources,
}: {
- counts: Partial<UltraWikiCounts>;
+ /** `null` while the backend has not answered — the ribbon then shows only
+ * the pipeline state, never invented zeros. */
+ progress: UltraWikiProgress | null;
pipeline: UltraWikiPipeline;
jobs: UltraWikiJob[];
onChanged: () => void;
@@ -102,13 +105,7 @@ export function ImportProgress({
const activeJobs = jobs.filter((job) =>
ULTRAWIKI_ACTIVE_JOB_STATUSES.includes(job.status),
);
-
- // What is still WAITING to be processed. 'distilled' is finished work and
- // 'failed' gave up, so neither belongs in a "still to do" number.
- const pendingItems =
- (counts.captured ?? 0) +
- (counts.keyword_indexed ?? 0) +
- (counts.embedded ?? 0);
+ const failed = progress?.failed ?? 0;
return (
<section
@@ -119,38 +116,34 @@ export function ImportProgress({
<div className="flex flex-wrap items-center gap-x-3 gap-y-1 text-[11px]">
<PipelineState
pipeline={pipeline}
- pending={pendingItems}
+ pending={progress?.waiting ?? 0}
onOpenSources={onOpenSources}
/>
- <dl className="flex flex-wrap items-center gap-x-3 gap-y-1 text-muted-foreground">
- {STAGES.map(([key, labelKey]) => {
- const value = counts[key] ?? 0;
- const isFailed = key === "failed";
- return (
- <div
- className={cn(
- "flex items-baseline gap-1",
- isFailed && value > 0 && "text-destructive",
- )}
- data-testid={`ultrawiki-stage-${key}`}
- key={key}
- >
- <dt>{t(labelKey)}</dt>
- <dd
- className={cn(
- "font-medium",
- isFailed && value > 0
- ? "text-destructive"
- : "text-foreground",
- )}
- >
- {value}
- </dd>
- </div>
- );
- })}
- </dl>
- {(counts.failed ?? 0) > 0 && (
+ {progress && progress.total > 0 && (
+ <p
+ className="text-muted-foreground"
+ data-testid="ultrawiki-progress-summary"
+ >
+ <span className="font-mono tabular-nums text-foreground">
+ {formatCount(progress.total)}
+ </span>{" "}
+ {t("ultrawiki.progress.stored")} ·{" "}
+ <span className="font-mono tabular-nums text-foreground">
+ {formatCount(progress.searchable)}
+ </span>{" "}
+ {t("ultrawiki.progress.searchable")}
+ {progress.waiting > 0 && (
+ <>
+ {" · "}
+ <span className="font-mono tabular-nums text-foreground">
+ {formatCount(progress.waiting)}
+ </span>{" "}
+ {t(`ultrawiki.overview.step_${progress.next_step ?? "processing"}`)}
+ </>
+ )}
+ </p>
+ )}
+ {failed > 0 && (
<button
type="button"
onClick={() => void handleRetryFailed()}
@@ -163,7 +156,10 @@ export function ImportProgress({
) : (
<RotateCcw className="h-3 w-3" aria-hidden />
)}
- {t("ultrawiki.progress.retry_failed")}
+ {t("ultrawiki.progress.retry_failed").replace(
+ "{0}",
+ formatCount(failed),
+ )}
</button>
)}
</div>
@@ -193,7 +189,7 @@ export function ImportProgress({
<span>·</span>
<span>{job.status}</span>
<span>·</span>
- <span>
+ <span className="font-mono tabular-nums">
+{job.new} / ~{job.changed} / ={job.unchanged}
</span>
<button
@@ -271,7 +267,7 @@ function PipelineState({
),
label: t("ultrawiki.progress.state_processing").replace(
"{0}",
- String(pending),
+ formatCount(pending),
),
}
: state === "paused"
diff --git a/jarvis/ui/web/frontend/src/components/ultrawiki/overview/ActivityFeed.tsx b/jarvis/ui/web/frontend/src/components/ultrawiki/overview/ActivityFeed.tsx
new file mode 100644
index 0000000000..16414ee770
--- /dev/null
+++ b/jarvis/ui/web/frontend/src/components/ultrawiki/overview/ActivityFeed.tsx
@@ -0,0 +1,205 @@
+/**
+ * "What happened" — the surface the section never had.
+ *
+ * Everything else here answers *how many* or *what is inside*. The question
+ * that went unanswered, in the maintainer's own words while looking at the
+ * live app, was "I have no idea what happened." Imports ran, items appeared,
+ * numbers moved, and no screen recorded any of it.
+ *
+ * Two sources feed this list, and they are not equally complete — which the
+ * footnote says out loud rather than letting the list imply a full log:
+ *
+ * - the job registry (`status.jobs`) holds this session's runs, including the
+ * one currently in flight, and is lost on restart;
+ * - each source's `last_outcome` is persisted, so a source whose last import
+ * predates the restart still has a line here — but only its most recent one.
+ *
+ * A source that appears in both is shown once, from the live job, which is
+ * the fresher of the two.
+ */
+import {
+ AlertTriangle,
+ CheckCircle2,
+ Loader2,
+ MinusCircle,
+} from "lucide-react";
+
+import { cn } from "@/lib/utils";
+import { useT } from "@/i18n";
+import { formatRelativeTime } from "@/components/ultrawiki/relativeTime";
+import { Eyebrow, formatCount } from "@/components/ultrawiki/overview/primitives";
+import {
+ ULTRAWIKI_ACTIVE_JOB_STATUSES,
+ type UltraWikiSource,
+ type UltraWikiStatus,
+} from "@/lib/ultrawikiApi";
+
+const MAX_ROWS = 8;
+
+export interface ActivityEntry {
+ key: string;
+ sourceId: string;
+ label: string;
+ status: string;
+ /** ISO string or epoch seconds — whatever the origin recorded. */
+ at: string | number | null;
+ New: number;
+ changed: number;
+ unchanged: number;
+ error: string;
+ /** True for the persisted per-source outcome, which is not a full log. */
+ fromMemory: boolean;
+}
+
+/**
+ * Merge the live job registry with the persisted per-source outcomes.
+ *
+ * Exported for its own test: the de-duplication is the part that decides
+ * whether one import shows up as one event or two.
+ */
+export function activityEntriesOf(
+ jobs: UltraWikiStatus["jobs"],
+ sources: UltraWikiSource[],
+): ActivityEntry[] {
+ const labels = new Map(sources.map((s) => [s.id, s.label]));
+ const seen = new Set<string>();
+ const entries: ActivityEntry[] = [];
+
+ for (const job of jobs) {
+ seen.add(job.source_id);
+ entries.push({
+ key: job.job_id,
+ sourceId: job.source_id,
+ label: labels.get(job.source_id) ?? job.source_id,
+ status: job.status,
+ at: job.ended_at ?? job.started_at,
+ New: job.new,
+ changed: job.changed,
+ unchanged: job.unchanged,
+ error: job.error,
+ fromMemory: false,
+ });
+ }
+
+ for (const source of sources) {
+ const outcome = source.last_outcome;
+ if (!outcome || seen.has(source.id)) continue;
+ entries.push({
+ key: `outcome:${source.id}`,
+ sourceId: source.id,
+ label: source.label,
+ status: outcome.status || "done",
+ at: outcome.finished_at,
+ New: outcome.new,
+ changed: outcome.changed,
+ unchanged: outcome.unchanged,
+ error: source.last_error ?? "",
+ fromMemory: true,
+ });
+ }
+
+ return entries.sort((a, b) => timeOf(b.at) - timeOf(a.at));
+}
+
+function timeOf(at: string | number | null): number {
+ if (at === null || at === undefined || at === "") return 0;
+ if (typeof at === "number") return at * 1000;
+ const parsed = Date.parse(at);
+ return Number.isFinite(parsed) ? parsed : 0;
+}
+
+export function ActivityFeed({
+ jobs,
+ sources,
+}: {
+ jobs: UltraWikiStatus["jobs"];
+ sources: UltraWikiSource[];
+}): JSX.Element {
+ const t = useT();
+ const all = activityEntriesOf(jobs, sources);
+ const entries = all.slice(0, MAX_ROWS);
+ const anyFromMemory = entries.some((e) => e.fromMemory);
+
+ return (
+ <section data-testid="ultrawiki-activity">
+ <Eyebrow>{t("ultrawiki.overview.eyebrow_activity")}</Eyebrow>
+ {entries.length === 0 ? (
+ <p
+ className="rounded-xl border border-dashed border-border bg-card/30 p-4 text-[13px] text-muted-foreground"
+ data-testid="ultrawiki-activity-empty"
+ >
+ {t("ultrawiki.overview.activity_empty")}
+ </p>
+ ) : (
+ <ol className="divide-y divide-border/60 overflow-hidden rounded-xl border border-border bg-card/40">
+ {entries.map((entry) => (
+ <ActivityRow key={entry.key} entry={entry} />
+ ))}
+ </ol>
+ )}
+ {anyFromMemory && (
+ <p
+ className="mt-1.5 text-[11px] leading-relaxed text-muted-foreground"
+ data-testid="ultrawiki-activity-note"
+ >
+ {t("ultrawiki.overview.activity_note")}
+ </p>
+ )}
+ </section>
+ );
+}
+
+function ActivityRow({ entry }: { entry: ActivityEntry }): JSX.Element {
+ const t = useT();
+ const running = ULTRAWIKI_ACTIVE_JOB_STATUSES.includes(entry.status);
+ const Icon = running
+ ? Loader2
+ : entry.status === "failed"
+ ? AlertTriangle
+ : entry.status === "cancelled"
+ ? MinusCircle
+ : CheckCircle2;
+ const tone = running
+ ? "text-primary"
+ : entry.status === "failed"
+ ? "text-destructive"
+ : entry.status === "cancelled"
+ ? "text-muted-foreground"
+ : "text-[#5bd4a4]";
+
+ // "+12 new · 3 changed · 4 511 unchanged" — the three numbers that say what
+ // an import actually did. A run that changed nothing is worth seeing too,
+ // so the counts are printed even when they are all zero.
+ const summary = [
+ t("ultrawiki.overview.act_new").replace("{0}", formatCount(entry.New)),
+ t("ultrawiki.overview.act_changed").replace("{0}", formatCount(entry.changed)),
+ t("ultrawiki.overview.act_unchanged").replace(
+ "{0}",
+ formatCount(entry.unchanged),
+ ),
+ ].join(" · ");
+
+ return (
+ <li
+ className="flex items-center gap-3 px-3 py-2"
+ data-testid={`ultrawiki-activity-row-${entry.sourceId}`}
+ data-status={entry.status}
+ >
+ <Icon
+ className={cn("h-3.5 w-3.5 shrink-0", tone, running && "animate-spin")}
+ aria-hidden
+ />
+ <span className="w-40 shrink-0 truncate text-[13px] text-foreground">
+ {entry.label}
+ </span>
+ <span className="min-w-0 flex-1 truncate font-mono text-[11px] tabular-nums text-muted-foreground">
+ {entry.status === "failed" && entry.error ? entry.error : summary}
+ </span>
+ <span className="shrink-0 text-[11px] text-muted-foreground">
+ {running
+ ? t("ultrawiki.overview.act_running")
+ : formatRelativeTime(entry.at, t)}
+ </span>
+ </li>
+ );
+}
diff --git a/jarvis/ui/web/frontend/src/components/ultrawiki/overview/IntakeBar.tsx b/jarvis/ui/web/frontend/src/components/ultrawiki/overview/IntakeBar.tsx
new file mode 100644
index 0000000000..fabaa560c4
--- /dev/null
+++ b/jarvis/ui/web/frontend/src/components/ultrawiki/overview/IntakeBar.tsx
@@ -0,0 +1,145 @@
+/**
+ * The corpus itself, drawn at true scale — the one thing this screen is meant
+ * to be remembered by.
+ *
+ * What it replaces: a row of five raw bucket counts ("Captured 0 ·
+ * Keyword-searchable 0 · Embedded 3237 · Distilled 1475 · Failed 0"). Those
+ * were the internal state machine printed verbatim, and because an item sits
+ * in exactly one bucket, the numbers appeared to move BACKWARDS as work
+ * progressed. Nobody could see from them that the store was two-thirds
+ * unfinished.
+ *
+ * Here the whole bar is the corpus and each band is a real share of it, so
+ * "most of it is still being summarised" is something you see before you read
+ * anything. The bands are ordered by how finished the material is, which is
+ * also the order the pipeline moves it in — left is done, right is not.
+ *
+ * The hatch carries a claim, so it obeys one: it only MOVES while the backend
+ * genuinely reports `processing`. A queue that is standing still shows a
+ * static hatch, because an animation that plays over a stalled pipeline is
+ * the same lie in motion that this whole redesign exists to remove.
+ */
+import { cn } from "@/lib/utils";
+import { useT } from "@/i18n";
+import { Num } from "@/components/ultrawiki/overview/primitives";
+import type { UltraWikiProgress } from "@/lib/ultrawikiApi";
+
+interface Band {
+ key: "summarised" | "usable" | "arriving" | "failed";
+ count: number;
+ /** Unfinished material carries the hatch; finished material does not. */
+ working: boolean;
+ className: string;
+ dotClassName: string;
+}
+
+/**
+ * Split the canonical numbers into disjoint bands.
+ *
+ * Subtraction only, never re-addition of buckets: every input comes from the
+ * one progress model, so the bands are guaranteed to sum to the corpus.
+ */
+export function bandsOf(progress: UltraWikiProgress): Band[] {
+ const summarised = Math.max(0, progress.summarised);
+ const failed = Math.max(0, progress.failed);
+ const usable = Math.max(0, progress.searchable - summarised);
+ const arriving = Math.max(
+ 0,
+ progress.total - summarised - failed - usable,
+ );
+ return [
+ {
+ key: "summarised",
+ count: summarised,
+ working: false,
+ className: "bg-[#5bd4a4]",
+ dotClassName: "bg-[#5bd4a4]",
+ },
+ {
+ key: "usable",
+ count: usable,
+ working: true,
+ className: "bg-[#5bd4a4]/35",
+ dotClassName: "bg-[#5bd4a4]/35",
+ },
+ {
+ key: "arriving",
+ count: arriving,
+ working: true,
+ className: "bg-muted-foreground/25",
+ dotClassName: "bg-muted-foreground/40",
+ },
+ {
+ key: "failed",
+ count: failed,
+ working: false,
+ className: "bg-destructive/70",
+ dotClassName: "bg-destructive/70",
+ },
+ ];
+}
+
+export function IntakeBar({
+ progress,
+ running,
+}: {
+ progress: UltraWikiProgress;
+ /** The backend's own verdict that work is moving right now. */
+ running: boolean;
+}): JSX.Element {
+ const t = useT();
+ const bands = bandsOf(progress).filter((band) => band.count > 0);
+ const total = Math.max(1, progress.total);
+
+ return (
+ <div data-testid="ultrawiki-intake-bar">
+ <div
+ className="flex h-2.5 w-full overflow-hidden rounded-full bg-muted/40"
+ aria-hidden
+ >
+ {bands.map((band) => (
+ <div
+ key={band.key}
+ data-band={band.key}
+ data-working={band.working && running ? "true" : "false"}
+ className={cn(
+ "h-full",
+ band.className,
+ // A band only animates when there is genuinely something to
+ // animate about; `uw-hatch` degrades to a static texture under
+ // prefers-reduced-motion.
+ band.working && "uw-hatch",
+ band.working && running && "uw-hatch-live",
+ )}
+ style={{
+ // A single failed item out of 4 712 is still worth a pixel.
+ width: `${(band.count / total) * 100}%`,
+ minWidth: "3px",
+ }}
+ />
+ ))}
+ </div>
+
+ <dl className="mt-2.5 flex flex-wrap items-center gap-x-5 gap-y-1.5">
+ {bands.map((band) => (
+ <div
+ key={band.key}
+ className="flex items-baseline gap-1.5"
+ data-testid={`ultrawiki-intake-legend-${band.key}`}
+ >
+ <span
+ className={cn("h-1.5 w-1.5 shrink-0 rounded-full", band.dotClassName)}
+ aria-hidden
+ />
+ <dt className="text-xs text-muted-foreground">
+ {t(`ultrawiki.overview.band_${band.key}`)}
+ </dt>
+ <dd className="text-xs font-medium text-foreground">
+ <Num value={band.count} />
+ </dd>
+ </div>
+ ))}
+ </dl>
+ </div>
+ );
+}
diff --git a/jarvis/ui/web/frontend/src/components/ultrawiki/overview/OverviewTab.test.tsx b/jarvis/ui/web/frontend/src/components/ultrawiki/overview/OverviewTab.test.tsx
new file mode 100644
index 0000000000..4195ca817d
--- /dev/null
+++ b/jarvis/ui/web/frontend/src/components/ultrawiki/overview/OverviewTab.test.tsx
@@ -0,0 +1,287 @@
+/**
+ * The overview, tested against the screen that caused it.
+ *
+ * The anchor is `SCREENSHOT`: the live corpus of 4 712 items where 3 237 were
+ * queued for distillation, the strip said "Processing (3237 pending)" and the
+ * checklist directly below said "Everything is processed. No backlog." Any
+ * change that lets this screen claim it is finished should fail here.
+ */
+import { afterEach, describe, expect, it, vi } from "vitest";
+import { cleanup, render, screen, within } from "@testing-library/react";
+import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
+
+import { VerdictCard, verdictToneOf } from "@/components/ultrawiki/overview/VerdictCard";
+import { bandsOf } from "@/components/ultrawiki/overview/IntakeBar";
+import { SourceRoster, rowStateOf } from "@/components/ultrawiki/overview/SourceRoster";
+import {
+ ActivityFeed,
+ activityEntriesOf,
+} from "@/components/ultrawiki/overview/ActivityFeed";
+import { ProblemList, problemsOf } from "@/components/ultrawiki/overview/ProblemList";
+import type {
+ UltraWikiHealthCheck,
+ UltraWikiJob,
+ UltraWikiPipeline,
+ UltraWikiProgress,
+ UltraWikiSource,
+} from "@/lib/ultrawikiApi";
+
+/** The exact live state from the 2026-07-26 screenshot. */
+const SCREENSHOT: UltraWikiProgress = {
+ state: "working",
+ total: 4712,
+ searchable: 4712,
+ summarised: 1475,
+ waiting: 3237,
+ failed: 0,
+ next_step: "summarising",
+ waiting_by_bucket: { embedded: 3237 },
+ buckets: { captured: 0, keyword_indexed: 0, embedded: 3237, distilled: 1475, failed: 0 },
+ milestones: [
+ { id: "stored", reached: 4712, share: 1 },
+ { id: "searchable", reached: 4712, share: 1 },
+ { id: "summarised", reached: 1475, share: 0.313 },
+ ],
+};
+
+const PROCESSING: UltraWikiPipeline = {
+ running: true,
+ state: "processing",
+ reason: "3237 item(s) are queued for processing.",
+ processed: {},
+};
+
+function renderWithQuery(ui: JSX.Element) {
+ const client = new QueryClient({
+ defaultOptions: { queries: { retry: false } },
+ });
+ return render(
+ <QueryClientProvider client={client}>{ui}</QueryClientProvider>,
+ );
+}
+
+afterEach(() => {
+ cleanup();
+ vi.restoreAllMocks();
+});
+
+describe("VerdictCard — the sentence that used to be wrong", () => {
+ it("never says the corpus is finished while items are queued", () => {
+ renderWithQuery(
+ <VerdictCard progress={SCREENSHOT} pipeline={PROCESSING} usable />,
+ );
+ const card = screen.getByTestId("ultrawiki-verdict");
+ expect(card.getAttribute("data-tone")).toBe("working");
+ expect(card.textContent).not.toContain("Everything is processed");
+ expect(screen.getByTestId("ultrawiki-verdict-detail").textContent).toContain(
+ "3 237",
+ );
+ });
+
+ it("names what the queue is waiting for, not the stage it finished", () => {
+ renderWithQuery(
+ <VerdictCard progress={SCREENSHOT} pipeline={PROCESSING} usable />,
+ );
+ const detail = screen.getByTestId("ultrawiki-verdict-detail").textContent;
+ expect(detail).toContain("being summarised");
+ expect(detail).not.toContain("embedded");
+ });
+
+ it("still calls a half-processed store usable, because it is", () => {
+ // A backlog must not read as a fault: the processed part answers now.
+ expect(verdictToneOf(SCREENSHOT, "processing", true)).toBe("working");
+ });
+
+ it("distinguishes a stalled queue from a busy one", () => {
+ expect(verdictToneOf(SCREENSHOT, "paused", true)).toBe("stalled");
+ renderWithQuery(
+ <VerdictCard
+ progress={SCREENSHOT}
+ pipeline={{ ...PROCESSING, state: "paused", reason: "no key configured" }}
+ usable
+ />,
+ );
+ expect(screen.getByTestId("ultrawiki-verdict-reason").textContent).toContain(
+ "no key configured",
+ );
+ });
+
+ it("reports an empty store as empty, not as broken", () => {
+ const empty: UltraWikiProgress = { ...SCREENSHOT, state: "empty", total: 0, searchable: 0, summarised: 0, waiting: 0, next_step: null };
+ expect(verdictToneOf(empty, "idle", false)).toBe("empty");
+ });
+});
+
+describe("IntakeBar — the corpus at true scale", () => {
+ it("splits the corpus into disjoint bands that add back up to it", () => {
+ const bands = bandsOf(SCREENSHOT);
+ const sum = bands.reduce((acc, b) => acc + b.count, 0);
+ expect(sum).toBe(SCREENSHOT.total);
+ });
+
+ it("draws the unfinished share as unfinished, not as done", () => {
+ const bands = bandsOf(SCREENSHOT);
+ const summarised = bands.find((b) => b.key === "summarised");
+ const usable = bands.find((b) => b.key === "usable");
+ expect(summarised?.count).toBe(1475);
+ expect(usable?.count).toBe(3237);
+ expect(usable?.working).toBe(true);
+ });
+
+ it("keeps failed items out of the finished bands", () => {
+ const bands = bandsOf({
+ ...SCREENSHOT,
+ total: 100,
+ searchable: 80,
+ summarised: 70,
+ waiting: 10,
+ failed: 20,
+ });
+ expect(bands.find((b) => b.key === "failed")?.count).toBe(20);
+ expect(bands.reduce((a, b) => a + b.count, 0)).toBe(100);
+ });
+});
+
+describe("SourceRoster — did this source actually deliver anything?", () => {
+ const base: UltraWikiSource = {
+ id: "s1",
+ connector: "obsidian-vault",
+ label: "Built-in Wiki",
+ consent: "approved",
+ enabled: true,
+ areas: [],
+ counts: { total: 60 },
+ sync_state: null,
+ last_sync_at: "2026-07-26T08:00:00Z",
+ last_error: null,
+ };
+
+ it("calls out an approved source that has never been read", () => {
+ expect(
+ rowStateOf({ ...base, last_sync_at: null, last_outcome: null }),
+ ).toBe("never");
+ });
+
+ it("calls out a source that ran and delivered nothing", () => {
+ // The 2026-07-25 forensic in one row: success, zero items.
+ expect(rowStateOf({ ...base, counts: { total: 0 } })).toBe("empty");
+ });
+
+ it("shows the item count each source contributed", () => {
+ renderWithQuery(
+ <SourceRoster sources={[base]} onChanged={() => {}} onOpenSources={() => {}} />,
+ );
+ const row = screen.getByTestId("ultrawiki-roster-row-s1");
+ expect(within(row).getByText("60")).toBeDefined();
+ });
+
+ it("invites the first source instead of showing an empty box", () => {
+ renderWithQuery(
+ <SourceRoster sources={[]} onChanged={() => {}} onOpenSources={() => {}} />,
+ );
+ expect(screen.getByTestId("ultrawiki-roster-empty-action")).toBeDefined();
+ });
+});
+
+describe("ActivityFeed — what happened", () => {
+ const job: UltraWikiJob = {
+ job_id: "j1",
+ source_id: "s1",
+ mode: "incremental",
+ status: "done",
+ started_at: 1_800_000_000,
+ ended_at: 1_800_000_060,
+ chunks: 1,
+ new: 12,
+ changed: 3,
+ unchanged: 4511,
+ tombstoned: 0,
+ error: "",
+ };
+ const source: UltraWikiSource = {
+ id: "s1",
+ connector: "x",
+ label: "Jarvis Conversations",
+ consent: "approved",
+ enabled: true,
+ areas: [],
+ counts: { total: 4530 },
+ sync_state: null,
+ last_sync_at: "2026-07-26T08:00:00Z",
+ last_error: null,
+ last_outcome: {
+ finished_at: "2026-07-26T08:00:00Z",
+ status: "done",
+ mode: "incremental",
+ new: 1,
+ changed: 0,
+ unchanged: 0,
+ tombstoned: 0,
+ },
+ };
+
+ it("reports one import once, even though two records describe it", () => {
+ const entries = activityEntriesOf([job], [source]);
+ expect(entries).toHaveLength(1);
+ expect(entries[0].fromMemory).toBe(false);
+ });
+
+ it("still lists a source whose last run predates the app restart", () => {
+ const entries = activityEntriesOf([], [source]);
+ expect(entries).toHaveLength(1);
+ expect(entries[0].fromMemory).toBe(true);
+ });
+
+ it("says out loud that the persisted part is not a full log", () => {
+ renderWithQuery(<ActivityFeed jobs={[]} sources={[source]} />);
+ expect(screen.getByTestId("ultrawiki-activity-note")).toBeDefined();
+ });
+
+ it("shows what an import actually brought in", () => {
+ renderWithQuery(<ActivityFeed jobs={[job]} sources={[source]} />);
+ const row = screen.getByTestId("ultrawiki-activity-row-s1");
+ expect(row.textContent).toContain("+12");
+ expect(row.textContent).toContain("4 511");
+ });
+});
+
+describe("ProblemList — only what is not fine", () => {
+ const check = (
+ id: string,
+ state: UltraWikiHealthCheck["state"],
+ ): UltraWikiHealthCheck => ({
+ id,
+ title: `${id} title`,
+ state,
+ detail: `${id} detail`,
+ action: state === "attention" ? { kind: "sync_all" } : null,
+ facts: {},
+ });
+
+ it("hides the green rows and keeps the ones needing a decision", () => {
+ const problems = problemsOf([
+ check("mode", "ok"),
+ check("sources", "attention"),
+ check("integrations", "blocked"),
+ check("processing", "working"),
+ ]);
+ expect(problems.map((p) => p.id)).toEqual(["sources", "integrations"]);
+ });
+
+ it("does not dress a draining backlog up as a problem", () => {
+ // "working" is progress. Listing it here is how a list stops being read.
+ expect(problemsOf([check("processing", "working")])).toHaveLength(0);
+ });
+
+ it("collapses an all-clear to a single line", () => {
+ renderWithQuery(
+ <ProblemList
+ checks={[check("mode", "ok")]}
+ handlers={{ onOpenSources: () => {}, onOpenSettings: () => {}, onChanged: () => {} }}
+ />,
+ );
+ expect(
+ screen.getByTestId("ultrawiki-problems").getAttribute("data-count"),
+ ).toBe("0");
+ });
+});
diff --git a/jarvis/ui/web/frontend/src/components/ultrawiki/overview/OverviewTab.tsx b/jarvis/ui/web/frontend/src/components/ultrawiki/overview/OverviewTab.tsx
new file mode 100644
index 0000000000..1446fc1b20
--- /dev/null
+++ b/jarvis/ui/web/frontend/src/components/ultrawiki/overview/OverviewTab.tsx
@@ -0,0 +1,124 @@
+/**
+ * The section's home screen: four questions, in the order a person asks them.
+ *
+ * Can I use it → where does it come from → what happened → does anything need
+ * me. The full diagnostic checklist is still here, one disclosure down,
+ * because it is the right tool once you already know something is wrong — it
+ * was simply never the right thing to open with.
+ *
+ * All numbers on this screen come from ONE backend model
+ * (`jarvis/ultrawiki/progress.py`), which is why the headline, the bar and the
+ * checklist cannot disagree the way they did before. If the backend has not
+ * answered yet, the screen says so instead of rendering zeros that look like
+ * measurements.
+ */
+import { useQuery } from "@tanstack/react-query";
+import { ChevronRight, Loader2 } from "lucide-react";
+
+import { useT } from "@/i18n";
+import { HealthPanel } from "@/components/ultrawiki/HealthPanel";
+import { VerdictCard } from "@/components/ultrawiki/overview/VerdictCard";
+import { SourceRoster } from "@/components/ultrawiki/overview/SourceRoster";
+import { ActivityFeed } from "@/components/ultrawiki/overview/ActivityFeed";
+import { ProblemList } from "@/components/ultrawiki/overview/ProblemList";
+import {
+ fetchUltraWikiHealth,
+ type UltraWikiHealth,
+ type UltraWikiStatus,
+} from "@/lib/ultrawikiApi";
+
+export function OverviewTab({
+ status,
+ onChanged,
+ onOpenSources,
+ onOpenSettings,
+}: {
+ status: UltraWikiStatus;
+ onChanged: () => void;
+ onOpenSources: () => void;
+ onOpenSettings: () => void;
+}): JSX.Element {
+ const t = useT();
+
+ const healthQuery = useQuery({
+ queryKey: ["ultrawiki", "health"],
+ queryFn: fetchUltraWikiHealth,
+ staleTime: 2_000,
+ // Follow a running import closely, idle calmly — the same cadence the
+ // status poll uses, so the two never disagree for longer than a tick.
+ refetchInterval: (query) =>
+ (query.state.data as UltraWikiHealth | undefined)?.checks?.some(
+ (c) => c.state === "working",
+ )
+ ? 4_000
+ : 20_000,
+ });
+
+ const health = healthQuery.data ?? null;
+ const progress = status.progress ?? health?.progress ?? null;
+
+ const refresh = () => {
+ onChanged();
+ void healthQuery.refetch();
+ };
+
+ if (!progress) {
+ return (
+ <div className="p-4" data-testid="ultrawiki-overview-waiting">
+ <p className="flex items-center gap-2 rounded-xl border border-border bg-card/40 px-4 py-3 text-sm text-muted-foreground">
+ <Loader2 className="h-4 w-4 animate-spin" aria-hidden />
+ {t("ultrawiki.overview.waiting")}
+ </p>
+ </div>
+ );
+ }
+
+ return (
+ <div className="space-y-5 p-4" data-testid="ultrawiki-overview">
+ <VerdictCard
+ progress={progress}
+ pipeline={status.pipeline}
+ usable={health?.usable ?? false}
+ />
+
+ <SourceRoster
+ sources={status.sources}
+ onChanged={refresh}
+ onOpenSources={onOpenSources}
+ />
+
+ <ActivityFeed jobs={status.jobs} sources={status.sources} />
+
+ {health && (
+ <ProblemList
+ checks={health.checks}
+ handlers={{
+ onOpenSources,
+ onOpenSettings,
+ onChanged: refresh,
+ }}
+ />
+ )}
+
+ <details className="group rounded-xl border border-border bg-card/30">
+ <summary
+ className="flex cursor-pointer list-none items-center gap-1.5 px-3 py-2.5 text-xs text-muted-foreground hover:text-foreground"
+ data-testid="ultrawiki-all-checks-toggle"
+ >
+ <ChevronRight
+ className="h-3.5 w-3.5 transition-transform group-open:rotate-90"
+ aria-hidden
+ />
+ {t("ultrawiki.overview.all_checks")}
+ </summary>
+ <div className="border-t border-border/60">
+ <HealthPanel
+ showVerdict={false}
+ onOpenSources={onOpenSources}
+ onOpenSettings={onOpenSettings}
+ />
+ </div>
+ </details>
+ </div>
+ );
+}
diff --git a/jarvis/ui/web/frontend/src/components/ultrawiki/overview/ProblemList.tsx b/jarvis/ui/web/frontend/src/components/ultrawiki/overview/ProblemList.tsx
new file mode 100644
index 0000000000..4f9c6c1559
--- /dev/null
+++ b/jarvis/ui/web/frontend/src/components/ultrawiki/overview/ProblemList.tsx
@@ -0,0 +1,112 @@
+/**
+ * "Needs you" — the checks that are NOT fine, and nothing else.
+ *
+ * The screen this replaces printed all seven checks at equal weight, six of
+ * them green. That is a reading cost with no payoff: a person scanning for a
+ * problem has to read six reassurances to find out there is none, and on the
+ * day something IS wrong it looks exactly like the other six.
+ *
+ * So the list shows only what is not ok, and an all-clear collapses to a
+ * single line. The full checklist is still one click away behind "all checks"
+ * — nothing is hidden, it is just no longer the first thing in the way.
+ *
+ * `working` is deliberately excluded from "problems": a draining backlog is
+ * progress, and the verdict card above already reports it. Dressing it up as
+ * something to fix is how people learn to ignore this list.
+ */
+import { AlertTriangle, CheckCircle2, MinusCircle } from "lucide-react";
+
+import { Button } from "@/components/ui/button";
+import { cn } from "@/lib/utils";
+import { useT } from "@/i18n";
+import { Eyebrow } from "@/components/ultrawiki/overview/primitives";
+import {
+ useCheckActions,
+ type CheckActionHandlers,
+} from "@/components/ultrawiki/overview/useCheckActions";
+import type { UltraWikiHealthCheck } from "@/lib/ultrawikiApi";
+
+/** Only states a person can do something about, or must know are impossible. */
+export function problemsOf(
+ checks: UltraWikiHealthCheck[],
+): UltraWikiHealthCheck[] {
+ return checks.filter(
+ (check) => check.state === "attention" || check.state === "blocked",
+ );
+}
+
+export function ProblemList({
+ checks,
+ handlers,
+}: {
+ checks: UltraWikiHealthCheck[];
+ handlers: CheckActionHandlers;
+}): JSX.Element {
+ const t = useT();
+ const { busy, runAction } = useCheckActions(handlers);
+ const problems = problemsOf(checks);
+
+ if (problems.length === 0) {
+ return (
+ <section data-testid="ultrawiki-problems" data-count="0">
+ <Eyebrow>{t("ultrawiki.overview.eyebrow_problems")}</Eyebrow>
+ <p className="flex items-center gap-2 rounded-xl border border-border bg-card/40 px-3 py-2.5 text-[13px] text-muted-foreground">
+ <CheckCircle2 className="h-3.5 w-3.5 shrink-0 text-[#5bd4a4]" aria-hidden />
+ {t("ultrawiki.overview.no_problems")}
+ </p>
+ </section>
+ );
+ }
+
+ return (
+ <section data-testid="ultrawiki-problems" data-count={problems.length}>
+ <Eyebrow>{t("ultrawiki.overview.eyebrow_problems")}</Eyebrow>
+ <ul className="space-y-2">
+ {problems.map((check) => {
+ const blocked = check.state === "blocked";
+ const Icon = blocked ? MinusCircle : AlertTriangle;
+ return (
+ <li
+ key={check.id}
+ className={cn(
+ "flex items-start gap-3 rounded-xl border p-3",
+ blocked
+ ? "border-border bg-muted/20"
+ : "border-[#ffb84d]/30 bg-[#ffb84d]/[0.05]",
+ )}
+ data-testid={`ultrawiki-problem-${check.id}`}
+ data-state={check.state}
+ >
+ <Icon
+ className={cn(
+ "mt-0.5 h-4 w-4 shrink-0",
+ blocked ? "text-muted-foreground" : "text-[#ffb84d]",
+ )}
+ aria-hidden
+ />
+ <div className="min-w-0 flex-1">
+ <p className="text-[13px] font-medium text-foreground">
+ {check.title}
+ </p>
+ <p className="mt-0.5 text-xs leading-relaxed text-muted-foreground">
+ {check.detail}
+ </p>
+ </div>
+ {check.action && (
+ <Button
+ size="sm"
+ variant={blocked ? "outline" : "default"}
+ onClick={() => runAction(check)}
+ disabled={busy}
+ data-testid={`ultrawiki-problem-action-${check.id}`}
+ >
+ {t(`ultrawiki.health.action_${check.action.kind}`)}
+ </Button>
+ )}
+ </li>
+ );
+ })}
+ </ul>
+ </section>
+ );
+}
diff --git a/jarvis/ui/web/frontend/src/components/ultrawiki/overview/SourceRoster.tsx b/jarvis/ui/web/frontend/src/components/ultrawiki/overview/SourceRoster.tsx
new file mode 100644
index 0000000000..631b0f1b6c
--- /dev/null
+++ b/jarvis/ui/web/frontend/src/components/ultrawiki/overview/SourceRoster.tsx
@@ -0,0 +1,173 @@
+/**
+ * "Where it comes from" — every source as one line, with the number that
+ * proves it actually delivered something.
+ *
+ * The Sources tab already lets you add, approve and revoke; what it never
+ * answered at a glance was the question people actually have about a source
+ * they connected weeks ago: *did anything come out of it?* A source can be
+ * approved, enabled, error-free and still have contributed zero items — the
+ * exact state that once left a knowledge base empty for days while every
+ * screen reported success. So the item count is the loudest thing in the row,
+ * and a source that has delivered nothing says so in words.
+ */
+import { useState } from "react";
+import { Loader2, Plus } from "lucide-react";
+
+import { Button } from "@/components/ui/button";
+import { cn } from "@/lib/utils";
+import { useT } from "@/i18n";
+import { useEventStore } from "@/store/events";
+import { ConnectorBrandMark } from "@/components/ultrawiki/ConnectorBrand";
+import { formatRelativeTime } from "@/components/ultrawiki/relativeTime";
+import { Eyebrow, Num } from "@/components/ultrawiki/overview/primitives";
+import { startUltraWikiSync, type UltraWikiSource } from "@/lib/ultrawikiApi";
+
+type RowState = "importing" | "failed" | "pending" | "never" | "empty" | "ok";
+
+const ROW_TONE: Record<RowState, string> = {
+ importing: "text-primary",
+ failed: "text-destructive",
+ pending: "text-[#ffb84d]",
+ never: "text-[#ffb84d]",
+ empty: "text-[#ffb84d]",
+ ok: "text-muted-foreground",
+};
+
+/**
+ * What this source's line should say about itself.
+ *
+ * "empty" is the one worth spelling out: it ran, it worked, and it produced
+ * nothing. Collapsing that into "ok" is how a dead integration hides behind a
+ * green tick.
+ */
+export function rowStateOf(source: UltraWikiSource): RowState {
+ if (source.active_job) return "importing";
+ if (source.last_error) return "failed";
+ if (source.consent !== "approved") return "pending";
+ if (!source.last_sync_at && !source.last_outcome) return "never";
+ if (!(source.counts?.total ?? 0)) return "empty";
+ return "ok";
+}
+
+export function SourceRoster({
+ sources,
+ onChanged,
+ onOpenSources,
+}: {
+ sources: UltraWikiSource[];
+ onChanged: () => void;
+ onOpenSources: () => void;
+}): JSX.Element {
+ const t = useT();
+ const pushToast = useEventStore((s) => s.pushToast);
+ const [busyId, setBusyId] = useState<string | null>(null);
+
+ async function importNow(source: UltraWikiSource) {
+ setBusyId(source.id);
+ try {
+ await startUltraWikiSync(source.id);
+ pushToast(
+ "success",
+ t("ultrawiki.overview.import_started").replace("{0}", source.label),
+ );
+ onChanged();
+ } catch (e) {
+ pushToast("error", (e as Error).message);
+ } finally {
+ setBusyId(null);
+ }
+ }
+
+ return (
+ <section data-testid="ultrawiki-source-roster">
+ <div className="mb-2 flex items-baseline justify-between gap-2">
+ <Eyebrow className="mb-0">{t("ultrawiki.overview.eyebrow_sources")}</Eyebrow>
+ <button
+ type="button"
+ onClick={onOpenSources}
+ className="inline-flex items-center gap-1 text-[11px] text-muted-foreground underline-offset-2 hover:text-foreground hover:underline"
+ data-testid="ultrawiki-roster-manage"
+ >
+ <Plus className="h-3 w-3" aria-hidden />
+ {t("ultrawiki.overview.manage_sources")}
+ </button>
+ </div>
+
+ {sources.length === 0 ? (
+ <div
+ className="rounded-xl border border-dashed border-border bg-card/30 p-4"
+ data-testid="ultrawiki-roster-empty"
+ >
+ <p className="text-[13px] text-muted-foreground">
+ {t("ultrawiki.overview.no_sources")}
+ </p>
+ <Button
+ size="sm"
+ className="mt-2.5"
+ onClick={onOpenSources}
+ data-testid="ultrawiki-roster-empty-action"
+ >
+ {t("ultrawiki.overview.add_first_source")}
+ </Button>
+ </div>
+ ) : (
+ <ul className="divide-y divide-border/60 overflow-hidden rounded-xl border border-border bg-card/40">
+ {sources.map((source) => {
+ const state = rowStateOf(source);
+ const items = source.counts?.total ?? 0;
+ const when = formatRelativeTime(source.last_sync_at, t);
+ return (
+ <li
+ key={source.id}
+ className="flex items-center gap-3 px-3 py-2.5"
+ data-testid={`ultrawiki-roster-row-${source.id}`}
+ data-row-state={state}
+ >
+ <ConnectorBrandMark
+ brand={source.brand ?? ""}
+ label={source.label}
+ size="sm"
+ />
+ <div className="min-w-0 flex-1">
+ <p className="truncate text-[13px] font-medium text-foreground">
+ {source.label}
+ </p>
+ <p className={cn("truncate text-[11px]", ROW_TONE[state])}>
+ {state === "failed"
+ ? source.last_error
+ : state === "ok"
+ ? t("ultrawiki.overview.row_read").replace("{0}", when)
+ : t(`ultrawiki.overview.row_${state}`)}
+ </p>
+ </div>
+ <div className="shrink-0 text-right">
+ <Num
+ value={items}
+ className="text-sm font-medium text-foreground"
+ />
+ <p className="text-[10px] uppercase tracking-wider text-muted-foreground">
+ {t("ultrawiki.overview.items_label")}
+ </p>
+ </div>
+ {source.consent === "approved" && !source.active_job && (
+ <Button
+ size="sm"
+ variant={state === "never" || state === "empty" ? "default" : "outline"}
+ onClick={() => void importNow(source)}
+ disabled={busyId === source.id}
+ data-testid={`ultrawiki-roster-import-${source.id}`}
+ >
+ {busyId === source.id && (
+ <Loader2 className="mr-1 h-3.5 w-3.5 animate-spin" aria-hidden />
+ )}
+ {t("ultrawiki.overview.import_now")}
+ </Button>
+ )}
+ </li>
+ );
+ })}
+ </ul>
+ )}
+ </section>
+ );
+}
diff --git a/jarvis/ui/web/frontend/src/components/ultrawiki/overview/VerdictCard.tsx b/jarvis/ui/web/frontend/src/components/ultrawiki/overview/VerdictCard.tsx
new file mode 100644
index 0000000000..fb0aee60b7
--- /dev/null
+++ b/jarvis/ui/web/frontend/src/components/ultrawiki/overview/VerdictCard.tsx
@@ -0,0 +1,149 @@
+/**
+ * "Can I use it?" — the sentence the whole section exists to say.
+ *
+ * The screen it replaces opened with seven checklist rows of equal weight, six
+ * of which said "fine". The one that mattered was wrong, and nothing about the
+ * layout helped anyone notice. So there is now exactly one headline, and the
+ * detail line underneath states the only thing a headline cannot: how much of
+ * the corpus is still unfinished, and whether that stops you using the rest.
+ *
+ * Every word here is composed from the shared progress numbers through i18n
+ * keys — this component never adds up buckets and never invents an estimate
+ * for when the backlog will clear.
+ */
+import { cn } from "@/lib/utils";
+import { useT } from "@/i18n";
+import { Eyebrow, Num, formatCount } from "@/components/ultrawiki/overview/primitives";
+import { IntakeBar } from "@/components/ultrawiki/overview/IntakeBar";
+import type { UltraWikiPipeline, UltraWikiProgress } from "@/lib/ultrawikiApi";
+
+type Tone = "done" | "working" | "stalled" | "notready" | "empty";
+
+const TONE_STYLE: Record<Tone, { headline: string; rule: string }> = {
+ done: { headline: "text-[#5bd4a4]", rule: "bg-[#5bd4a4]" },
+ working: { headline: "text-primary", rule: "bg-primary" },
+ stalled: { headline: "text-[#ffb84d]", rule: "bg-[#ffb84d]" },
+ notready: { headline: "text-[#ffb84d]", rule: "bg-[#ffb84d]" },
+ empty: { headline: "text-foreground", rule: "bg-muted-foreground/40" },
+};
+
+/**
+ * Which of the five situations the store is in.
+ *
+ * Ordered by what a reader needs to hear first: an empty store is not a
+ * fault, a stalled queue outranks a busy one, and a backlog never demotes a
+ * usable knowledge base to "not ready" — the processed part answers questions
+ * while the rest catches up.
+ */
+export function verdictToneOf(
+ progress: UltraWikiProgress,
+ pipelineState: string,
+ usable: boolean,
+): Tone {
+ if (progress.total === 0) return "empty";
+ if (!usable) return "notready";
+ if (progress.waiting > 0) {
+ return pipelineState === "paused" ? "stalled" : "working";
+ }
+ return "done";
+}
+
+export function VerdictCard({
+ progress,
+ pipeline,
+ usable,
+}: {
+ progress: UltraWikiProgress;
+ pipeline: UltraWikiPipeline;
+ usable: boolean;
+}): JSX.Element {
+ const t = useT();
+ const pipelineState = String(pipeline.state ?? "");
+ const tone = verdictToneOf(progress, pipelineState, usable);
+ const style = TONE_STYLE[tone];
+
+ const step = t(
+ `ultrawiki.overview.step_${progress.next_step ?? "processing"}`,
+ );
+ const detail =
+ tone === "empty"
+ ? t("ultrawiki.overview.detail_empty")
+ : tone === "notready"
+ ? t("ultrawiki.overview.detail_notready")
+ : tone === "done"
+ ? t("ultrawiki.overview.detail_done").replace(
+ "{0}",
+ formatCount(progress.total),
+ )
+ : t(
+ tone === "stalled"
+ ? "ultrawiki.overview.detail_stalled"
+ : "ultrawiki.overview.detail_working",
+ )
+ .replace("{0}", formatCount(progress.waiting))
+ .replace("{1}", formatCount(progress.total))
+ .replace("{2}", step);
+
+ return (
+ <section data-testid="ultrawiki-verdict" data-tone={tone}>
+ <Eyebrow>{t("ultrawiki.overview.eyebrow_verdict")}</Eyebrow>
+ <div className="rounded-xl border border-border bg-card/60 p-4">
+ <div className="flex flex-wrap items-start justify-between gap-3">
+ <div className="flex min-w-0 items-center gap-2.5">
+ {/* A short colour rule instead of yet another status icon: the
+ section already carries icons in its problem rows, and a
+ headline does not need to compete with them. */}
+ <span
+ className={cn("h-5 w-[3px] shrink-0 rounded-full", style.rule)}
+ aria-hidden
+ />
+ <p
+ className={cn(
+ "font-display text-lg font-semibold leading-tight tracking-tight",
+ style.headline,
+ )}
+ data-testid="ultrawiki-verdict-headline"
+ >
+ {t(`ultrawiki.overview.headline_${tone}`)}
+ </p>
+ </div>
+ <span className="flex items-baseline gap-1.5 rounded-full border border-border px-2.5 py-1 text-xs text-muted-foreground">
+ <Num
+ value={progress.total}
+ className="text-sm font-medium text-foreground"
+ />
+ {t("ultrawiki.overview.items_label")}
+ </span>
+ </div>
+
+ <p
+ className="mt-2 max-w-2xl text-[13px] leading-relaxed text-muted-foreground"
+ data-testid="ultrawiki-verdict-detail"
+ >
+ {detail}
+ </p>
+
+ {/* The reason a paused queue is paused is a backend sentence — shown
+ verbatim rather than paraphrased, because guessing at it is how a
+ surface starts disagreeing with the one below it. */}
+ {tone === "stalled" && pipeline.reason && (
+ <p
+ className="mt-1.5 text-xs leading-relaxed text-[#ffb84d]"
+ data-testid="ultrawiki-verdict-reason"
+ >
+ {pipeline.reason}
+ </p>
+ )}
+
+ {progress.total > 0 && (
+ <div className="mt-4">
+ <IntakeBar
+ progress={progress}
+ running={pipelineState === "processing"}
+ />
+ </div>
+ )}
+ </div>
+ </section>
+ );
+}
diff --git a/jarvis/ui/web/frontend/src/components/ultrawiki/overview/primitives.tsx b/jarvis/ui/web/frontend/src/components/ultrawiki/overview/primitives.tsx
new file mode 100644
index 0000000000..b070806a7d
--- /dev/null
+++ b/jarvis/ui/web/frontend/src/components/ultrawiki/overview/primitives.tsx
@@ -0,0 +1,73 @@
+/**
+ * The three shared pieces of the overview's visual language.
+ *
+ * They exist as one module because the overview's whole argument is that the
+ * numbers on it agree with each other — and numbers agree more convincingly
+ * when they are also SET the same way. Before this, every figure in the
+ * section was 11 px muted grey Inter, which is how a corpus size, a backlog
+ * and a chip label all ended up looking equally unimportant.
+ */
+import { cn } from "@/lib/utils";
+
+/**
+ * A section label phrased as the question the section answers.
+ *
+ * The checklist module's own doctrine is "answer the question in the order a
+ * person asks it"; the overview simply prints those questions, so the reading
+ * order is the reasoning order rather than a list of nouns.
+ */
+export function Eyebrow({
+ children,
+ className,
+}: {
+ children: React.ReactNode;
+ className?: string;
+}): JSX.Element {
+ return (
+ <h3
+ className={cn(
+ "mb-2 text-[10px] font-medium uppercase tracking-[0.14em] text-muted-foreground",
+ className,
+ )}
+ >
+ {children}
+ </h3>
+ );
+}
+
+/**
+ * Every quantity on the screen, in the app's mono face with fixed-width
+ * digits and thin-space grouping.
+ *
+ * Two reasons beyond taste. The panel polls every few seconds, and
+ * proportional digits make each refresh nudge the layout — which reads as
+ * instability on a screen whose entire job is to look trustworthy. And "4712"
+ * is a number you decode; "4 712" is one you see.
+ */
+export function Num({
+ value,
+ className,
+}: {
+ value: number;
+ className?: string;
+}): JSX.Element {
+ return (
+ <span className={cn("font-mono tabular-nums", className)}>
+ {formatCount(value)}
+ </span>
+ );
+}
+
+/**
+ * 4712 → "4 712".
+ *
+ * A plain space, deliberately: the backend formats its checklist numbers the
+ * same way (`health._num`), and a typographically nicer thin space here would
+ * make the same figure look subtly different depending on which surface
+ * printed it — on a screen whose whole point is that its numbers agree.
+ */
+export function formatCount(value: number): string {
+ return Math.max(0, Math.round(value || 0))
+ .toString()
+ .replace(/\B(?=(\d{3})+(?!\d))/g, " ");
+}
diff --git a/jarvis/ui/web/frontend/src/components/ultrawiki/overview/useCheckActions.ts b/jarvis/ui/web/frontend/src/components/ultrawiki/overview/useCheckActions.ts
new file mode 100644
index 0000000000..da38a7c6df
--- /dev/null
+++ b/jarvis/ui/web/frontend/src/components/ultrawiki/overview/useCheckActions.ts
@@ -0,0 +1,72 @@
+/**
+ * The buttons a health check can offer, in one place.
+ *
+ * Two surfaces render checks now — the problem list on the overview and the
+ * full checklist behind "all checks" — and a check's action must do the same
+ * thing from both. Keeping the mapping here means adding a new action kind in
+ * `jarvis/ultrawiki/health.py` is a one-line change on this side, instead of
+ * two handlers that drift until one of them silently does nothing.
+ */
+import { useState } from "react";
+
+import { useT } from "@/i18n";
+import { useEventStore } from "@/store/events";
+import {
+ syncAllUltraWikiSources,
+ type UltraWikiHealthCheck,
+} from "@/lib/ultrawikiApi";
+
+export interface CheckActionHandlers {
+ onOpenSources: () => void;
+ onOpenSettings: () => void;
+ onEnableMode?: () => void;
+ /** Refresh whatever the caller is showing once an action changed something. */
+ onChanged: () => void;
+}
+
+export function useCheckActions(handlers: CheckActionHandlers): {
+ busy: boolean;
+ runAction: (check: UltraWikiHealthCheck) => void;
+} {
+ const t = useT();
+ const pushToast = useEventStore((s) => s.pushToast);
+ const [busy, setBusy] = useState(false);
+
+ async function syncAll() {
+ setBusy(true);
+ try {
+ const result = await syncAllUltraWikiSources();
+ // `started` empty is not a failure — every source may already be up to
+ // date, and reporting that as an error trains people to ignore toasts.
+ pushToast(result.started.length ? "success" : "info", result.detail);
+ handlers.onChanged();
+ } catch (e) {
+ pushToast("error", (e as Error).message);
+ } finally {
+ setBusy(false);
+ }
+ }
+
+ function runAction(check: UltraWikiHealthCheck) {
+ switch (check.action?.kind) {
+ case "sync_all":
+ void syncAll();
+ return;
+ case "open_sources":
+ handlers.onOpenSources();
+ return;
+ case "open_settings":
+ handlers.onOpenSettings();
+ return;
+ case "enable_mode":
+ handlers.onEnableMode?.();
+ return;
+ default:
+ // An action kind this build does not know about. Saying so beats a
+ // button that looks live and does nothing when clicked.
+ pushToast("info", t("ultrawiki.health.action_unknown"));
+ }
+ }
+
+ return { busy, runAction };
+}
diff --git a/jarvis/ui/web/frontend/src/i18n/locales/de.json b/jarvis/ui/web/frontend/src/i18n/locales/de.json
index 892f256d35..daaa9287a9 100644
--- a/jarvis/ui/web/frontend/src/i18n/locales/de.json
+++ b/jarvis/ui/web/frontend/src/i18n/locales/de.json
@@ -84,7 +84,8 @@
"taskbar": "Taskbar",
"contacts": "Kontakte",
"feedback": "Feedback",
- "agent_instructions": "{name}.md"
+ "agent_instructions": "{name}.md",
+ "agentic_ide": "Agentic IDE"
},
"agent_instructions": {
"subtitle": "Deine persönlichen Präferenzen, wie der Assistent mit dir arbeitet — Ton, Sprache, Voreinstellungen, dauerhafte Fakten. Getrennt vom System-Prompt und hebelt niemals Sicherheit oder Bestätigungen aus.",
@@ -3157,5 +3158,21 @@
"copy_failed": "Kopieren in die Zwischenablage nicht möglich.",
"paste_unavailable": "Zwischenablage konnte nicht gelesen werden.",
"paste_failed": "Hier kann nicht eingefügt werden."
+ },
+ "agent_accounts": {
+ "title": "Deine Abos",
+ "hint": "mehrere Logins pro CLI",
+ "description": "Du hast mehr als ein Abo für dasselbe Coding-CLI? Trag hier jedes ein und wechsle, ohne dich abzumelden — jeder Login bleibt parallel gültig. Der Haken markiert das Konto, mit dem NEUE Terminals starten; bereits laufende Terminals behalten das Konto, mit dem sie gestartet wurden.",
+ "accounts": "eingetragen",
+ "loading": "Wird geladen…",
+ "add": "Konto hinzufügen",
+ "add_confirm": "Hinzufügen",
+ "cancel": "Abbrechen",
+ "name_placeholder": "Name, z. B. Arbeitskonto",
+ "use_account": "Für neue Terminals verwenden",
+ "in_use": "aktiv",
+ "sign_in": "Anmelden",
+ "rename": "Umbenennen",
+ "remove": "Entfernen"
}
}
diff --git a/jarvis/ui/web/frontend/src/i18n/locales/en.json b/jarvis/ui/web/frontend/src/i18n/locales/en.json
index 7a2cb2473d..3cb64e5a5a 100644
--- a/jarvis/ui/web/frontend/src/i18n/locales/en.json
+++ b/jarvis/ui/web/frontend/src/i18n/locales/en.json
@@ -84,7 +84,8 @@
"taskbar": "Taskbar",
"contacts": "Contacts",
"feedback": "Feedback",
- "agent_instructions": "{name}.md"
+ "agent_instructions": "{name}.md",
+ "agentic_ide": "Agentic IDE"
},
"agent_instructions": {
"subtitle": "Your personal preferences for how the assistant works with you — tone, language, defaults, standing facts. Separate from the System Prompt, and it never overrides safety or confirmations.",
@@ -3158,5 +3159,21 @@
"copy_failed": "Could not copy to the clipboard.",
"paste_unavailable": "Could not read the clipboard.",
"paste_failed": "Cannot paste here."
+ },
+ "agent_accounts": {
+ "title": "Your subscriptions",
+ "hint": "several logins per CLI",
+ "description": "Hold more than one plan for the same coding CLI? Register each one here and switch without signing out — every login stays valid side by side. The tick marks the account NEW terminals open on; terminals that are already running keep the account they were started with.",
+ "accounts": "registered",
+ "loading": "Loading…",
+ "add": "Add account",
+ "add_confirm": "Add",
+ "cancel": "Cancel",
+ "name_placeholder": "Name, e.g. Work seat",
+ "use_account": "Use for new terminals",
+ "in_use": "in use",
+ "sign_in": "Sign in",
+ "rename": "Rename",
+ "remove": "Remove"
}
}
diff --git a/jarvis/ui/web/frontend/src/i18n/locales/es.json b/jarvis/ui/web/frontend/src/i18n/locales/es.json
index 58f9ff0e6f..ad8d95e186 100644
--- a/jarvis/ui/web/frontend/src/i18n/locales/es.json
+++ b/jarvis/ui/web/frontend/src/i18n/locales/es.json
@@ -84,7 +84,8 @@
"taskbar": "Barra",
"contacts": "Contactos",
"feedback": "Comentarios",
- "agent_instructions": "{name}.md"
+ "agent_instructions": "{name}.md",
+ "agentic_ide": "IDE agéntico"
},
"agent_instructions": {
"subtitle": "Tus preferencias personales sobre cómo el asistente trabaja contigo — tono, idioma, valores por defecto, hechos permanentes. Separado del System Prompt y nunca anula la seguridad ni las confirmaciones.",
@@ -3157,5 +3158,21 @@
"copy_failed": "No se pudo copiar al portapapeles.",
"paste_unavailable": "No se pudo leer el portapapeles.",
"paste_failed": "Aquí no se puede pegar."
+ },
+ "agent_accounts": {
+ "title": "Tus suscripciones",
+ "hint": "varios inicios de sesión por CLI",
+ "description": "¿Tienes más de un plan para la misma CLI de programación? Registra cada uno aquí y cambia sin cerrar sesión: todos los accesos siguen siendo válidos a la vez. La marca indica la cuenta con la que se abren los terminales NUEVOS; los terminales en curso conservan la cuenta con la que se iniciaron.",
+ "accounts": "registradas",
+ "loading": "Cargando…",
+ "add": "Añadir cuenta",
+ "add_confirm": "Añadir",
+ "cancel": "Cancelar",
+ "name_placeholder": "Nombre, p. ej. Cuenta de trabajo",
+ "use_account": "Usar para terminales nuevos",
+ "in_use": "en uso",
+ "sign_in": "Iniciar sesión",
+ "rename": "Renombrar",
+ "remove": "Eliminar"
}
}
diff --git a/jarvis/ui/web/frontend/src/index.css b/jarvis/ui/web/frontend/src/index.css
index 635641d939..c97acdfbaf 100644
--- a/jarvis/ui/web/frontend/src/index.css
+++ b/jarvis/ui/web/frontend/src/index.css
@@ -667,3 +667,43 @@
}
}
}
+
+@layer components {
+ /*
+ * Unfinished material in the UltraWiki intake bar. The texture says "there
+ * is work left here"; the ANIMATION says "and it is moving right now", so
+ * it is applied separately (.uw-hatch-live) and only when the backend
+ * reports the pipeline actually processing. A hatch scrolling over a paused
+ * queue would be the same false reassurance the section was rebuilt to
+ * remove.
+ */
+ .uw-hatch {
+ background-image: repeating-linear-gradient(
+ -45deg,
+ rgba(255, 255, 255, 0.14) 0px,
+ rgba(255, 255, 255, 0.14) 2px,
+ transparent 2px,
+ transparent 6px
+ );
+ background-size: 8.49px 8.49px;
+ }
+
+ .uw-hatch-live {
+ animation: uw-hatch-drift 1.1s linear infinite;
+ }
+
+ @keyframes uw-hatch-drift {
+ from {
+ background-position: 0 0;
+ }
+ to {
+ background-position: 8.49px 0;
+ }
+ }
+
+ @media (prefers-reduced-motion: reduce) {
+ .uw-hatch-live {
+ animation: none;
+ }
+ }
+}
diff --git a/jarvis/ui/web/frontend/src/views/WikiView.tsx b/jarvis/ui/web/frontend/src/views/WikiView.tsx
index 913a9bc936..1ecd98d88d 100644
--- a/jarvis/ui/web/frontend/src/views/WikiView.tsx
+++ b/jarvis/ui/web/frontend/src/views/WikiView.tsx
@@ -206,11 +206,24 @@ export function WikiView(): JSX.Element {
[showToast, knownSlugs.size],
);
- const subtitle = treeQuery.isLoading
- ? t("wiki_view.loading_vault")
- : totalPages === 0
- ? t("wiki_view.vault_empty")
- : `${totalPages} ${t("wiki_view.pages")} · ${totalLinks} ${t("wiki_view.wikilinks")}`;
+ // In Ultra mode the body below is the UltraWiki store, not the vault — so
+ // the header counts that store. It used to read "31 pages · 732 wikilinks"
+ // above a screen reporting 4 712 items, which is two different corpora
+ // described as one and the first thing that made the section unreadable.
+ const ultraProgress = ultraStatusQuery.data?.progress ?? null;
+ const ultraSubtitle = ultraProgress
+ ? t("ultrawiki.panel.header_subtitle")
+ .replace("{0}", ultraProgress.total.toLocaleString("en-US").replace(/,/g, " "))
+ .replace("{1}", String(ultraStatusQuery.data?.sources.length ?? 0))
+ : t("ultrawiki.panel.loading");
+
+ const subtitle = ultraEnabled
+ ? ultraSubtitle
+ : treeQuery.isLoading
+ ? t("wiki_view.loading_vault")
+ : totalPages === 0
+ ? t("wiki_view.vault_empty")
+ : `${totalPages} ${t("wiki_view.pages")} · ${totalLinks} ${t("wiki_view.wikilinks")}`;
return (
<div className="flex h-full min-h-0 flex-col" data-testid="wiki-view">
@@ -227,12 +240,18 @@ export function WikiView(): JSX.Element {
status={ultraStatusQuery.data ?? null}
onModeChanged={() => void ultraStatusQuery.refetch()}
/>
- <ObsidianStatus
- onOpenSetup={(s) => {
- setSetupHint(s);
- setDialogOpen(true);
- }}
- />
+ {/* The vault pill belongs to the vault. In Ultra mode nothing on
+ screen comes from Obsidian, and "Obsidian: connected" over a
+ store it is not answering from reads as a claim about THIS
+ screen. It returns the moment the switch goes back to Normal. */}
+ {!ultraEnabled && (
+ <ObsidianStatus
+ onOpenSetup={(s) => {
+ setSetupHint(s);
+ setDialogOpen(true);
+ }}
+ />
+ )}
</div>
</div>
diff --git a/jarvis/ui/web/frontend/src/views/ultrawiki/UltraWikiPanel.tsx b/jarvis/ui/web/frontend/src/views/ultrawiki/UltraWikiPanel.tsx
index 7e07e74c17..8da96c03e9 100644
--- a/jarvis/ui/web/frontend/src/views/ultrawiki/UltraWikiPanel.tsx
+++ b/jarvis/ui/web/frontend/src/views/ultrawiki/UltraWikiPanel.tsx
@@ -6,22 +6,28 @@
* never pay for this chunk. Owns the Ultra status poll: every 30 s at rest,
* every 4 s while a sync job is active (the wiki health polling idiom).
*
- * Layout: honest degradation banner → staged import-progress strip → the
- * five tabs Check | Ask | Sources | Contents | Settings. A dead required slot
- * banners the problem and links to the settings tab — the mode is never
- * flipped silently (design doc 04, mode-switch rules).
+ * Layout: honest degradation banner → thin status ribbon → the five tabs
+ * Overview | Ask | Sources | Contents | Settings. A dead required slot banners
+ * the problem and links to the settings tab — the mode is never flipped
+ * silently (design doc 04, mode-switch rules).
*
- * "Check" leads on purpose. Every other tab answers a question you already
- * know to ask; a user whose knowledge base looks empty does not know which
- * one of them holds the reason, and hunting through four screens is how a
- * single missing import step went undiagnosed for days.
+ * "Overview" leads on purpose. Every other tab answers a question you already
+ * know to ask; a user whose knowledge base looks empty does not know which one
+ * of them holds the reason, and hunting through four screens is how a single
+ * missing import step went undiagnosed for days. It replaced a seven-row
+ * checklist that led with six green rows and one that was wrong — the
+ * checklist itself is still there, one disclosure inside the overview.
+ *
+ * The ribbon is hidden on the overview: that tab already draws the corpus and
+ * its backlog in full, and a screen that says the same number twice invites
+ * the reader to check whether the two agree.
*/
import { useState } from "react";
import {
AlertTriangle,
Compass,
Database,
- ListChecks,
+ Gauge,
MessageCircleQuestion,
Plug,
Settings2,
@@ -35,24 +41,18 @@ import {
hasActiveUltraWikiJobs,
} from "@/lib/ultrawikiApi";
import { AskPanel } from "@/components/ultrawiki/AskPanel";
-import { HealthPanel } from "@/components/ultrawiki/HealthPanel";
+import { OverviewTab } from "@/components/ultrawiki/overview/OverviewTab";
import { SourcesPanel } from "@/components/ultrawiki/SourcesPanel";
import { ContentsPanel } from "@/components/ultrawiki/ContentsPanel";
import { SlotsPanel } from "@/components/ultrawiki/SlotsPanel";
import { ImportProgress } from "@/components/ultrawiki/ImportProgress";
import { ExplorePanel } from "@/components/ultrawiki/ExplorePanel";
-type UltraTab =
- | "check"
- | "explore"
- | "ask"
- | "sources"
- | "contents"
- | "settings";
+type UltraTab = "overview" | "explore" | "ask" | "sources" | "contents" | "settings";
export function UltraWikiPanel(): JSX.Element {
const t = useT();
- const [tab, setTab] = useState<UltraTab>("ask");
+ const [tab, setTab] = useState<UltraTab>("overview");
const statusQuery = useQuery({
queryKey: ["ultrawiki", "status"],
@@ -132,21 +132,23 @@ export function UltraWikiPanel(): JSX.Element {
</div>
)}
- <ImportProgress
- counts={status.counts}
- pipeline={status.pipeline}
- jobs={status.jobs}
- onChanged={refetch}
- onOpenSources={() => setTab("sources")}
- />
+ {tab !== "overview" && (
+ <ImportProgress
+ progress={status.progress ?? null}
+ pipeline={status.pipeline}
+ jobs={status.jobs}
+ onChanged={refetch}
+ onOpenSources={() => setTab("sources")}
+ />
+ )}
<div className="flex items-stretch border-b border-border bg-card/40">
<UltraTabButton
- active={tab === "check"}
- onClick={() => setTab("check")}
- icon={<ListChecks className="h-3.5 w-3.5" aria-hidden />}
- label={t("ultrawiki.panel.tab_check")}
- testId="ultrawiki-tab-check"
+ active={tab === "overview"}
+ onClick={() => setTab("overview")}
+ icon={<Gauge className="h-3.5 w-3.5" aria-hidden />}
+ label={t("ultrawiki.panel.tab_overview")}
+ testId="ultrawiki-tab-overview"
/>
<UltraTabButton
active={tab === "explore"}
@@ -186,8 +188,10 @@ export function UltraWikiPanel(): JSX.Element {
</div>
<div className="min-h-0 flex-1 overflow-y-auto">
- {tab === "check" && (
- <HealthPanel
+ {tab === "overview" && (
+ <OverviewTab
+ status={status}
+ onChanged={refetch}
onOpenSources={() => setTab("sources")}
onOpenSettings={() => setTab("settings")}
/>
diff --git a/jarvis/ui/web/ultrawiki_routes.py b/jarvis/ui/web/ultrawiki_routes.py
index 1fddc4013c..41ca1c3727 100644
--- a/jarvis/ui/web/ultrawiki_routes.py
+++ b/jarvis/ui/web/ultrawiki_routes.py
@@ -29,6 +29,10 @@ from typing import Any
from fastapi import APIRouter, File, HTTPException, Query, Request, UploadFile
from pydantic import BaseModel, Field
+# Pure arithmetic over the status counts, no store or model behind it - cheap
+# enough for module level, unlike the store/embeddings/search imports below.
+from jarvis.ultrawiki.progress import build_progress
+
log = logging.getLogger(__name__)
router = APIRouter(prefix="/api/ultrawiki", tags=["ultrawiki"])
@@ -257,6 +261,9 @@ async def get_status(request: Request) -> dict[str, Any]:
"backend_in_use": "",
"slots": {},
"counts": {},
+ # Same shape as a live answer, so no client has to special-case a
+ # booting backend into zeros of its own invention.
+ "progress": build_progress({}),
"pipeline": {
"running": False,
"state": "paused",
@@ -292,6 +299,7 @@ async def get_status(request: Request) -> dict[str, Any]:
"backend_in_use": str(backend.get("in_use") or ""),
"slots": slots,
"counts": data.get("counts", {}),
+ "progress": data.get("progress") or build_progress(data.get("counts")),
"pipeline": data.get("pipeline", {}),
"sources": data.get("sources", []),
"jobs": data.get("jobs", []),