Skip to content

armgit / kiln

Public Imported from GitHub
0

Build and revise procedural 3D assets with your coding agent. Local MCP server, CLI and TypeScript engine with rendered review, editable source and GLB export.

Site and scene design pass: stacked scene captures, shared HUD menus, plainer copy (#126)

Matthew Kissinger4aacb864d465
diff --git a/scenes/packages/farm/src/definition.ts b/scenes/packages/farm/src/definition.ts
index d17971d6..0cb5bdc2 100644
--- a/scenes/packages/farm/src/definition.ts
+++ b/scenes/packages/farm/src/definition.ts
@@ -5,7 +5,7 @@ import { farmTiers } from './tiers';
export const farmDefinition: SceneDefinition = {
id: 'farm', label: 'Shapes & Seasons Farm',
- description: 'Explore the farm with the camera controls. Choose Walk the farm or press Enter for first-person walking. Click the scene to capture the mouse and look. Use W A S D or the arrows to move, Shift to run and E to interact. Escape releases the mouse and returns to overview; a second Escape leaves the scene. Tab moves through and out of the controls.',
+ description: 'Explore the farm with the camera controls. Choose Walk the farm or press Enter to walk in third person. Use W A S D or the arrows to move, Shift to run and E to interact. Drag to look around and scroll to zoom. Escape returns to overview; a second Escape leaves the scene. Tab moves through and out of the controls.',
camera: { position: [54, 45, 62], fov: 45, near: FARM_CAMERA.near, far: FARM_CAMERA.far },
tiers: farmTiers,
look: { toneMapping: ACESFilmicToneMapping, exposure: FARM_LOOK.exposure, background: FARM_LOOK.background,
diff --git a/scenes/packages/farm/src/play/camera.tsx b/scenes/packages/farm/src/play/camera.tsx
index 5220e4e5..e690f3b5 100644
--- a/scenes/packages/farm/src/play/camera.tsx
+++ b/scenes/packages/farm/src/play/camera.tsx
@@ -1,46 +1,23 @@
-import { useEffect, useLayoutEffect, useMemo, useRef } from 'react';
+import { useLayoutEffect, useMemo, useRef } from 'react';
import { useThree } from '@react-three/fiber';
import type { PerspectiveCamera, Vector3 } from 'three/webgpu';
-import { FollowRig, OrbitRig, SystemOrder, usePlayMode, useSystem, useRegisterTestHooks, defineDevParams, readDevParams, useInput, useHud } from '@kiln-scenes/scene-kit';
+import { FollowRig, OrbitRig, SystemOrder, usePlayMode, useSystem, useRegisterTestHooks, defineDevParams, readDevParams } from '@kiln-scenes/scene-kit';
import type { RigHandle, Vec3 } from '@kiln-scenes/scene-kit';
import { useFarmSession } from '../state';
import { FARM_CAMERA } from '../constants';
import { landscapeHeight } from '../world/landscape';
import type { FarmLayout } from '../world/types';
import type { FarmSim } from './sim';
-import { bindWalkCapture, createFirstPersonPose } from './first-person';
/**
- * Overview `OrbitRig` (3 to 160 m), walking eye, and tractor `FollowRig` (1.6 to 10 m).
- * Each mode owns camera input exclusively. Named review views are
+ * Overview `OrbitRig` (3 to 160 m) and the play `FollowRig` (1.6 to 10 m), which follows Rowan on foot and the
+ * tractor while driving. Each mode owns camera input exclusively. Named review views are
* test/dev only; one closer than 3 m relaxes the floor to its own distance so its pose is exact.
*/
export function FarmCameras({ layout, sim }: { layout: FarmLayout; sim: FarmSim }) {
const session = useFarmSession(), initialized = useRef(false), follow = useRef<RigHandle | null>(null);
- const camera = useThree(state => state.camera) as PerspectiveCamera, canvas = useThree(state => state.gl.domElement);
- const { playing, setPlaying } = usePlayMode(), wasPlaying = useRef(playing), input = useInput(), hud = useHud(session.hud);
- const reviewWalk = useRef(false);
- const walk = useMemo(() => ({ pose: createFirstPersonPose(), look: { x: 0, y: 0 }, subject: null as unknown, control: null as ReturnType<typeof bindWalkCapture> | null }), []);
- useEffect(() => {
- const control = bindWalkCapture(canvas, { active: () => input.enabled && !sim.driving, look: walk.look,
- onCaptured: captured => session.hud.set({ captured }), onExit: () => { input.clear(); setPlaying(false); } });
- walk.control = control; session.captureWalk = control.request;
- return () => { control.dispose(); walk.control = null; session.captureWalk = null; };
- }, [canvas, input, sim, walk, session, setPlaying]);
- useSystem('farm-walking-eye', SystemOrder.camera + 1, () => {
- if (!input.enabled || sim.driving) { walk.control?.release(); walk.subject = null; return; }
- if (walk.subject !== sim.follow.subject.current) { walk.pose.reset(sim.player.object.rotation.y); walk.subject = sim.follow.subject.current; }
- const captured = canvas.ownerDocument.pointerLockElement === canvas;
- const look = captured ? walk.look : input.state.lastPointer === 'touch' || input.state.lastPointer === 'pen' ? input.state.look : { x: 0, y: 0 };
- walk.pose.update(camera, sim.player.object.position, look); walk.look.x = walk.look.y = 0;
- // The local avatar is inside the eye. Its world representation remains visible in overview and while driving.
- sim.player.object.visible = false;
- if ((import.meta.env.KILN_TEST || import.meta.env.KILN_DEV) && reviewWalk.current) {
- const p = sim.player.object.position;
- camera.position.set(p.x + 2.8, p.y + 1.6, p.z + 2.8); camera.lookAt(p.x, p.y + .95, p.z); sim.player.object.visible = true;
- }
- });
- useLayoutEffect(() => { if (!playing || hud.driving) sim.player.object.visible = true; }, [playing, hud.driving, sim]);
+ const camera = useThree(state => state.camera) as PerspectiveCamera;
+ const { playing } = usePlayMode(), wasPlaying = useRef(playing);
const params = useMemo(() => readDevParams(defineDevParams({ view: { kind: 'enum', values: Object.keys(layout.views) } })), [layout]);
const setView = (name: string) => {
const view = layout.views[name], rig = session.orbit.current;
@@ -73,12 +50,12 @@ export function FarmCameras({ layout, sim }: { layout: FarmLayout; sim: FarmSim
onSubjectVisible: (visible: boolean) => { if (sim.active || visible) sim.player.object.visible = visible; },
}), [sim]);
const offset = useMemo(() => () => [...sim.follow.offset] as Vec3, [sim]);
- const hooks = useMemo(() => ({ setView, reviewWalkingPose: (value: boolean) => { reviewWalk.current = value; }, cameraPose: () => playing && !sim.driving ? { position: camera.position.toArray(), fov: camera.fov, mode: 'first-person' } : (playing ? follow.current : session.orbit.current)?.pose, viewNames: () => Object.keys(layout.views) }), [layout, session, playing, sim, camera]);
+ const hooks = useMemo(() => ({ setView, cameraPose: () => (playing ? follow.current : session.orbit.current)?.pose, viewNames: () => Object.keys(layout.views) }), [layout, session, playing]);
useRegisterTestHooks(import.meta.env.KILN_TEST || import.meta.env.KILN_DEV ? hooks : {});
return <>
<OrbitRig rigRef={session.orbit} active={!playing} target={[0, 0, -2]} minDistance={FARM_CAMERA.minDistance} maxDistance={FARM_CAMERA.maxDistance}
maxPolar={FARM_CAMERA.maxPolar} damping={false} pan floor={landscapeHeight} clearance={.25}/>
- <FollowRig rigRef={follow} active={playing && hud.driving} subject={sim.follow.subject} targetHeight={0} offset={offset} fov={FARM_CAMERA.playFov}
+ <FollowRig rigRef={follow} active={playing} subject={sim.follow.subject} targetHeight={0} offset={offset} fov={FARM_CAMERA.playFov}
maxPolar={FARM_CAMERA.playMaxPolar} minDistance={FARM_CAMERA.playMinDistance} maxDistance={FARM_CAMERA.playMaxDistance} obstruction={obstruction}/>
</>;
}
diff --git a/scenes/packages/farm/src/play/first-person.ts b/scenes/packages/farm/src/play/first-person.ts
deleted file mode 100644
index 1219d8ec..00000000
--- a/scenes/packages/farm/src/play/first-person.ts
+++ /dev/null
@@ -1,48 +0,0 @@
-import { Vector3 } from 'three/webgpu';
-import type { PerspectiveCamera } from 'three/webgpu';
-
-/** A walking eye has no orbit radius. Avatar yaw only seeds the initial heading. */
-export function createFirstPersonPose() {
- let yaw = 0, pitch = 0;
- const target = new Vector3();
- return {
- reset(heading: number) { yaw = heading; pitch = 0; },
- update(camera: PerspectiveCamera, position: Vector3, look: { x: number; y: number }) {
- yaw -= look.x; pitch = Math.max(-Math.PI / 2 + .05, Math.min(Math.PI / 2 - .05, pitch - look.y));
- camera.position.copy(position); camera.position.y += 1.72;
- target.set(Math.cos(yaw) * Math.cos(pitch), Math.sin(pitch), -Math.sin(yaw) * Math.cos(pitch)).add(camera.position);
- camera.up.set(0, 1, 0); camera.lookAt(target);
- if (camera.fov !== 58) { camera.fov = 58; camera.updateProjectionMatrix(); }
- },
- };
-}
-
-/** Own only this canvas's lock; native Escape releases it even when no key event is delivered. */
-export function bindWalkCapture(canvas: HTMLCanvasElement, options: {
- active(): boolean; look: { x: number; y: number }; onCaptured(value: boolean): void; onExit(): void;
-}) {
- const doc = canvas.ownerDocument;
- let captured = false, releasing = false, disposed = false;
- const changed = () => {
- const next = doc.pointerLockElement === canvas, previous = captured;
- captured = next; options.onCaptured(next);
- if (previous && !next && !releasing && options.active()) options.onExit();
- };
- const mouse = (event: MouseEvent) => {
- if (!captured || !options.active()) return;
- options.look.x += event.movementX * .0025; options.look.y += event.movementY * .0025;
- };
- const request = async () => {
- if (disposed || !options.active() || !canvas.requestPointerLock) return;
- try { await canvas.requestPointerLock(); } catch { options.onCaptured(false); }
- };
- const down = (event: PointerEvent) => { if (event.pointerType === 'mouse' && event.button === 0) void request(); };
- const wheel = (event: WheelEvent) => { if (options.active()) { event.preventDefault(); event.stopPropagation(); } };
- const release = () => { releasing = true; if (doc.pointerLockElement === canvas) doc.exitPointerLock(); releasing = false; };
- doc.addEventListener('pointerlockchange', changed); doc.addEventListener('mousemove', mouse);
- canvas.addEventListener('pointerdown', down); canvas.addEventListener('wheel', wheel, { passive: false });
- return { request, release, dispose() {
- disposed = true; doc.removeEventListener('pointerlockchange', changed); doc.removeEventListener('mousemove', mouse);
- canvas.removeEventListener('pointerdown', down); canvas.removeEventListener('wheel', wheel); release(); options.onCaptured(false);
- } };
-}
diff --git a/scenes/packages/farm/src/state.ts b/scenes/packages/farm/src/state.ts
index ca1c96db..40cf412c 100644
--- a/scenes/packages/farm/src/state.ts
+++ b/scenes/packages/farm/src/state.ts
@@ -5,12 +5,12 @@ import type { FarmWorld } from './world/build-world';
import type { PreparedFarm } from './world/prepare';
import { FARM_STRINGS } from './ui/strings';
-export interface FarmHudState { status: string; interact: string; canInteract: boolean; driving: boolean; captured: boolean }
+export interface FarmHudState { status: string; interact: string; canInteract: boolean; driving: boolean }
export function createFarmSession() {
- const hud = createHudStore<FarmHudState>({ status: '', interact: FARM_STRINGS.approach, canInteract: false, driving: false, captured: false });
+ const hud = createHudStore<FarmHudState>({ status: '', interact: FARM_STRINGS.approach, canInteract: false, driving: false });
return {
hud, world: null as FarmWorld | null, prepared: null as PreparedFarm | null, orbit: { current: null as RigHandle | null },
- view: 'hero', ambientEnabled: true, captureWalk: null as (() => Promise<void>) | null,
+ view: 'hero', ambientEnabled: true,
dispose() { hud.dispose(); this.world = null; this.orbit.current = null; },
};
}
diff --git a/scenes/packages/farm/src/ui/FarmHud.tsx b/scenes/packages/farm/src/ui/FarmHud.tsx
index 08a0fb6b..b2c01229 100644
--- a/scenes/packages/farm/src/ui/FarmHud.tsx
+++ b/scenes/packages/farm/src/ui/FarmHud.tsx
@@ -1,5 +1,5 @@
import { useEffect, useState } from 'react';
-import { CameraButtons, HelpOverlay, HudButton, InteractButton, InteractPrompt, StatusLine, useHud, useInput, usePlayMode, useSceneRootRef, VirtualJoystick } from '@kiln-scenes/scene-kit';
+import { CameraButtons, HelpOverlay, HudButton, HudHideButton, HudToolbar, InteractButton, InteractPrompt, StatusLine, SystemOrder, useHud, useInput, usePlayMode, useSceneRootRef, useSystem, VirtualJoystick } from '@kiln-scenes/scene-kit';
import { useFarmSession } from '../state';
import { FARM_STRINGS } from './strings';
@@ -46,17 +46,21 @@ function useCoarsePointer(): boolean {
/**
* SPEC 13.1 public HUD with the D-22 touch scheme (M3a). On touch: the joystick moves Rowan and, while driving,
* is the throttle (forward accelerates, back brakes then reverses, sideways steers); one-finger drag looks and a
- * pinch zooms while driving; walking uses a fixed first-person eye. A context button appears when there is something to do
+ * pinch zooms; the camera follows Rowan in third person on foot and the tractor while driving. A context button appears when there is something to do
* (open a door, drive, leave the tractor). The overview keeps one tap target, Reset view, since drag, pinch and
* two-finger pan replace the rest of the camera pad. The mode button leaves play, so no Leave play pad exists.
- * Desktop walking captures the pointer; Escape releases it and returns to overview. Strings come from the table.
+ * Desktop walking drags to look and scrolls to zoom; Escape returns to overview. Strings come from the table.
*/
export function FarmHud() {
const session = useFarmSession(), hud = useHud(session.hud), { playing, setPlaying } = usePlayMode(), input = useInput(), root = useSceneRootRef();
const pointer = input.state.lastPointer, coarse = useCoarsePointer();
const touch = pointer === 'touch' || pointer === 'pen' || (coarse && pointer !== 'keyboard');
+ // The walking hint leaves once Rowan has moved; it returns with the next walk.
+ const [hint, setHint] = useState(true);
+ useEffect(() => { if (!playing) setHint(true); }, [playing]);
+ useSystem('farm-walk-hint', SystemOrder.sim + 1, () => { if (hint && input.enabled && (input.state.move.x || input.state.move.y)) setHint(false); });
const toggle = () => {
- if (!playing) { setPlaying(true); root.current?.focus({ preventScroll: true }); if (!touch) void session.captureWalk?.(); return; }
+ if (!playing) { setPlaying(true); root.current?.focus({ preventScroll: true }); return; }
// The pilot's play button stays in play while the tractor has no free exit.
const sim = session.world?.sim; if (sim && !sim.stop()) return;
setPlaying(false);
@@ -64,14 +68,15 @@ export function FarmHud() {
const layout = !playing ? (touch ? 'farm-overview-touch' : 'farm-overview') : touch ? 'farm-play-touch' : 'farm-play-desktop';
return <div className={`farm-hud ${layout}`}>
<style data-farm-styles="">{FARM_HUD_CSS}</style>
- <div className="ks-toolbar">
+ <HudToolbar>
<HudButton onClick={toggle}>{playing ? FARM_STRINGS.overview : FARM_STRINGS.walk}</HudButton>
<HelpOverlay playing={false} label={FARM_STRINGS.controls} desktop={FARM_STRINGS.helpKeyboard} touch={FARM_STRINGS.helpTouch}/>
- </div>
+ <HudHideButton/>
+ </HudToolbar>
{!playing && <div className="farm-camera">{touch
? <HudButton className="farm-reset-view" onClick={() => session.orbit.current?.reset()}>{FARM_STRINGS.resetView}</HudButton>
: <CameraButtons rig={session.orbit}/>}</div>}
- <StatusLine text={playing && !hud.driving && !touch ? (hud.captured ? FARM_STRINGS.walkCaptured : FARM_STRINGS.walkCapture) : hud.status}/>
+ <StatusLine text={playing && !hud.driving && !touch ? (hud.status || (hint ? FARM_STRINGS.walkHint : '')) : hud.status}/>
{playing && !touch && <InteractPrompt label={hud.interact} available={hud.canInteract}/>}
{playing && touch && <VirtualJoystick label={hud.driving ? FARM_STRINGS.joystickDrive : FARM_STRINGS.joystick} axes={hud.driving ? 'throttle' : 'both'}/>}
{playing && touch && hud.canInteract && <InteractButton label={hud.interact}/>}
diff --git a/scenes/packages/farm/src/ui/strings.ts b/scenes/packages/farm/src/ui/strings.ts
index d8307a7a..0ca94d41 100644
--- a/scenes/packages/farm/src/ui/strings.ts
+++ b/scenes/packages/farm/src/ui/strings.ts
@@ -10,10 +10,9 @@ export const FARM_STRINGS = {
obstacle: 'Obstacle ahead. Reverse or steer clear.',
tractorKeyboard: 'Tractor controls: W/S accelerate and reverse; A/D steer. Trailer stays parked.',
tractorTouch: 'Tractor controls: use the joystick. The trailer stays parked.',
- walkCapture: 'Click the scene to capture the mouse and look around. Escape returns to overview.',
- walkCaptured: 'WASD to walk · Mouse to look · Shift to run · E to interact · Escape to release and leave',
- helpKeyboard: 'Walk in first person: click the scene to capture the mouse, move it to look, use W A S D or arrows to walk and Shift to run. E interacts. Escape releases the mouse and returns to overview. Walking has no zoom. In the tractor, drag to orbit and scroll to zoom.',
- helpTouch: 'Use the joystick to walk in first person and drag the scene to look. Near a door or the tractor a button appears to open it, drive or leave. In the tractor, drag to orbit and pinch to zoom. Back to overview ends the walk.',
+ walkHint: 'WASD to walk · Drag to look · Scroll to zoom · Shift to run · E to interact · Escape to leave',
+ helpKeyboard: `Walk in third person: the camera follows ${FARMER_NAME}. Use W A S D or arrows to walk and Shift to run. Drag to look around and scroll to zoom, on foot or in the tractor. E interacts. Escape returns to overview.`,
+ helpTouch: `Use the joystick to walk in third person; the camera follows ${FARMER_NAME}. Drag the scene to look and pinch to zoom. Near a door or the tractor a button appears to open it, drive or leave. Back to overview ends the walk.`,
pack: 'Reading farm inventory…', graphics: 'Starting graphics…',
lighting: 'Preparing lighting. First visits can take longer…',
build: 'Building the farm, paths and interactions…',
diff --git a/scenes/packages/farm/tests/unit/first-person.test.ts b/scenes/packages/farm/tests/unit/first-person.test.ts
deleted file mode 100644
index 17564118..00000000
--- a/scenes/packages/farm/tests/unit/first-person.test.ts
+++ /dev/null
@@ -1,30 +0,0 @@
-import { expect, test } from 'bun:test';
-import { PerspectiveCamera, Vector3 } from 'three/webgpu';
-import { createFirstPersonPose, bindWalkCapture } from '../../src/play/first-person';
-
-test('walking stays at eye height, looks independently of avatar yaw, and never zooms', () => {
- const camera = new PerspectiveCamera(), position = new Vector3(4, 2, 7), pose = createFirstPersonPose();
- pose.reset(0); pose.update(camera, position, { x: 0, y: 0 });
- expect(camera.position.distanceTo(new Vector3(4, 3.72, 7))).toBeLessThan(1e-12);
- const forward = camera.getWorldDirection(new Vector3());
- expect(forward.x).toBeCloseTo(1, 6); expect(forward.y).toBeCloseTo(0, 6);
- pose.update(camera, position, { x: .5, y: 100 });
- expect(camera.position.distanceTo(new Vector3(4, 3.72, 7))).toBeLessThan(1e-12);
- expect(camera.getWorldDirection(forward).y).toBeGreaterThan(-1);
- expect(camera.fov).toBe(58);
-});
-
-test('pointer capture owns relative mouse look and exits on native Escape release, with cleanup', async () => {
- const doc = Object.assign(new EventTarget(), { pointerLockElement: null as unknown, exitPointerLock() { this.pointerLockElement = null; this.dispatchEvent(new Event('pointerlockchange')); } });
- const canvas = Object.assign(new EventTarget(), { ownerDocument: doc, requestPointerLock() { doc.pointerLockElement = this; doc.dispatchEvent(new Event('pointerlockchange')); return Promise.resolve(); } });
- const look = { x: 0, y: 0 }; let active = true, exits = 0, captured = false;
- const control = bindWalkCapture(canvas as unknown as HTMLCanvasElement, { active: () => active, look, onCaptured: value => { captured = value; }, onExit: () => { exits++; } });
- await control.request(); expect(captured).toBe(true);
- doc.dispatchEvent(Object.assign(new Event('mousemove'), { movementX: 10, movementY: -5 }));
- expect(look).toEqual({ x: .025, y: -.0125 });
- doc.exitPointerLock(); expect(exits).toBe(1); expect(captured).toBe(false);
- await control.request(); active = false; control.release(); expect(exits).toBe(1);
- active = true; await control.request(); control.dispose(); expect(exits).toBe(1); expect(doc.pointerLockElement).toBeNull();
- doc.dispatchEvent(Object.assign(new Event('mousemove'), { movementX: 100, movementY: 100 }));
- expect(look).toEqual({ x: .025, y: -.0125 });
-});
diff --git a/scenes/packages/farm/tests/unit/play.test.ts b/scenes/packages/farm/tests/unit/play.test.ts
index a216756b..18f08c8e 100644
--- a/scenes/packages/farm/tests/unit/play.test.ts
+++ b/scenes/packages/farm/tests/unit/play.test.ts
@@ -223,6 +223,13 @@ test('U-18 Farm string table: pilot messages verbatim, four door labels, prompts
expect(new Set(all).size).toBe(all.length);
});
+test('walking is third person: the help says so and no pointer-capture strings remain', () => {
+ expect(FARM_STRINGS.helpKeyboard).toMatch(/third person/); expect(FARM_STRINGS.helpTouch).toMatch(/third person/);
+ for (const text of Object.values(FARM_STRINGS) as string[]) expect(text).not.toMatch(/first person|capture the mouse/i);
+ expect(Object.keys(FARM_STRINGS)).not.toContain('walkCapture'); expect(Object.keys(FARM_STRINGS)).not.toContain('walkCaptured');
+ expect(FARM_STRINGS.walkHint).toBe('WASD to walk · Drag to look · Scroll to zoom · Shift to run · E to interact · Escape to leave');
+});
+
// Opt-in: the sealed r33 play controller in lockstep with the port, then the port-only B-08 fixture searches
// (about 7 s measured on this PC as a script; staged pilot delivery required).
if (process.env.ORACLE === '1') test('M2c sealed r33 play oracle: byte-identical colliders and lockstep play within 1e-9', async () => {
diff --git a/scenes/packages/foundry-floor/src/campus/Hud.tsx b/scenes/packages/foundry-floor/src/campus/Hud.tsx
index 93f18ec4..c8592df6 100644
--- a/scenes/packages/foundry-floor/src/campus/Hud.tsx
+++ b/scenes/packages/foundry-floor/src/campus/Hud.tsx
@@ -1,5 +1,6 @@
// SPDX-License-Identifier: MIT
-// Separate persistent location/Exit bar inside; both place HUDs remain in their own lazy chunks.
+// Inside, the Exit leads the interior toolbar and the location heads the status details; both place HUDs remain in
+// their own lazy chunks.
import { lazy, Suspense, useSyncExternalStore } from 'react';
import { HudButton } from '@kiln-scenes/scene-kit';
import { useCampusSession } from './session';
@@ -10,7 +11,7 @@ const InteriorHud = lazy(() => import('./interior').then(m => ({ default: m.Inte
function ExitButton() {
const campus = useCampusSession();
const moving = useSyncExternalStore(campus.hud.subscribe, () => campus.hud.getSnapshot().moving, () => campus.hud.getSnapshot().moving);
- return <div className="fc-interior-location"><HudButton className="fc-exit" disabled={moving} onClick={() => campus.exit()}>Exit to campus</HudButton><span>South-west building · Level 1 · Cutaway</span></div>;
+ return <HudButton className="fc-exit" aria-label="Exit to campus" disabled={moving} onClick={() => campus.exit()}>Exit<span className="fc-exit-rest"> to campus</span></HudButton>;
}
export function CampusHud() {
@@ -18,9 +19,8 @@ export function CampusHud() {
const place = useSyncExternalStore(campus.hud.subscribe, () => campus.hud.getSnapshot().place, () => campus.hud.getSnapshot().place);
const interior = place === 'interior' ? campus.interior : null;
if (interior) return <><style>{`
- .ks-hud>.fc-interior-location{position:absolute;left:12px;top:12px;z-index:4;display:flex;align-items:center;gap:8px;max-width:calc(100% - 24px);padding:5px;background:#101e24f2;border-radius:6px;color:#e8f4f3;font:12px/1.4 system-ui,sans-serif}
- .fc-interior-location .ks-button{min-height:44px;white-space:nowrap}.fc-interior-location span{max-width:180px}
- .ks-hud>.ff-hud .ff-top{padding-top:74px}.ks-hud>.ff-hud .ff-status{top:74px}
- `}</style><ExitButton/><Suspense fallback={null}><InteriorHud session={interior}/></Suspense></>;
+ .fc-exit{white-space:nowrap}
+ @container ks-hud (max-width:719px){.fc-exit-rest{display:none}}
+ `}</style><Suspense fallback={null}><InteriorHud session={interior} leading={<ExitButton/>} location="South-west building · Level 1 · Cutaway"/></Suspense></>;
return <Suspense fallback={null}><ExteriorHud/></Suspense>;
}
diff --git a/scenes/packages/foundry-floor/src/campus/exterior/Hud.tsx b/scenes/packages/foundry-floor/src/campus/exterior/Hud.tsx
index 8e715f1e..6ce6182e 100644
--- a/scenes/packages/foundry-floor/src/campus/exterior/Hud.tsx
+++ b/scenes/packages/foundry-floor/src/campus/exterior/Hud.tsx
@@ -6,7 +6,7 @@
// touch or pen input, or a coarse primary pointer unless the keyboard was used last: drag, pinch and two-finger pan
// move the camera there, and Reset view (back to the chosen named view) sits in the toolbar.
import { useEffect, useRef, useState } from 'react';
-import { CreditsPanel, HelpOverlay, HudButton, HudPanel, HudSegmented, StatusLine, TouchButtons, useHud, useInput, usePanelEscape, usePlayMode, useSceneRootRef, VirtualJoystick } from '@kiln-scenes/scene-kit';
+import { CreditsPanel, HelpOverlay, HudButton, HudHideButton, HudMenu, HudPanel, HudSegmented, HudToolbar, StatusLine, TouchButtons, useHud, useInput, usePanelEscape, usePlayMode, useSceneRootRef, VirtualJoystick } from '@kiln-scenes/scene-kit';
import { useCampusSession } from '../session';
import type { CampusViewName } from '../data';
import { DRIVE_TOUCH_BUTTONS } from '../drive/input';
@@ -44,7 +44,6 @@ const CSS = `
.fc-bottom>.ks-status:empty{display:none}
/* The kit joystick sits inside this layer, not directly under .ks-hud, so it takes its touches back explicitly. */
.fc-hud>.ks-joystick,.fc-hud>.ks-touch-buttons{pointer-events:auto}
-.fc-destination{font:12px/1.4 system-ui,sans-serif;padding:4px 10px;max-width:260px;text-align:center;background:#101e24e8;border-radius:5px;color:#e8f4f3}
.fc-hud.fc-joystick>.fc-bottom{bottom:calc(max(24px,env(safe-area-inset-bottom)) + 144px)}
`;
@@ -74,15 +73,21 @@ export function ExteriorHud() {
return <div className={joystick ? 'fc-hud fc-joystick' : 'fc-hud'}>
<style>{CSS}</style>
<div className="fc-top">
- <div className="ks-toolbar">
- {!driving && <HudSegmented label="View" value={hud.view} options={VIEW_OPTIONS} onChange={value => campus.setView(value as CampusViewName)}/>}
- {!driving && touchLayout && <HudButton onClick={() => campus.setView(hud.view)}>{S.resetView}</HudButton>}
+ <HudToolbar>
+ {/* Three groups: what to look at, the drive, and everything secondary. */}
+ {!driving && <HudMenu label="View" collapse="narrow">
+ <HudSegmented label="View" value={hud.view} options={VIEW_OPTIONS} onChange={value => campus.setView(value as CampusViewName)}/>
+ {touchLayout && <HudButton onClick={() => campus.setView(hud.view)}>{S.resetView}</HudButton>}
+ </HudMenu>}
{hud.driveReady && <HudButton disabled={busy} onClick={drive}>{driving ? S.leaveCar : S.drive}</HudButton>}
- <HudButton aria-pressed={hud.paused} onClick={() => campus.setPaused(!hud.paused)}>{hud.paused ? 'Resume motion' : 'Pause motion'}</HudButton>
- <HudButton ref={aboutTrigger} aria-expanded={hud.about} aria-controls="fc-about" onClick={() => campus.setAbout(!hud.about)}>About the campus</HudButton>
- <HelpOverlay label={S.controls} desktop={S.helpKeyboard} touch={S.helpTouch}/>
- <CreditsPanel label="Credits"/>
- </div>
+ <HudMenu label="More">
+ <HudButton aria-pressed={hud.paused} onClick={() => campus.setPaused(!hud.paused)}>{hud.paused ? 'Resume motion' : 'Pause motion'}</HudButton>
+ <HudButton ref={aboutTrigger} aria-expanded={hud.about} aria-controls="fc-about" onClick={() => campus.setAbout(!hud.about)}>About the campus</HudButton>
+ <HelpOverlay label={S.controls} desktop={S.helpKeyboard} touch={S.helpTouch}/>
+ <CreditsPanel label="Credits"/>
+ </HudMenu>
+ <HudHideButton/>
+ </HudToolbar>
{hud.about && <HudPanel id="fc-about" className="fc-about" role="region" aria-label="About the campus" data-ks-dismiss-panel>
<h2>The Foundry Floor campus</h2>
<p>Four fab buildings in two mirrored pairs, each a head and a 2.6 km hall, joined by two links across the cross pass,
@@ -97,7 +102,6 @@ export function ExteriorHud() {
<div className="fc-bottom">
{driving && <div className="ks-panel fc-speed" aria-live="off">{S.speed(hud.speedKmh)}</div>}
<HudButton disabled={busy} onClick={() => campus.enter()}>{S.enter}</HudButton>
- <div className="fc-destination">South-west building · Level 1<br/>Entrance-to-floor transition</div>
<StatusLine text={driving && hud.atRoadEnd ? (touchLayout ? S.turnAroundTouch : S.turnAroundPrompt) : hud.status}/>
</div>
{joystick && <><VirtualJoystick label={S.joystick} axes="x"/><TouchButtons buttons={DRIVE_TOUCH_BUTTONS}/></>}
diff --git a/scenes/packages/foundry-floor/src/campus/interior.tsx b/scenes/packages/foundry-floor/src/campus/interior.tsx
index 6a12e02a..ac4c7d90 100644
--- a/scenes/packages/foundry-floor/src/campus/interior.tsx
+++ b/scenes/packages/foundry-floor/src/campus/interior.tsx
@@ -52,6 +52,6 @@ export function InteriorPlace({ session }: { session: FoundrySession }) {
return <FoundryContext.Provider value={session}>{modelsReady&&<FoundryWorld/>}</FoundryContext.Provider>;
}
-export function InteriorHud({ session, leading }: { session: FoundrySession; leading?: ReactNode }) {
- return <FoundryContext.Provider value={session}><FoundryHud leading={leading}/></FoundryContext.Provider>;
+export function InteriorHud({ session, leading, location }: { session: FoundrySession; leading?: ReactNode; location?: string }) {
+ return <FoundryContext.Provider value={session}><FoundryHud leading={leading} location={location}/></FoundryContext.Provider>;
}
diff --git a/scenes/packages/foundry-floor/src/scene/Hud.tsx b/scenes/packages/foundry-floor/src/scene/Hud.tsx
index a42f6a24..360a6cb0 100644
--- a/scenes/packages/foundry-floor/src/scene/Hud.tsx
+++ b/scenes/packages/foundry-floor/src/scene/Hud.tsx
@@ -7,7 +7,7 @@
// twin's state (panels.ts); the cameras (Cameras.tsx) refresh them.
import { useEffect, useRef, useState } from 'react';
import type { ReactNode } from 'react';
-import { CreditsPanel, HelpOverlay, HudButton, HudPanel, HudSegmented, StatusLine, useHud, useInput, usePanelEscape, usePlayMode, useSceneRootRef, VirtualJoystick } from '@kiln-scenes/scene-kit';
+import { CreditsPanel, HelpOverlay, HudButton, HudHideButton, HudMenu, HudPanel, HudSegmented, HudToolbar, StatusLine, useHud, useInput, usePanelEscape, usePlayMode, useSceneRootRef, VirtualJoystick } from '@kiln-scenes/scene-kit';
import about from '../../data/about.json';
import { SIM_CONFIG } from '../sim/config';
import type { FabMode } from '../sim/fab';
@@ -22,24 +22,33 @@ const VIEW_OPTIONS: { value: ViewName; label: string }[] = [{ value: 'landing',
const LABELS = about.labels as Record<string, string>;
/** Sized by the HUD's own box. Wide: the status panel top left, the toolbar top right, the panels and the status line
- * bottom right. Narrow (900 px and under): the status panel and the panels stack at the bottom (the KPI list folds away
- * while a panel is open or the joystick is up, and the stack rises above the joystick). The `.ks-hud>` prefix outranks
+ * bottom right. Narrow (1060 px and under): the status panel and the panels stack at the bottom (the details fold away
+ * while a panel is open or the joystick is up, and the stack rises above the joystick). The status panel is a header
+ * (mode, scale, sim time and the synthetic label: always on screen, even with the HUD hidden) over details the header
+ * toggles (location, KPIs, floor transfers): open on a wide HUD, folded on a narrow one until asked for. The `.ks-hud>` prefix outranks
* the kit's `.ks-hud>*{pointer-events:auto}` so the canvas keeps its gestures; the controls take pointer events back.
* HUD updates arrive through the kit's store, which coalesces them to ten a second. */
const FF_HUD_CSS = `
.ks-hud>.ff-hud{position:absolute;inset:0;pointer-events:none;container:ff-hud/size}
.ff-hud>.ff-top{position:absolute;inset:0;display:flex;flex-direction:column;align-items:flex-end;gap:8px;box-sizing:border-box;pointer-events:none;
padding:max(12px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) 12px max(12px,env(safe-area-inset-left))}
-.ff-top>.ks-toolbar{position:static;justify-content:flex-end;max-width:min(680px,100%);pointer-events:auto}
-.ff-top .ks-toolbar>.ks-help{position:static;flex:1 0 100%;max-width:none;max-height:40cqh;overflow:auto;text-align:left;font:14px/1.5 system-ui,sans-serif}
+.ff-top>.ks-toolbar{position:static;justify-content:flex-end;max-width:calc(100% - 364px);pointer-events:auto}
+.ff-top .ks-toolbar .ks-help{position:static;order:11;flex:1 0 100%;max-width:none;max-height:40cqh;overflow:auto;text-align:left;font:14px/1.5 system-ui,sans-serif}
.ff-top>.ff-about{pointer-events:auto;overflow:auto;max-height:calc(100% - 110px);max-width:min(480px,100%);font:14px/1.5 system-ui,sans-serif}
.ff-about h2{margin:0 0 8px;font-size:17px}.ff-about h3{margin:12px 0 4px;font-size:14px}.ff-about p{margin:0 0 6px}
.ff-about dl{display:grid;grid-template-columns:auto 1fr;gap:2px 8px;margin:4px 0 10px}.ff-about dt{font-weight:600}.ff-about dd{margin:0}
.ff-hud>.ff-bottom{display:contents}
.ff-bottom>.ff-status{position:absolute;left:max(12px,env(safe-area-inset-left));top:max(12px,env(safe-area-inset-top));pointer-events:auto;
- max-width:min(340px,calc(100% - 24px));padding:10px 12px;font:13px/1.45 system-ui,sans-serif}
-.ff-status .ff-mode{font-weight:600;font-size:14px}.ff-status .ff-syn{font-size:12px;opacity:.86}
+ max-width:min(340px,calc(100% - 24px));padding:0;font:13px/1.45 system-ui,sans-serif}
+.ff-status .ff-head{display:grid;grid-template-columns:1fr auto;column-gap:10px;align-items:start;width:100%;min-height:44px;box-sizing:border-box;margin:0;padding:10px 12px;
+ border:0;border-radius:inherit;background:none;color:inherit;font:inherit;text-align:left;cursor:pointer;touch-action:manipulation}
+.ff-status .ff-head:focus-visible{outline:3px solid #fff;outline-offset:-3px}
+.ff-status .ff-mode{font-weight:600;font-size:14px}.ff-status .ff-syn{grid-column:1;font-size:12px;opacity:.86}
+.ff-status .ff-caret{grid-column:2;grid-row:1;margin-top:8px;border:5px solid transparent;border-top-color:currentColor;border-bottom:0}
+.ff-status .ff-head[aria-expanded=true] .ff-caret{transform:rotate(180deg)}
+.ff-status .ff-details{padding:0 12px 10px}.ff-status .ff-details[hidden]{display:none}.ff-status .ff-details p{margin:6px 0 0}
.ff-status ul{margin:6px 0 0;padding:0;list-style:none;font-variant-numeric:tabular-nums}
+.ks-hud[data-ks-hidden] .ff-status{visibility:visible;pointer-events:none}.ks-hud[data-ks-hidden] .ff-status :is(.ff-details,.ff-caret){display:none}
.ff-bottom>.ff-dock{position:absolute;right:max(12px,env(safe-area-inset-right));bottom:max(12px,env(safe-area-inset-bottom));width:min(380px,calc(100% - 24px));
display:flex;flex-direction:column;justify-content:flex-end;gap:8px;pointer-events:none}
.ff-dock>*{pointer-events:auto}
@@ -54,13 +63,14 @@ const FF_HUD_CSS = `
.ff-info p{margin:0 0 6px}
.ff-picker li+li{margin-top:6px}.ff-picker li>.ks-button{width:100%;text-align:left;padding:8px 12px}
.ff-progress{height:8px;margin:6px 0 4px;border-radius:4px;background:#2c3f3b;overflow:hidden}.ff-progress>span{display:block;height:100%;background:#7fd1b9}
-@container ff-hud (max-width: 900px){
+@container ff-hud (max-width: 1060px){
.ff-hud>.ff-bottom{position:absolute;left:max(12px,env(safe-area-inset-left));right:max(12px,env(safe-area-inset-right));bottom:max(12px,env(safe-area-inset-bottom));
display:flex;flex-direction:column-reverse;gap:8px;pointer-events:none}
+ .ff-top>.ks-toolbar{max-width:100%}
.ff-bottom>.ff-status,.ff-bottom>.ff-dock{position:static;width:auto;max-width:none}
.ff-bottom>.ff-status{align-self:flex-start;max-width:min(420px,100%)}
.ff-info{max-height:36cqh}
- .ff-hud.ff-compact .ff-status ul{display:none}
+ .ff-hud.ff-compact .ff-status .ff-details{display:none}
.ff-hud.ff-joystick>.ff-bottom{bottom:calc(max(24px,env(safe-area-inset-bottom)) + 144px)}
}
`;
@@ -76,10 +86,13 @@ function useCoarsePointer(): boolean {
return coarse;
}
-/** `leading`: controls a host places first in the toolbar (the campus puts its Exit there); FF2 passes none. */
-export function FoundryHud({ leading }: { leading?: ReactNode } = {}) {
+/** `leading`: controls a host places first in the toolbar (the campus puts its Exit there); FF2 passes none.
+ * `location`: where this floor is (the campus names the registered cutaway); it heads the status details. */
+export function FoundryHud({ leading, location }: { leading?: ReactNode; location?: string } = {}) {
const session = useFoundrySession(), hud = useHud(session.hud), { playing, setPlaying } = usePlayMode(), input = useInput(), root = useSceneRootRef();
const aboutTrigger = useRef<HTMLButtonElement>(null);
+ // Details start open where the status panel has its own corner (a wide HUD) and folded where it shares the bottom.
+ const [details, setDetails] = useState(() => (root.current?.clientWidth ?? 1280) > 1060);
usePanelEscape(hud.about, 'ff-about', aboutTrigger, () => session.setAbout(false));
const coarse = useCoarsePointer(), pointer = input.state.lastPointer;
const touch = pointer === 'touch' || pointer === 'pen' || (coarse && pointer !== 'keyboard');
@@ -93,22 +106,32 @@ export function FoundryHud({ leading }: { leading?: ReactNode } = {}) {
return <div className={`ff-hud ff-camera-${camera}${joystick ? ' ff-joystick' : ''}${open || joystick ? ' ff-compact' : ''}`}>
<style>{FF_HUD_CSS}</style>
<div className="ff-top">
- <div className="ks-toolbar">
+ <HudToolbar>
+ {/* Four groups: the way out, the clock, what to look at and how (one menu), and everything secondary.
+ A running walk, tour or follow puts its own stop in the toolbar. */}
{leading}
- <HudSegmented label="Time scale" value={String(hud.scale)} options={SCALE_OPTIONS} onChange={value => session.setScale(Number(value))}/>
- {camera === 'orbit' && <HudSegmented label="Mode" value={hud.mode} options={MODE_OPTIONS} onChange={value => session.setMode(value as FabMode)}/>}
- {camera === 'orbit' && <HudSegmented label="View" value={hud.view} options={VIEW_OPTIONS} onChange={value => session.setView(value as ViewName)}/>}
- {hud.floor?.followLot !== null && hud.floor?.followLot !== undefined && !playing && <HudButton onClick={() => control()?.follow(hud.floor!.followLot!)}>Follow floor transfer</HudButton>}
- <HudButton aria-pressed={playing} onClick={walk}>{playing ? S.stopWalking : S.walk}</HudButton>
- {playing && <HelpOverlay label={S.controls} desktop={S.helpKeyboard} touch={S.helpTouch}/>}
- {!playing && <HudButton aria-pressed={camera === 'tour'} onClick={() => (camera === 'tour' ? control()?.stopTour() : control()?.startTour())}>
- {camera === 'tour' ? S.stopTour : S.tour}</HudButton>}
- {!playing && <HudButton aria-expanded={camera === 'follow' ? undefined : !!hud.picker} aria-controls={camera === 'follow' ? undefined : 'ff-picker'}
- onClick={() => (camera === 'follow' ? control()?.unfollow() : hud.picker ? control()?.closePicker() : control()?.openPicker())}>
- {camera === 'follow' ? S.stopFollowing : S.follow}</HudButton>}
- <HudButton ref={aboutTrigger} aria-expanded={hud.about} aria-controls="ff-about" onClick={() => session.setAbout(!hud.about)}>About this model</HudButton>
- <CreditsPanel label="Credits"/>
- </div>
+ <HudMenu label="Speed" value={SCALE_OPTIONS.find(option => option.value === String(hud.scale))?.label} collapse="narrow">
+ <HudSegmented label="Time scale" value={String(hud.scale)} options={SCALE_OPTIONS} onChange={value => session.setScale(Number(value))}/>
+ </HudMenu>
+ {playing && <HudButton aria-pressed onClick={walk}>{S.stopWalking}</HudButton>}
+ {!playing && camera === 'tour' && <HudButton aria-pressed onClick={() => control()?.stopTour()}>{S.stopTour}</HudButton>}
+ {!playing && camera === 'follow' && <HudButton onClick={() => control()?.unfollow()}>{S.stopFollowing}</HudButton>}
+ {!playing && <HudMenu label="View">
+ {camera === 'orbit' && <HudSegmented label="Mode" value={hud.mode} options={MODE_OPTIONS} onChange={value => session.setMode(value as FabMode)}/>}
+ {camera === 'orbit' && <HudSegmented label="View" value={hud.view} options={VIEW_OPTIONS} onChange={value => session.setView(value as ViewName)}/>}
+ {hud.floor?.followLot !== null && hud.floor?.followLot !== undefined && <HudButton onClick={() => control()?.follow(hud.floor!.followLot!)}>Follow floor transfer</HudButton>}
+ <HudButton onClick={walk}>{S.walk}</HudButton>
+ {camera !== 'tour' && <HudButton onClick={() => control()?.startTour()}>{S.tour}</HudButton>}
+ {camera !== 'follow' && <HudButton aria-expanded={!!hud.picker} aria-controls="ff-picker"
+ onClick={() => (hud.picker ? control()?.closePicker() : control()?.openPicker())}>{S.follow}</HudButton>}
+ </HudMenu>}
+ <HudMenu label="More">
+ {playing && <HelpOverlay label={S.controls} desktop={S.helpKeyboard} touch={S.helpTouch}/>}
+ <HudButton ref={aboutTrigger} aria-expanded={hud.about} aria-controls="ff-about" onClick={() => session.setAbout(!hud.about)}>About this model</HudButton>
+ <CreditsPanel label="Credits"/>
+ </HudMenu>
+ <HudHideButton/>
+ </HudToolbar>
{hud.about && <HudPanel id="ff-about" className="ff-about" role="region" aria-label={about.title} data-ks-dismiss-panel>
<h2>{about.title}</h2>
{about.sections.map(section => <section key={section.heading}><h3>{section.heading}</h3><p>{section.body}</p></section>)}
@@ -120,10 +143,16 @@ export function FoundryHud({ leading }: { leading?: ReactNode } = {}) {
</div>
<div className="ff-bottom">
<HudPanel className="ff-status" aria-label="Fab status" aria-live="off">
- <div className="ff-mode">{lines.mode}</div>
- {lines.synthetic && <div className="ff-syn">{lines.synthetic}</div>}
- {hud.kpis && <ul>{kpiLines(hud.kpis).map(line => <li key={line.slice(0, 8)}>{line}</li>)}</ul>}
- {hud.floor && <p className="ff-floor-status">{hud.floor.active}<br/>{hud.floor.delivered} delivered · {hud.floor.collected} collected · {hud.floor.queued} queued</p>}
+ <button type="button" className="ff-head" aria-expanded={details} aria-controls="ff-details" onClick={() => setDetails(!details)}>
+ <span className="ff-mode">{lines.mode}</span>
+ {lines.synthetic && <span className="ff-syn">{lines.synthetic}</span>}
+ <span className="ff-caret" aria-hidden="true"/>
+ </button>
+ <div id="ff-details" className="ff-details" hidden={!details}>
+ {location && <div className="ff-syn fc-interior-location">{location}</div>}
+ {hud.kpis && <ul>{kpiLines(hud.kpis).map(line => <li key={line.slice(0, 8)}>{line}</li>)}</ul>}
+ {hud.floor && <p className="ff-floor-status">{hud.floor.active}<br/>{hud.floor.delivered} delivered · {hud.floor.collected} collected · {hud.floor.queued} queued</p>}
+ </div>
</HudPanel>
<div className="ff-dock">
{hud.tour && <HudPanel className="ff-info ff-tour" role="region" aria-label="Tour">
diff --git a/scenes/packages/foundry-floor/tests/tools/build-ff3.ts b/scenes/packages/foundry-floor/tests/tools/build-ff3.ts
index 9d260da7..d9998a48 100644
--- a/scenes/packages/foundry-floor/tests/tools/build-ff3.ts
+++ b/scenes/packages/foundry-floor/tests/tools/build-ff3.ts
@@ -59,7 +59,7 @@ async function directoryBytes(path: string): Promise<{ files: number; bytes: num
}
/** Each landmark module's chunk and rendered bytes; a landmark in no chunk is an error. */
-function landmarks(rollup: Rollup.RollupOutput): Record<string, { module: string; chunk: string; renderedBytes: number }[]> {
+export function landmarks(rollup: Rollup.RollupOutput): Record<string, { module: string; chunk: string; renderedBytes: number }[]> {
const where = new Map<string, { chunk: string; renderedBytes: number }>();
for (const o of rollup.output) if (o.type === 'chunk') for (const [id, m] of Object.entries(o.modules)) where.set(moduleLabel(id), { chunk: o.fileName, renderedBytes: m.renderedLength });
const out: Record<string, { module: string; chunk: string; renderedBytes: number }[]> = {};
@@ -74,7 +74,7 @@ function landmarks(rollup: Rollup.RollupOutput): Record<string, { module: string
}
/** Every chunk against the frozen ceiling: bytes and gzip, and their share of it in percent. */
-function againstCeiling(c: { bytes: number; gzipBytes: number }) {
+export function againstCeiling(c: { bytes: number; gzipBytes: number }) {
return {
bytes: c.bytes, gzipBytes: c.gzipBytes, withinCeiling: c.bytes <= CEILING.bytes && c.gzipBytes <= CEILING.gzipBytes,
percentOfCeiling: Math.round(c.bytes / CEILING.bytes * 10000) / 100, percentOfGzipCeiling: Math.round(c.gzipBytes / CEILING.gzipBytes * 10000) / 100,
diff --git a/scenes/packages/foundry-floor/tests/tools/rebuild-code.ts b/scenes/packages/foundry-floor/tests/tools/rebuild-code.ts
new file mode 100644
index 00000000..8b760ea7
--- /dev/null
+++ b/scenes/packages/foundry-floor/tests/tools/rebuild-code.ts
@@ -0,0 +1,104 @@
+// Rebuilds the Foundry Floor page code against an already sealed pack, for a code-only change (a HUD edit, say).
+// build-ff3.ts restages the pack from the authors' Kiln libraries, which a checkout without them cannot do. This tool
+// never stages: it takes a sealed standalone (the site's pinned input by default), checks its pack against the sealed
+// receipt, builds the current source in public mode, copies the pack unchanged and writes a new public receipt whose
+// code fields are measured here and whose pack fields are carried from the sealed receipt.
+// The output is dist/revision2-code/standalone. It is a build, not a qualification: no browser check runs here.
+// Run from the scenes root:
+// ./scripts/toolchain-run.ps1 packages/foundry-floor/tests/tools/rebuild-code.ts [sealed standalone directory]
+import { cp, readdir, readFile, rm, stat, writeFile } from 'node:fs/promises';
+import { createHash } from 'node:crypto';
+import { relative, resolve } from 'node:path';
+import { build } from 'vite';
+import type { Rollup } from 'vite';
+import { sceneStandaloneConfig } from '../../../scene-kit/src/build/index.ts';
+import { auditLicenses, renderNotices } from '../../../../scripts/check-licenses.ts';
+import { PACKAGE_ROOT, SCENES_ROOT } from './owned.ts';
+import { CEILING } from './build.ts';
+import { chunkRecords } from './build-campus.ts';
+import type { ChunkRecord } from './build-campus.ts';
+import { againstCeiling, landmarks } from './build-ff3.ts';
+import { writePublicReceipt } from './public-receipt';
+
+const PAGE_ROOT = resolve(PACKAGE_ROOT, 'standalone-campus');
+const DIST = resolve(PACKAGE_ROOT, 'dist/revision2-code');
+
+async function directoryBytes(path: string): Promise<{ files: number; bytes: number }> {
+ let files = 0, bytes = 0;
+ for (const entry of await readdir(path, { withFileTypes: true })) {
+ const full = resolve(path, entry.name);
+ if (entry.isDirectory()) { const inner = await directoryBytes(full); files += inner.files; bytes += inner.bytes; }
+ else { files++; bytes += (await stat(full)).size; }
+ }
+ return { files, bytes };
+}
+
+interface SealedReceipt {
+ mode: string; release: string; packSha256: string; stagedFiles: number; stagedBytes: number;
+ startupFetch: unknown; deferredFetch: unknown; rule: string;
+ ffc1: { record: string; startupCode: { bytes: number; gzipBytes: number }; exteriorCode: { bytes: number; gzipBytes: number } } | null;
+ moversChunk: { note: string };
+}
+
+export async function rebuildCode(sealed: string, options: { quiet?: boolean } = {}) {
+ const receipt = JSON.parse(await readFile(resolve(sealed, 'bundle-public.json'), 'utf8')) as SealedReceipt;
+ if (receipt.mode !== 'public') throw new Error('Expected a sealed public receipt');
+ const packSha256 = createHash('sha256').update(await readFile(resolve(sealed, 'assets/pack.json'))).digest('hex');
+ if (packSha256 !== receipt.packSha256) throw new Error('Sealed pack differs from its receipt');
+ const output = resolve(DIST, 'standalone');
+ await rm(DIST, { recursive: true, force: true });
+ const built = await build({ ...sceneStandaloneConfig({ root: PAGE_ROOT, outDir: output, mode: 'public' }), configFile: false, logLevel: options.quiet ? 'warn' : 'info' });
+ const rollup = (Array.isArray(built) ? built[0] : built) as Rollup.RollupOutput;
+ const chunks = await chunkRecords(output, rollup);
+ const where = landmarks(rollup);
+ // The pack is every sealed asset except the sealed build's own code chunks.
+ let stagedFiles = 0, stagedBytes = 0;
+ for (const entry of await readdir(resolve(sealed, 'assets'), { withFileTypes: true })) {
+ if (entry.isFile() && /\.(?:js|css)$/.test(entry.name)) continue;
+ const from = resolve(sealed, 'assets', entry.name);
+ await cp(from, resolve(output, 'assets', entry.name), { recursive: true });
+ const size = entry.isDirectory() ? await directoryBytes(from) : { files: 1, bytes: (await stat(from)).size };
+ stagedFiles += size.files; stagedBytes += size.bytes;
+ }
+ if (stagedFiles !== receipt.stagedFiles || stagedBytes !== receipt.stagedBytes) throw new Error(`Sealed pack is ${stagedFiles} files / ${stagedBytes} B; its receipt records ${receipt.stagedFiles} / ${receipt.stagedBytes}`);
+ await writeFile(resolve(output, 'serve.mjs'), await readFile(resolve(SCENES_ROOT, 'scripts/static-server.mjs'), 'utf8'));
+ const graph = JSON.parse(await readFile(resolve(output, 'bundle-modules.json'), 'utf8')) as { modules: string[] };
+ const licenses = auditLicenses(SCENES_ROOT, graph.modules);
+ if (licenses.problems.length) throw new Error(licenses.problems.join('\n'));
+ await writeFile(resolve(output, 'THIRD-PARTY-NOTICES.txt'), renderNotices(licenses.records));
+ const total = await directoryBytes(output);
+ const html = await readFile(resolve(output, 'index.html'));
+ const sum = (role: ChunkRecord['role']) => chunks.filter(c => c.role === role).reduce((s, c) => ({ bytes: s.bytes + c.bytes, gzipBytes: s.gzipBytes + c.gzipBytes }), { bytes: 0, gzipBytes: 0 });
+ const startupCode = sum('startup'), exteriorCode = sum('exterior'), interiorCode = sum('interior');
+ const initialCode = { bytes: startupCode.bytes + exteriorCode.bytes, gzipBytes: startupCode.gzipBytes + exteriorCode.gzipBytes };
+ const moversChunk = [...new Set(where.movers!.map(m => m.chunk))];
+ const withinCeiling = initialCode.bytes <= CEILING.bytes && initialCode.gzipBytes <= CEILING.gzipBytes;
+ const record = writePublicReceipt(output, resolve(DIST, 'receipt/bundle-public.json'), {
+ mode: 'public', output: relative(PACKAGE_ROOT, output).replace(/\\/g, '/'), page: relative(PACKAGE_ROOT, PAGE_ROOT).replace(/\\/g, '/'), release: receipt.release, built: new Date().toISOString(),
+ chunks: chunks.map(c => ({ ...c, ceiling: againstCeiling(c) })),
+ startupCode, exteriorCode, interiorCode, initialCode, initialChunks: chunks.filter(c => c.role !== 'interior').map(c => c.name),
+ codeBytes: initialCode.bytes + interiorCode.bytes, codeGzipBytes: initialCode.gzipBytes + interiorCode.gzipBytes,
+ landmarks: where,
+ moversChunk: { chunks: moversChunk, role: chunks.filter(c => moversChunk.includes(c.name)).map(c => c.role), note: receipt.moversChunk.note },
+ ffc1: receipt.ffc1 ? {
+ record: receipt.ffc1.record, startupCode: receipt.ffc1.startupCode, exteriorCode: receipt.ffc1.exteriorCode,
+ startupChange: { bytes: startupCode.bytes - receipt.ffc1.startupCode.bytes, gzipBytes: startupCode.gzipBytes - receipt.ffc1.startupCode.gzipBytes },
+ exteriorChange: { bytes: exteriorCode.bytes - receipt.ffc1.exteriorCode.bytes, gzipBytes: exteriorCode.gzipBytes - receipt.ffc1.exteriorCode.gzipBytes },
+ } : null,
+ htmlBytes: html.length, stagedFiles, stagedBytes, startupFetch: receipt.startupFetch, deferredFetch: receipt.deferredFetch,
+ outputFiles: total.files, outputBytes: total.bytes, licenses: licenses.records.length, packSha256,
+ codeRebuild: 'Code rebuilt against the sealed pack by tests/tools/rebuild-code.ts. Pack, staged and fetch fields are carried from the sealed receipt; the pack was not restaged.',
+ ceiling: CEILING, rule: receipt.rule, withinCeiling,
+ headroom: { bytes: CEILING.bytes - initialCode.bytes, gzipBytes: CEILING.gzipBytes - initialCode.gzipBytes, percentOfCeiling: Math.round(initialCode.bytes / CEILING.bytes * 10000) / 100, percentOfGzipCeiling: Math.round(initialCode.gzipBytes / CEILING.gzipBytes * 10000) / 100 },
+ startupAndExterior: againstCeiling(initialCode),
+ });
+ if (!withinCeiling) throw new Error(`initial code ${initialCode.bytes} B / ${initialCode.gzipBytes} B gzip exceeds the frozen D-15 ceiling ${CEILING.bytes} B / ${CEILING.gzipBytes} B`);
+ return record;
+}
+
+if (import.meta.main) {
+ const sealed = resolve(process.argv[2] ?? resolve(SCENES_ROOT, '.cache/site-inputs/foundry-floor/standalone'));
+ const record = await rebuildCode(sealed, { quiet: true });
+ console.log(JSON.stringify({ output: record.output, initialCode: record.initialCode, codeBytes: record.codeBytes, codeGzipBytes: record.codeGzipBytes, outputFiles: record.outputFiles, outputBytes: record.outputBytes, packSha256: record.packSha256 }));
+ for (const c of record.chunks) console.log(` ${c.role.padEnd(8)} ${c.kind.padEnd(13)} ${String(c.bytes).padStart(9)} B ${String(c.gzipBytes).padStart(8)} B gzip ${c.name}`);
+}
diff --git a/scenes/packages/golden-gate/src/ui/GoldenGateHud.tsx b/scenes/packages/golden-gate/src/ui/GoldenGateHud.tsx
index e8a1cf66..08ba8203 100644
--- a/scenes/packages/golden-gate/src/ui/GoldenGateHud.tsx
+++ b/scenes/packages/golden-gate/src/ui/GoldenGateHud.tsx
@@ -1,5 +1,5 @@
import { useEffect, useId, useMemo, useRef, useState } from 'react';
-import { CameraButtons, CreditsPanel, HelpOverlay, HudButton, HudSegmented, StatusLine, TouchButtons, useHud, useInput, usePanelEscape, usePlayMode, useReducedMotion, useSceneRootRef, VirtualJoystick } from '@kiln-scenes/scene-kit';
+import { CameraButtons, CreditsPanel, HelpOverlay, HudButton, HudHideButton, HudMenu, HudSegmented, HudToolbar, StatusLine, TouchButtons, useHud, useInput, usePanelEscape, usePlayMode, useReducedMotion, useSceneRootRef, VirtualJoystick } from '@kiln-scenes/scene-kit';
import type { CreditEntry, TouchButtonDef } from '@kiln-scenes/scene-kit';
import { useGoldenGateSession } from '../state';
import { PRESET_LABELS, PRESET_ORDER } from '../presets';
@@ -49,17 +49,22 @@ export function GoldenGateHud() {
// Layout in ./styles.ts: sized by the HUD's own width, with the kit's help and credits panels sized against the whole HUD (GG-007).
return <div className="gg-hud">
<style>{GG_HUD_CSS}</style>
- <div className="gg-top"><div className="ks-toolbar">
- <HudSegmented label={GG_STRINGS.light} value={hud.preset} options={presetOptions} onChange={value => session.presets?.set(value, { immediate: reduced || hud.paused })}/>
- {!playing && (hud.flight
- ? <HudButton onClick={() => session.camera?.stopFlight()}>{GG_STRINGS.flyoverStop}</HudButton>
- : <HudButton ref={menuTrigger} aria-expanded={menu} aria-controls={menuId} onClick={() => setMenu(!menu)}>{GG_STRINGS.flyovers}</HudButton>)}
- <HudButton data-ks-preserve-path aria-pressed={hud.paused} onClick={() => session.motion.setPaused(!hud.paused)}>{hud.paused ? GG_STRINGS.resumeMotion : GG_STRINGS.pauseMotion}</HudButton>
- {overview && touchLayout && <HudButton onClick={() => session.orbit.current?.reset()}>{GG_STRINGS.resetView}</HudButton>}
+ <div className="gg-top"><HudToolbar>
+ {/* Three groups: what to look at (light, flyovers, reset), the drive, and everything secondary. */}
+ <HudMenu label={GG_STRINGS.view} collapse="narrow">
+ <HudSegmented label={GG_STRINGS.light} value={hud.preset} options={presetOptions} onChange={value => session.presets?.set(value, { immediate: reduced || hud.paused })}/>
+ {overview && <HudButton ref={menuTrigger} aria-expanded={menu} aria-controls={menuId} onClick={() => setMenu(!menu)}>{GG_STRINGS.flyovers}</HudButton>}
+ {overview && touchLayout && <HudButton onClick={() => session.orbit.current?.reset()}>{GG_STRINGS.resetView}</HudButton>}
+ </HudMenu>
+ {!playing && hud.flight && <HudButton onClick={() => session.camera?.stopFlight()}>{GG_STRINGS.flyoverStop}</HudButton>}
<HudButton onClick={drive}>{playing ? GG_STRINGS.leaveCar : GG_STRINGS.drive}</HudButton>
- <HelpOverlay label={GG_STRINGS.controls} desktop={GG_STRINGS.helpKeyboard} touch={GG_STRINGS.helpTouch}/>
- <CreditsPanel label={GG_STRINGS.credits} credits={[TRADEMARK_ENTRY, ...(session.world?.credits ?? [])]}/>
- </div>
+ <HudMenu label={GG_STRINGS.more} preservePath>
+ <HudButton aria-pressed={hud.paused} onClick={() => session.motion.setPaused(!hud.paused)}>{hud.paused ? GG_STRINGS.resumeMotion : GG_STRINGS.pauseMotion}</HudButton>
+ <HelpOverlay label={GG_STRINGS.controls} desktop={GG_STRINGS.helpKeyboard} touch={GG_STRINGS.helpTouch}/>
+ <CreditsPanel label={GG_STRINGS.credits} credits={[TRADEMARK_ENTRY, ...(session.world?.credits ?? [])]}/>
+ </HudMenu>
+ <HudHideButton/>
+ </HudToolbar>
{menu && !playing && !hud.flight && <div id={menuId} className="ks-panel gg-flights" role="group" aria-label={GG_STRINGS.flyovers} data-ks-dismiss-panel>
{FLIGHT_NAMES.map(name => {
const needsFog = name === 'fog-roll' && hud.preset !== 'fog';
diff --git a/scenes/packages/golden-gate/src/ui/strings.ts b/scenes/packages/golden-gate/src/ui/strings.ts
index aeaf884c..78db3ad4 100644
--- a/scenes/packages/golden-gate/src/ui/strings.ts
+++ b/scenes/packages/golden-gate/src/ui/strings.ts
@@ -4,6 +4,7 @@ export const GG_STRINGS = {
graphics: 'Starting graphics…',
build: 'Building the scene…',
firstFrame: 'Almost ready…',
+ view: 'View', more: 'More',
light: 'Light',
flyovers: 'Flyovers',
flyoverStop: 'Stop flyover',
diff --git a/scenes/packages/scene-kit/src/ui/index.tsx b/scenes/packages/scene-kit/src/ui/index.tsx
index bcdb4302..4c18d631 100644
--- a/scenes/packages/scene-kit/src/ui/index.tsx
+++ b/scenes/packages/scene-kit/src/ui/index.tsx
@@ -1,5 +1,5 @@
-import { useEffect, useId, useRef, useState, useSyncExternalStore } from 'react';
-import type { ButtonHTMLAttributes, HTMLAttributes, JSX, ReactNode, Ref, RefObject } from 'react';
+import { createContext, useContext, useEffect, useId, useMemo, useRef, useState, useSyncExternalStore } from 'react';
+import type { ButtonHTMLAttributes, HTMLAttributes, JSX, KeyboardEvent as ReactKeyboardEvent, ReactNode, Ref, RefObject } from 'react';
import type { CreditEntry } from '../assets';
import { useRuntime } from '../internal/runtime';
import { useSystem } from '../lifecycle';
@@ -34,7 +34,51 @@ export function useHud<T extends object>(store?: HudStore<T>): T {
const runtime = useRuntime(), value = store ?? runtime.hud as unknown as HudStore<T>;
return useSyncExternalStore(value.subscribe, value.getSnapshot, value.getSnapshot);
}
-export function HudLayer(p: HTMLAttributes<HTMLDivElement>): JSX.Element { return <div {...p} className={`ks-hud ${p.className ?? ''}`} />; }
+/** Returns keyboard focus to the scene root so Space, Enter and the play keys reach the scene, not the last button. */
+function focusSceneRoot(from: Element | null): void { (from?.closest('.ks-root') as HTMLElement | null)?.focus({ preventScroll: true }); }
+const HudVisibility = createContext<{ hidden: boolean; setHidden(value: boolean): void } | null>(null);
+/**
+ * The HUD layer owns one visibility switch: `HudHideButton` hides every control except the touch play controls
+ * (joystick and touch buttons), and the layer then shows a single Show controls button in the toolbar's corner.
+ */
+export function HudLayer(p: HTMLAttributes<HTMLDivElement>): JSX.Element {
+ const [hidden, setHidden] = useState(false), visibility = useMemo(() => ({ hidden, setHidden }), [hidden]);
+ return <HudVisibility.Provider value={visibility}><div {...p} className={`ks-hud ${p.className ?? ''}`} data-ks-hidden={hidden ? '' : undefined}>
+ {p.children}
+ {hidden && <HudButton className="ks-hud-show" data-ks-preserve-path="" onClick={event => { setHidden(false); focusSceneRoot(event.currentTarget); }}>Show controls</HudButton>}
+ </div></HudVisibility.Provider>;
+}
+/** Hides the HUD (see `HudLayer`). Renders nothing outside a HUD layer. */
+export function HudHideButton(p: { label?: string }): JSX.Element | null {
+ const visibility = useContext(HudVisibility);
+ if (!visibility) return null;
+ return <HudButton className="ks-hud-hide" aria-label="Hide controls" data-ks-preserve-path="" onClick={event => { focusSceneRoot(event.currentTarget); visibility.setHidden(true); }}>{p.label ?? 'Hide'}</HudButton>;
+}
+const HudMenus = createContext<{ open: string | null; setOpen(id: string | null): void } | null>(null);
+/** The scene toolbar. Its menus share one open slot, so opening one closes the other. */
+export function HudToolbar(p: HTMLAttributes<HTMLDivElement>): JSX.Element {
+ const [open, setOpen] = useState<string | null>(null), menus = useMemo(() => ({ open, setOpen }), [open]);
+ return <HudMenus.Provider value={menus}><div {...p} className={`ks-toolbar ${p.className ?? ''}`} /></HudMenus.Provider>;
+}
+/**
+ * A group of toolbar controls behind one trigger. `collapse: 'always'` keeps the group folded at every width;
+ * `'narrow'` shows the controls inline on a wide HUD and folds them when the HUD is narrow (kit stylesheet, by the
+ * HUD's own width). The controls stay mounted: open, they take their own toolbar row; choosing one closes the
+ * group. Panels (`.ks-panel`) a control opens from inside the group stay visible after it closes.
+ */
+export function HudMenu(p: { label: string; value?: string; collapse?: 'always' | 'narrow'; children?: ReactNode; className?: string;
+ /** The group's controls do not interrupt a running camera path (`PathRig`). */ preservePath?: boolean }): JSX.Element {
+ const shared = useContext(HudMenus), [local, setLocal] = useState<string | null>(null), id = `ks-menu-${useId()}`;
+ const open = (shared ? shared.open : local) === id, setOpen = (value: boolean) => (shared ? shared.setOpen : setLocal)(value ? id : null);
+ const trigger = useRef<HTMLButtonElement>(null);
+ const key = (event: ReactKeyboardEvent) => { if (open) closeScenePanelOnEscape(event.nativeEvent, () => { setOpen(false); trigger.current?.focus({ preventScroll: true }); }); };
+ return <div className={`ks-menu ${p.className ?? ''}`} data-collapse={p.collapse ?? 'always'} data-open={open ? '' : undefined} data-ks-preserve-path={p.preservePath ? '' : undefined} onKeyDown={key}>
+ <HudButton ref={trigger} aria-expanded={open} aria-controls={id} aria-label={p.value ? `${p.label}: ${p.value}` : p.label} className="ks-menu-trigger" onClick={() => setOpen(!open)}>
+ {p.value ?? p.label}<span className="ks-menu-caret" aria-hidden="true"/></HudButton>
+ <i className="ks-menu-break" aria-hidden="true"/>
+ <div id={id} className="ks-menu-items" role="group" aria-label={p.label} onClick={event => { if (open && (event.target as Element).closest('button')) setOpen(false); }}>{p.children}</div>
+ </div>;
+}
export function HudButton(p: ButtonHTMLAttributes<HTMLButtonElement> & { ref?: Ref<HTMLButtonElement> }): JSX.Element { return <button type="button" {...p} className={`ks-button ${p.className ?? ''}`} />; }
export function HudPanel(p: HTMLAttributes<HTMLElement>): JSX.Element { return <section {...p} className={`ks-panel ${p.className ?? ''}`} />; }
export interface HudSegmentOption { value: string; label: string; disabled?: boolean }
diff --git a/scenes/packages/scene-kit/src/ui/styles.tsx b/scenes/packages/scene-kit/src/ui/styles.tsx
index 7a29469f..7fc86a38 100644
--- a/scenes/packages/scene-kit/src/ui/styles.tsx
+++ b/scenes/packages/scene-kit/src/ui/styles.tsx
@@ -3,7 +3,7 @@ import type { JSX } from 'react';
export const HUD_CSS = `
.ks-root{position:relative;width:100%;height:100%;overflow:hidden;overscroll-behavior:none;color:#fff;font:14px/1.45 system-ui,sans-serif}
.ks-root canvas{touch-action:none;display:block}.ks-root:focus-visible{outline:3px solid #fff;outline-offset:-4px}
-.ks-hud{position:absolute;inset:0;pointer-events:none;z-index:2}.ks-hud>*{pointer-events:auto}
+.ks-hud{position:absolute;inset:0;pointer-events:none;z-index:2;container:ks-hud/inline-size}.ks-hud>*{pointer-events:auto}
.ks-button,.ks-select{min-width:44px;min-height:44px;border:1px solid #879593;border-radius:9px;background:#142522;color:#fff;padding:10px 14px;font:inherit;cursor:pointer;touch-action:none;user-select:none}
.ks-button:hover{background:#29433d}.ks-button:disabled{opacity:.7;cursor:default}.ks-button:focus-visible,.ks-select:focus-visible{outline:3px solid #fff;outline-offset:3px}
.ks-panel{background:rgba(11,24,22,.94);color:#fff;border:1px solid #879593;border-radius:12px;padding:16px;max-width:min(420px,calc(100% - 32px));box-sizing:border-box}
@@ -11,6 +11,20 @@ export const HUD_CSS = `
.ks-toolbar{position:absolute;top:max(12px,env(safe-area-inset-top));right:max(12px,env(safe-area-inset-right));display:flex;gap:8px;flex-wrap:wrap}
.ks-help,.ks-credits{position:absolute;top:max(70px,calc(env(safe-area-inset-top) + 58px));right:max(12px,env(safe-area-inset-right));max-height:calc(100% - 100px);overflow:auto}
.ks-help-button,.ks-credits-button{pointer-events:auto}.ks-segmented{display:flex;gap:4px;flex-wrap:wrap}.ks-segmented [aria-checked=true]{background:#3b6659;border-color:#dafff2}
+.ks-menu,.ks-menu-items{display:contents}.ks-menu-break{display:none;flex-basis:100%;height:0;order:9}
+.ks-menu-caret{display:inline-block;margin-left:8px;border:4px solid transparent;border-top-color:currentColor;border-bottom:0;vertical-align:middle}
+.ks-menu[data-open]>.ks-menu-trigger{background:#3b6659;border-color:#dafff2}.ks-menu[data-open] .ks-menu-caret{transform:rotate(180deg)}
+.ks-menu[data-collapse=narrow]>.ks-menu-trigger{display:none}
+.ks-menu[data-collapse=always]:not([data-open])>.ks-menu-items>:not(.ks-panel){display:none}
+.ks-menu[data-collapse=always][data-open]>.ks-menu-break{display:block}.ks-menu[data-collapse=always][data-open]>.ks-menu-items>:not(.ks-panel){order:10}
+@container ks-hud (max-width:719px){
+ .ks-menu[data-collapse=narrow]>.ks-menu-trigger{display:inline-block}
+ .ks-menu[data-collapse=narrow]:not([data-open])>.ks-menu-items>:not(.ks-panel){display:none}
+ .ks-menu[data-collapse=narrow][data-open]>.ks-menu-break{display:block}.ks-menu[data-collapse=narrow][data-open]>.ks-menu-items>:not(.ks-panel){order:10}
+}
+.ks-hud[data-ks-hidden]>:not(.ks-hud-show){visibility:hidden}
+.ks-hud[data-ks-hidden] :is(.ks-joystick,.ks-touch-buttons){visibility:visible}
+.ks-hud-show{position:absolute;top:max(12px,env(safe-area-inset-top));right:max(12px,env(safe-area-inset-right));opacity:.72}.ks-hud-show:is(:hover,:focus-visible){opacity:1}
.ks-status{position:absolute;bottom:max(14px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);max-width:min(520px,60%);text-align:center;pointer-events:none}
.ks-status:empty{display:none}.ks-interact{position:absolute;right:max(12px,env(safe-area-inset-right));bottom:max(14px,env(safe-area-inset-bottom));min-width:48px;min-height:48px}
.ks-exit-play{position:absolute;left:max(12px,env(safe-area-inset-left));top:max(12px,env(safe-area-inset-top))}
diff --git a/scenes/packages/scene-kit/tests/ui/menu.test.tsx b/scenes/packages/scene-kit/tests/ui/menu.test.tsx
new file mode 100644
index 00000000..abdfbf6d
--- /dev/null
+++ b/scenes/packages/scene-kit/tests/ui/menu.test.tsx
@@ -0,0 +1,33 @@
+import { expect, test } from 'bun:test';
+import { renderToStaticMarkup } from 'react-dom/server';
+import { HUD_CSS, HudButton, HudHideButton, HudLayer, HudMenu, HudToolbar } from '../../src/ui';
+
+test('a HUD menu keeps its options in the document behind one labelled trigger', () => {
+ const html = renderToStaticMarkup(<HudToolbar>
+ <HudMenu label="View" value="Day" collapse="narrow"><HudButton>Day</HudButton><HudButton>Fog</HudButton></HudMenu>
+ <HudMenu label="More"><HudButton>Credits</HudButton></HudMenu>
+ </HudToolbar>);
+ expect(html).toContain('class="ks-toolbar');
+ // Closed by default; the trigger names the group and shows the current value.
+ expect(html).toMatch(/<div class="ks-menu[^"]*" data-collapse="narrow">/);
+ expect(html).toMatch(/<div class="ks-menu[^"]*" data-collapse="always">/);
+ expect(html).not.toContain('data-open');
+ expect(html).toMatch(/<button type="button" aria-expanded="false" aria-controls="[^"]+" aria-label="View: Day" class="ks-button ks-menu-trigger[^"]*">Day/);
+ expect(html).toMatch(/aria-label="More" class="ks-button ks-menu-trigger[^"]*">More/);
+ expect(html).toMatch(/<div id="[^"]+" class="ks-menu-items" role="group" aria-label="View">.*Day.*Fog/);
+ for (const label of ['Day', 'Fog', 'Credits']) expect(html).toContain(`>${label}</button>`);
+});
+
+test('the HUD layer offers Hide and renders Show controls only once hidden', () => {
+ const html = renderToStaticMarkup(<HudLayer><HudToolbar><HudHideButton/></HudToolbar></HudLayer>);
+ expect(html).toMatch(/^<div class="ks-hud[^"]*">/);
+ expect(html).toMatch(/<button type="button" class="ks-button ks-hud-hide" aria-label="Hide controls" data-ks-preserve-path="">Hide<\/button>/);
+ expect(html).not.toContain('Show controls'); expect(html).not.toContain('data-ks-hidden');
+});
+
+test('the kit stylesheet collapses menus by the HUD width and keeps touch controls while hidden', () => {
+ expect(HUD_CSS).toContain('.ks-hud{position:absolute;inset:0;pointer-events:none;z-index:2;container:ks-hud/inline-size}');
+ expect(HUD_CSS).toMatch(/@container ks-hud \(max-width:\d+px\)\{[^@]*\.ks-menu\[data-collapse=narrow\]/);
+ expect(HUD_CSS).toContain('.ks-hud[data-ks-hidden]>:not(.ks-hud-show){visibility:hidden}');
+ expect(HUD_CSS).toContain('.ks-hud[data-ks-hidden] :is(.ks-joystick,.ks-touch-buttons){visibility:visible}');
+});
diff --git a/site/scripts/capture-scene-poster.mjs b/site/scripts/capture-scene-poster.mjs
index fcd9b80f..e6130667 100644
--- a/site/scripts/capture-scene-poster.mjs
+++ b/site/scripts/capture-scene-poster.mjs
@@ -30,18 +30,40 @@ export async function servePublic(root = resolve(SITE, 'public'), port = 0, page
return { origin: `http://127.0.0.1:${server.address().port}`, close: () => new Promise((done) => server.close(done)) };
}
-/** Views a scene's own controls offer; each names the button that selects it (null keeps the opening view). */
+/**
+ * Views a scene's own controls offer; each names the button that selects it (null keeps the opening view), or
+ * the steps to take in order when the view is behind another control or reached by playing the scene: a
+ * button's label, a held key, a drag from the middle of the view, a wheel turn or a wait.
+ */
const VIEWS = {
- farm: { opening: null },
+ farm: {
+ opening: null,
+ // On foot behind Rowan: turn the camera to the pens and walk up to the sheep pen, with the cows beyond.
+ walk: ['Walk the farm', { wait: 1500 }, { key: 's', ms: 3000 }, { drag: [430, 0] }, { key: 'w', ms: 12000 }],
+ },
'golden-gate': { day: null, 'golden-hour': 'Golden hour', fog: 'Fog', drive: 'Drive the sedan' },
- 'foundry-floor': { opening: null, overview: 'Overview', gallery: 'Gallery' },
+ 'foundry-floor': { campus: 'One pair', interior: ['Enter the fab', 'Overview'] },
};
+/**
+ * Every scene is pictured by two captures, one above the other: a wide view, then a closer one. A scene's
+ * main view keeps its poster record; its other view is recorded beside it under `captures`. Foundry Floor
+ * keeps both of its views under `captures`, because its main record is the pack's rig poster.
+ */
+const MAIN_VIEW = { farm: 'opening', 'golden-gate': 'drive' };
+
/** What each captured view shows, for the image's alternative text. */
const POSTER_ALT = {
- farm: { opening: 'Farm scene with a farmhouse, barn, fields, woodland and a stream.' },
- 'foundry-floor': { opening: 'Foundry Floor scene, looking across the fab interior.', overview: 'Foundry Floor scene viewed from above.', gallery: 'The models arranged in the Foundry Floor scene.' },
+ farm: {
+ opening: 'Farm scene with a farmhouse, barn, fields, woodland and a stream.',
+ walk: 'The farmer seen from behind in the Farm scene, standing at the sheep pen fence with cows, wheat and pumpkins beyond.',
+ },
+ 'foundry-floor': {
+ campus: 'The Foundry Floor campus from above: paired fab buildings along a central road, with parking and planting at the near entrance.',
+ interior: 'The Foundry Floor fab interior from above: process tools in bays, joined by the loops of an overhead transport track.',
+ },
'golden-gate': {
+ day: 'The Golden Gate Bridge scene from above the water by day: the full span between its two towers, with the headlands on either side.',
drive: 'A blue sedan driving across the deck of the Golden Gate Bridge scene, with traffic around it and both towers ahead.',
},
};
@@ -75,13 +97,21 @@ export async function captureScenePoster({ scene = 'golden-gate', view = 'day',
page.on('pageerror', (error) => problems.push(error.message));
await page.goto(`${server.origin}/${scene === 'farm' ? 'farm-poster.html' : `scene-runtime/${scene}/frame.html`}`, { waitUntil: 'load' });
await page.waitForFunction(() => (document.body.dataset.ready === 'true' || document.getElementById('page-status')?.dataset.state === 'ready' || document.getElementById('page-status')?.textContent.trim() === '') && document.querySelector('.ks-root canvas'), { timeout: 180_000 });
- if (buttons[view]) {
- const pressed = await page.evaluate((label) => {
- const button = [...document.querySelectorAll('button')].find((candidate) => candidate.textContent.trim() === label);
- button?.click();
- return Boolean(button);
- }, buttons[view]);
- if (!pressed) throw new Error(`The scene has no "${buttons[view]}" control`);
+ const middle = [size.width / 2, size.height / 2];
+ for (const step of [buttons[view] ?? []].flat()) {
+ if (typeof step !== 'string') {
+ if (step.wait) await new Promise((done) => setTimeout(done, step.wait));
+ if (step.key) { await page.focus('.ks-root'); await page.keyboard.down(step.key); await new Promise((done) => setTimeout(done, step.ms)); await page.keyboard.up(step.key); }
+ if (step.drag) { await page.mouse.move(...middle); await page.mouse.down(); await page.mouse.move(middle[0] + step.drag[0], middle[1] + step.drag[1], { steps: 10 }); await page.mouse.up(); }
+ if (step.wheel) { await page.mouse.move(...middle); await page.mouse.wheel({ deltaY: step.wheel }); }
+ await new Promise((done) => setTimeout(done, 300));
+ continue;
+ }
+ const label = step;
+ // A control behind another one (the interior's views) appears only once the first has loaded its part.
+ const button = await page.waitForFunction((text) => [...document.querySelectorAll('button')].find((candidate) => candidate.textContent.trim() === text && !candidate.disabled), { timeout: 60_000 }, label).catch(() => null);
+ if (!button) throw new Error(`The scene has no "${label}" control`);
+ await button.evaluate((element) => element.click());
}
await new Promise((done) => setTimeout(done, settleMs));
// The scene's controls and any focus ring are chrome, not scene: hide them for the poster.
@@ -120,7 +150,7 @@ export async function recordScenePoster({ scene, view, png, browser, mirror, sit
await writeJson(planFile, { ...plan, images: upsertBy(plan.images, 'inputPath', image) });
const mediaFile = join(site, 'src/data/scene-media.json');
const media = await readJson(mediaFile).catch(() => ({}));
- media[scene] = {
+ const record = {
poster: image,
capture: {
tool: 'scripts/capture-scene-poster.mjs',
@@ -135,8 +165,11 @@ export async function recordScenePoster({ scene, view, png, browser, mirror, sit
pngSha256: pin.sha256,
},
};
+ // A scene's main view is its poster; every other view is kept under its name, beside whatever else it records.
+ if (MAIN_VIEW[scene] === view) media[scene] = { ...media[scene], ...record };
+ else media[scene] = { ...media[scene], captures: { ...media[scene]?.captures, [view]: record } };
await writeJson(mediaFile, media);
- if (scene === 'farm') {
+ if (scene === 'farm' && MAIN_VIEW.farm === view) {
const farmFile = join(site, 'src/data/packs/farm.json');
const farm = await readJson(farmFile);
farm.scene.poster = image;
@@ -151,7 +184,7 @@ async function main(argv = process.argv.slice(2), env = process.env) {
const view = option('--view', 'drive');
const record = argv.includes('--record');
const out = option('--out');
- if (!out && !record) throw new Error('Usage: node scripts/capture-scene-poster.mjs (--out file.png | --record [--mirror DIR]) [--scene golden-gate] [--view day|golden-hour|fog|drive] [--settle 6000] [--port 0]');
+ if (!out && !record) throw new Error('Usage: node scripts/capture-scene-poster.mjs (--out file.png | --record [--mirror DIR]) [--scene golden-gate] [--view day|golden-hour|fog|drive; foundry-floor: campus|interior] [--settle 6000] [--port 0]');
const { png, browser } = await captureScenePoster({ scene, view, settleMs: Number(option('--settle', 6000)), port: Number(option('--port', 0)) });
if (out) {
await mkdir(dirname(resolve(out)), { recursive: true });
diff --git a/site/scripts/commons.test.ts b/site/scripts/commons.test.ts
index a60ab212..f3c51539 100644
--- a/site/scripts/commons.test.ts
+++ b/site/scripts/commons.test.ts
@@ -77,7 +77,7 @@ describe('Commons catalog bindings', () => {
expect(result.clips).toEqual(['Open', 'ArticulationProbe']);
expect(result.partPaths).toEqual(['root/first', 'root/second']);
});
- test('selected r36 retains the accepted floor and 22 approvals without inheriting r34 acceptance', () => {
+ test('selected r36 retains the accepted floor and all 23 approvals without inheriting r34 acceptance', () => {
const house = farm.assets.find((asset) => asset.id === 'farmhouse');
expect(farm.revision).toBe('r36-local-review');
expect(house?.revisionId).toBe(farm.floorRevision.asset.revisionId);
@@ -85,9 +85,9 @@ describe('Commons catalog bindings', () => {
expect(house?.metrics.triangles).toBe(4080);
expect(house?.review.ownerAccepted).toBe(true);
expect(farm.floorRevision.ownerAccepted).toBe(true);
- expect(farm.ownerReview.acceptedAssets).toBe(22);
- expect(farm.deliveryReview.acceptedAssets).toBe(22);
- expect(farm.ownerApprovedAssets).toBe(22);
+ expect(farm.ownerReview.acceptedAssets).toBe(23);
+ expect(farm.deliveryReview.acceptedAssets).toBe(23);
+ expect(farm.ownerApprovedAssets).toBe(23);
expect(farm.fullPackAccepted).toBe(false);
expect(farm.deliveryHistory.find((entry) => entry.revision === 'r34')?.fullPackAccepted).toBe(true);
expect(farm.deliveryHistory.find((entry) => entry.revision === 'r34')?.acceptedAssets).toBe(23);
diff --git a/site/scripts/farm-current-presentation.test.ts b/site/scripts/farm-current-presentation.test.ts
index f993b7d1..4758c8bf 100644
--- a/site/scripts/farm-current-presentation.test.ts
+++ b/site/scripts/farm-current-presentation.test.ts
@@ -4,22 +4,26 @@ import farm from '../src/data/packs/farm.json';
test('current Farm pack instructions describe the review camera and download', async () => {
const page = await readFile(new URL('../src/pages/packs/[slug].astro', import.meta.url), 'utf8');
- expect(page).toMatch(/walk in first person/i);
- expect(page).toMatch(/click.*capture/i);
+ expect(page).toMatch(/walk in third person/i);
+ expect(page).toMatch(/drag to look/i);
expect(page).toContain('Escape');
- expect(page).not.toMatch(/walk in third person|mobile walking or\s+driving are not included|0\.186\.1/);
+ expect(page).toMatch(/download is an earlier build, which walks in\s+first\s+person/);
+ expect(page).not.toMatch(/click.*capture|fixed eye height|mobile walking or\s+driving are not included|0\.186\.1/);
expect(page).not.toContain('High effort was requested throughout');
expect(page).toContain('node scene/serve.mjs --verify');
});
-test('farmer child waits for owner review while all 22 retained revisions keep their approval', () => {
+test('farmer child is owner accepted alongside the 22 retained approvals', () => {
const farmer = farm.assets.find(asset => asset.id === 'farmer')!;
expect(farm.revision).toBe('r36-local-review');
expect(farmer.revisionId).toBe('r_70907c7fd97249ce807e9948613882cd');
expect(farmer.parentRevision).toBe('r_654c203b0ed3438c93d19b6709bef9f6');
- expect(farmer.review).toMatchObject({ ownerAccepted: false, status: 'awaiting-owner-review' });
+ expect(farmer.review).toMatchObject({ ownerAccepted: true, status: 'accepted', recordedAt: '2026-10-01' });
expect(farmer.previousOwnerReview.ownerAccepted).toBe(true);
expect(farm.assets.filter(asset => asset.id !== 'farmer').every(asset => asset.review.ownerAccepted)).toBe(true);
- expect(farm.ownerReview.revisions.filter(row => row.ownerAccepted)).toHaveLength(22);
+ expect(farm.ownerReview.revisions.filter(row => row.ownerAccepted)).toHaveLength(23);
+ expect(farm.ownerReview.status).toBe('all-current-revisions-accepted');
+ // Every asset is approved; the sealed package's own acceptance flag is a separate record and stays as sealed.
+ expect(farm.deliveryReview).toMatchObject({ acceptedAssets: 23, fullPackAccepted: false });
expect(farm.deliveryHistory.find(row => row.revision === 'r34')).toMatchObject({ fullPackAccepted: true, acceptedAssets: 23 });
});
diff --git a/site/scripts/rig-posters.mjs b/site/scripts/rig-posters.mjs
index 1ce1f662..67eeb035 100644
--- a/site/scripts/rig-posters.mjs
+++ b/site/scripts/rig-posters.mjs
@@ -103,6 +103,7 @@ export async function recordFoundryFloorScenePoster({ posters, data = DATA }) {
const file = join(data, 'scene-media.json');
const media = await readJson(file);
media[FOUNDRY_FLOOR_ID] = {
+ ...media[FOUNDRY_FLOOR_ID],
poster: rigPosterImage(record, FOUNDRY_FLOOR_SCENE_POSTER.alt),
rig: { subject: FOUNDRY_FLOOR_SCENE_POSTER.slug, revisionId: record.revisionId, glb: record.glb, view: record.view, rendererId: record.rendererId, pngBytes: record.bytes, pngSha256: record.sha256 },
};
diff --git a/site/scripts/scene-copy.test.ts b/site/scripts/scene-copy.test.ts
index e510dbe2..2c050e2b 100644
--- a/site/scripts/scene-copy.test.ts
+++ b/site/scripts/scene-copy.test.ts
@@ -8,7 +8,7 @@ const strings = (value: unknown): string[] =>
const touchText = strings(farmTouchCopy).join('\n');
describe('Farm touch copy', () => {
- test('describes first-person touch walking and mode-specific tractor zoom', () => {
+ test('describes third-person touch walking with pinch zoom on foot and in the tractor', () => {
expect(touchText).toMatch(/joystick/i);
expect(touchText).toMatch(/push it forward to accelerate/);
expect(touchText).toMatch(/pull it back to brake/);
@@ -16,16 +16,14 @@ describe('Farm touch copy', () => {
expect(touchText).toMatch(/[Dd]rag one finger to look/);
expect(touchText).toMatch(/[Pp]inch to zoom/);
expect(touchText).toMatch(/One tap target/);
- expect(touchText).toMatch(/first person/);
+ expect(touchText).toMatch(/third person/);
+ expect(touchText).not.toMatch(/first person|fixed eye height/);
expect(touchText).toMatch(/[Pp]inch to zoom.*(?:tractor|driving)/);
- expect(touchText).toMatch(/Walking keeps a fixed eye height/);
});
- test('distinguishes automatic device tiers from historical measurements', () => {
+ test('describes the automatic device tiers', () => {
expect(touchText).toMatch(/Galaxy S24\+ class starts on the high tier when its browser uses WebGPU/);
expect(touchText).toMatch(/Galaxy Tab S9 FE class starts on the minimal tier on either graphics backend/);
- expect(touchText).toMatch(/earlier.*Galaxy Tab S9 FE/i);
- expect(touchText).toMatch(/do not qualify this revision/);
});
test('does not promote old step counts or timing into the current result', () => {
@@ -34,14 +32,12 @@ describe('Farm touch copy', () => {
});
test('promises nothing for a device that was not measured', () => {
- expect(touchText).toMatch(/No physical phone or tablet has been measured for this revision/);
expect(touchText).not.toMatch(/\b(?:any|all|every) (?:phones?|tablets?|devices?)\b/i);
expect(touchText).not.toMatch(/guarantee|works on|smooth on|runs on/i);
});
- test('says the current checks used touch emulation on both backends', () => {
- expect(touchText).toMatch(/with touch emulation/);
- expect(touchText).toMatch(/WebGPU and WebGL2/);
+ test('carries no qualification or review-status notes', () => {
+ expect(touchText).not.toMatch(/qualif|touch emulation|owner review|has been measured/i);
});
});
@@ -49,7 +45,7 @@ describe('Farm scene device line and download limits', () => {
test('the line under Explore offers touch play, not orbit viewing only', () => {
expect(farmScene.copy.devices).toMatch(/[Tt]ouch play/);
expect(farmScene.copy.devices).not.toMatch(/orbit/i);
- expect(farmScene.copy.devices).toMatch(/qualification notes are listed below/);
+ expect(farmScene.copy.devices).not.toMatch(/qualif/i);
expect(farmScene.copy.devices).not.toMatch(/phones? and tablets?/i);
expect(farmScene.copy.devices).not.toMatch(/\d/);
});
diff --git a/site/scripts/scene-pack.test.ts b/site/scripts/scene-pack.test.ts
index 46a7b4ee..7a1afd0d 100644
--- a/site/scripts/scene-pack.test.ts
+++ b/site/scripts/scene-pack.test.ts
@@ -304,7 +304,7 @@ describe('scene pack catalog record', () => {
expect(record.three).toBe(pkg.dependencies.three);
expect(record.totalFiles).toBe(record.sealedFiles + 3);
for (const digest of [record.packJsonSha256, record.sha256sumsSha256, record.noticesSha256, record.runtime.sha256, record.runtime.modulesSha256]) expect(digest).toMatch(/^[0-9a-f]{64}$/);
- expect(record.runtime).toMatchObject({ kind: 'frame', file: 'index-CGkQ2AbK.js', bytes: 1_721_321, gzipBytes: 517_862 });
+ expect(record.runtime).toMatchObject({ kind: 'frame', file: 'index-BDTQ3svb.js', bytes: 1_724_619, gzipBytes: 518_716 });
expect(checkCeiling('golden-gate', record.runtime).within).toBe(true);
expect(record.runtime.bytes).toBeLessThanOrEqual(CEILINGS['golden-gate'].bytes);
expect(goldenGateScene.assetBase).toBe(record.base);
@@ -321,7 +321,7 @@ describe('scene pack catalog record', () => {
// Final frozen FF3 intake verifies 85 sealed files and every initial/deferred chunk.
expect(record).toMatchObject({ sealedFiles: 85, sealedBytes: 11_519_818, packJsonSha256: '6ce49d05791bf42d21f3628237a5cf005ce9f2fa15938f0c321430d781c2c5d4' });
for (const digest of [record.packJsonSha256, record.sha256sumsSha256, record.noticesSha256, record.runtime.sha256, record.runtime.modulesSha256]) expect(digest).toMatch(/^[0-9a-f]{64}$/);
- expect(record.runtime).toMatchObject({ kind: 'frame', file: 'index-umTduCLH.js', bytes: 1_700_697, gzipBytes: 516_088, initialLoad: { bytes: 1_525_112, gzipBytes: 445_765 } });
+ expect(record.runtime).toMatchObject({ kind: 'frame', file: 'index-Y86dU6mu.js', bytes: 1_705_082, gzipBytes: 517_258, initialLoad: { bytes: 1_527_808, gzipBytes: 446_414 } });
expect(checkCeiling('foundry-floor', record.runtime).within).toBe(true);
expect(foundryFloorScene.assetBase).toBe(record.base);
expect(stagedPackDirectory(record, '/site')).toBe(resolve('/site', 'public', 'scene-packs', 'foundry-floor', 'ff3-review2'));
diff --git a/site/scripts/static-validation-core.mjs b/site/scripts/static-validation-core.mjs
index e175527c..9c8c34c5 100644
--- a/site/scripts/static-validation-core.mjs
+++ b/site/scripts/static-validation-core.mjs
@@ -146,21 +146,14 @@ export function licenceSpellingErrors(html) {
.map((match) => `Spell the noun "licence" in the site's own prose: ${JSON.stringify(match[0])}`);
}
-/** Review claims follow the exact catalog record; new local revisions never inherit prior approval. */
-export function ownerReviewErrors(html, status = 'approved') {
- const text = `${visibleText(html)} ${proseText(html)}`;
- const pending = /awaiting owner review/i.test(text);
- const approved = /owner approved/i.test(text);
- if (status === 'mixed') return [];
- if (status === 'pending') return [
- ...(!pending ? ['The candidate asset page must say "Awaiting owner review"'] : []),
- ...(approved ? ['The candidate asset page must not claim "Owner approved"'] : []),
- ];
- return pending ? ['The page says "Awaiting owner review" but its catalog record is owner approved'] : [];
+/** Owner review status stays in the catalog records; no page states it. */
+export function ownerReviewErrors(html) {
+ const match = /awaiting owner review|owner approved/i.exec(`${visibleText(html)} ${proseText(html)}`);
+ return match ? [`The page states owner review status (${JSON.stringify(match[0])}); that belongs in the catalog record, not in page copy`] : [];
}
/** The copy rules every page answers to: numbers not glued to words, the site's spelling of licence, owner status. */
-export const copyErrors = (html, reviewStatus) => [...gluedNumberErrors(html), ...licenceSpellingErrors(html), ...ownerReviewErrors(html, reviewStatus)];
+export const copyErrors = (html) => [...gluedNumberErrors(html), ...licenceSpellingErrors(html), ...ownerReviewErrors(html)];
/** Meta descriptions over this length are cut in search and share previews (content review finding 13). */
export const DESCRIPTION_WARNING_LENGTH = 160;
diff --git a/site/scripts/static-validation.test.ts b/site/scripts/static-validation.test.ts
index 55e3a72a..bc74a8c3 100644
--- a/site/scripts/static-validation.test.ts
+++ b/site/scripts/static-validation.test.ts
@@ -322,8 +322,9 @@ describe('copy rules on every page', () => {
expect(licenceSpellingErrors(html('<code>license: MIT</code>'))).toEqual([]);
});
- test('approved records must not be described as awaiting owner review', () => {
- expect(ownerReviewErrors(html('<h2>Owner approved</h2>'))).toEqual([]);
+ test('pages do not state owner review status: it stays in the catalog records', () => {
+ expect(ownerReviewErrors(html('<h2>Review views</h2><p>A model.</p>'))).toEqual([]);
+ expect(ownerReviewErrors(html('<h2>Owner approved</h2>'))).toHaveLength(1);
expect(ownerReviewErrors(html('<p>Awaiting owner review</p>'))).toHaveLength(1);
});
@@ -345,16 +346,8 @@ describe('copy rules on every page', () => {
expect(validate('It performs smoothly on every touchscreen.')).toHaveLength(1);
});
- test('new candidate records remain pending, and mixed gallery listings can show both statuses', () => {
- expect(ownerReviewErrors(html('<p>Awaiting owner review</p>'), 'pending')).toEqual([]);
- expect(ownerReviewErrors(html('<p>Owner approved</p>'), 'pending')).toHaveLength(2);
- expect(ownerReviewErrors(html('<p>A model.</p>'), 'pending')).toHaveLength(1);
- expect(ownerReviewErrors(html('<p>Owner approved</p><p>Awaiting owner review</p>'), 'mixed')).toEqual([]);
- expect(copyErrors(html('<p>Awaiting owner review</p>'), 'pending')).toEqual([]);
- });
-
test('the copy rules combine: glued numbers, licence spelling and owner status', () => {
- expect(copyErrors(html('<p>Owner approved. The licence is CC0-1.0.</p>'))).toEqual([]);
+ expect(copyErrors(html('<p>The licence is CC0-1.0.</p>'))).toEqual([]);
expect(copyErrors(html('<p>Unity 6000.2.3f1 and 6000.0.0b12.</p>'))).toEqual([]);
expect(copyErrors(html('<p>Awaiting owner review of the license, due April1935.</p>'))).toHaveLength(3);
});
diff --git a/site/scripts/validate-static.mjs b/site/scripts/validate-static.mjs
index 5d0a1b80..54e667da 100644
--- a/site/scripts/validate-static.mjs
+++ b/site/scripts/validate-static.mjs
@@ -31,18 +31,6 @@ for (const file of htmlFiles) {
pages.set(routeForFile(relative(root, file)), { file, html, ...inspectHtml(html) });
}
const foundryFloorPack = JSON.parse(await readFile(resolve(site, 'src/data/packs/foundry-floor.json'), 'utf8'));
-const reviewedCatalog = (await Promise.all(['packs/farm.json', 'packs/vehicles.json', 'standalone/golden-gate-bridge.json'].map(async (path) => {
- const record = JSON.parse(await readFile(resolve(site, 'src/data', path), 'utf8'));
- return record.assets ?? [record];
-}))).flat();
-const reviewStatusByRoute = new Map(reviewedCatalog.map((asset) => [`/gallery/${asset.slug}/`, asset.review.ownerAccepted ? 'approved' : 'pending']));
-for (const asset of foundryFloorPack.assets) {
- const shared = reviewedCatalog.some((existing) => existing.slug === asset.slug && existing.revisionId === asset.revisionId && existing.runtimeDownload.sha256 === asset.runtimeDownload.sha256);
- if (!shared) reviewStatusByRoute.set(`/gallery/foundry-floor/${asset.slug}/`, 'pending');
-}
-if ([...reviewStatusByRoute.values()].includes('pending')) reviewStatusByRoute.set('/gallery/', 'mixed');
-for (const pack of new Set(reviewedCatalog.filter((asset) => asset.pack && !asset.review.ownerAccepted).map((asset) => asset.pack)))
- reviewStatusByRoute.set(`/packs/${pack}/`, 'mixed');
const errors = [];
const add = (page, kind, message) => errors.push({ page, kind, message });
const warnings = [];
@@ -71,8 +59,7 @@ for (const [route, page] of pages) {
else seen.set(text, route);
}
if (page.h1Count !== 1) add(route, 'headings', `Expected one H1, found ${page.h1Count}`);
- // Review status comes from catalog identity, not the historical approval of an earlier asset revision.
- for (const message of copyErrors(page.html, reviewStatusByRoute.get(route))) add(route, 'copy', message);
+ for (const message of copyErrors(page.html)) add(route, 'copy', message);
if ((page.description ?? '').length > DESCRIPTION_WARNING_LENGTH) warnings.push({ page: route, kind: 'description', message: `Meta description is ${page.description.length} characters (search and share previews cut it above ${DESCRIPTION_WARNING_LENGTH})` });
if (page.language !== 'en') add(route, 'metadata', 'Missing lang="en"');
const expectedCanonical = new URL(route, ORIGIN).href;
diff --git a/site/src/components/AssetCard.astro b/site/src/components/AssetCard.astro
index 7c3b8e6a..5aac86a8 100644
--- a/site/src/components/AssetCard.astro
+++ b/site/src/components/AssetCard.astro
@@ -39,14 +39,5 @@ const Heading = headingLevel;
{imageQualification(asset.poster) && (
<p class="mt-2 text-caption text-dim">Exterior view from the parent revision.</p>
)}
- <p class="mt-2 text-caption text-dim">
- {asset.review.ownerAccepted
- ? "Owner approved"
- : asset.review.status === "changes-requested"
- ? "Earlier delivery · accepted child recorded"
- : asset.review.status === "awaiting-owner-review"
- ? "Awaiting owner review"
- : "Review in progress"}
- </p>
</a>
</article>
diff --git a/site/src/components/FoundryFloorPack.astro b/site/src/components/FoundryFloorPack.astro
index 5446eddc..59683347 100644
--- a/site/src/components/FoundryFloorPack.astro
+++ b/site/src/components/FoundryFloorPack.astro
@@ -48,7 +48,7 @@ const triangleSplit = (metrics: Asset["metrics"]) =>
<div class="mt-4 grid gap-6 border-y border-ink py-6 md:grid-cols-2">
<div>
<p class="max-w-reading">
- <strong>In production.</strong> {pack.acceptance.statement}
+ <strong>In production.</strong> The pack is still growing; models are added and revised as the scene is built.
</p>
</div>
<div>
@@ -88,7 +88,6 @@ const triangleSplit = (metrics: Asset["metrics"]) =>
{number(asset.metrics.triangles)} triangles
</p>
{(asset as RecordedAsset).lod?.form === 'MSFT_lod' && <p class="mt-1 text-caption text-dim">Optional LOD tiers included.</p>}
- {(asset as RecordedAsset).reviewStatus === 'review-candidate' && <p class="mt-1 text-caption text-dim">Local review candidate.</p>}
<p class="mt-1 font-mono text-code text-dim">
{bounds(asset.metrics.bounds)} m
</p>
@@ -180,7 +179,7 @@ const triangleSplit = (metrics: Asset["metrics"]) =>
the requested model, effort and harness below. Effort is not independently confirmed.
</p>
<dl class="mt-8 border-t border-ink">
- {authors.map((assets) => { const author = assets[0]!.author; const attribution = authorRecords[author as keyof typeof authorRecords]; const recorded = assets[0]!.attribution; const notes=recorded?.note; return (
+ {authors.map((assets) => { const author = assets[0]!.author; const attribution = authorRecords[author as keyof typeof authorRecords]; const recorded = assets[0]!.attribution; const notes=recorded?.note?.replace(/ Owner review is pending\.$/, ''); return (
<div class="grid gap-2 border-b border-rule py-4 lg:grid-cols-12">
<dt class="font-semibold lg:col-span-4">{list(assets.map((asset) => asset.name))}</dt>
<dd class="max-w-reading lg:col-span-8">{recorded ? `${recorded.author.replace(" · claude ", " · Claude Code ").replace(" · agy ", " · Antigravity CLI (agy) ").replace(" · codex ", " · Codex ")}. Requested effort: ${recorded.requestedEffort ?? "not recorded"}. Independently confirmed: not recorded.${notes ? ` ${notes}` : ""}` : attribution ? `${modelName(attribution.requestedModel)} through ${harnessName(attribution.harness)}. Requested effort: ${attribution.requestedEffort}. Independently confirmed: not recorded.` : "Model and effort not recorded in the staged author inputs."}</dd>
diff --git a/site/src/components/HeroDrawing.astro b/site/src/components/HeroDrawing.astro
index 896d3ac9..dce47911 100644
--- a/site/src/components/HeroDrawing.astro
+++ b/site/src/components/HeroDrawing.astro
@@ -90,14 +90,14 @@ const pathParts = (path: string) => path.split("/");
</div>
<ol
class:list={[
- "drawing-legend mt-3 grid gap-1 font-mono text-code",
+ "drawing-legend mt-3 grid gap-2 px-4 font-mono text-code md:px-0",
routed.length === drawing.callouts.length && "md:hidden",
]}
aria-label="Named parts in the drawing"
>
{drawing.callouts.map((callout) => (
<li class:list={["flex gap-2", !callout.legendOnly && "md:hidden"]}>
- <span class="drawing-index-static" aria-hidden="true">{callout.index}</span>
+ <span class="drawing-index-static mt-1" aria-hidden="true">{callout.index}</span>
<span class="min-w-0">
{pathParts(callout.path).map((part, index) => (
<>{index > 0 && <>/<wbr /></>}{part}</>
diff --git a/site/src/components/ScenePoster.astro b/site/src/components/ScenePoster.astro
new file mode 100644
index 00000000..35052ecf
--- /dev/null
+++ b/site/src/components/ScenePoster.astro
@@ -0,0 +1,25 @@
+---
+import type { CatalogImage } from "../lib/catalog";
+import ResponsiveImage from "./ResponsiveImage.astro";
+interface Props {
+ /** One capture, or two full captures stacked one above the other. */
+ images: readonly CatalogImage[];
+ sizes: string;
+ eager?: boolean;
+ /** Decorative inside a link that already names the scene. */
+ decorative?: boolean;
+ class?: string;
+}
+const { images, sizes, eager = false, decorative = false, class: className } = Astro.props;
+---
+
+<div class:list={[images.length > 1 && "grid gap-px bg-rule", className]}>
+ {images.map((image) => (
+ <ResponsiveImage
+ image={decorative ? { ...image, alt: "" } : image}
+ sizes={sizes}
+ eager={eager}
+ class="block w-full"
+ />
+ ))}
+</div>
diff --git a/site/src/components/SceneShell.astro b/site/src/components/SceneShell.astro
index 85c04364..25c1f248 100644
--- a/site/src/components/SceneShell.astro
+++ b/site/src/components/SceneShell.astro
@@ -1,9 +1,10 @@
---
import { sceneRuntimes } from "virtual:kiln-scenes";
import { sceneInMode, scenes, type SceneId } from "../data/scenes";
-import { imageQualification, FULL_WIDTH_IMAGE_SIZES } from "../lib/catalog";
+import { FULL_WIDTH_IMAGE_SIZES } from "../lib/catalog";
import { PACKS_ENABLED } from "../lib/config";
import PageHeader from "./PageHeader.astro";
+import ScenePoster from "./ScenePoster.astro";
interface Props {
scene: SceneId;
@@ -37,41 +38,30 @@ const stateCopy = scene.available
data-frame-title={`${scene.name} scene`}
>
<div data-intro>
- {PACKS_ENABLED && scene.posterImage && (
- <picture>
- <source
- type="image/avif"
- srcset={scene.posterImage.srcsetAvif}
- sizes={FULL_WIDTH_IMAGE_SIZES}
- />
- <img
- src={scene.poster}
- srcset={scene.posterImage.srcsetWebp}
- sizes={FULL_WIDTH_IMAGE_SIZES}
- width={scene.posterWidth}
- height={scene.posterHeight}
- alt={scene.posterAlt}
- class="w-full object-contain"
- style={`aspect-ratio:${scene.posterWidth}/${scene.posterHeight}`}
- fetchpriority="high"
- />
- </picture>
- )}
- {PACKS_ENABLED && scene.posterImage && "posterCaption" in scene && (
- <p class="bg-sheet px-6 pt-4 text-caption text-dim">{scene.posterCaption}</p>
- )}
- {PACKS_ENABLED && scene.posterImage && imageQualification(scene.posterImage) && (
- <p class="bg-sheet px-6 pt-4 text-caption text-dim">{imageQualification(scene.posterImage)}</p>
- )}
+ {/* Explore comes first so it is on screen without scrolling; the two captures follow, one above the other. */}
<div class="flex flex-wrap items-center justify-between gap-6 bg-sheet p-6">
<div class="max-w-prose">
<p>{stateCopy}</p>
<p class="mt-2 text-sm text-dim">{scene.copy.devices}</p>
+ {runtime && (
+ <p class="mt-2 flex flex-wrap gap-x-4 text-sm">
+ {scene.links.map((link) => (
+ <a class="text-dim underline decoration-rule hover:text-ember" href={`${scene.assetBase}${link.path}`}>{link.label}</a>
+ ))}
+ </p>
+ )}
</div>
<button type="button" class="btn" data-explore hidden>
Explore
</button>
</div>
+ {PACKS_ENABLED && scene.posterImage && (
+ <ScenePoster
+ images={scene.posterImages}
+ sizes={FULL_WIDTH_IMAGE_SIZES}
+ eager
+ />
+ )}
</div>
<div
data-active
@@ -81,20 +71,12 @@ const stateCopy = scene.available
hidden
class="fixed inset-0 z-50 flex flex-col overflow-auto bg-paper"
>
- <div class="scene-topbar flex shrink-0 flex-wrap items-center justify-between gap-2 border-b border-rule p-2 sm:gap-4 sm:p-4">
- <button type="button" class="btn btn-secondary" data-exit>
- Exit scene
+ <div class="scene-topbar flex shrink-0 items-center justify-between gap-2">
+ <button type="button" class="scene-topbar-button" data-exit>
+ <span aria-hidden="true">←</span> Exit scene
</button>
- {runtime && (
- <p class="flex flex-1 flex-wrap items-center justify-center gap-x-4 gap-y-1 text-sm text-dim">
- {!scene.available && <span>{scene.copy.previewLabel}</span>}
- {scene.links.map((link) => (
- <a class="text-link" href={`${scene.assetBase}${link.path}`}>{link.label}</a>
- ))}
- </p>
- )}
- <button type="button" class="btn btn-secondary" data-fullscreen>
- Enter fullscreen
+ <button type="button" class="scene-topbar-button" data-fullscreen>
+ Fullscreen
</button>
</div>
<p data-loading role="status" class="p-6">
@@ -304,7 +286,7 @@ const stateCopy = scene.available
fullscreen.textContent =
document.fullscreenElement === this
? "Leave fullscreen"
- : "Enter fullscreen";
+ : "Fullscreen";
};
const onKey = (event: KeyboardEvent) => {
if (
diff --git a/site/src/components/VehiclesPack.astro b/site/src/components/VehiclesPack.astro
index 43d388e9..03154363 100644
--- a/site/src/components/VehiclesPack.astro
+++ b/site/src/components/VehiclesPack.astro
@@ -6,8 +6,6 @@ import { vehicles, bytes, bounds, number, type VehicleAsset } from "../lib/catal
import { wheelSummary } from "../lib/vehicles";
const download = vehicles.downloads[0]!;
-// A corrected revision says what it corrects and whether the owner has approved it (vehicleReview in stage-vehicles.mjs).
-const corrected = vehicles.assets.filter((asset) => "correction" in asset.review && asset.review.correction);
type Revision = VehicleAsset["revisions"][number];
const revisions: Revision[] = vehicles.assets.flatMap((asset) => [...asset.revisions]);
// One line per distinct authoring setup, taken from the saved revisions themselves.
@@ -43,15 +41,9 @@ const conventions = [
<div class="mt-4 grid gap-6 border-y border-ink py-6 md:grid-cols-2">
<div>
<p class="max-w-reading">
- <strong>
- {vehicles.ownerReview.acceptedAssets} of {vehicles.ownerReview.total}{" "}
- current revisions have owner approval.
- </strong>{" "}
- The earlier delivery was approved on 29 September 2026. New revisions have their own review status below.
+ Use them as traffic, props or cars to drive: the wheels are separate
+ nodes, so they can turn and steer.
</p>
- {corrected.map((asset) => (
- <p class="mt-3 max-w-reading text-dim">{asset.review.correction}</p>
- ))}
</div>
<div>
<p class="max-w-reading">
diff --git a/site/src/data/commons-build.json b/site/src/data/commons-build.json
index d52c8a91..8116cb64 100644
--- a/site/src/data/commons-build.json
+++ b/site/src/data/commons-build.json
@@ -1492,6 +1492,42 @@
"srcsetWebp": "/media/scenes/farm/r36-local-review/farm-scene-opening-320.webp 320w, /media/scenes/farm/r36-local-review/farm-scene-opening-480.webp 480w, /media/scenes/farm/r36-local-review/farm-scene-opening-672.webp 672w, /media/scenes/farm/r36-local-review/farm-scene-opening-768.webp 768w, /media/scenes/farm/r36-local-review/farm-scene-opening-1024.webp 1024w, /media/scenes/farm/r36-local-review/farm-scene-opening-1440.webp 1440w",
"srcsetAvif": "/media/scenes/farm/r36-local-review/farm-scene-opening-320.avif 320w, /media/scenes/farm/r36-local-review/farm-scene-opening-480.avif 480w, /media/scenes/farm/r36-local-review/farm-scene-opening-672.avif 672w, /media/scenes/farm/r36-local-review/farm-scene-opening-768.avif 768w, /media/scenes/farm/r36-local-review/farm-scene-opening-1024.avif 1024w, /media/scenes/farm/r36-local-review/farm-scene-opening-1440.avif 1440w",
"inputPath": "media/scenes/farm/r36-local-review/farm-scene-opening.png"
+ },
+ {
+ "src": "/media/scenes/foundry-floor/ff3-review2/foundry-floor-scene-campus.webp",
+ "width": 1440,
+ "height": 925,
+ "alt": "The Foundry Floor campus from above: paired fab buildings along a central road, with parking and planting at the near entrance.",
+ "srcsetWebp": "/media/scenes/foundry-floor/ff3-review2/foundry-floor-scene-campus-320.webp 320w, /media/scenes/foundry-floor/ff3-review2/foundry-floor-scene-campus-480.webp 480w, /media/scenes/foundry-floor/ff3-review2/foundry-floor-scene-campus-672.webp 672w, /media/scenes/foundry-floor/ff3-review2/foundry-floor-scene-campus-768.webp 768w, /media/scenes/foundry-floor/ff3-review2/foundry-floor-scene-campus-1024.webp 1024w, /media/scenes/foundry-floor/ff3-review2/foundry-floor-scene-campus-1440.webp 1440w",
+ "srcsetAvif": "/media/scenes/foundry-floor/ff3-review2/foundry-floor-scene-campus-320.avif 320w, /media/scenes/foundry-floor/ff3-review2/foundry-floor-scene-campus-480.avif 480w, /media/scenes/foundry-floor/ff3-review2/foundry-floor-scene-campus-672.avif 672w, /media/scenes/foundry-floor/ff3-review2/foundry-floor-scene-campus-768.avif 768w, /media/scenes/foundry-floor/ff3-review2/foundry-floor-scene-campus-1024.avif 1024w, /media/scenes/foundry-floor/ff3-review2/foundry-floor-scene-campus-1440.avif 1440w",
+ "inputPath": "media/scenes/foundry-floor/ff3-review2/foundry-floor-scene-campus.png"
+ },
+ {
+ "src": "/media/scenes/foundry-floor/ff3-review2/foundry-floor-scene-interior.webp",
+ "width": 1440,
+ "height": 925,
+ "alt": "The Foundry Floor fab interior from above: process tools in bays, joined by the loops of an overhead transport track.",
+ "srcsetWebp": "/media/scenes/foundry-floor/ff3-review2/foundry-floor-scene-interior-320.webp 320w, /media/scenes/foundry-floor/ff3-review2/foundry-floor-scene-interior-480.webp 480w, /media/scenes/foundry-floor/ff3-review2/foundry-floor-scene-interior-672.webp 672w, /media/scenes/foundry-floor/ff3-review2/foundry-floor-scene-interior-768.webp 768w, /media/scenes/foundry-floor/ff3-review2/foundry-floor-scene-interior-1024.webp 1024w, /media/scenes/foundry-floor/ff3-review2/foundry-floor-scene-interior-1440.webp 1440w",
+ "srcsetAvif": "/media/scenes/foundry-floor/ff3-review2/foundry-floor-scene-interior-320.avif 320w, /media/scenes/foundry-floor/ff3-review2/foundry-floor-scene-interior-480.avif 480w, /media/scenes/foundry-floor/ff3-review2/foundry-floor-scene-interior-672.avif 672w, /media/scenes/foundry-floor/ff3-review2/foundry-floor-scene-interior-768.avif 768w, /media/scenes/foundry-floor/ff3-review2/foundry-floor-scene-interior-1024.avif 1024w, /media/scenes/foundry-floor/ff3-review2/foundry-floor-scene-interior-1440.avif 1440w",
+ "inputPath": "media/scenes/foundry-floor/ff3-review2/foundry-floor-scene-interior.png"
+ },
+ {
+ "src": "/media/scenes/farm/r36-local-review/farm-scene-walk.webp",
+ "width": 1440,
+ "height": 925,
+ "alt": "The farmer seen from behind in the Farm scene, standing at the sheep pen fence with cows, wheat and pumpkins beyond.",
+ "srcsetWebp": "/media/scenes/farm/r36-local-review/farm-scene-walk-320.webp 320w, /media/scenes/farm/r36-local-review/farm-scene-walk-480.webp 480w, /media/scenes/farm/r36-local-review/farm-scene-walk-672.webp 672w, /media/scenes/farm/r36-local-review/farm-scene-walk-768.webp 768w, /media/scenes/farm/r36-local-review/farm-scene-walk-1024.webp 1024w, /media/scenes/farm/r36-local-review/farm-scene-walk-1440.webp 1440w",
+ "srcsetAvif": "/media/scenes/farm/r36-local-review/farm-scene-walk-320.avif 320w, /media/scenes/farm/r36-local-review/farm-scene-walk-480.avif 480w, /media/scenes/farm/r36-local-review/farm-scene-walk-672.avif 672w, /media/scenes/farm/r36-local-review/farm-scene-walk-768.avif 768w, /media/scenes/farm/r36-local-review/farm-scene-walk-1024.avif 1024w, /media/scenes/farm/r36-local-review/farm-scene-walk-1440.avif 1440w",
+ "inputPath": "media/scenes/farm/r36-local-review/farm-scene-walk.png"
+ },
+ {
+ "src": "/media/scenes/golden-gate/g9/golden-gate-scene-day.webp",
+ "width": 1440,
+ "height": 925,
+ "alt": "The Golden Gate Bridge scene from above the water by day: the full span between its two towers, with the headlands on either side.",
+ "srcsetWebp": "/media/scenes/golden-gate/g9/golden-gate-scene-day-320.webp 320w, /media/scenes/golden-gate/g9/golden-gate-scene-day-480.webp 480w, /media/scenes/golden-gate/g9/golden-gate-scene-day-672.webp 672w, /media/scenes/golden-gate/g9/golden-gate-scene-day-768.webp 768w, /media/scenes/golden-gate/g9/golden-gate-scene-day-1024.webp 1024w, /media/scenes/golden-gate/g9/golden-gate-scene-day-1440.webp 1440w",
+ "srcsetAvif": "/media/scenes/golden-gate/g9/golden-gate-scene-day-320.avif 320w, /media/scenes/golden-gate/g9/golden-gate-scene-day-480.avif 480w, /media/scenes/golden-gate/g9/golden-gate-scene-day-672.avif 672w, /media/scenes/golden-gate/g9/golden-gate-scene-day-768.avif 768w, /media/scenes/golden-gate/g9/golden-gate-scene-day-1024.avif 1024w, /media/scenes/golden-gate/g9/golden-gate-scene-day-1440.avif 1440w",
+ "inputPath": "media/scenes/golden-gate/g9/golden-gate-scene-day.png"
}
],
"archives": [
diff --git a/site/src/data/mirror-manifest.json b/site/src/data/mirror-manifest.json
index 043cd5b7..8ee848ac 100644
--- a/site/src/data/mirror-manifest.json
+++ b/site/src/data/mirror-manifest.json
@@ -2270,6 +2270,26 @@
"path": "media/scenes/farm/r36-local-review/farm-scene-opening.png",
"bytes": 1552885,
"sha256": "4cd7e3d256094668827993c4179069ce39fd1b0b7aac08dad4ff09a9bff67723"
+ },
+ {
+ "path": "media/scenes/foundry-floor/ff3-review2/foundry-floor-scene-campus.png",
+ "bytes": 116562,
+ "sha256": "7f841f81e7030b4dff5ed2f6a0605644dd32f3730028767841ead7ed8b808229"
+ },
+ {
+ "path": "media/scenes/foundry-floor/ff3-review2/foundry-floor-scene-interior.png",
+ "bytes": 264001,
+ "sha256": "083d6d07d4038edc49ee665a5b542494b6606116259029879d41614b2bc74c5b"
+ },
+ {
+ "path": "media/scenes/farm/r36-local-review/farm-scene-walk.png",
+ "bytes": 1213110,
+ "sha256": "e2c0b86f851736c3345bfe0ea629ef816ee4fb7b05e0ca369df5242b772f32cd"
+ },
+ {
+ "path": "media/scenes/golden-gate/g9/golden-gate-scene-day.png",
+ "bytes": 963303,
+ "sha256": "50a2ecf3bd0eec02231ce614c56128be3bdb61bba8cf6be46535b2742c56e945"
}
]
}
diff --git a/site/src/data/packs/farm.json b/site/src/data/packs/farm.json
index 342a4857..03899e28 100644
--- a/site/src/data/packs/farm.json
+++ b/site/src/data/packs/farm.json
@@ -6,7 +6,7 @@
"revision": "r36-local-review",
"projectRevision": "r_0000000002_6bba0eae0009722bd75d7f40f3a4c36ef125630144d94e86a6b531fe1fa929dd",
"fullPackAccepted": false,
- "ownerApprovedAssets": 22,
+ "ownerApprovedAssets": 23,
"assetCount": 23,
"materialRecords": 10,
"textureMaps": 30,
@@ -59,7 +59,7 @@
"Runtime assets",
"Bundled browser dependencies and notices"
],
- "compatibility": "Current r36 local Farm scene with the repaired farmer. Controller and procedural-animation code is retained from r35; changed asset integration is checked separately. No physical-device performance qualification."
+ "compatibility": "Runs in a browser with WebGPU or WebGL2."
}
],
"scene": {
@@ -75,9 +75,9 @@
"srcsetAvif": "/media/scenes/farm/r36-local-review/farm-scene-opening-320.avif 320w, /media/scenes/farm/r36-local-review/farm-scene-opening-480.avif 480w, /media/scenes/farm/r36-local-review/farm-scene-opening-672.avif 672w, /media/scenes/farm/r36-local-review/farm-scene-opening-768.avif 768w, /media/scenes/farm/r36-local-review/farm-scene-opening-1024.avif 1024w, /media/scenes/farm/r36-local-review/farm-scene-opening-1440.avif 1440w",
"inputPath": "media/scenes/farm/r36-local-review/farm-scene-opening.png"
},
- "description": "A runnable local review preview with first-person walking, tractor driving, doors and gates. Current controls have desktop and touch-emulated checks on WebGPU and WebGL2; new physical-device performance is not qualified.",
+ "description": "A runnable local review preview with third-person walking, tractor driving, doors and gates. Current controls have desktop and touch-emulated checks on WebGPU and WebGL2; new physical-device performance is not qualified.",
"desktop": [
- "First-person walking with click-to-capture and Escape release",
+ "Third-person walking with drag to look and scroll to zoom",
"Doors and gates",
"Bridge crossing",
"Tractor driving"
@@ -85,7 +85,7 @@
"mobile": [
"Joystick walking and driving",
"Drag to look",
- "Pinch to zoom while driving or orbit viewing",
+ "Pinch to zoom",
"Contextual interaction"
],
"excluded": [
@@ -2150,11 +2150,11 @@
}
],
"review": {
- "status": "awaiting-owner-review",
- "ownerAccepted": false,
- "scope": "The revised hands and proportions are retained. This back clothing repair awaits owner review; the 22 other asset approvals are unchanged.",
- "recordedAt": null,
- "source": "Owner review 3 back-clothing feedback and saved repair receipt"
+ "status": "accepted",
+ "ownerAccepted": true,
+ "scope": "The owner accepted this back clothing repair revision. The revised hands and proportions are retained.",
+ "recordedAt": "2026-10-01",
+ "source": "Owner statement in the site design review of 1 October 2026: the farmer back-clothing repair revision is approved"
},
"license": "CC0-1.0",
"sceneDeepLink": null,
@@ -3844,14 +3844,14 @@
"deliveryReview": {
"revision": "r36-local-review",
"fullPackAccepted": false,
- "acceptedAssets": 22,
+ "acceptedAssets": 23,
"total": 23,
"source": "packs/farm/r36-local-review/downloads.json and exact-revision review records"
},
"ownerReview": {
- "acceptedAssets": 22,
+ "acceptedAssets": 23,
"total": 23,
- "status": "review-in-progress",
+ "status": "all-current-revisions-accepted",
"date": "2026-09-29",
"statement": "Yes, the farmhouse wood floor revision passes.",
"source": "site-build/FEEDBACK-site-review-1.md",
@@ -3914,7 +3914,7 @@
{
"id": "farmer",
"revisionId": "r_70907c7fd97249ce807e9948613882cd",
- "ownerAccepted": false
+ "ownerAccepted": true
},
{
"id": "cow",
@@ -4124,6 +4124,6 @@
"qualification": {
"performanceQualified": false,
"publicationAuthorized": false,
- "note": "22 unchanged exact asset approvals retained. New farmer back repair awaits owner review; previous interface evidence is separate from new asset qualification."
+ "note": "22 unchanged exact asset approvals retained. The owner accepted the farmer back repair on 1 October 2026; previous interface evidence is separate from new asset qualification."
}
}
diff --git a/site/src/data/scene-inputs.json b/site/src/data/scene-inputs.json
index 1ddfb9bf..9ec0c79f 100644
--- a/site/src/data/scene-inputs.json
+++ b/site/src/data/scene-inputs.json
@@ -11,16 +11,16 @@
{
"id": "golden-gate",
"release": "g9",
- "path": "scene-inputs/v09-review3/golden-gate.zip",
- "bytes": 8333665,
- "sha256": "c765ebb40d668ec6b90ffbd379e68dbcb4e9f475c515a06123f23f8d0e8a18bd"
+ "path": "scene-inputs/v09-review4/golden-gate.zip",
+ "bytes": 8335422,
+ "sha256": "5645e6d67d899c521cadb43da71f01dc1769a6ff931f29f374f9e65134275546"
},
{
"id": "foundry-floor",
"release": "ff3-review2",
- "path": "scene-inputs/v09-review3/foundry-floor.zip",
- "bytes": 2863842,
- "sha256": "c1c1c5e642cb1a4db97b6cc1103fac4e107f9a0888498a4a78f3c218b6e7ef70"
+ "path": "scene-inputs/v09-review4/foundry-floor.zip",
+ "bytes": 2858786,
+ "sha256": "9043809403236964ffac8401358a1a946fde44d98e73ace1933b03e3ba9764ee"
}
]
}
diff --git a/site/src/data/scene-media.json b/site/src/data/scene-media.json
index 3d1a90f1..aa970b3a 100644
--- a/site/src/data/scene-media.json
+++ b/site/src/data/scene-media.json
@@ -23,6 +23,34 @@
"packJsonSha256": "45fd9e8ef1e7bdec173863ad520e42e8f996c943dfcf57c4842d432ea006335c",
"pngBytes": 740271,
"pngSha256": "871dc9f068e8509ee477c9873b62978b90e2960f3ae358ce01f7b6b2d41c095b"
+ },
+ "captures": {
+ "day": {
+ "poster": {
+ "src": "/media/scenes/golden-gate/g9/golden-gate-scene-day.webp",
+ "width": 1440,
+ "height": 925,
+ "alt": "The Golden Gate Bridge scene from above the water by day: the full span between its two towers, with the headlands on either side.",
+ "srcsetWebp": "/media/scenes/golden-gate/g9/golden-gate-scene-day-320.webp 320w, /media/scenes/golden-gate/g9/golden-gate-scene-day-480.webp 480w, /media/scenes/golden-gate/g9/golden-gate-scene-day-672.webp 672w, /media/scenes/golden-gate/g9/golden-gate-scene-day-768.webp 768w, /media/scenes/golden-gate/g9/golden-gate-scene-day-1024.webp 1024w, /media/scenes/golden-gate/g9/golden-gate-scene-day-1440.webp 1440w",
+ "srcsetAvif": "/media/scenes/golden-gate/g9/golden-gate-scene-day-320.avif 320w, /media/scenes/golden-gate/g9/golden-gate-scene-day-480.avif 480w, /media/scenes/golden-gate/g9/golden-gate-scene-day-672.avif 672w, /media/scenes/golden-gate/g9/golden-gate-scene-day-768.avif 768w, /media/scenes/golden-gate/g9/golden-gate-scene-day-1024.avif 1024w, /media/scenes/golden-gate/g9/golden-gate-scene-day-1440.avif 1440w",
+ "inputPath": "media/scenes/golden-gate/g9/golden-gate-scene-day.png"
+ },
+ "capture": {
+ "tool": "scripts/capture-scene-poster.mjs",
+ "view": "day",
+ "release": "g9",
+ "size": [
+ 1440,
+ 925
+ ],
+ "browser": "Chrome/154.0.8037.58",
+ "source": "The staged scene runtime, captured from its canvas with controls hidden; nothing composited or retouched.",
+ "runtimeSha256": "203118926ca1e11c43542ce1605d06d19b9a984ebe1877251ae152c73bc634d6",
+ "packJsonSha256": "c2a1d83fce6caf07a7b3e87070ccb8a983dd68e0c7f98eee3f1ba5255ce059cb",
+ "pngBytes": 963303,
+ "pngSha256": "50a2ecf3bd0eec02231ce614c56128be3bdb61bba8cf6be46535b2742c56e945"
+ }
+ }
}
},
"foundry-floor": {
@@ -60,6 +88,60 @@
"rendererId": "dawn-d3d12:nvidia-geforce-rtx-3070:D3D12 driver version 32.0.16.1074",
"pngBytes": 2060755,
"pngSha256": "e34d6103f0da8d04f60a1fbf3ae761c843eccdf9afec9f3ef4cc4d83cbeea4b4"
+ },
+ "captures": {
+ "campus": {
+ "poster": {
+ "src": "/media/scenes/foundry-floor/ff3-review2/foundry-floor-scene-campus.webp",
+ "width": 1440,
+ "height": 925,
+ "alt": "The Foundry Floor campus from above: paired fab buildings along a central road, with parking and planting at the near entrance.",
+ "srcsetWebp": "/media/scenes/foundry-floor/ff3-review2/foundry-floor-scene-campus-320.webp 320w, /media/scenes/foundry-floor/ff3-review2/foundry-floor-scene-campus-480.webp 480w, /media/scenes/foundry-floor/ff3-review2/foundry-floor-scene-campus-672.webp 672w, /media/scenes/foundry-floor/ff3-review2/foundry-floor-scene-campus-768.webp 768w, /media/scenes/foundry-floor/ff3-review2/foundry-floor-scene-campus-1024.webp 1024w, /media/scenes/foundry-floor/ff3-review2/foundry-floor-scene-campus-1440.webp 1440w",
+ "srcsetAvif": "/media/scenes/foundry-floor/ff3-review2/foundry-floor-scene-campus-320.avif 320w, /media/scenes/foundry-floor/ff3-review2/foundry-floor-scene-campus-480.avif 480w, /media/scenes/foundry-floor/ff3-review2/foundry-floor-scene-campus-672.avif 672w, /media/scenes/foundry-floor/ff3-review2/foundry-floor-scene-campus-768.avif 768w, /media/scenes/foundry-floor/ff3-review2/foundry-floor-scene-campus-1024.avif 1024w, /media/scenes/foundry-floor/ff3-review2/foundry-floor-scene-campus-1440.avif 1440w",
+ "inputPath": "media/scenes/foundry-floor/ff3-review2/foundry-floor-scene-campus.png"
+ },
+ "capture": {
+ "tool": "scripts/capture-scene-poster.mjs",
+ "view": "campus",
+ "release": "ff3-review2",
+ "size": [
+ 1440,
+ 925
+ ],
+ "browser": "Chrome/154.0.8037.58",
+ "source": "The staged scene runtime, captured from its canvas with controls hidden; nothing composited or retouched.",
+ "runtimeSha256": "fdf0724ffc38717f3289aaaa0de3891be907a74a2a1570b1a9e926e4e306398d",
+ "packJsonSha256": "6ce49d05791bf42d21f3628237a5cf005ce9f2fa15938f0c321430d781c2c5d4",
+ "pngBytes": 116562,
+ "pngSha256": "7f841f81e7030b4dff5ed2f6a0605644dd32f3730028767841ead7ed8b808229"
+ }
+ },
+ "interior": {
+ "poster": {
+ "src": "/media/scenes/foundry-floor/ff3-review2/foundry-floor-scene-interior.webp",
+ "width": 1440,
+ "height": 925,
+ "alt": "The Foundry Floor fab interior from above: process tools in bays, joined by the loops of an overhead transport track.",
+ "srcsetWebp": "/media/scenes/foundry-floor/ff3-review2/foundry-floor-scene-interior-320.webp 320w, /media/scenes/foundry-floor/ff3-review2/foundry-floor-scene-interior-480.webp 480w, /media/scenes/foundry-floor/ff3-review2/foundry-floor-scene-interior-672.webp 672w, /media/scenes/foundry-floor/ff3-review2/foundry-floor-scene-interior-768.webp 768w, /media/scenes/foundry-floor/ff3-review2/foundry-floor-scene-interior-1024.webp 1024w, /media/scenes/foundry-floor/ff3-review2/foundry-floor-scene-interior-1440.webp 1440w",
+ "srcsetAvif": "/media/scenes/foundry-floor/ff3-review2/foundry-floor-scene-interior-320.avif 320w, /media/scenes/foundry-floor/ff3-review2/foundry-floor-scene-interior-480.avif 480w, /media/scenes/foundry-floor/ff3-review2/foundry-floor-scene-interior-672.avif 672w, /media/scenes/foundry-floor/ff3-review2/foundry-floor-scene-interior-768.avif 768w, /media/scenes/foundry-floor/ff3-review2/foundry-floor-scene-interior-1024.avif 1024w, /media/scenes/foundry-floor/ff3-review2/foundry-floor-scene-interior-1440.avif 1440w",
+ "inputPath": "media/scenes/foundry-floor/ff3-review2/foundry-floor-scene-interior.png"
+ },
+ "capture": {
+ "tool": "scripts/capture-scene-poster.mjs",
+ "view": "interior",
+ "release": "ff3-review2",
+ "size": [
+ 1440,
+ 925
+ ],
+ "browser": "Chrome/154.0.8037.58",
+ "source": "The staged scene runtime, captured from its canvas with controls hidden; nothing composited or retouched.",
+ "runtimeSha256": "fdf0724ffc38717f3289aaaa0de3891be907a74a2a1570b1a9e926e4e306398d",
+ "packJsonSha256": "6ce49d05791bf42d21f3628237a5cf005ce9f2fa15938f0c321430d781c2c5d4",
+ "pngBytes": 264001,
+ "pngSha256": "083d6d07d4038edc49ee665a5b542494b6606116259029879d41614b2bc74c5b"
+ }
+ }
}
},
"farm": {
@@ -86,6 +168,34 @@
"packJsonSha256": "5d046aa2c04637436d7e3918db690f4f25f6684a58ae7a78d333dec9df428f48",
"pngBytes": 1552885,
"pngSha256": "4cd7e3d256094668827993c4179069ce39fd1b0b7aac08dad4ff09a9bff67723"
+ },
+ "captures": {
+ "walk": {
+ "poster": {
+ "src": "/media/scenes/farm/r36-local-review/farm-scene-walk.webp",
+ "width": 1440,
+ "height": 925,
+ "alt": "The farmer seen from behind in the Farm scene, standing at the sheep pen fence with cows, wheat and pumpkins beyond.",
+ "srcsetWebp": "/media/scenes/farm/r36-local-review/farm-scene-walk-320.webp 320w, /media/scenes/farm/r36-local-review/farm-scene-walk-480.webp 480w, /media/scenes/farm/r36-local-review/farm-scene-walk-672.webp 672w, /media/scenes/farm/r36-local-review/farm-scene-walk-768.webp 768w, /media/scenes/farm/r36-local-review/farm-scene-walk-1024.webp 1024w, /media/scenes/farm/r36-local-review/farm-scene-walk-1440.webp 1440w",
+ "srcsetAvif": "/media/scenes/farm/r36-local-review/farm-scene-walk-320.avif 320w, /media/scenes/farm/r36-local-review/farm-scene-walk-480.avif 480w, /media/scenes/farm/r36-local-review/farm-scene-walk-672.avif 672w, /media/scenes/farm/r36-local-review/farm-scene-walk-768.avif 768w, /media/scenes/farm/r36-local-review/farm-scene-walk-1024.avif 1024w, /media/scenes/farm/r36-local-review/farm-scene-walk-1440.avif 1440w",
+ "inputPath": "media/scenes/farm/r36-local-review/farm-scene-walk.png"
+ },
+ "capture": {
+ "tool": "scripts/capture-scene-poster.mjs",
+ "view": "walk",
+ "release": "r36-local-review",
+ "size": [
+ 1440,
+ 925
+ ],
+ "browser": "Chrome/154.0.8037.58",
+ "source": "The staged scene runtime, captured from its canvas with controls hidden; nothing composited or retouched.",
+ "runtimeSha256": "c64eacfe1a376b1d9850f7759322a30223f3f5ae07d2755ba7bf358d0c7e03b6",
+ "packJsonSha256": "5d046aa2c04637436d7e3918db690f4f25f6684a58ae7a78d333dec9df428f48",
+ "pngBytes": 1213110,
+ "pngSha256": "e2c0b86f851736c3345bfe0ea629ef816ee4fb7b05e0ca369df5242b772f32cd"
+ }
+ }
}
}
}
diff --git a/site/src/data/scene-packs.json b/site/src/data/scene-packs.json
index 2fdcac36..b3466a13 100644
--- a/site/src/data/scene-packs.json
+++ b/site/src/data/scene-packs.json
@@ -30,12 +30,12 @@
"noticesSha256": "4bf6f2bd1d803606c88eb540c8e207ddee4a76be4d12fe14d6110bb7505e4ebc",
"runtime": {
"kind": "frame",
- "file": "index-CGkQ2AbK.js",
- "bytes": 1721321,
- "gzipBytes": 517862,
+ "file": "index-BDTQ3svb.js",
+ "bytes": 1724619,
+ "gzipBytes": 518716,
"gzipMethod": "bun-zlib",
- "sha256": "45001bc0af79bf5668fdc3f8e227a5862cc57b97a32002a2e85ba9acc4a8460d",
- "modulesSha256": "937d2b5c931d4f6e474528a4326413c82ac3b91a3fe29b56d0acbf606b14f9af"
+ "sha256": "203118926ca1e11c43542ce1605d06d19b9a984ebe1877251ae152c73bc634d6",
+ "modulesSha256": "928ffa3a06eb8c8f227c4ab842a51b1c5b4cda46e58ce7e65423e7cd1ca4466b"
}
},
"foundry-floor": {
@@ -54,53 +54,53 @@
"noticesSha256": "4bf6f2bd1d803606c88eb540c8e207ddee4a76be4d12fe14d6110bb7505e4ebc",
"runtime": {
"kind": "frame",
- "file": "index-umTduCLH.js",
- "bytes": 1700697,
- "gzipBytes": 516088,
+ "file": "index-Y86dU6mu.js",
+ "bytes": 1705082,
+ "gzipBytes": 517258,
"gzipMethod": "bun-zlib",
- "sha256": "0a934e08ca4be7834aad4e6f6fef492a9248e4fa29b2953a6d6f22359ec92cb7",
- "modulesSha256": "d5d56fe3e7945d39807b4d06bb7577d7850d55d8bb5f14bb90c4859735002828",
+ "sha256": "fdf0724ffc38717f3289aaaa0de3891be907a74a2a1570b1a9e926e4e306398d",
+ "modulesSha256": "429151e104015482e5e29d7b8d7bebb8d1e868664de36ff7106bff7028a64339",
"initialLoad": {
"files": [
- "data-BqQ-1EPs.js",
- "exterior-9XKlTe53.js",
- "index-umTduCLH.js"
+ "data-CtFNqKxF.js",
+ "exterior-BhOIr0wM.js",
+ "index-Y86dU6mu.js"
],
- "bytes": 1525112,
- "gzipBytes": 445765,
+ "bytes": 1527808,
+ "gzipBytes": 446414,
"deferredFiles": [
- "interior-DxlT87x0.js"
+ "interior-CaAk33CR.js"
],
- "receiptSha256": "da50afbbcaae6653a64fc9f93c92b3e78cc8124437346e623758680a82d41164"
+ "receiptSha256": "637febfc07fbae74c57933d5edfc83a7624168fa5fca0cf31616a2c46ce1f108"
},
"chunks": [
{
- "file": "data-BqQ-1EPs.js",
+ "file": "data-CtFNqKxF.js",
"bytes": 42050,
- "gzipBytes": 11685,
+ "gzipBytes": 11708,
"gzipMethod": "bun-zlib",
- "sha256": "a0a742ecd49f25e8edbba835c070f9307fece5c138e9fec73b78331a5e369176"
+ "sha256": "221e0bb094f1246917827439b92b18d4826e3c248b50191c4590c6b61dfc113f"
},
{
- "file": "exterior-9XKlTe53.js",
- "bytes": 73578,
- "gzipBytes": 28254,
+ "file": "exterior-BhOIr0wM.js",
+ "bytes": 73389,
+ "gzipBytes": 28182,
"gzipMethod": "bun-zlib",
- "sha256": "15922b270ce2c577cdbde80207e77f2980dbfdb9def371ca13e05d01d3916e81"
+ "sha256": "de54e858f5d70550caa1083e09fc673ecbe2bf67496dbc5ccd46590422ffc678"
},
{
- "file": "index-umTduCLH.js",
- "bytes": 1409484,
- "gzipBytes": 405826,
+ "file": "index-Y86dU6mu.js",
+ "bytes": 1412369,
+ "gzipBytes": 406524,
"gzipMethod": "bun-zlib",
- "sha256": "0a934e08ca4be7834aad4e6f6fef492a9248e4fa29b2953a6d6f22359ec92cb7"
+ "sha256": "fdf0724ffc38717f3289aaaa0de3891be907a74a2a1570b1a9e926e4e306398d"
},
{
- "file": "interior-DxlT87x0.js",
- "bytes": 175585,
- "gzipBytes": 70323,
+ "file": "interior-CaAk33CR.js",
+ "bytes": 177274,
+ "gzipBytes": 70844,
"gzipMethod": "bun-zlib",
- "sha256": "babffc4fb0c7d49ebc971cb7a1bd0e38039ec980a6bd74a9b8df255ed31ec270"
+ "sha256": "918836da73f0e67c8ffa54dc3c77c221d4c25e7f3feed294e4ff520f474a41d8"
}
]
}
diff --git a/site/src/data/scenes.ts b/site/src/data/scenes.ts
index 4286d213..16eb263e 100644
--- a/site/src/data/scenes.ts
+++ b/site/src/data/scenes.ts
@@ -24,8 +24,6 @@ interface SceneCopy {
unavailableBody: string;
/** What the error surface says; the last sentence names what remains available. */
errorText: string;
- /** Shown beside the notices while an unqualified preview runs. */
- previewLabel: string;
}
/**
@@ -38,15 +36,13 @@ export const farmTouchCopy = {
controls: [
'Move with the joystick. When you drive the tractor, push it forward to accelerate and pull it back to brake and, once stopped, to reverse. Push it left or right to steer.',
'Drag one finger to look around.',
- 'Pinch to zoom while driving the tractor or viewing the overview. Walking keeps a fixed eye height.',
+ 'Pinch to zoom on foot, while driving the tractor or in the overview.',
'One tap target appears when there is something to do: open a door or gate, drive the tractor or leave it.',
- 'Walking is in first person. The camera follows the tractor when you drive it.',
+ 'Walking is in third person: the camera follows Rowan on foot and the tractor when you drive it.',
],
qualityHeading: 'Quality follows the device.',
quality: [
'The scene chooses a quality tier when it opens. A phone of the Galaxy S24+ class starts on the high tier when its browser uses WebGPU, and on the minimal tier when it falls back to WebGL2. A tablet of the Galaxy Tab S9 FE class starts on the minimal tier on either graphics backend.',
- 'The current scene passed desktop input checks and checks with touch emulation on WebGPU and WebGL2. Earlier touch and timing measurements on a Galaxy Tab S9 FE belong to the earlier scene build and do not qualify this revision.',
- 'No physical phone or tablet has been measured for this revision, so no device performance is promised.',
],
} as const;
@@ -75,6 +71,8 @@ export const farmScene = {
pack: farmPack,
poster: farm.scene.poster.src,
posterImage: farm.scene.poster,
+ /** A wide view, then a closer one, stacked wherever the scene is pictured. */
+ posterImages: [farm.scene.poster, sceneMedia.farm.captures.walk.poster],
posterWidth: farm.scene.poster.width,
posterHeight: farm.scene.poster.height,
posterAlt: 'The Farm scene with barn, farmhouse, fields, animals, woodland and stream',
@@ -90,17 +88,15 @@ export const farmScene = {
copy: {
available: 'Explore the Farm in your browser.',
preview:
- 'Explore opens the current Farm preview for owner review. The scene download contains the same controls and asset revisions.',
+ 'Explore opens the current Farm. The scene download is an earlier build with the same assets; it walks in first person.',
unavailable:
'The browser scene is not included in this build. Explore opens its current status and downloads.',
- devices:
- 'Desktop and touch play; qualification notes are listed below. Loads only when you choose Explore.',
+ devices: 'Desktop and touch play. Loads only when you choose Explore.',
unavailableTitle: 'The interactive Farm is not included in this build.',
unavailableBody:
'This scene is in production. The Farm scene download contains the current runnable scene.',
errorText:
'The scene could not load. Check your connection and try Explore again. The Farm downloads remain available.',
- previewLabel: 'Preview for owner review.',
} satisfies SceneCopy,
fallback: { href: '/packs/farm/', label: 'View the Farm downloads' },
preUpload: {
@@ -124,6 +120,7 @@ export const goldenGateScene = {
pack: goldenGatePack,
poster: goldenGatePoster.src,
posterImage: goldenGatePoster,
+ posterImages: [sceneMedia['golden-gate'].captures.day.poster, goldenGatePoster],
posterWidth: goldenGatePoster.width,
posterHeight: goldenGatePoster.height,
posterAlt: goldenGatePoster.alt,
@@ -136,35 +133,34 @@ export const goldenGateScene = {
] satisfies SceneLink[],
copy: {
available: 'Explore the bridge in your browser.',
- preview:
- 'Explore opens a preview of the driving and traffic demonstration. It is still being qualified.',
+ preview: 'Explore opens the driving and traffic demonstration.',
unavailable: 'The browser scene is not part of this build. Explore opens its status.',
devices: 'Loads only when you choose Explore.',
unavailableTitle: 'The interactive bridge scene is not part of this build.',
unavailableBody: 'The bridge itself is a Kiln-authored asset with its own page and downloads.',
errorText:
'The scene could not load. Check your connection and try Explore again. The bridge asset and its downloads remain available.',
- previewLabel: 'Preview, still being qualified.',
} satisfies SceneCopy,
fallback: { href: '/gallery/golden-gate-bridge/', label: 'View the bridge asset' },
preUpload: {
fallback: allScenes,
- unavailableBody: 'The scene is still being qualified.',
+ unavailableBody: 'The bridge scene is not part of this build.',
errorText: noDownloadsError,
},
} as const;
const foundryFloorScenePack = scenePacks['foundry-floor'];
-const foundryFloorPoster = sceneMedia['foundry-floor'].poster;
+const foundryFloorCaptures = sceneMedia['foundry-floor'].captures;
+const foundryFloorPoster = foundryFloorCaptures.campus.poster;
const foundryFloorPresentation = foundryPresentation(
foundryFloorPack,
foundryFloorScenePack.release,
);
/**
- * Foundry Floor remains an in-production preview for local owner review (D-33/S-2). Its copy follows the
- * staged catalogue: older interior builds cannot promise a campus. No device claims are made. The poster
- * is a pack model under the review rig, visibly captioned so it is not mistaken for a running-scene capture.
+ * Foundry Floor is an in-production preview (D-33/S-2). Its copy follows the
+ * staged catalogue: older interior builds cannot promise a campus. No device claims are made. The scene is
+ * pictured by two captures of its staged runtime, the campus outside and the fab floor inside, shown together.
*/
export const foundryFloorScene = {
id: 'foundry-floor',
@@ -178,7 +174,7 @@ export const foundryFloorScene = {
posterWidth: foundryFloorPoster.width,
posterHeight: foundryFloorPoster.height,
posterAlt: foundryFloorPoster.alt,
- posterCaption: 'Model render from the pack; the running scene is not pictured.',
+ posterImages: [foundryFloorPoster, foundryFloorCaptures.interior.poster],
description: foundryFloorPresentation.description,
links: [
{ label: 'Software notices', path: 'THIRD-PARTY-NOTICES.txt' },
@@ -186,15 +182,13 @@ export const foundryFloorScene = {
] satisfies SceneLink[],
copy: {
available: 'Explore the Foundry Floor in your browser.',
- preview:
- 'Explore opens the scene as it stands in production: a preview for the owner’s local review, replaced when the scene is accepted.',
+ preview: 'Explore opens the scene as it stands in production.',
unavailable: 'The browser scene is not part of this build. Explore opens its status.',
devices: foundryFloorPresentation.loading,
unavailableTitle: 'The Foundry Floor scene is not part of this build.',
unavailableBody: 'The scene is in production. Its pack page says what the pack holds so far.',
errorText:
'The scene could not load. Check your connection and try Explore again. The Foundry Floor pack page remains available.',
- previewLabel: 'In production: a preview for the owner’s review.',
} satisfies SceneCopy,
fallback: { href: foundryFloor.packRoute, label: 'View the Foundry Floor pack' },
} as const;
diff --git a/site/src/layouts/BaseLayout.astro b/site/src/layouts/BaseLayout.astro
index 1d10d671..45a2ca47 100644
--- a/site/src/layouts/BaseLayout.astro
+++ b/site/src/layouts/BaseLayout.astro
@@ -161,7 +161,7 @@ const structured = [
<nav
id="primary-nav"
aria-label="Primary"
- class="flex w-full flex-wrap items-center gap-1 nav:ml-auto nav:w-auto"
+ class="order-last flex w-full flex-col nav:order-none nav:ml-auto nav:w-auto nav:flex-row nav:items-center nav:gap-1"
>
{nav.map(([label, href]) => (
<a
@@ -170,7 +170,7 @@ const structured = [
Astro.url.pathname.startsWith(href) ? "page" : undefined
}
class:list={[
- "min-h-11 px-3 py-2 text-base font-medium no-underline",
+ "flex min-h-12 items-center border-t border-rule px-1 py-2 text-base font-medium no-underline nav:min-h-11 nav:border-t-0 nav:px-3",
Astro.url.pathname.startsWith(href)
? "text-ember underline"
: "text-ink",
@@ -181,7 +181,7 @@ const structured = [
))}
<a
href={REPO}
- class="inline-flex min-h-11 items-center gap-1 whitespace-nowrap px-3 py-2 text-base font-medium no-underline"
+ class="flex min-h-12 items-center gap-1 whitespace-nowrap border-t border-rule px-1 py-2 text-base font-medium no-underline nav:min-h-11 nav:border-t-0 nav:px-3"
>
GitHub <span aria-hidden="true">↗</span>
</a>
diff --git a/site/src/pages/gallery/[slug].astro b/site/src/pages/gallery/[slug].astro
index 4850c7e9..f2304ef3 100644
--- a/site/src/pages/gallery/[slug].astro
+++ b/site/src/pages/gallery/[slug].astro
@@ -222,31 +222,14 @@ const schema = {
<section class="grid gap-8 pt-12 lg:grid-cols-12" aria-labelledby="review">
<div class="lg:col-span-4">
<h2 id="review" class="text-subheading">
- {asset.review.ownerAccepted
- ? "Owner approved"
- : asset.review.status === "changes-requested"
- ? "Accepted child recorded"
- : asset.review.status === "awaiting-owner-review"
- ? "Awaiting owner review"
- : "Review in progress"}
+ Review views
</h2>
- <p class="mt-4 max-w-reading text-dim">{asset.review.scope}</p>
- {asset.id === "farmhouse" && (
- <p class="mt-4 max-w-reading">
- The wood-floor child{" "}
- <code class="break-all">{farm.floorRevision.asset.revisionId}</code>{" "}
- was accepted by the owner on 29 September 2026.{" "}
- {asset.revisionId === farm.floorRevision.asset.revisionId
- ? "This delivery includes that accepted revision."
- : `This page’s source, model and downloads remain the sealed ${farm.revision} parent shown above.`}
- </p>
- )}
+ <p class="mt-4 max-w-reading text-dim">Six views of this revision, rendered on the GPU from its source.</p>
</div>
<figure class="lg:col-span-8">
<ResponsiveImage image={asset.reviewImage} sizes="(min-width: 1024px) 66vw, 100vw" />
<figcaption class="mt-3 font-mono text-code text-dim">
- Material-faithful GPU source review views for {asset.revisionId}.
- Structural QA and owner acceptance are separate.{" "}
+ Material-faithful GPU source review views for {asset.revisionId}.{" "}
{isBridge &&
"These views come from a source evaluation (exactArtifact: false), not a capture of the exported runtime GLB."}
{vehicle &&
diff --git a/site/src/pages/gallery/archive/[slug].astro b/site/src/pages/gallery/archive/[slug].astro
index 1a69b65b..0f3a72d0 100644
--- a/site/src/pages/gallery/archive/[slug].astro
+++ b/site/src/pages/gallery/archive/[slug].astro
@@ -36,7 +36,7 @@ const label = archiveLabel(specimen.name);
const demo = isDemo(specimen.name);
// A recorded demo run names no model; its attribution is one plain line instead of "{model} through {harness}".
const modelRecorded = specimen.model !== "Not independently recorded";
-const description = `${label}: an unreviewed historical Kiln example. Inspect the GLB, read its JavaScript source and see the recorded model and harness attribution.`;
+const description = `${label}: an earlier Kiln example. Inspect the GLB, read its JavaScript source and see the recorded model and harness attribution.`;
const source = specimen.source
? await readFile(resolve("public", specimen.source), "utf8")
: null;
@@ -87,8 +87,7 @@ const formatBytes = (bytes: number) => `${bytes.toLocaleString("en-US")} bytes`;
)}
{specimen.caption && <p class="lead mt-5">{specimen.caption}</p>}
<p class="mt-4 text-caption text-dim">
- Earlier examples from earlier Kiln versions, not reviewed to the pack
- standard.
+ Earlier examples from earlier Kiln versions.
</p>
</div>
<div class="mt-8 grid items-start gap-8 lg:grid-cols-3">
@@ -130,8 +129,7 @@ const formatBytes = (bytes: number) => `${bytes.toLocaleString("en-US")} bytes`;
<dd class="font-mono">{specimen.warnings}</dd>
</dl>
<p class="mt-5 text-caption text-dim">
- Measurements come from this build. They describe structure and cost,
- not visual acceptance.
+ Measurements come from this build.
</p>
</div>
</div>
diff --git a/site/src/pages/gallery/archive/index.astro b/site/src/pages/gallery/archive/index.astro
index edf576b5..7540dd58 100644
--- a/site/src/pages/gallery/archive/index.astro
+++ b/site/src/pages/gallery/archive/index.astro
@@ -13,7 +13,7 @@ const specimens: Specimen[] = JSON.parse(
const modelLine = (model: string) =>
model === "Not independently recorded" ? "Model not recorded" : model;
const description =
- "Earlier examples from earlier Kiln versions, not reviewed to the pack standard. Browse their source, model downloads and recorded provenance.";
+ "Earlier examples from earlier Kiln versions. Browse their source and model downloads.";
---
<BaseLayout
@@ -36,8 +36,7 @@ const description =
<div class="max-w-reading">
<PageHeader>Archive</PageHeader>
<p class="lead mt-6">
- Earlier examples from earlier Kiln versions, not reviewed to the pack
- standard.
+ Earlier examples from earlier Kiln versions.
</p>
<p class="mt-4">
These {specimens.length} historical examples retain their source, model
@@ -45,7 +44,7 @@ const description =
do not establish their visual quality.
</p>
<a class="text-link mt-4" href="/gallery/">
- Browse the reviewed asset gallery <span aria-hidden="true">→</span>
+ Browse the asset gallery <span aria-hidden="true">→</span>
</a>
</div>
<ul class="mt-10 grid grid-cols-1 gap-x-6 gap-y-10 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4">
diff --git a/site/src/pages/gallery/foundry-floor/[slug].astro b/site/src/pages/gallery/foundry-floor/[slug].astro
index 2166f3f3..51f0997a 100644
--- a/site/src/pages/gallery/foundry-floor/[slug].astro
+++ b/site/src/pages/gallery/foundry-floor/[slug].astro
@@ -29,7 +29,6 @@ const description = `${asset.name}: a ${group.title.toLowerCase()} model from Fo
<div><PageHeader>{asset.name}</PageHeader><p class="mt-4 max-w-reading">{description}</p></div>
<p class="font-mono text-code lg:text-right"><a class="text-link" href="/packs/foundry-floor/">Foundry Floor</a> · {group.title}</p>
</div>
- <p class="mb-6 max-w-reading"><strong>In production.</strong> This saved revision is awaiting owner review.</p>
<div class="drawing-sheet">
<AssetViewer name={asset.name} modelUrl={`${modelUrl}?revision=${encodeURIComponent(asset.revisionId)}`}
poster={asset.poster.src} posterAlt={asset.poster.alt} posterWidth={asset.poster.width}
diff --git a/site/src/pages/gallery/index.astro b/site/src/pages/gallery/index.astro
index e0e68c52..3f241699 100644
--- a/site/src/pages/gallery/index.astro
+++ b/site/src/pages/gallery/index.astro
@@ -8,7 +8,7 @@ const categories = [...new Set(assets.map((asset) => asset.category))].sort();
<BaseLayout
title="Gallery · Kiln"
- description="Explore Farm, road vehicles, Foundry Floor and the Golden Gate Bridge. Inspect individual 3D models, exact downloads, saved revisions and review status."
+ description="Explore Farm, road vehicles, Foundry Floor and the Golden Gate Bridge. Inspect individual 3D models, exact downloads, and saved revisions."
breadcrumbs={[{ label: "Gallery", href: "/gallery/" }]}
card="gallery"
>
@@ -18,10 +18,9 @@ const categories = [...new Set(assets.map((asset) => asset.category))].sort();
<div>
<p class="lead">
Inspect each model, its saved revision and download.
- Source availability and review status are stated on each asset.
</p>
<a href="/gallery/archive/" class="text-link mt-3">
- Browse the earlier, unreviewed archive <span aria-hidden="true">→</span>
+ Browse the earlier archive <span aria-hidden="true">→</span>
</a>
</div>
</div>
diff --git a/site/src/pages/index.astro b/site/src/pages/index.astro
index 15b6ddec..dd691c4f 100644
--- a/site/src/pages/index.astro
+++ b/site/src/pages/index.astro
@@ -7,8 +7,9 @@ import { getCollection } from "astro:content";
import BaseLayout from "../layouts/BaseLayout.astro";
import HeroDrawing from "../components/HeroDrawing.astro";
import ResponsiveImage from "../components/ResponsiveImage.astro";
+import ScenePoster from "../components/ScenePoster.astro";
import CodeBlock from "../components/CodeBlock.astro";
-import { farm, vehicles, bridge, number, bounds } from "../lib/catalog";
+import { farm, vehicles, number, bounds } from "../lib/catalog";
import { harnessName, modelName } from "../lib/attribution";
import { hero, HERO_IMAGE_SIZES } from "../lib/hero";
import {
@@ -25,6 +26,7 @@ import exchange from "../data/home-exchange.json";
import foundryFloor from "../data/foundry-floor.json";
import foundryFloorPack from "../data/packs/foundry-floor.json";
import { sceneRuntimes } from "virtual:kiln-scenes";
+import { farmScene, foundryFloorScene, goldenGateScene } from "../data/scenes";
import { PUBLIC_EXAMPLES } from "../../scripts/collection.mjs";
const house = farm.assets[0]!;
const docs = new Set((await getCollection("docs")).map((doc) => doc.id));
@@ -88,9 +90,7 @@ kiln_save(${JSON.stringify(save!.arguments, null, 2)})
// → asset.revisionId: ${save!.result.asset!.revisionId}
// … project arguments, file hashes and further result fields omitted`;
const floorIncluded = house.revisionId === floor.asset.revisionId;
-// The hero already shows the bridge from the classic three-quarter camera; the card uses the water-level capture.
-const bridgeCardImage = bridge.captures.find((capture) => capture.inputPath.endsWith("/water-level-neutral.png"));
-if (!bridgeCardImage) throw new Error("The bridge has no water-level capture for the home card");
+const CARD_SIZES = "(max-width: 767px) 100vw, 33vw";
---
<BaseLayout
@@ -169,19 +169,71 @@ if (!bridgeCardImage) throw new Error("The bridge has no water-level capture for
<p class="max-w-reading text-dim">
A roof pitch, a named part, a material pin: the shape has an
editable definition. Kiln returns views and geometry checks so your
- agent can inspect what the program actually built.
+ agent can inspect what the program actually built. Here one
+ request changes the farmhouse floor and leaves the rest of the
+ house as it was.
</p>
</div>
<figure class="mt-8 border border-ink bg-sheet p-5" aria-label="A recorded farmhouse revision, from request to delivery">
<figcaption class="mb-5 font-semibold">One farmhouse revision, from request to files</figcaption>
- <ol class="loop-artifacts grid gap-6 lg:grid-cols-5">
- <li><h3 class="text-title">1. Request</h3><p class="mt-2 text-caption">The owner asked for a wood ground floor in place of the masonry-looking floor.</p><span class="loop-connector" aria-hidden="true"></span></li>
+ <ol class="loop-artifacts grid gap-6 lg:grid-cols-6">
+ <li><h3 class="text-title">1. Request</h3><p class="mt-2 text-caption">A wood ground floor in place of the masonry-looking floor.</p><span class="loop-connector" aria-hidden="true"></span></li>
<li><h3 class="text-title">2. Source</h3><pre class="mt-2 whitespace-pre-wrap break-words text-code"><code>{source.split('\n').filter((line) => /createPart\('InteriorFloor'/.test(line)).slice(0, 1).join('\n')}</code></pre><span class="loop-connector" aria-hidden="true"></span></li>
- <li><h3 class="text-title">3. Inspect</h3><ResponsiveImage image={floor.after} sizes="(min-width:1024px) 18vw, 100vw" /><p class="mt-2 text-caption">Bounds unchanged. 132 exterior probes unchanged.</p><span class="loop-connector" aria-hidden="true"></span></li>
- <li><h3 class="text-title">4. Retain</h3><p class="mt-2 font-mono text-code break-all">{floor.asset.revisionId}</p><p class="mt-2 text-caption">Owner accepted, 29 September 2026.</p><span class="loop-connector" aria-hidden="true"></span></li>
+ <li class="lg:col-span-2">
+ <h3 class="text-title">3. Inspect</h3>
+ <div class="mt-2 grid grid-cols-2 gap-3">
+ <figure>
+ <ResponsiveImage image={floor.before} sizes="(min-width:1024px) 14vw, 50vw" />
+ <figcaption class="mt-1 font-mono text-code">Before · masonry-looking</figcaption>
+ </figure>
+ <figure>
+ <ResponsiveImage image={floor.after} sizes="(min-width:1024px) 14vw, 50vw" />
+ <figcaption class="mt-1 font-mono text-code">After · wood</figcaption>
+ </figure>
+ </div>
+ <p class="mt-2 text-caption">Bounds unchanged. 132 exterior probes unchanged.</p>
+ <span class="loop-connector" aria-hidden="true"></span>
+ </li>
+ <li><h3 class="text-title">4. Retain</h3><p class="mt-2 font-mono text-code break-all">{floor.asset.revisionId}</p><p class="mt-2 text-caption">Saved as a new revision; the parent stays intact.</p><span class="loop-connector" aria-hidden="true"></span></li>
<li><h3 class="text-title">5. Deliver</h3><a class="text-link" href={house.modelPath}>Farmhouse GLB</a><br /><a class="text-link" href={house.sourcePath}>Editable source</a><p class="mt-2 text-caption">The same saved revision.</p></li>
</ol>
</figure>
+ <div class="mt-8 grid gap-8 lg:grid-cols-12 lg:gap-12">
+ <div class="lg:col-span-5">
+ <p class="max-w-reading">
+ Gemini 3.8 Flash via Antigravity CLI edited the source written by
+ Claude Opus 5.5. Kiln rendered the room before and after: 132
+ exterior probes identical, bounds unchanged. Fourteen meshes, all
+ transforms and all materials stayed unchanged; the stone shell
+ was re-tessellated around the new floor.
+ </p>
+ <p class="mt-4 max-w-reading">
+ The child revision keeps its parent and model attribution.{" "}
+ {floorIncluded
+ ? "The current downloads include the wood floor."
+ : `The sealed ${farm.revision} downloads still contain the earlier floor.`}
+ </p>
+ <a class="text-link mt-3" href="/gallery/farmhouse/">
+ Inspect the farmhouse and its history <span aria-hidden="true">→</span>
+ </a>
+ </div>
+ <dl class="min-w-0 self-start border-y border-rule py-4 font-mono text-code lg:col-span-7">
+ <div class="grid gap-1 py-2 sm:grid-cols-4">
+ <dt class="text-dim">Parent</dt>
+ <dd class="break-all sm:col-span-3">{floor.parentRevision}</dd>
+ </div>
+ <div class="grid gap-1 py-2 sm:grid-cols-4">
+ <dt class="text-dim">Child</dt>
+ <dd class="break-all sm:col-span-3">
+ {floor.asset.revisionId}
+ </dd>
+ </div>
+ <div class="grid gap-1 py-2 sm:grid-cols-4">
+ <dt class="text-dim">Attribution</dt>
+ <dd class="sm:col-span-3">{modelName("gemini-3.8-flash-high")} · {harnessName("agy")}</dd>
+ </div>
+ </dl>
+ </div>
<div class="mt-8 grid items-start gap-6 lg:grid-cols-2">
<div class="min-w-0">
<CodeBlock code={source} label="Farmhouse · source.kiln.js" />
@@ -215,104 +267,27 @@ if (!bridgeCardImage) throw new Error("The bridge has no water-level capture for
</dd>
</div>
</dl>
- </section>
- <section
- class="container pt-16 md:pt-24"
- aria-labelledby="revision-heading"
- >
- <div class="grid gap-8 lg:grid-cols-12 lg:gap-12">
- <div class="lg:col-span-5">
- <h2 id="revision-heading">Change the floor. Keep the house.</h2>
- <p class="mt-6 max-w-reading">
- The owner said the ground floor read as brick and asked for wood.
- Gemini 3.8 Flash via Antigravity CLI edited the source written by
- Claude Opus 5.5.
- </p>
- <p class="mt-4 max-w-reading">
- Kiln rendered the room before and after. The comparison found 132
- exterior probes identical and unchanged bounds. Fourteen meshes,
- all transforms and all materials stayed unchanged; the stone shell
- was re-tessellated around the new floor.
- </p>
- <p class="mt-4 max-w-reading">
- The child revision keeps its parent and model attribution.{" "}
- {floor.ownerAccepted
- ? "The owner has accepted the floor revision."
- : "Owner acceptance of the floor is pending."}{" "}
- {floorIncluded
- ? "The current downloads include the accepted wood floor."
- : `The sealed ${farm.revision} downloads still contain the earlier floor.`}
- </p>
- <a class="text-link mt-3" href="/gallery/farmhouse/">
- Inspect the farmhouse and its history <span aria-hidden="true">→</span>
- </a>
- </div>
- <div class="min-w-0 lg:col-span-7">
- <div class="grid gap-4 sm:grid-cols-2">
- <figure>
- <ResponsiveImage image={floor.before} />
- <figcaption class="mt-2 font-mono text-code">
- Before · masonry-looking floor
- </figcaption>
- </figure>
- <figure>
- <ResponsiveImage image={floor.after} />
- <figcaption class="mt-2 font-mono text-code">
- After · wood floor
- {floor.ownerAccepted
- ? ", owner accepted"
- : ", review pending"}
- </figcaption>
- </figure>
- </div>
- <dl class="mt-6 border-y border-rule py-4 font-mono text-code">
- <div class="grid gap-1 py-2 sm:grid-cols-4">
- <dt class="text-dim">Parent</dt>
- <dd class="break-all sm:col-span-3">{floor.parentRevision}</dd>
- </div>
- <div class="grid gap-1 py-2 sm:grid-cols-4">
- <dt class="text-dim">Child</dt>
- <dd class="break-all sm:col-span-3">
- {floor.asset.revisionId}
- </dd>
- </div>
- <div class="grid gap-1 py-2 sm:grid-cols-4">
- <dt class="text-dim">Attribution</dt>
- <dd class="sm:col-span-3">{modelName("gemini-3.8-flash-high")} · {harnessName("agy")}</dd>
- </div>
- </dl>
- </div>
- </div>
<div class="mt-10 grid gap-6 border-t border-ink pt-6 md:grid-cols-2">
<div>
- <h3>Checks make the limits visible.</h3>
+ <h3>Checks read the file, not the picture.</h3>
<p class="mt-4 max-w-reading text-dim">
- The wood-floor candidate has 4,080 triangles. Its QA report
- accepts the structural result with a runtime warning. Checks read
- geometry and export data, never pixels; they do not replace the
- owner’s review.
- </p>
- <p class="mt-3 text-caption text-dim">
- The report records 10 visual-quality observations, including
- overlap between Mesh_DoorLeaf and Mesh_DoorHardware. Twelve images
- exceed the four-image portable web budget.
+ Every render comes back with a QA report on the exported GLB:
+ whether it is valid glTF, whether the parts the request named are
+ there, and what it will cost to draw. Checks read geometry and
+ export data, never pixels.
</p>
</div>
<dl class="border-y border-rule font-mono text-code">
{[
- ["acceptance", "accepted"],
- ["disposition", "warn"],
["exportIntegrity", "pass · 0 glTF errors / warnings"],
["requirementReadiness", "pass"],
- ["promptAlignment", "notEvaluated"],
- ["visualQuality", "pass · 10 observations"],
- ["runtimeCost", "warn · 10 mat / 16 geo / 16 draws"],
+ ["visualQuality", "pass"],
+ ["triangles", "4,080"],
+ ["namedParts", "16"],
].map(([key, value]) => (
<div class="flex flex-wrap justify-between gap-2 border-b border-rule px-3 py-2 last:border-b-0">
<dt>{key}</dt>
- <dd
- class={value?.startsWith("warn") ? "text-ember" : "text-wire"}
- >
+ <dd class="text-wire">
{value}
</dd>
</div>
@@ -402,41 +377,54 @@ if (!bridgeCardImage) throw new Error("The bridge has no water-level capture for
</p>
{PACKS_ENABLED ? (
<>
- <div class="mt-8 grid gap-8 md:grid-cols-3">
- <article class="md:col-span-2">
+ <div class="mt-8 grid gap-10 md:grid-cols-3 md:gap-8">
+ <article>
<a href="/packs/farm/" class="block no-underline text-ink" aria-label="Shapes &amp; Seasons Farm">
- <ResponsiveImage
- image={{ ...farm.scene.poster, alt: "" }}
- sizes="(max-width: 768px) 100vw, 65vw"
- />
+ <ScenePoster images={farmScene.posterImages} sizes={CARD_SIZES} decorative />
<h3 class="mt-5 text-ink">Shapes &amp; Seasons Farm</h3>
- <p class="mt-2 max-w-reading text-dim">
- 23 assets, their editable source and a runnable scene. Runtime,
- editable and scene downloads retain their own notices and
- provenance.
- </p>
- <span class="text-link mt-2">
- Browse the Farm pack <span aria-hidden="true">→</span>
- </span>
</a>
+ <p class="mt-2 text-dim">
+ 23 assets, their editable source and a runnable scene.
+ </p>
+ <div class="mt-2 flex flex-wrap gap-x-6">
+ <a class="text-link" href="/packs/farm/">Browse the Farm pack</a>
+ <a class="text-link" href="/scenes/farm/">Open the scene</a>
+ </div>
</article>
<article>
- <a href="/gallery/golden-gate-bridge/" class="block no-underline text-ink" aria-label="Golden Gate Bridge">
- <ResponsiveImage
- image={{ ...bridgeCardImage, alt: "" }}
- sizes="(max-width: 768px) 100vw, 33vw"
- />
+ <a href={goldenGateScene.href} class="block no-underline text-ink" aria-label="Golden Gate Bridge scene">
+ <ScenePoster images={goldenGateScene.posterImages} sizes={CARD_SIZES} decorative />
<h3 class="mt-5 text-ink">Golden Gate Bridge</h3>
+ </a>
<p class="mt-2 text-dim">
- A standalone asset with published-dimension references, procedural
- source and GPU captures.{" "}
- {bridge.review.ownerAccepted
- ? "Owner approved."
- : bridge.review.status === "awaiting-owner-review"
- ? "Awaiting owner review."
- : "Review is in progress."}
+ A driving and traffic scene on a bridge authored from
+ published dimensions, with procedural source and GPU captures.
</p>
+ <div class="mt-2 flex flex-wrap gap-x-6">
+ <a class="text-link" href={goldenGateScene.href}>Open the scene</a>
+ <a class="text-link" href="/gallery/golden-gate-bridge/">The bridge asset</a>
+ </div>
+ </article>
+ <article>
+ <a href={foundryFloor.sceneRoute} class="block no-underline text-ink" aria-label={`${foundryFloor.name} scene`}>
+ <ScenePoster
+ images={foundryFloorScene.posterImages}
+ sizes={CARD_SIZES}
+ decorative
+ />
+ <h3 class="mt-5 text-ink">{foundryFloor.name}</h3>
</a>
+ <p class="mt-2 text-dim">
+ In production: {foundryFloorPack.assetCount} models for a fictional
+ 2 nm-class chip fab, and a scene of its campus and fab floor where
+ the factory runs.
+ </p>
+ <div class="mt-2 flex flex-wrap gap-x-6">
+ <a class="text-link" href={foundryFloor.sceneRoute}>
+ {sceneRuntimes["foundry-floor"] ? "The scene preview" : "The scene status"}
+ </a>
+ <a class="text-link" href={foundryFloor.packRoute}>The pack in production</a>
+ </div>
</article>
</div>
<article class="mt-10 grid items-center gap-6 border-t border-rule pt-8 md:grid-cols-3 md:gap-8">
@@ -475,27 +463,25 @@ if (!bridgeCardImage) throw new Error("The bridge has no water-level capture for
</p>
)}
<div class="mt-10 grid gap-8 border-y border-rule py-6 md:grid-cols-2">
- <div>
- <h3 class="text-title">{foundryFloor.name}</h3>
- <p class="mt-2 max-w-reading text-dim">
- {PACKS_ENABLED
- ? `In production: ${foundryFloorPack.assetCount} models for a fictional 2 nm-class chip fab, and an interior scene where the factory runs. Both are staged for the owner’s review and are not yet accepted.`
- : "In production: a fictional 2 nm-class chip fab pack with process tools, wafer transport and a scene where the factory runs."}
- </p>
- <div class="flex flex-wrap gap-x-6">
- <a href={foundryFloor.packRoute} class="text-link">
- {PACKS_ENABLED ? "The pack in production" : "Production note"}
- </a>
- <a href={foundryFloor.sceneRoute} class="text-link">
- {sceneRuntimes["foundry-floor"] ? "The scene preview" : "The scene status"}
- </a>
+ {!PACKS_ENABLED && (
+ <div>
+ <h3 class="text-title">{foundryFloor.name}</h3>
+ <p class="mt-2 max-w-reading text-dim">
+ In production: a fictional 2 nm-class chip fab pack with process
+ tools, wafer transport and a scene where the factory runs.
+ </p>
+ <div class="flex flex-wrap gap-x-6">
+ <a href={foundryFloor.packRoute} class="text-link">Production note</a>
+ <a href={foundryFloor.sceneRoute} class="text-link">
+ {sceneRuntimes["foundry-floor"] ? "The scene preview" : "The scene status"}
+ </a>
+ </div>
</div>
- </div>
+ )}
<div>
<h3 class="text-title">Earlier examples</h3>
<p class="mt-2 max-w-reading text-dim">
- Earlier examples from earlier Kiln versions, not reviewed to the pack
- standard.
+ Earlier examples from earlier Kiln versions.
</p>
<a class="text-link" href="/gallery/archive/">
Open the archive <span aria-hidden="true">→</span>
diff --git a/site/src/pages/packs/[slug].astro b/site/src/pages/packs/[slug].astro
index f59d8128..892727e8 100644
--- a/site/src/pages/packs/[slug].astro
+++ b/site/src/pages/packs/[slug].astro
@@ -6,7 +6,7 @@ import AssetCard from "../../components/AssetCard.astro";
import CodeBlock from "../../components/CodeBlock.astro";
import VehiclesPack from "../../components/VehiclesPack.astro";
import FoundryFloorPack from "../../components/FoundryFloorPack.astro";
-import { farm, vehicles, bytes, imageQualification, packSlugs, FULL_WIDTH_IMAGE_SIZES } from "../../lib/catalog";
+import { farm, vehicles, bytes, packSlugs, FULL_WIDTH_IMAGE_SIZES } from "../../lib/catalog";
import { PACKS_ENABLED, REPO } from "../../lib/config";
import foundryFloor from "../../data/foundry-floor.json";
import { sceneRuntimes } from "virtual:kiln-scenes";
@@ -19,23 +19,15 @@ const isFarm = Astro.params.slug === "farm";
const isVehicles = Astro.params.slug === "vehicles";
const title = isFarm ? farm.name : isVehicles ? vehicles.name : foundryFloor.name;
const pageTitle = isFarm || isVehicles ? title : `${title}, in production`;
-const qualificationNote =
- "qualification" in farm &&
- farm.qualification &&
- typeof farm.qualification === "object" &&
- "note" in farm.qualification &&
- typeof farm.qualification.note === "string"
- ? farm.qualification.note
- : undefined;
---
<BaseLayout
title={`${pageTitle} — Kiln Commons`}
description={
isFarm
- ? "23 farm assets with runtime GLBs, editable source and a runnable scene. Exact delivery downloads, provenance and owner review status."
+ ? "23 farm assets with runtime GLBs, editable source and a runnable scene. Exact downloads for each profile."
: isVehicles
- ? "Six generic road vehicles with three detail tiers, separate wheels, editable source and revision history. Exact downloads, provenance and owner review status."
+ ? "Six generic road vehicles with three detail tiers, separate wheels, editable source and revision history."
: `${foundryFloor.name} is in production: ${foundryFloor.summary}.`
}
noindex={!isFarm && !isVehicles}
@@ -81,43 +73,28 @@ const qualificationNote =
<p class="lead">
A low-poly farm built from 23 assets, from a shuttered farmhouse and
working mills to animals, crops and timber fencing. Every asset has
- its source and provenance.
+ its editable source.
</p>
</div>
<figure class="mt-4">
<ResponsiveImage image={farm.scene.poster} eager sizes={FULL_WIDTH_IMAGE_SIZES} />
<figcaption class="mt-3 font-mono text-code text-dim">
- The downloadable Farm scene · {farm.revision} documented delivery ·{" "}
+ The Farm scene ·{" "}
{farm.assetCount} assets / {farm.materialRecords} material records /{" "}
{farm.textureMaps} texture maps
- {imageQualification(farm.scene.poster) && (
- <span class="mt-2 block">{imageQualification(farm.scene.poster)}</span>
- )}
</figcaption>
</figure>
<div class="mt-8 grid gap-6 border-y border-ink py-6 md:grid-cols-2">
<p class="max-w-reading">
- <strong>
- {farm.ownerReview.acceptedAssets} of {farm.ownerReview.total}{" "}
- current revisions have owner approval.
- </strong>{" "}
- The owner accepted the wood-floor farmhouse on 29 September 2026.
- The sealed {farm.deliveryReview.revision} package records{" "}
- <code>
- fullPackAccepted: {String(farm.deliveryReview.fullPackAccepted)}
- </code>
- .{" "}
- {farm.assets[0]!.revisionId === farm.floorRevision.asset.revisionId
- ? "This delivery includes the accepted floor."
- : "It contains the earlier farmhouse; owner acceptance of the child revision does not change the sealed record."}
- {" "}{qualificationNote}
+ Runtime GLBs for engines, editable source for changes, and a scene
+ download that runs the whole farm locally.
</p>
<div>
<p class="max-w-reading">
{farm.scene.available
? "Explore the Farm in your browser."
: sceneRuntimes.farm
- ? "The current browser scene is available for owner review. The scene download below contains the same controls and asset revisions."
+ ? "Explore the current Farm in your browser. The scene download below is an earlier build with the same assets."
: "The interactive scene is not included in this site build. The scene download below contains the current runnable scene."}
</p>
<a class="text-link" href="/scenes/farm/">
@@ -176,21 +153,19 @@ const qualificationNote =
<div>
<h2 id="scene">The scene is a place to try the pack.</h2>
<p class="mt-5 max-w-reading">
- On desktop, walk in first person as Rowan, open doors and gates,
- cross the bridge and drive the tractor. Click to capture the
- mouse while walking; Escape releases it and returns to overview.
- The browser preview on
- the{" "}
+ On desktop, walk in third person as Rowan, open doors and gates,
+ cross the bridge and drive the tractor. Drag to look around and
+ scroll to zoom; Escape returns to overview. The browser preview
+ on the{" "}
<a class="text-link" href="/scenes/farm/">Farm scene page</a>{" "}
and the scene download both include joystick movement, drag-look
- and contextual touch controls. Pinch zoom is available in
- overview and tractor driving; walking keeps a fixed eye height.
+ and contextual touch controls, with pinch zoom in the preview.
+ The scene download is an earlier build, which walks in first
+ person.
</p>
<p class="mt-4 max-w-reading text-dim">
Trailer towing and general vehicle physics are not included.
The scene uses Three.js 0.186.0 with WebGPU and a WebGL2 fallback.
- Current checks cover desktop and emulated touch on both backends;
- this revision has no physical-device performance qualification.
</p>
</div>
<div class="min-w-0">
@@ -269,9 +244,7 @@ const qualificationNote =
{asset.id === "farmhouse" && (
<p class="mt-5 max-w-reading text-dim">
The wood-floor child was refined by Gemini 3.8 Flash High
- via agy after the r33 revision. High effort was requested,
- not independently confirmed. The owner accepted the child
- on 29 September 2026.
+ via agy after the r33 revision.
</p>
)}
<a href={`/gallery/${asset.slug}/`} class="text-link mt-3">
diff --git a/site/src/pages/packs/index.astro b/site/src/pages/packs/index.astro
index ca4f4e54..27a07bb9 100644
--- a/site/src/pages/packs/index.astro
+++ b/site/src/pages/packs/index.astro
@@ -12,9 +12,6 @@ const featured = ["euv-scanner", "etch-cluster-tool", "vertical-furnace", "stock
if (!asset) throw new Error(`The Foundry Floor catalog has no model ${slug}`);
return asset;
});
-const farmAwaiting = farm.ownerReview.total - farm.ownerReview.acceptedAssets;
-// Typed here: with every vehicle approved the record's list is empty, which the JSON import types as never[].
-const vehiclesAwaiting: string[] = vehicles.ownerReview.awaiting;
---
<BaseLayout
@@ -44,10 +41,7 @@ const vehiclesAwaiting: string[] = vehicles.ownerReview.awaiting;
23 assets: buildings, animals, crops, fencing and farm equipment.
</p>
<p class="mt-4 text-dim">
- Runtime, editable and scene profiles.{" "}
- {farm.ownerReview.acceptedAssets} of {farm.ownerReview.total} current
- revisions approved by the owner
- {farmAwaiting > 0 ? `; ${farmAwaiting} await review` : ""}.
+ Runtime, editable and scene profiles.
</p>
<span class="text-link mt-4">
Inspect the pack and downloads<span class="sr-only">: Shapes &amp; Seasons Farm</span> <span aria-hidden="true">→</span>
@@ -75,11 +69,7 @@ const vehiclesAwaiting: string[] = vehicles.ownerReview.awaiting;
and a transit bus, each with three detail tiers.
</p>
<p class="mt-4 text-dim">
- Runtime GLBs, editable source and licence texts.{" "}
- {vehicles.ownerReview.acceptedAssets} of {vehicles.ownerReview.total}{" "}
- assets approved by the owner
- {vehiclesAwaiting.length > 0 &&
- `; the corrected revision of the ${vehiclesAwaiting.map((name) => name.replace(/^Generic /, "")).join(" and the ")} awaits review`}.
+ Runtime GLBs, editable source and licence texts.
</p>
<span class="text-link mt-4">
Inspect the pack and downloads<span class="sr-only">: Generic Road Vehicles</span> <span aria-hidden="true">→</span>
@@ -108,8 +98,7 @@ const vehiclesAwaiting: string[] = vehicles.ownerReview.awaiting;
floor, ceiling and walls, and the people and robots who work there.
</p>
<p class="mt-4 text-dim">
- In production. Runtime GLBs and the pack’s licence text. The owner
- has not reviewed this pack; it stays in production until then.
+ In production. Runtime GLBs and the pack’s licence text.
</p>
<span class="text-link mt-4">
Inspect the pack in production <span aria-hidden="true">→</span>
diff --git a/site/src/pages/scenes/farm.astro b/site/src/pages/scenes/farm.astro
index 3c8733a7..3313c8ed 100644
--- a/site/src/pages/scenes/farm.astro
+++ b/site/src/pages/scenes/farm.astro
@@ -12,8 +12,8 @@ import { PACKS_ENABLED } from "../../lib/config";
<BaseLayout
title={`${farmScene.name} scene · Kiln`}
description={sceneRuntimes.farm
- ? "The current Farm preview awaits owner review. Explore first-person walking, tractor driving and touch controls, or download the runnable scene."
- : "View the Farm scene's current review status, control and device notes, and runnable scene download."}
+ ? "Explore the Farm: third-person walking, tractor driving and touch controls, or download the runnable scene."
+ : "The Farm scene's controls, device notes and runnable scene download."}
noindex
nofollow
breadcrumbs={[
diff --git a/site/src/pages/scenes/foundry-floor.astro b/site/src/pages/scenes/foundry-floor.astro
index 70b7e7f0..4dffbe23 100644
--- a/site/src/pages/scenes/foundry-floor.astro
+++ b/site/src/pages/scenes/foundry-floor.astro
@@ -1,5 +1,4 @@
---
-import Callout from "../../components/Callout.astro";
import BaseLayout from "../../layouts/BaseLayout.astro";
import SceneShell from "../../components/SceneShell.astro";
import foundryFloor from "../../data/foundry-floor.json";
@@ -35,7 +34,6 @@ const presentation = foundryPresentation(foundryFloorPack, scene.pack.release);
>
<div class="container pb-12 pt-8">
<SceneShell scene="foundry-floor">
- <Callout slot="notice" label="In production"><p>This preview is staged for local owner review. Appearance and device feedback remain open; technical checks do not establish owner acceptance.</p></Callout>
<div class="mt-8 grid gap-6 border-t border-rule pt-6 md:grid-cols-3">
<div>
<h2 class="text-subheading font-semibold">
diff --git a/site/src/pages/scenes/golden-gate.astro b/site/src/pages/scenes/golden-gate.astro
index 67ab1205..32d64b7d 100644
--- a/site/src/pages/scenes/golden-gate.astro
+++ b/site/src/pages/scenes/golden-gate.astro
@@ -41,7 +41,7 @@ const tierSentence = !staged || !sceneTiers.length
<BaseLayout
title={`${scene.name} scene · Kiln`}
- description="A preview of a Kiln-authored suspension bridge in a driving and traffic demonstration, still being qualified. Drive a sedan across the deck or view the span by day, at golden hour or in fog."
+ description="A Kiln-authored suspension bridge in a driving and traffic demonstration. Drive a sedan across the deck or view the span by day, at golden hour or in fog."
noindex
nofollow
breadcrumbs={[
diff --git a/site/src/pages/scenes/index.astro b/site/src/pages/scenes/index.astro
index 79af78bf..c4bd4937 100644
--- a/site/src/pages/scenes/index.astro
+++ b/site/src/pages/scenes/index.astro
@@ -4,6 +4,7 @@ import BaseLayout from "../../layouts/BaseLayout.astro";
import { sceneRuntimes } from "virtual:kiln-scenes";
import { farmScene, foundryFloorScene, goldenGateScene } from "../../data/scenes";
import { PACKS_ENABLED } from "../../lib/config";
+import ScenePoster from "../../components/ScenePoster.astro";
// Each card states the scene's true status in this build: a staged runtime makes it a preview (none of the three
// is qualified), and without one the page shows the scene's status panel.
@@ -12,7 +13,7 @@ const cards = [
scene: farmScene,
alt: "Barn, farmhouse and fields in the Farm scene",
staged:
- "The current preview includes first-person walking, tractor driving and touch controls. It awaits owner review; the same scene is available to download.",
+ "Walk the farm in third person, drive the tractor and play with touch. An earlier build is available to download.",
unstaged:
"The browser scene is not included in this build. The current runnable scene is available in the Farm download.",
},
@@ -20,7 +21,7 @@ const cards = [
scene: goldenGateScene,
alt: goldenGateScene.posterAlt,
staged:
- "This scene is a preview and is still being qualified. It loads only when you choose Explore.",
+ "Drive across the bridge or view the span by day, at golden hour or in fog. It loads only when you choose Explore.",
unstaged:
"The browser scene is not part of this build. The bridge asset has its own page and downloads.",
},
@@ -28,7 +29,7 @@ const cards = [
scene: foundryFloorScene,
alt: foundryFloorScene.posterAlt,
staged:
- "In production: a preview of what the scene has delivered so far, staged for the owner’s local review and replaced when the scene is accepted. It loads only when you choose Explore.",
+ "In production: the campus and fab floor as they stand so far. It loads only when you choose Explore.",
unstaged:
"In production. The browser scene is not part of this build.",
},
@@ -53,26 +54,12 @@ const cards = [
<a href={scene.href} aria-label={scene.name} class="no-underline text-ink mt-12 grid gap-8 border-t border-ink pt-8 lg:grid-cols-2">
{PACKS_ENABLED && scene.posterImage && (
<div>
-
- <picture>
- <source
- type="image/avif"
- srcset={scene.posterImage.srcsetAvif}
- sizes="(max-width: 768px) 100vw, 50vw"
- />
- <img
- src={scene.poster}
- srcset={scene.posterImage.srcsetWebp}
- sizes="(max-width: 768px) 100vw, 50vw"
- width={scene.posterWidth}
- height={scene.posterHeight}
- alt=""
- class="w-full border border-rule"
- loading="lazy"
- />
- </picture>
-
- {"posterCaption" in scene && <p class="mt-2 text-caption text-dim">{scene.posterCaption}</p>}
+ <ScenePoster
+ images={scene.posterImages}
+ sizes="(max-width: 1023px) 100vw, 50vw"
+ decorative
+ class="border border-rule"
+ />
</div>
)}
<div>
diff --git a/site/src/styles/global.css b/site/src/styles/global.css
index 1ce25796..6877d6cd 100644
--- a/site/src/styles/global.css
+++ b/site/src/styles/global.css
@@ -97,9 +97,16 @@
:is(h2,h3,h4):hover .docs-heading-link,.docs-heading-link:focus {opacity:1;}
[data-copy-code],[data-code-expand],.docs-code-actions button {color:var(--color-ink);}
nav[aria-label=Breadcrumb] a {display:inline-flex;align-items:center;min-height:2.75rem;}
- @media(max-width:59.99rem) {#primary-nav {flex-direction:column;align-items:stretch;} #primary-nav a {border-top:1px solid var(--color-rule);display:flex;align-items:center;} }
#menu-toggle[aria-expanded=true] {background:var(--color-ink);color:var(--color-sheet);}
- @media(max-height:400px) {.scene-topbar {padding:.25rem;gap:.25rem;} .scene-topbar p {order:3;flex-basis:100%;font-size:.8125rem;line-height:1.1;} .scene-topbar .text-link {min-height:1.5rem;} scene-shell [data-loading] {padding:.5rem;} }
+ /* The bar over a running scene is one short row. In fullscreen it gives way to a single faint chip at the middle of the left edge, clear of every scene's own controls, so the scene has the screen and touch devices keep a way out. */
+ .scene-topbar {border-bottom:1px solid var(--color-rule);padding:.25rem .5rem;}
+ .scene-topbar-button {display:inline-flex;align-items:center;gap:.375rem;min-height:2.5rem;padding:.25rem .75rem;border:1px solid var(--color-rule);border-radius:var(--radius-control);background:var(--color-sheet);color:var(--color-ink);font-size:.875rem;font-weight:600;white-space:nowrap;}
+ .scene-topbar-button:hover {background:var(--color-stage);border-color:var(--color-ink);}
+ scene-shell:fullscreen .scene-topbar {position:absolute;top:50%;left:max(.5rem,env(safe-area-inset-left));z-index:10;transform:translateY(-50%);border:0;padding:0;}
+ scene-shell:fullscreen [data-exit] {display:none;}
+ scene-shell:fullscreen [data-fullscreen] {min-height:2rem;opacity:.45;}
+ scene-shell:fullscreen [data-fullscreen]:is(:hover,:focus-visible) {opacity:1;}
+ @media(max-height:400px) {scene-shell [data-loading] {padding:.5rem;} }
.drawing-sheet {background-color:var(--color-paper);background-image:linear-gradient(to right,rgba(41,45,41,.055) 1px,transparent 1px),linear-gradient(to bottom,rgba(41,45,41,.055) 1px,transparent 1px);background-size:24px 24px;border:1px solid var(--color-ink);}
.drawing-annotations {position:absolute;inset:0;width:100%;height:100%;pointer-events:none;overflow:visible;}
.drawing-annotations path,.drawing-annotations line {fill:none;stroke:var(--color-ink);stroke-width:1;vector-effect:non-scaling-stroke;}