diff --git a/docs/UI.md b/docs/UI.md
index db24cf5..f86028e 100644
--- a/docs/UI.md
+++ b/docs/UI.md
@@ -12,7 +12,18 @@ The persistent viewport maps backup jobs and recovery points. The black hole rep
- **Big Screen** expands the map and keeps summary counts, motion controls, and a floating navigation dock. The map and dock spring into position within the current browser viewport. Use **Exit big screen** or Escape to return to the workspace.
- Drag the active navbar item sideways and release to open the destination. The regular navbar uses text and a sliding underline. The Big Screen dock uses labeled icons and a liquid highlight.
- The navbar stays available above the side panel so you can switch directly between consoles. In the regular workspace it becomes a floating text dock in the same top position. Big Screen keeps its icon dock at the bottom.
-- Use **Search**, **⌘K**, or **Ctrl+K** from the vault, a console, or Big Screen. An empty field shows navigation shortcuts. Type to find destinations, orbits by name, ID, or provider, and snapshots by orbit name, ID, or displayed capture date. Search uses the summaries already loaded by the vault. Use the arrow keys and Enter, or select a result with a pointer. Escape closes search and returns focus to its button.
+- Use **Search**, **⌘K**, or **Ctrl+K** from the vault, a console, or Big Screen. An empty field shows navigation shortcuts. Type to find destinations, orbits by name, ID, or provider, and snapshots by orbit name, ID, or displayed capture date. Search uses the summaries already loaded by the vault. Use the arrow keys and Enter, or select a result with a pointer. Escape closes search and returns focus to its button. Search is a spotlight panel over a dimmed, lightly blurred deck: a large input, grouped results with a kind label on the right (the active row adds an Enter mark), a footer of key hints and the result count, and a "No signal" message when nothing matches.
+
+## Consoles
+
+- Orbits, Outposts, Activity and Snapshot open as console screens, and Restore opens from a snapshot: a centered panel under the navbar with an engraved label, a title and an Esc key, sized per console (`panelWidths` in `App.tsx`). They fade and rise with the shared spring, and the map behind is inert while one is open.
+- Orbits is two columns. The left holds the outpost job history and one card per orbit (a failed orbit gets an ember edge; Capture is the single amber key). The right is the permanent New orbit form: Folder | Database and Via hub | Via outpost are `Segmented` switches, fields are recessed, and Cancel resets the form. Below 860 px the form stacks under the list.
+- Outposts is a gate. With no code it shows a dark eye inside violet rings and one key, Open a wormhole. With a code it shows the code in large mono, a burn bar and a ticking time left (the bar counts down from the time the code was first seen, since the hub sends only the expiry), the agent command with a Copy key, and Generate fresh code. Outpost health is a roster with a lamp, last activity and an Online or Silent label; an outpost is online if it was seen in the last two minutes.
+- Selects are themed (`ui/Select.tsx`, a drop-in for `` that reads `` children). The trigger is a recessed field with a chevron set in from the edge. The list is drawn in a portal so a console's scroll never clips it, flips above when there is no room below, and shows the active row with an amber edge and the chosen row with a check. Arrow keys, Home, End, type-ahead, Enter and Space work with focus kept on the trigger, and Escape closes only the list. A hidden input carries the value into forms, so `required` still validates.
+- Activity is one log of backups and restores, and it only leads somewhere; it never acts. A row opens its snapshot (restores start there) or, for a backup that is running or failed and has no snapshot yet, its orbit. Rows are grouped Needs you (a restore in `recovery_required`, or a hub orbit whose last backup failed), Running now (with a five-tick position) and then days. A backup that stored a snapshot is one row. A restore whose snapshot retention has removed is shown without a link. Filter by text or by Backups and Restores. The Activity tab lamp turns ember while anything needs you. Data comes from the snapshot list, `GET /api/v1/capture-jobs`, which covers outpost orbits, `GET /api/v1/restore-jobs`, and the last status of hub orbits, which have no job list, so a failed one has no time. File exports are not logged: the hub keeps those sessions in memory and cannot list them, so a running export is followed from the Restore screen, which the footer reopens while one is active. The model is in `web/src/lib/activity.ts`.
+- The Restore screen is two columns. The left chooses and confirms: the recovery point as a card, the snapshot select, and a Restore to database | Export file on hub switch (shown for managed database snapshots). Database mode picks a registered target, shows an amber warning that the target is replaced, and asks for the typed confirmation before Queue database restore is enabled. The right follows the work. For a database it is the newest restore job as a five-step progress list (Queued, Verifying, Safety backup, Applying restore, Complete); a failed step becomes an ember diamond with the hub's reason, and recovery acknowledgement appears there when the job needs it. Older jobs are listed compactly. For a file export it is the countdown ring, which keeps counting from the hub's session, with Abort on the left. Below 860 px the right column stacks under the left.
+- The snapshot sheet opens from a moon, a history row or search. Its label says where the point sits (Recovery point · 1 of 4). A hero shows a small orbit with up to four moons and the chosen one lit; Captured, Payload (with the change against the previous snapshot of the same orbit) and Recovery sit in one plate; the id has a Copy key. Database recovery options (or Export file on hub) is the primary key, Download is secondary, and Delete is deliberately quiet and asks for confirmation in an ember panel.
+- Buttons are bevelled keys (`Button`, `.console-control`): raised with a top highlight, pressed with an inset shadow. Amber marks the one primary action, ember marks a destructive one.
## Data and rendering
@@ -33,7 +44,10 @@ The persistent viewport maps backup jobs and recovery points. The black hole rep
- The galaxy loop publishes its disk clock and the capture absorption to the renderer through a shared signal, so Flowing, coasting and capture spin-up drive the disk. A locked map renders once and sleeps.
- Quality adapts to the device. A few synchronised frames are timed at startup and after a resize, and the tier steps down until the median fits the frame budget: `high`, `medium`, `low`, `minimal`, then `still`, which freezes ambient motion. Ambient drawing is capped at 30 fps or lower. Tiers and the governor live in `quality.ts`.
- Without WebGL2, or after a lost context, the scene falls back to the SVG core and backdrop.
-- **Radar view** in the map toolbar switches between the realistic and radar looks. The choice is remembered per browser. Without WebGL2 the button is hidden. The radar sweep runs on its own clock rather than the scene's, so it keeps turning on a locked map. Reduced motion switches looks at once and holds the sweep still and evenly lit, and the still quality tier does the same. A page that loads with the radar look applies it at once, with no wave. While the sweep runs the map redraws at the tier's frame-rate cap, so radar costs more battery than a locked realistic map, which draws nothing.
+- The map is a cockpit canopy: chamfered corners with a bezel line and corner screws (`.canopy-frame`, drawn over the map and ignoring pointer events), clipped by `.vault-scene`'s `clip-path`. Big Screen drops the frame. The bezel stays neutral in both looks.
+- The deck around the canopy follows the same vocabulary: the navbar is a tray of switches with a lamp per tab (the thumb still springs and drags), the overview is a slim telemetry rail, consoles carry an engraved label and a corner screw, and status lamps glow and stay distinct by shape. The canopy's sill holds the legend, the view switch and the motion and big-screen controls; below 760 px, and in Big Screen, the controls move up to the map toolbar.
+- Icon-only keys (Pause or Resume motion, Big screen, Sign out, Search) share one size, `--key`, and one gap, `--key-gap`, and keep their names in `aria-label` and the tooltip. Read-outs that sit beside keys (Hub online, the Big Screen status and telemetry) are recessed plates of the same height. Telemetry readings carry a lamp: ice for orbits, mint for failed at zero, ember diamond for failed above zero, a pale diamond for snapshots, violet for payload.
+- **Window | Radar** is a two-position view switch on the canopy sill (`ViewSwitch` in `VaultScene.tsx`, a `radiogroup`; arrow keys move between positions). Its thumb rides the shared spring and tints amber for the window and mint for radar. It switches between the realistic and radar looks. The choice is remembered per browser. Without WebGL2 the button is hidden. The radar sweep runs on its own clock rather than the scene's, so it keeps turning on a locked map. Reduced motion switches looks at once and holds the sweep still and evenly lit, and the still quality tier does the same. A page that loads with the radar look applies it at once, with no wave. While the sweep runs the map redraws at the tier's frame-rate cap, so radar costs more battery than a locked realistic map, which draws nothing.
- The radar look draws range rings every 6 M, a bearing scale at 30 M just outside the disk, a crosshair and a rotating sweep head whose phosphor fades behind it. The lensed grid only shows outside about 20 M, so it never crowds the disk. The disk is drawn as contour bands equal in log brightness, and the long dim outer disk stays faint so the inner contours carry the weight.
- A realistic and a stylized radar look share the same trace. The radar look arrives as a wave spreading outward from the hole: each pixel picks its look from its distance to a spring-driven front, with a thin leading edge (mint going to radar, amber coming back). `look.ts` holds the spring and queues a request made mid-wave rather than reversing it. `web/blackhole-proto.html` is a standalone page for tuning the look; Vite serves it in development and the build ignores it. Add `?throttle=N` to emulate a GPU N times slower.
diff --git a/web/scripts/activity.test.mjs b/web/scripts/activity.test.mjs
new file mode 100644
index 0000000..1f086a4
--- /dev/null
+++ b/web/scripts/activity.test.mjs
@@ -0,0 +1,80 @@
+import assert from "node:assert/strict";
+import test from "node:test";
+import { activityCounts, buildActivity, dayLabel } from "../src/lib/activity.ts";
+
+const NOW = Date.parse("2026-11-14T12:00:00Z");
+const sec = (iso) => Date.parse(iso) / 1000;
+const snapshot = (id, orbit_name, taken_at, size_bytes = 1024 ** 3) => ({ id, orbit_name, orbit_id: orbit_name, taken_at, size_bytes });
+const target = { id: "t", name: "pg-staging", outpost_id: "o", engine: "postgres", application_id: "a", identity: { instance: "1", database: "orders" } };
+const restore = (id, status, phase, at, extra = {}) => ({ id, snapshot_id: "s1", target, actor: "sen", status, phase, safety_snapshot_id: null, created_at: sec(at), updated_at: sec(at), ...extra });
+const orbit = (id, last_status, extra = {}) => ({ id, name: id, provider: "filesystem", source: "filesystem", access: "hub", last_status, dry_run: false, ...extra });
+const build = (input) => buildActivity({ snapshots: [], orbits: [], captureJobs: [], restoreJobs: [], now: NOW, ...input });
+
+test("puts what needs a person first, then running work, then history newest first", () => {
+ const snapshots = [snapshot("s1", "media-vault", "2026-11-14T02:00:00Z"), snapshot("s2", "nightly-pg", "2026-11-13T01:00:00Z")];
+ const restoreJobs = [
+ restore("done", "completed", "completed", "2026-11-12T15:00:00Z"),
+ restore("locked", "recovery_required", "apply_failed", "2026-11-13T22:10:00Z"),
+ restore("live", "running", "safety", "2026-11-14T10:52:00Z"),
+ ];
+ const entries = build({ snapshots, restoreJobs });
+ assert.deepEqual(entries.map(({ group }) => group), ["needs", "running", "history", "history", "history"]);
+ assert.deepEqual(entries.map(({ id }) => id), ["restore-locked", "restore-live", "snapshot-s1", "snapshot-s2", "restore-done"]);
+ assert.deepEqual(activityCounts(entries), { running: 1, needs: 1 });
+});
+
+test("names a restore by direction and tells where it leads", () => {
+ const [entry] = build({ snapshots: [snapshot("s1", "media-vault", "2026-11-14T02:00:00Z")], restoreJobs: [restore("a", "completed", "completed", "2026-11-14T03:00:00Z")] })
+ .filter(({ kind }) => kind === "restore");
+ assert.match(entry.title, /^media-vault · .+ → pg-staging \/ orders$/);
+ assert.deepEqual(entry.opens, { kind: "snapshot", id: "s1" });
+ const [orphan] = build({ restoreJobs: [restore("b", "completed", "completed", "2026-11-14T03:00:00Z", { snapshot_id: "gone-1234-5678" })] });
+ assert.equal(orphan.opens, null);
+ assert.match(orphan.title, /^Snapshot gone-123 →/);
+});
+
+test("shows the step of a job in flight and ends each state in the right tone", () => {
+ const entries = build({ restoreJobs: [
+ restore("q", "queued", "queued", "2026-11-14T10:00:00Z"),
+ restore("s", "running", "safety", "2026-11-14T10:01:00Z"),
+ restore("p", "applying", "applying", "2026-11-14T10:02:00Z"),
+ restore("f", "failed", "wrong_target", "2026-11-14T09:00:00Z"),
+ restore("c", "cancelled", "cancelled", "2026-11-14T08:00:00Z"),
+ restore("r", "reconciled", "reconciled", "2026-11-14T07:00:00Z"),
+ ] });
+ const by = Object.fromEntries(entries.map((entry) => [entry.id, entry]));
+ assert.equal(by["restore-q"].progress, 0);
+ assert.equal(by["restore-s"].progress, 2);
+ assert.equal(by["restore-p"].progress, 3);
+ assert.deepEqual([by["restore-f"].tone, by["restore-c"].tone, by["restore-r"].tone], ["red", "grey", "green"]);
+ assert.equal(by["restore-r"].state, "Recovered");
+});
+
+test("folds an outpost backup into its snapshot, and keeps unfinished or failed ones", () => {
+ const orbits = [orbit("mail", "running", { access: "outpost", application_id: "app" })];
+ const profile = { application_id: "app", orbit_id: "mail", outpost_id: "o", format: "filesystem" };
+ const job = (id, status, phase, snapshot_id = null) => ({ id, profile, actor: "schedule", status, phase, created_at: sec("2026-11-14T09:00:00Z"), snapshot_id, offsite_status: null });
+ const entries = build({
+ snapshots: [snapshot("s1", "mail", "2026-11-14T09:05:00Z")],
+ orbits,
+ captureJobs: [job("done", "completed", "completed", "s1"), job("live", "running", "uploading"), job("bad", "failed", "upload_failed")],
+ });
+ assert.equal(entries.filter(({ kind }) => kind === "backup").length, 3);
+ const stored = entries.find(({ id }) => id === "snapshot-s1");
+ assert.match(stored.meta, /via Outpost · by schedule/);
+ assert.equal(entries.find(({ id }) => id === "backup-live").progress, 3);
+ assert.equal(entries.find(({ id }) => id === "backup-bad").tone, "red");
+ assert.equal(entries.some(({ id }) => id.startsWith("orbit-mail")), false);
+});
+
+test("reads a hub orbit's last status when the hub keeps no job list for it", () => {
+ const entries = build({ orbits: [orbit("a", "running"), orbit("b", "failed"), orbit("c", "completed")], now: NOW });
+ assert.deepEqual(entries.map(({ id, group }) => [id, group]), [["orbit-b-failed", "needs"], ["orbit-a-running", "running"]]);
+ assert.equal(entries[0].at, null);
+});
+
+test("labels days relative to now", () => {
+ assert.equal(dayLabel(NOW - 3600_000, NOW), "Today");
+ assert.equal(dayLabel(NOW - 86_400_000, NOW), "Yesterday");
+ assert.notEqual(dayLabel(NOW - 5 * 86_400_000, NOW), "Today");
+});
diff --git a/web/src/App.tsx b/web/src/App.tsx
index 1111fda..cbeac26 100644
--- a/web/src/App.tsx
+++ b/web/src/App.tsx
@@ -12,12 +12,14 @@ import { SearchIcon, VaultSearch } from "./components/hud/VaultSearch";
import { OperatorGate } from "./components/operator/OperatorGate";
import { OrbitsView } from "./components/orbits/OrbitsView";
import { WormholeView } from "./components/outposts/WormholeView";
+import { ActivityView } from "./components/activity/ActivityView";
import { ReconstituteWizard } from "./components/reconstitute/ReconstituteWizard";
import { VaultScene } from "./components/scene/VaultScene";
import { EmptyState } from "./components/ui/EmptyState";
import { QueryGate } from "./components/ui/QueryGate";
import { SpringPane } from "./components/ui/SpringPane";
import { SnapshotSheet } from "./components/vault/SnapshotSheet";
+import { useActivity } from "./hooks/useActivity";
import { useReducedMotion } from "./hooks/useReducedMotion";
import { orbitStatus } from "./lib/format";
import { groupSnapshots } from "./lib/galaxyLayout";
@@ -26,11 +28,21 @@ import type { SearchResult } from "./lib/vaultSearch";
const panelTitles: Record = {
scene: "Vault",
- orbits: "Orbit management",
+ orbits: "Orbits",
wormhole: "Wormhole uplink",
+ activity: "Activity",
reconstitute: "Restore snapshot",
snapshot: "Snapshot detail",
};
+const panelLabels: Record = {
+ scene: "Vault console",
+ orbits: "Console 02 · Orbit management",
+ wormhole: "Console 03 · Outposts",
+ activity: "Console 04 · Activity",
+ reconstitute: "Restore from a snapshot",
+ snapshot: "Recovery point",
+};
+const panelWidths: Record = { scene: 640, orbits: 1120, wormhole: 760, activity: 1120, reconstitute: 760, snapshot: 640 };
const LOOK_KEY = "tessera.look";
@@ -184,12 +196,18 @@ function VaultApp({ actor, onLogout }: { actor?: string; onLogout?: () => Promis
const selected = sceneOrbits.find(({ id }) => id === orbitId);
const history = (selected && grouped.get(selected.id)) ?? [];
const snapshot = snaps.data?.find(({ id }) => id === snapshotId);
+ const snapshotSiblings = useMemo(
+ () => (snapshot && [...grouped.values()].find((group) => group.some(({ id }) => id === snapshot.id))) || [],
+ [grouped, snapshot],
+ );
+ const snapshotIndex = snapshot ? snapshotSiblings.findIndex(({ id }) => id === snapshot.id) : -1;
const captureGlow = useMotionValue(0);
const captureOrbitId = capture.variables?.id;
const captureEffect = useMemo(() => captureOrbitId && (capture.isError || capture.data)
? { orbitId: captureOrbitId, key: capture.submittedAt, snapshotId: capture.data ?? undefined }
: undefined, [captureOrbitId, capture.submittedAt, capture.isError, capture.data]);
const captureReady = !!captureEffect?.snapshotId && !!snaps.data?.some(({ id }) => id === captureEffect.snapshotId);
+ const activity = useActivity(snaps.data, orbits.data);
const failedCount = sceneOrbits.filter(({ last_status }) => last_status === "failed").length;
const orbitMessage = orbits.isPending ? "Receiving orbit telemetry…" : orbits.isError
@@ -263,25 +281,25 @@ function VaultApp({ actor, onLogout }: { actor?: string; onLogout?: () => Promis
- Tessera Backup control
+ Tessera Flight deck · Backup control
-
+ 0 }} floating={bigScreen} panelOpen={panelOpen} reducedMotion={reducedMotion} onSelect={openConsole} />
{online ? "Hub online" : health.isPending ? "Connecting" : "Hub offline"}
- {onLogout &&
void onLogout().catch(() => setLogoutError(true))}>
- Sign out {actor}
+
+ {actor}
}
{logoutError &&
Could not sign out.
}
-
setSearchOpen(true)}>
- Search
- ⌘K / Ctrl+K
@@ -335,7 +353,9 @@ function VaultApp({ actor, onLogout }: { actor?: string; onLogout?: () => Promis
{(!noticeInInspector && mode !== "orbits" && captureNotice) || Vault telemetry
}
- {restoreBusy ? "Restore active · open Restore to monitor" : "Local backup station"}
+ {restoreBusy
+ ? openConsole("reconstitute")}>Restore active · open to monitor
+ : "Local backup station"}
@@ -343,6 +363,9 @@ function VaultApp({ actor, onLogout }: { actor?: string; onLogout?: () => Promis
open={panelOpen}
inert={searchOpen}
title={panelTitles[mode]}
+ label={mode === "snapshot" && snapshotIndex >= 0 ? `Recovery point · ${snapshotIndex + 1} of ${snapshotSiblings.length}` : panelLabels[mode]}
+ width={panelWidths[mode]}
+ flush={mode === "orbits" || mode === "reconstitute"}
subtitle={mode === "reconstitute" ? "Review the destination before starting the restore." : undefined}
onClose={() => setMode("scene")}
>
@@ -354,13 +377,28 @@ function VaultApp({ actor, onLogout }: { actor?: string; onLogout?: () => Promis
)}
+ {mode === "activity" && (
+
+ {
+ if (target.kind === "snapshot") openSnapshot(target.id);
+ else {
+ selectOrbit(target.id);
+ setMode("scene");
+ }
+ }}
+ />
+
+ )}
{mode === "wormhole" && (
)}
{mode === "snapshot" && (
{snapshot
- ? openConsole("scene")} onReconstitute={() => openConsole("reconstitute", snapshot.id)} />
+ ? openConsole("scene")} onReconstitute={() => openConsole("reconstitute", snapshot.id)} />
: }
)}
diff --git a/web/src/api.ts b/web/src/api.ts
index 6c56f6b..ae086c3 100644
--- a/web/src/api.ts
+++ b/web/src/api.ts
@@ -248,8 +248,17 @@ export type RestoreJob = {
status: "queued" | "running" | "applying" | "failed" | "completed" | "recovery_required" | "reconciled" | "cancelled";
phase: string;
safety_snapshot_id: string | null;
+ actor: string;
+ /** Seconds since the epoch. */
+ created_at: number;
+ updated_at: number;
};
+/** The newest restore jobs across every snapshot. Older hubs answer 404 or 405. */
+export function fetchRecentRestoreJobs(limit = 100): Promise {
+ return api(`/api/v1/restore-jobs?limit=${limit}`);
+}
+
export function fetchRestoreTargets(snapshot: string): Promise {
return api(`/api/v1/snapshots/${snapshot}/restore-targets`);
}
diff --git a/web/src/components/activity/ActivityView.tsx b/web/src/components/activity/ActivityView.tsx
new file mode 100644
index 0000000..e04d58e
--- /dev/null
+++ b/web/src/components/activity/ActivityView.tsx
@@ -0,0 +1,122 @@
+import { useEffect, useState } from "react";
+import type { ActivityEntry, ActivityTarget } from "../../lib/activity";
+import { clock, dayLabel } from "../../lib/activity";
+import { Segmented } from "../ui/Segmented";
+
+type Kind = "all" | "backup" | "restore";
+const PAGE = 80;
+
+function Row({ entry, now, onOpen }: { entry: ActivityEntry; now: number; onOpen: (target: ActivityTarget) => void }) {
+ const opens = entry.opens;
+ const content = (
+ <>
+ {entry.group === "running" && entry.id.startsWith("orbit-") ? "now" : entry.at === null ? "—" : clock(entry.at)}
+
+
+ {entry.kind === "backup" ? "Backup" : "Restore"}
+
+
+ {entry.title}
+ {entry.meta}
+
+
+ {entry.state}
+ {entry.progress !== undefined && (
+
+ {[0, 1, 2, 3, 4].map((tick) => (
+
+ ))}
+
+ )}
+
+ {opens ? `${opens.kind} ›` : "removed"}
+ >
+ );
+ void now;
+ return opens ? (
+ onOpen(opens)}>{content}
+ ) : (
+ {content}
+ );
+}
+
+export function ActivityView({ entries, counts, restoresUnavailable, capturesUnavailable, updatedAt, onOpen }: {
+ entries: ActivityEntry[];
+ counts: { running: number; needs: number };
+ restoresUnavailable: boolean;
+ capturesUnavailable: boolean;
+ updatedAt: number;
+ onOpen: (target: ActivityTarget) => void;
+}) {
+ const [kind, setKind] = useState("all");
+ const [query, setQuery] = useState("");
+ const [shown, setShown] = useState(PAGE);
+ const [now, setNow] = useState(() => Date.now());
+ useEffect(() => {
+ const timer = window.setInterval(() => setNow(Date.now()), 1000);
+ return () => window.clearInterval(timer);
+ }, []);
+
+ const term = query.trim().toLowerCase();
+ const matching = entries.filter((entry) =>
+ (kind === "all" || entry.kind === kind) && (!term || `${entry.title} ${entry.meta}`.toLowerCase().includes(term)));
+ const visible = matching.slice(0, Math.max(shown, matching.filter(({ group }) => group !== "history").length));
+ const sections: { label: string; tone?: string; items: ActivityEntry[] }[] = [];
+ for (const entry of visible) {
+ const label = entry.group === "needs" ? "Needs you" : entry.group === "running" ? "Running now"
+ : entry.at === null ? "Earlier" : dayLabel(entry.at, now);
+ const last = sections.at(-1);
+ if (last?.label === label) last.items.push(entry);
+ else sections.push({ label, tone: entry.group === "history" ? undefined : entry.group, items: [entry] });
+ }
+ const age = updatedAt ? Math.max(0, Math.round((now - updatedAt) / 1000)) : undefined;
+
+ return (
+
+
+
One log of everything that has run or is running. Open an entry to see its snapshot; restores and exports start there.
+
+
Running{counts.running}
+ 0}>
Needs you{counts.needs}
+
+
+
+ {(restoresUnavailable || capturesUnavailable) && (
+
+ {restoresUnavailable ? "Restore history is unavailable. This hub may be too old to list restore jobs." : "Outpost backup jobs are unavailable."}
+ {" "}The rest of the log is still shown.
+
+ )}
+
+ {sections.map((section) => (
+
+ {section.label}
+ {section.items.map((entry) =>
)}
+
+ ))}
+ {!sections.length && (
+
+
{entries.length ? "No entries" : "Nothing yet"}
+
{entries.length ? "Nothing in the log matches that filter." : "Backups and restores will appear here as they run."}
+
+ )}
+ {matching.length > visible.length && (
+
setShown(shown + PAGE)}>
+ Show older · {matching.length - visible.length} more
+
+ )}
+
+
+ );
+}
diff --git a/web/src/components/hud/DiegeticHUD.tsx b/web/src/components/hud/DiegeticHUD.tsx
index 3ea66b6..4e42535 100644
--- a/web/src/components/hud/DiegeticHUD.tsx
+++ b/web/src/components/hud/DiegeticHUD.tsx
@@ -40,12 +40,12 @@ export function TelemetryStrip({
useScreenTransition(strip, bigScreen, reducedMotion, undefined, true);
return (
-
Orbits
- Failed
+
Orbits
+
Failed
-
Snapshots
-
Payload
+
Snapshots
+
Payload
);
}
@@ -76,8 +76,8 @@ export function OrbitRegister({
- Flight register
- Orbits
+ Orbit register · L
+ {orbits.length === 1 ? "1 orbit" : `${orbits.length} orbits`}
{message && {message}
}
@@ -132,7 +132,7 @@ export function OrbitInspector({
- Orbit detail
+ Orbit inspector · R
{orbit?.name ?? "Select an orbit"}
{orbit && {status.label}
}
diff --git a/web/src/components/hud/HUDPanel.tsx b/web/src/components/hud/HUDPanel.tsx
index ed0ddd0..5ff5859 100644
--- a/web/src/components/hud/HUDPanel.tsx
+++ b/web/src/components/hud/HUDPanel.tsx
@@ -1,11 +1,17 @@
import { motion } from "motion/react";
-import { useEffect, useId, useLayoutEffect, useRef, type ReactNode } from "react";
+import { useEffect, useId, useLayoutEffect, useRef, type CSSProperties, type ReactNode } from "react";
export function HUDPanel({
- open, title, subtitle, onClose, children, inert,
+ open, title, label = "Vault console", width = 640, flush = false, subtitle, onClose, children, inert,
}: {
open: boolean;
title: string;
+ /** Engraved line above the title, e.g. "Console 02 · Orbit management". */
+ label?: string;
+ /** Console screen width in px; it never exceeds the viewport. */
+ width?: number;
+ /** Drop the content padding so a view can lay out its own columns. */
+ flush?: boolean;
subtitle?: string;
onClose: () => void;
children: ReactNode;
@@ -64,19 +70,21 @@ export function HUDPanel({
aria-hidden={!open}
inert={!open || inert}
initial={false}
- animate={{ x: open ? "0%" : "100%" }}
+ style={{ "--console-width": `${width}px` } as CSSProperties}
+ animate={{ opacity: open ? 1 : 0, y: open ? 0 : 18 }}
>
-
Vault console
+
{label}
{display.title}
{display.subtitle &&
{display.subtitle}
}
-
- Close ×
+
+ ESC
+
-
+
);
diff --git a/web/src/components/hud/HUDRail.tsx b/web/src/components/hud/HUDRail.tsx
index d3bd14e..21bd565 100644
--- a/web/src/components/hud/HUDRail.tsx
+++ b/web/src/components/hud/HUDRail.tsx
@@ -3,22 +3,24 @@ import { useCallback, useId, useLayoutEffect, useRef, type PointerEvent } from "
import { useScreenTransition } from "../../hooks/useScreenTransition";
import { uiSpring } from "../../lib/motion";
-export type HUDMode = "scene" | "orbits" | "wormhole" | "reconstitute" | "snapshot";
+export type HUDMode = "scene" | "orbits" | "wormhole" | "activity" | "reconstitute" | "snapshot";
export const hudItems = [
{ id: "scene", label: "Vault", icon: "M4 9l8-4 8 4v6l-8 4-8-4z M4 9l8 4 8-4 M12 13v6" },
{ id: "orbits", label: "Orbits", icon: "M21 12a9 5 0 1 1-18 0 9 5 0 1 1 18 0z M12 10.5a1.5 1.5 0 1 1 0 3 1.5 1.5 0 1 1 0-3z M18 5h.01" },
{ id: "wormhole", label: "Outposts", icon: "M12 3v3 M4.2 7.5l2.6 1.5 M4.2 16.5 6.8 15 M12 18v3 M17.2 15l2.6 1.5 M17.2 9l2.6-1.5 M15.5 12a3.5 3.5 0 1 1-7 0 3.5 3.5 0 1 1 7 0z" },
- { id: "reconstitute", label: "Restore", icon: "M4 12a8 8 0 1 1 2.3 5.7 M4 6v6h6 M12 8v4l3 2" },
+ { id: "activity", label: "Activity", icon: "M3 12h4l3-7 4 14 3-7h4" },
] as const;
type Slot = { center: number; width: number };
type Gesture = { pointer: number; x: number; y: number; origin?: number };
export function HUDRail({
- active, floating, panelOpen, reducedMotion, onSelect,
+ active, floating, panelOpen, reducedMotion, alerts, onSelect,
}: {
active: HUDMode;
+ /** Tabs with something that needs a person: their lamp turns ember even when they are not the active tab. */
+ alerts?: Partial>;
floating: boolean;
panelOpen: boolean;
reducedMotion: boolean;
@@ -169,6 +171,8 @@ export function HUDRail({
key={id}
type="button"
aria-label={label}
+ data-tab={id}
+ data-alert={alerts?.[id] ? "true" : undefined}
title={floating ? label : undefined}
onClick={() => onSelect(id)}
aria-current={active === id ? "page" : undefined}
diff --git a/web/src/components/hud/VaultSearch.tsx b/web/src/components/hud/VaultSearch.tsx
index a5e8c60..a58b215 100644
--- a/web/src/components/hud/VaultSearch.tsx
+++ b/web/src/components/hud/VaultSearch.tsx
@@ -123,7 +123,7 @@ export function VaultSearch({ open, reducedMotion, orbits, snapshots, orbitStatu
{
setQuery(event.currentTarget.value);
setActiveId(undefined);
@@ -152,19 +152,31 @@ export function VaultSearch({ open, reducedMotion, orbits, snapshots, orbitStatu
{result.label}
{result.detail && {result.detail} }
+
+ {result.kind === "navigation" ? "Console" : result.kind === "orbit" ? "Orbit" : "Snapshot"}
+
);
})}
))}
-
- {results.length ? `${results.length} ${query.trim() ? "results shown" : "destinations"}` : "No matching results."}
- {orbitStatus && {orbitStatus} }
- {snapshotStatus && {snapshotStatus} }
-
+ {!results.length && (
+
+
No signal
+
Nothing matches that. Try an orbit name, ID, provider, or a capture date.
+
+ )}
+
);
diff --git a/web/src/components/orbits/CaptureProfileForm.tsx b/web/src/components/orbits/CaptureProfileForm.tsx
index 8e7b3b0..e5cbf27 100644
--- a/web/src/components/orbits/CaptureProfileForm.tsx
+++ b/web/src/components/orbits/CaptureProfileForm.tsx
@@ -4,8 +4,9 @@ import { registerCaptureProfile, type BackupSource, type CaptureProfile } from "
import { OutpostField } from "../outposts/OutpostField";
import { Button } from "../ui/Button";
import { Hint } from "../ui/EmptyState";
+import { Select } from "../ui/Select";
-const field = "mt-1 w-full rounded-xl bg-space-950 border border-space-700 px-3 py-2";
+const field = "field";
const uuidPattern = "[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}";
export function CaptureProfileForm({ orbitId, source, onClose }: { orbitId: string; source: BackupSource | null; onClose: () => void }) {
@@ -45,10 +46,10 @@ export function CaptureProfileForm({ orbitId, source, onClose }: { orbitId: stri
{source !== "filesystem" &&
Database engine
-
+
PostgreSQL
MySQL
-
+
}
Daily backup time (UTC, optional)
diff --git a/web/src/components/orbits/JobHistory.tsx b/web/src/components/orbits/JobHistory.tsx
index fe15341..91787cc 100644
--- a/web/src/components/orbits/JobHistory.tsx
+++ b/web/src/components/orbits/JobHistory.tsx
@@ -3,6 +3,7 @@ import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query";
import { enqueueCapture, fetchCaptureEvents, fetchCaptureJobs, fetchSnapshots, type CaptureProfile, type Orbit } from "../../api";
import { formatWhen } from "../../lib/format";
import { Button } from "../ui/Button";
+import { Select } from "../ui/Select";
const labels: Record = {
queued: "Waiting for outpost",
@@ -14,7 +15,7 @@ const labels: Record = {
completed: "Backup completed",
};
-const input = "mt-1 block w-full rounded-xl border border-space-700 bg-space-950 px-3 py-2 text-star-100";
+const input = "field";
export function JobHistory({
profiles, orbits, snapshots, onOpenSnapshot,
@@ -52,28 +53,28 @@ export function JobHistory({
});
return (
-
+
-
Outpost backup jobs
+
Outpost backup jobs
Jobs wait for the assigned outpost when it is offline.
- Application
- setApplication(event.target.value)}>
+ Application
+ setApplication(event.target.value)}>
All applications
{profiles.map((profile) => {name(profile)} )}
-
+
- Job status
- setStatus(event.target.value)}>
+ Job status
+ setStatus(event.target.value)}>
Any status
Queued
Running
Completed
Failed
-
+
No jobs match these filters. }
{jobs.data?.map((job) => (
-
+
setSelected(selected === job.id ? undefined : job.id)}>
diff --git a/web/src/components/orbits/OrbitsView.tsx b/web/src/components/orbits/OrbitsView.tsx
index 7be5326..81d49c4 100644
--- a/web/src/components/orbits/OrbitsView.tsx
+++ b/web/src/components/orbits/OrbitsView.tsx
@@ -1,5 +1,4 @@
import { useState, type ReactNode } from "react";
-import { AnimatePresence } from "motion/react";
import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query";
import type { BackupAccess, BackupSource, Orbit, Snapshot } from "../../api";
import { createOrbit, fetchCaptureProfiles, updateOrbitRetention } from "../../api";
@@ -8,10 +7,10 @@ import { CaptureProfileForm } from "./CaptureProfileForm";
import { JobHistory } from "./JobHistory";
import { describeRetention, retentionDraft, RetentionFields, retentionSettings } from "./RetentionFields";
import { Button } from "../ui/Button";
-import { OrbitStatusDot } from "../ui/StatusDot";
+import { Segmented } from "../ui/Segmented";
import { TelemetryPanel } from "../ui/Telemetry";
import { Hint } from "../ui/EmptyState";
-import { SpringPane } from "../ui/SpringPane";
+import { Select } from "../ui/Select";
export function OrbitsView({
orbits, snapshots, onRun, onOpenSnapshot, captureDisabled, notice,
@@ -23,7 +22,6 @@ export function OrbitsView({
captureDisabled: boolean;
notice?: ReactNode;
}) {
- const [editing, setEditing] = useState(false);
const qc = useQueryClient();
const profiles = useQuery({ queryKey: ["capture-profiles"], queryFn: fetchCaptureProfiles });
const [name, setName] = useState("nightly-docs");
@@ -64,172 +62,134 @@ export function OrbitsView({
onSuccess: (orbit) => {
void qc.invalidateQueries({ queryKey: ["orbits"] });
if (orbit.access === "outpost") setProfileOrbit(orbit.id);
- setEditing(false);
+ resetForm();
},
});
+ const resetForm = () => {
+ setName("nightly-docs");
+ setSource("filesystem");
+ setAccess("hub");
+ setEngine("postgres");
+ setPath("./docs");
+ setSchedule("0 2 * * *");
+ setRetention(retentionDraft());
+ setRehearse(false);
+ create.reset();
+ };
return (
-
- {notice}
- {profiles.isError &&
Outpost backup profiles are unavailable.
}
-
id))} onOpenSnapshot={onOpenSnapshot} />
- {profiles.data?.length === 0 &&
- Register an Outpost capture profile to start queueing jobs.
-
}
-
-
- {orbits.map((o) => (
-
-
-
-
-
{o.name}
-
{orbitStatus(o.last_status).label}
-
- {o.source === "filesystem" ? "Filesystem / Folder" : o.source === "database" ? "Database" : "Backup"} · {o.access === "outpost" ? "Via Outpost" : "Via Hub"}
-
-
{schedulePhrase(o)}
-
{describeRetention(o)}
- {o.dry_run && (
-
- Rehearse mode
-
- )}
-
-
-
- onRun(o)}
- >
- {o.application_id ? "Queue backup" : o.access === "outpost" ? "Outpost capture" : o.dry_run ? "Rehearse" : "Capture now"}
-
- setEditingRetention(o.id)}
- disabled={editingRetention === o.id || o.retention_source === "profile"}>
- Edit retention
-
-
- {editingRetention === o.id && setEditingRetention(null)} />}
- {o.access === "outpost" && !o.dry_run && !o.application_id && (
- profileOrbit === o.id
- ? setProfileOrbit(undefined)} />
- : setProfileOrbit(o.id)}>Register Outpost backup profile
- )}
-
- {JSON.stringify(o, null, 2)}
-
-
- ))}
-
-
-