Galaxy vault: black hole scene with flow/lock interaction

Stars per orbit, snapshot moons when locked, toggle on singularity.
This commit is contained in:
Tessera Agent
2026-11-09 10:48:30 +00:00
parent 50fe4ffffa
commit fa708f545d
5 changed files with 365 additions and 57 deletions

View File

@@ -29,6 +29,7 @@ export default function App() {
const [mode, setMode] = useState<HUDMode>("scene");
const [selectedSnap, setSelectedSnap] = useState<string | null>(null);
const [pairing, setPairing] = useState<{ code: string; expires_at: string } | null>(null);
const [galaxyFlowing, setGalaxyFlowing] = useState(true);
const qc = useQueryClient();
const health = useQuery({
@@ -81,27 +82,19 @@ export default function App() {
return (
<div className="h-[100dvh] w-full overflow-hidden bg-space-950 text-star-100 relative">
{/* Scene always visible */}
<QueryGate
query={snaps}
empty={
<VaultScene snapshots={[]} onSelect={() => {}} capturing={capturing} />
}
>
{(data) => (
<VaultScene
snapshots={data}
capturing={capturing || capture.isPending}
onCapture={() => {
if (!(orbits.data?.length ?? 0)) setMode("orbits");
else capture.mutate();
}}
onSelect={(id) => {
setSelectedSnap(id);
}}
/>
)}
</QueryGate>
<VaultScene
orbits={orbits.data ?? []}
snapshots={snaps.data ?? []}
flowing={galaxyFlowing}
onToggleFlow={() => setGalaxyFlowing((f) => !f)}
capturing={capturing || capture.isPending}
selectedSnapshotId={selectedSnap}
onSelect={(id) => setSelectedSnap(id)}
onSelectOrbit={() => {
setGalaxyFlowing(false);
setMode("orbits");
}}
/>
<CockpitFrame>
<TelemetryStrip