From 5773f42d90d32d0c298592d92236c34be826342f Mon Sep 17 00:00:00 2001 From: Adnan Zahir Date: Sat, 14 Nov 2026 16:47:23 +0700 Subject: [PATCH] feat: make Big Screen a holographic visor The map fills the viewport and every control is light: thin mint lines and glowing text over a vignette, a faint scan, corner brackets and a glass edge. Brand and mode sit top left, telemetry top right, the legend bottom left, the systems as text tabs bottom centre, and view, motion, search and sign out as outlined keys bottom right with the hub's state above them. Each piece springs between the workspace and the big screen with useScreenTransition. Every orbit is labelled on the big screen, and the picked orbit's label stands off its star on an elbowed leader line with its status. Co-Authored-By: Claude Sonnet 5.5 --- docs/UI.md | 6 +- web/src/App.tsx | 5 +- web/src/components/hud/HUDRail.tsx | 8 +- web/src/components/scene/BlackholeGalaxy.tsx | 30 +++- web/src/components/scene/VaultScene.tsx | 42 ++++-- web/src/index.css | 142 +++++++++++++++++++ web/src/lib/galaxyLabelLayout.ts | 10 +- 7 files changed, 219 insertions(+), 24 deletions(-) diff --git a/docs/UI.md b/docs/UI.md index f86028e..f554634 100644 --- a/docs/UI.md +++ b/docs/UI.md @@ -9,9 +9,9 @@ The persistent viewport maps backup jobs and recovery points. The black hole rep - The first three recovery points of the selected orbit appear as moons when the map has room. Select a moon or history entry to review the snapshot and start a restore. Escape closes the console. Restore countdown and polling continue if the console closes. - Hub connectivity is separate from backup health. Capture targets the named orbit. A running backup is a light circling its star; when it succeeds the light leaves for the black hole, and when it fails it is lost. See Orbit activity below. Rehearsals show text feedback and a ghost light. - The map shows up to 55 overview orbits and reserves one slot for inspecting an orbit beyond that limit. The register provides access to every orbit. On narrow screens the map, register, and inspector stack vertically. -- **Big Screen** expands the map and keeps summary counts, motion controls, and a floating navigation dock. The map and dock spring into position within the current browser viewport. Use **Exit big screen** or Escape to return to the workspace. -- Drag the active navbar item sideways and release to open the destination. The regular navbar uses text and a sliding underline. The Big Screen dock uses labeled icons and a liquid highlight. -- The navbar stays available above the side panel so you can switch directly between consoles. In the regular workspace it becomes a floating text dock in the same top position. Big Screen keeps its icon dock at the bottom. +- **Big Screen** is a holographic visor. The map fills the viewport, and every piece of the workspace has a counterpart there and springs to it with `useScreenTransition` rather than popping. There are no panels or plates, only light: thin mint lines and glowing text, a vignette and faint scan over the scene, four corner brackets and a glass edge. Top left, the brand and the map's mode (Flowing, or Locked with the orbit). Top right, the four telemetry readings with their lamps. Bottom left, the legend. Bottom centre, the systems as text, the active one held in a glowing frame (it can still be dragged), and an ember label for Activity while something needs you. Bottom right, the Window | Radar words with a sliding underline, the motion and exit keys, then search and sign out as outlined circles, with the hub's state above them. The register, the inspector, the canopy frame and the sill captions fade out; every orbit is labelled on the map (up to 60, each placed clear of the others; the workspace map shows 12), and the picked orbit's label stands off its star on an elbowed leader line, with its status beneath. Use **Exit big screen** or Escape to return to the workspace. Below 900 px the legend is hidden and the controls sit above the systems; below 520 px the brand and telemetry are hidden too and the view switch shows icons. +- Drag the active navbar item sideways and release to open the destination. The regular navbar is a tray of switches with a sliding pill. Big Screen uses the same text tabs with a glowing frame in place of the pill. +- The navbar stays available above the side panel so you can switch directly between consoles. In the regular workspace it becomes a floating text dock in the same top position. Big Screen keeps its tabs at the bottom. - Use **Search**, **⌘K**, or **Ctrl+K** from the vault, a console, or Big Screen. An empty field shows navigation shortcuts. Type to find destinations, orbits by name, ID, or provider, and snapshots by orbit name, ID, or displayed capture date. Search uses the summaries already loaded by the vault. Use the arrow keys and Enter, or select a result with a pointer. Escape closes search and returns focus to its button. Search is a spotlight panel over a dimmed, lightly blurred deck: a large input, grouped results with a kind label on the right (the active row adds an Enter mark), a footer of key hints and the result count, and a "No signal" message when nothing matches. ## Consoles diff --git a/web/src/App.tsx b/web/src/App.tsx index a91da9c..ac8576f 100644 --- a/web/src/App.tsx +++ b/web/src/App.tsx @@ -23,6 +23,7 @@ import { SpringPane } from "./components/ui/SpringPane"; import { SnapshotSheet } from "./components/vault/SnapshotSheet"; import { useActivity } from "./hooks/useActivity"; import { useReducedMotion } from "./hooks/useReducedMotion"; +import { useScreenTransition } from "./hooks/useScreenTransition"; import { orbitStatus } from "./lib/format"; import { groupSnapshots } from "./lib/galaxyLayout"; import type { FailureCause } from "./lib/orbitActivity"; @@ -89,6 +90,8 @@ function VaultApp({ actor, onLogout, caps }: { actor?: string; onLogout?: () => const [restoreBusy, setRestoreBusy] = useState(false); const [restoreTarget, setRestoreTarget] = useState<{ id: string | null }>(); const reducedMotion = useReducedMotion(); + const tools = useRef(null); + useScreenTransition(tools, bigScreen, reducedMotion); const qc = useQueryClient(); useEffect(() => { @@ -314,7 +317,7 @@ function VaultApp({ actor, onLogout, caps }: { actor?: string; onLogout?: () =>
TesseraFlight deck · Backup control
0 }} floating={bigScreen} panelOpen={panelOpen} reducedMotion={reducedMotion} onSelect={openConsole} /> -
+

{online ? "Hub online" : health.isPending ? "Connecting" : "Hub offline"} diff --git a/web/src/components/hud/HUDRail.tsx b/web/src/components/hud/HUDRail.tsx index f157ec4..79c5d05 100644 --- a/web/src/components/hud/HUDRail.tsx +++ b/web/src/components/hud/HUDRail.tsx @@ -156,7 +156,7 @@ export function HUDRail({ } }} > -

{orbits.length >= orbitCapacity &&

Select an orbit in the list to inspect it

} diff --git a/web/src/components/scene/VaultScene.tsx b/web/src/components/scene/VaultScene.tsx index 194bee4..06d4860 100644 --- a/web/src/components/scene/VaultScene.tsx +++ b/web/src/components/scene/VaultScene.tsx @@ -1,5 +1,6 @@ import { BlackholeGalaxy, type CaptureEffect } from "./BlackholeGalaxy"; -import { useCallback, useState, type KeyboardEvent } from "react"; +import { useCallback, useRef, useState, type KeyboardEvent } from "react"; +import { useScreenTransition } from "../../hooks/useScreenTransition"; import { BlackholeBackdrop } from "./BlackholeBackdrop"; import { SpaceBackdrop } from "./SpaceBackdrop"; import type { CoreSignal } from "../../lib/blackhole/controller"; @@ -35,11 +36,19 @@ export function VaultScene({ const selected = orbits.find(({ id }) => id === selectedOrbitId); const screenLabel = bigScreen ? "Exit big screen" : "Big screen"; const flowLabel = reducedMotion ? "Reduced motion" : flowing ? "Pause motion" : "Resume motion"; + // Each piece of the toolbar and sill springs from its place on the canopy to its corner of the big screen. + const status = useRef(null); + const keys = useRef(null); + const legend = useRef(null); + useScreenTransition(status, bigScreen, reducedMotion); + useScreenTransition(keys, bigScreen, reducedMotion); + useScreenTransition(legend, bigScreen, reducedMotion); + const caption = { initial: false, animate: { opacity: bigScreen ? 0 : 1 }, "aria-hidden": true } as const; return (
{svgCore ? : }
-
+

Vault map

- {!svgCore && next !== radar && onToggleRadar()} />} -
+ {!svgCore && next !== radar && onToggleRadar()} />} +
- + Motion · Screen
@@ -98,14 +108,14 @@ export function VaultScene({ />

01 · Orbital projection

-
+
Orbit Failed Snapshot - + Legend
- +
); } @@ -126,7 +136,15 @@ const switchLook = { } as const; /** The two looks of the canopy as a two-position switch. The thumb rides the shared MotionConfig spring. */ -function ViewSwitch({ radar, onChange }: { radar: boolean; onChange: (radar: boolean) => void }) { +function ViewSwitch({ radar, bigScreen, reducedMotion, caption, onChange }: { + radar: boolean; + bigScreen: boolean; + reducedMotion: boolean; + caption: object; + onChange: (radar: boolean) => void; +}) { + const root = useRef(null); + useScreenTransition(root, bigScreen, reducedMotion); const arrows = (event: KeyboardEvent) => { if (event.key === "ArrowLeft" || event.key === "ArrowUp") onChange(false); else if (event.key === "ArrowRight" || event.key === "ArrowDown") onChange(true); @@ -137,8 +155,8 @@ function ViewSwitch({ radar, onChange }: { radar: boolean; onChange: (radar: boo next?.focus(); }; return ( -
- +
+ View select