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

@@ -123,7 +123,7 @@ export function VaultSearch({ open, reducedMotion, orbits, snapshots, orbitStatu
<input ref={input} type="text" role="combobox" aria-label="Search vault"
aria-autocomplete="list" aria-expanded={!!results.length} aria-controls={`${id}-results`}
aria-activedescendant={activeOption}
autoComplete="off" autoCapitalize="none" spellCheck={false} placeholder="Search the vault…"
autoComplete="off" autoCapitalize="none" spellCheck={false} placeholder="Search orbits, snapshots, consoles…"
value={query} onChange={event => {
setQuery(event.currentTarget.value);
setActiveId(undefined);
@@ -152,19 +152,31 @@ export function VaultSearch({ open, reducedMotion, orbits, snapshots, orbitStatu
<span>{result.label}</span>
{result.detail && <small>{result.detail}</small>}
</span>
<span className="search-result-hint" aria-hidden="true">
{result.kind === "navigation" ? "Console" : result.kind === "orbit" ? "Orbit" : "Snapshot"}
</span>
</div>
);
})}
</div>
))}
</div>
<p className="search-status" role="status">
<span>{results.length ? `${results.length} ${query.trim() ? "results shown" : "destinations"}` : "No matching results."}</span>
{orbitStatus && <span>{orbitStatus}</span>}
{snapshotStatus && <span>{snapshotStatus}</span>}
</p>
{!results.length && (
<div className="search-empty" aria-hidden="true">
<p>No signal</p>
<span>Nothing matches that. Try an orbit name, ID, provider, or a capture date.</span>
</div>
)}
</div>
</motion.div>
<footer className="search-footer">
<span className="search-keys" aria-hidden="true"><span>↑↓ Move</span><span>↵ Open</span><span>Esc Close</span></span>
<p className="search-status" role="status">
<span>{results.length ? `${results.length} ${query.trim() ? "results shown" : "destinations"}` : "No matching results."}</span>
{orbitStatus && <span>{orbitStatus}</span>}
{snapshotStatus && <span>{snapshotStatus}</span>}
</p>
</footer>
</motion.section>
</motion.div>
);