Galaxy vault: black hole scene with flow/lock interaction
Stars per orbit, snapshot moons when locked, toggle on singularity.
This commit is contained in:
39
docs/UI.md
39
docs/UI.md
@@ -1,39 +1,32 @@
|
||||
# Tessera canvas — Space Engine mode
|
||||
# Tessera canvas — galaxy vault (Space Engine mode)
|
||||
|
||||
Diegetic **cockpit HUD** over a persistent **vault viewport**. No admin tabs — systems open as translucent console overlays.
|
||||
Diegetic **cockpit HUD** over a persistent **galaxy viewport**. The vault is a **black hole** at center; each **orbit** is a **star** on an elliptical path; **snapshots** are **moons** around that star (when locked).
|
||||
|
||||
## Viewport (always on)
|
||||
## Viewport modes
|
||||
|
||||
- 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**
|
||||
| Mode | Behavior |
|
||||
|------|----------|
|
||||
| **Flowing** (default) | Stars orbit the singularity; accretion disk spins; moons hidden; targets not clickable |
|
||||
| **Locked** | Click **black hole** once — bodies ease into spaced slots and **stop**; star opens orbit console; moon opens snapshot tile |
|
||||
|
||||
## HUD rail (glyph console)
|
||||
Click the **black hole** again to resume flow. HUD line under telemetry: green “flowing” / amber “locked”.
|
||||
|
||||
| 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 |
|
||||
## HUD rail
|
||||
|
||||
**Esc** closes an open console.
|
||||
Unchanged — ◎ ⟳ ◉ ◇ ↩ consoles; **Esc** dismisses.
|
||||
|
||||
## Overlays (not pages)
|
||||
## Data
|
||||
|
||||
- **Snapshot tile** — slides from left when a ring tile is selected on viewport
|
||||
- **Orbit / Wormhole / Decay / Reconstitute** — HUD panels with console chrome
|
||||
- Stars: `GET /api/v1/orbits` (status → star color)
|
||||
- Moons: `GET /api/v1/snapshots` grouped by `orbit_name`, max 6 per star
|
||||
|
||||
## API
|
||||
## Demo
|
||||
|
||||
Unchanged — see prior polish notes; TanStack Query on `/api/v1/*` and `/health`.
|
||||
`TESSERA_DATA_DIR=... tessera seed-demo --force` for 12+ stars.
|
||||
|
||||
## Build
|
||||
|
||||
```bash
|
||||
cd web && npm run build
|
||||
cargo build --release -p tessera-hub # embeds dist
|
||||
cargo build --release -p tessera-hub
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user