Viewer audit

This audit covers the web viewer as committed at 5e91fa1: web/src/App.tsx, Cloudscape React and Three.js, served by arena serve. A scratch build of that commit ran on 127.0.0.1:8791. Playwright drove it at 1440 and 390 px wide, in light and dark, before and after one run at 45 deg and -1.2 mm. The run measured a violation (gap 0.7999999999999959 mm, threshold 1.5 mm) and took 0.69 s.

This audit describes the viewer at 5e91fa1 and is kept as the record of what the workbench replaced. The workbench replaces items 1, 2, 4, 5, 6 and 8 of "What an engineer cannot do" below. Item 3 still holds: no route accepts a STEP file or a sidecar, and a STEP file of your own goes through arena assembly with --sidecar in a terminal.

Screenshots, all under assets/media/:

  • ui-audit-landing-1440-light.png, ui-audit-landing-1440-dark.png, ui-audit-landing-390-light.png, ui-audit-landing-390-dark.png
  • ui-audit-run-1440-light.png, ui-audit-run-1440-dark.png, ui-audit-run-390-light.png, ui-audit-run-390-dark.png

Page height is 3377 px at 1440 and 2814 px at 390 before a run. It grows to 3801 px and 3744 px after a run.

What an engineer cannot do

  1. Choose a mechanism. The only mechanism is the rotating pin: the form is titled "Run a fixture pose" (App.tsx:421) and createRun posts kind: "verify" with angle_deg and offset_mm (api/client.ts:251). The three families and the two STEP samples run only from arena assembly.
  2. Run a sweep or a search. The API accepts kind: "search" (api.py:540), but api/client.ts has no function for it and no screen offers a grid, a budget, a seed or a strategy.
  3. Bring an assembly. No route accepts a STEP file or a sidecar. The address ?pose=NAME (lib/poseDirectory.ts) loads a committed static export from web/public/data. With ?pose=family-hinged-flap-post the page shows the hinged flap, while the form still reads "Run a fixture pose" and the gap map still shows the pin lattice (0 to 90 deg, -1.2 to 1.2 mm).
  4. Read the requirement before running. "Units and bounds" says "Bounds: none. Start a run to read the fixture units and bounds." (App.tsx:490). The values arrive inside the run status (App.tsx:363), so the pair, the 1.5 mm requirement and the ranges stay hidden until a run ends.
  5. Watch progress or cancel. The status payload holds no pose count (api.py:775). The page polls every 250 ms (App.tsx:236) and prints "Run : running" with elapsed seconds (App.tsx:366, App.tsx:450). The cancel route exists (api.py:911) and no client function calls it.
  6. See past runs. api.py:975 accepts only POST on /runs, so no route lists runs. The page keeps one run id in React state (App.tsx:101). A reload drops the run from view while its directory stays on disk.
  7. Place a run on the gap map. The map and the "Stored gap (failing pose)" line read the committed data/lattice/lattice.json (App.tsx:170, App.tsx:567). A run never changes them.
  8. Understand the export. The list prints file names, "Export run.json" and "Export obstacle.glb" (App.tsx:643), with no description and no report page.

What reads poorly

  1. The verdict sits at the bottom. At 1440 the Findings panel starts about 3370 px down a 3801 px page. After a run the form line shows only "Run run-ec9b4c5ea443: completed" (App.tsx:448).
  2. The page shows raw machine values. It prints "Conclusion: failure_found" (App.tsx:579), an unrounded gap, unrounded witness points (App.tsx:598) and the 64-character result ID twice (App.tsx:605, App.tsx:614). The same hash fills the 3D label, which covers the tops of both parts in ui-audit-run-1440-dark.png.
  3. Two measuring areas disagree. After the run, the scrubber below the form still reads "No measurement yet", "Pose none", "Verdict none" and "Scope none". It has its own sliders and its own readout (App.tsx:454).
  4. The gap map takes the page. Its 7 x 7 cells measure about 180 px square at 1440, which makes the map about 900 px tall, and it sits above Findings. All 49 cells are tab stops.
  5. The piece panel has no style. No rule in web/src/styles names .piece-panel or .piece-row. The list renders as bullets, and the name and "Dimensions: none" run together as "pinDimensions: none". The native grey buttons sit beside Cloudscape buttons. PiecePanel.tsx prints "Dimensions: none" on every row.
  6. The first screen carries no run. The landing state shows a committed pin at 0 deg and 0 mm, labelled only by a monospace caption, "Scene: Exported sample pose" (App.tsx:517). Every empty panel says "none": Pose, Verdict, Result ID, Scope, Bounds, Dimensions, Findings, Artifacts.
  7. The inputs give no help. "Angle (deg)" and "Offset (mm)" are plain text fields with no unit suffix, no range hint and no validation before submit (App.tsx:324).
  8. Three visual dialects share the page: Cloudscape buttons and header, native inputs, sliders and buttons, and bare links. The pose line is loose monospace text between two panels (App.tsx:496).
  9. The console shows a 404 for /favicon.ico on every load. It also shows the Three.js warning "Unknown color currentColor", which comes from App.tsx:291 passing a CSS keyword to a Three.js colour.

Measured and kept

  • No horizontal scroll at 390 px. scrollWidth is 375 against a 375 px client width (15 px scrollbar). Cloudscape's off-screen measuring nodes sit at left: -9999px and show nothing. body sets overflow-x: hidden (app.css:14), which would hide any future overflow.
  • Both themes render with readable contrast. The theme follows the system until the toggle is used.
  • Every input has a label, and the canvas has an aria-label. Custom controls show a 2 px focus ring (#005f99 in light). The two number inputs use the browser default 1 px ring.
  • The page has 67 tab stops: 49 gap cells, the rest controls. The Findings entry is a tab stop only after a run (App.tsx:584).
  • Reduced motion is honoured in code: orbit damping (scene/createScene.ts:125), the scrubber (scrub/motion.ts) and .scene-status (styles/app.css:157). The audit read this in code and did not exercise it in the browser.