Audit backlog wave 3, evidence area:
- dedupeDraws keys on (root_seed, shots, successes) [approved]: only
a bit-exact repetition of the whole draw is dropped — the same seed
with a different stopping point executed different measurements and
now pools as new evidence. Node-lane assertions added; F8
demo-archive numbers verified unchanged.
- Sparkline stops flattening sub-unit series (QuCAD loss traces);
divide-by-zero guard only fires on a truly flat trace
- KvRow never prints "[object Object]" (nested objects/arrays
JSON-stringify, truncated); viz fmt + CircuitDiff gateDiffOf
unexported (dead exports)
- QuBound/QuCAD NaN payloads render as absent ("—"), not "NaN" tiles;
Qshot's headline fidelity joins the % convention (formula + pilot
table keep the author's raw-unit notation); CI line tabular-nums
- fidelity histogram says what it hides ("+k more outcomes · n shots
not listed"); ReplicateStrip excludes errored runs, highlights the
newest matching dot with an ep…
- pane auto-switch keyed on compareIds identity (pair replacement re-fires)
- compare selection pruned after Clear demo data / archive import;
setCompareIds dedupes; CompareView renders "runs no longer archived"
instead of a silent blank when records are gone
- interval-bar point markers clamp at the 0/1 scale edges (cards clipped
by overflow-hidden; CompareView twins overhung)
- RunHistory restore/replay titles tell uploaded-circuit records' truth
("re-upload to reproduce"); lineage footer names the 50-run window
- PluginFigures bar with data:[] renders a stub instead of crashing the pane
Mobile + large-touchscreen UX overhaul
Yuchen Yuan+1: Claude Opus 4.7 (1M context)
5c7eb51
Addresses a 15-finding audit covering viewport handling, safe areas,
touch behavior, hit-target sizing, and iOS Safari quirks.
Viewport + PWA chrome
- viewport meta gains viewport-fit=cover + interactive-widget=
resizes-content so safe-area-inset(*) applies and the iOS keyboard
triggers layout reflow instead of just overlaying content.
- theme-color set for light + dark via prefers-color-scheme media
queries — browser chrome now blends with our surface instead of
flashing white. apple-mobile-web-app-* meta + apple-touch-icon
let the app feel native if added to home screen.
- New /public/manifest.webmanifest registered, minimal but sufficient
for installable-PWA detection.
Dynamic viewport (100dvh)
- App.tsx root: h-screen → 100dvh inline (with fallback). Was
clipping ~80px under iOS Safari's collapsing address bar on first
paint.
- UploadPluginModal max-h moved from calc(100vh-2rem) to
calc(100dvh-1rem) + safe-area-inset-bottom padding so the modal
fits even whe…
Mobile + a11y + defense-in-depth fixes from broader audit
Yuchen Yuan+1: Claude Opus 4.7 (1M context)
524287c
Mobile + keyboard access to palette tiles (CRITICAL)
Previously the only way to add a block to the canvas was HTML5 drag-
and-drop, which doesn't fire on touch devices and has no keyboard
analogue. Tiles were <div draggable> with no role, no tabIndex, and
no click handler — so mobile users could only use the BlockPicker
dropdown, and keyboard users had no path at all.
- PaletteTile is now a <button type="button"> with onClick →
addBlocksToCanvas([kind]) plus a Space override (Enter is handled
by the native button semantics).
- Drag-and-drop still works for mouse users on top of this — the
button element preserves draggable + onDragStart so drag-to-
insert keeps working.
- focus-visible:ring-2 ring-accent makes the focused tile obvious to
keyboard users.
- aria-label per tile now reads "Add Gate Counter block to canvas.
Tally gate types in the current circuit." (label + tagline) rather
than relying on title-attr-only.
Touch-friendly delete X (IMPORTANT)
Both the palett…
Plugins can now emit a list of typed visual outputs beyond the flat
summary dict. Each figure is a small JSON object with a `type` field;
the result card renders them inline below the summary table.
Five types ship today
- markdown — headings, lists, bold/italic/code, fenced code blocks.
Raw HTML is rejected by the backend; the frontend renderer never
reaches for dangerouslySetInnerHTML on this path.
- table — headers (≤ 12 cols) + rows (≤ 100 rows), primitives only.
- bar — inline SVG bar chart, up to 50 bars, zero JS deps.
- svg — escape hatch with sanitisation: rejects <script>,
javascript:, <foreignObject>, <iframe>, <object>, <embed>, and any
on*= event-handler attribute. Up to 256 KB.
- image_png_b64 — base64-encoded PNG, ≤ 1 MB decoded, must have the
PNG magic bytes (JPEG/GIF/other formats rejected).
Each figure also accepts an optional `title` (≤ 120 chars) rendered
as the panel header. Total `figures` list capped at 10 entries.
Backend
- New plugin_run…