feat: restyle the web UI as a spaceship cockpit

The map is a canopy with a bezel, an inset window and a sill carrying a
Window | Radar view switch. Consoles open as centered screens; Orbits,
Outposts, Activity and the snapshot sheet follow one vocabulary of recessed
fields, bevelled keys and lamps that stay distinct by shape.

- Activity replaces the Restore tab with one log of backups and restores.
  Rows lead to a snapshot or an orbit; restores and exports start from the
  snapshot. The model is a pure function with tests.
- Restore opens from a snapshot as a two column screen: choose and confirm on
  the left, job progress or countdown on the right.
- Add Segmented and a themed Select (portal list, keyboard and form support).
- Add a spotlight-style search panel.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-14 12:23:31 +07:00
parent 34b2f346af
commit c74694cf1f
27 changed files with 1971 additions and 628 deletions

View File

@@ -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<RestoreJob[]> {
return api(`/api/v1/restore-jobs?limit=${limit}`);
}
export function fetchRestoreTargets(snapshot: string): Promise<SnapshotRestoreTarget[]> {
return api(`/api/v1/snapshots/${snapshot}/restore-targets`);
}