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

@@ -40,12 +40,12 @@ export function TelemetryStrip({
useScreenTransition(strip, bigScreen, reducedMotion, undefined, true);
return (
<dl ref={strip} className="vault-telemetry">
<div><dt>Orbits</dt><dd><TelemetryValue value={orbitCount} /></dd></div>
<div><dt>Failed</dt><dd className={failedCount ? "telemetry-alert" : ""}>
<div data-metric="orbits"><dt>Orbits</dt><dd><TelemetryValue value={orbitCount} /></dd></div>
<div data-metric="failed" data-state={failedCount ? "alert" : "ok"}><dt>Failed</dt><dd className={failedCount ? "telemetry-alert" : ""}>
<TelemetryValue value={orbitCount === undefined ? undefined : failedCount} />
</dd></div>
<div><dt>Snapshots</dt><dd><TelemetryValue value={snapCount} /></dd></div>
<div><dt>Payload</dt><dd><TelemetryValue value={snapCount === undefined ? undefined : totalBytes} bytes /></dd></div>
<div data-metric="snapshots"><dt>Snapshots</dt><dd><TelemetryValue value={snapCount} /></dd></div>
<div data-metric="payload"><dt>Payload</dt><dd><TelemetryValue value={snapCount === undefined ? undefined : totalBytes} bytes /></dd></div>
</dl>
);
}
@@ -76,8 +76,8 @@ export function OrbitRegister({
<motion.section className="vault-console orbit-register" aria-labelledby="register-title" inert={bigScreen}
initial={false} animate={{ opacity: bigScreen ? 0 : 1 }}>
<header className="console-heading">
<p className="instrument-label">Flight register</p>
<h2 id="register-title">Orbits</h2>
<p className="instrument-label">Orbit register · L</p>
<h2 id="register-title">{orbits.length === 1 ? "1 orbit" : `${orbits.length} orbits`}</h2>
</header>
{message && <p className="console-empty" role="status">{message}</p>}
<motion.ul className="register-list" layoutScroll>
@@ -132,7 +132,7 @@ export function OrbitInspector({
<motion.section className="vault-console orbit-inspector" aria-labelledby="inspector-title" inert={bigScreen}
initial={false} animate={{ opacity: bigScreen ? 0 : 1 }}>
<header className="console-heading">
<p className="instrument-label">Orbit detail</p>
<p className="instrument-label">Orbit inspector · R</p>
<h2 id="inspector-title">{orbit?.name ?? "Select an orbit"}</h2>
{orbit && <p className={`inspector-state tone-${status.tone}`}><span className={`register-signal signal-${status.tone}`} />{status.label}</p>}
</header>