Game UI: diegetic HUD over persistent vault scene

Space Engine-style viewport with cockpit frame, glyph rail,
console overlays for orbits/wormhole/decay/reconstitute.
This commit is contained in:
Tessera Agent
2026-11-09 10:36:21 +00:00
parent 1a67876f19
commit d358c73291
8 changed files with 481 additions and 128 deletions

View File

@@ -1,22 +1,39 @@
# Tessera canvas — screen map
# Tessera canvas — Space Engine mode
One viewport (`100dvh`) with bottom tabs; detail flows use sheets (Labuh-style).
Diegetic **cockpit HUD** over a persistent **vault viewport**. No admin tabs — systems open as translucent console overlays.
| Tab | Purpose |
|-----|---------|
| **Vault** | Starfield + orbital SVG ring; snapshot tiles; Capture now; entry to reconstitute sheet |
| **Orbits** | Orbit cards (status dot, schedule phrase, rehearse badge); add orbit editor; capture; telemetry |
| **Wormhole** | Pairing code for outposts; placeholder outpost health (grey = offline) |
| **Decay** | Preset library with “in use” from orbit metadata |
## Viewport (always on)
### Sheets (overlays)
- Starfield + nebula wash, orbital snapshot ring (SVG)
- Corner brackets, scanlines, vignette
- Telemetry strip: link status, tile count, stored mass
- Left rail: last four snapshot targets (mono labels)
- Center action: **CAPTURE NOW**
- **Snapshot tile** — evidence (time, size), reconstitute CTA, snapshot ID telemetry
- **Reconstitute** — pick snapshot/target, 12s grace ring + abort, state copy per SPEC
## HUD rail (glyph console)
### API wiring
| Glyph | System | Overlay |
|-------|--------|---------|
| ◎ | Viewport | Dismiss overlays — pure scene |
| ⟳ | Orbits | Right console — schedules, rehearse, create |
| ◉ | Wormhole | Outpost pairing uplink |
| ◇ | Decay | Retention presets in use |
| ↩ | Restore | Bottom console — reconstitute + 12s grace |
- `GET /api/v1/snapshots`, `/orbits`, `/health`
- `POST /api/v1/orbits`, `/orbits/:id/run`, `/reconstitute`, `/wormhole/pairing`
**Esc** closes an open console.
See `web/README.md` for dev commands.
## Overlays (not pages)
- **Snapshot tile** — slides from left when a ring tile is selected on viewport
- **Orbit / Wormhole / Decay / Reconstitute** — HUD panels with console chrome
## API
Unchanged — see prior polish notes; TanStack Query on `/api/v1/*` and `/health`.
## Build
```bash
cd web && npm run build
cargo build --release -p tessera-hub # embeds dist
```