Figure export: one <base>.bundle.zip download (STORE zip writer, no deps)
TheYuchen
c4e53ef
Packaging decision resolved: zip, without the dependency. New
frontend/src/lib/zip.ts is a minimal STORE-method ZIP writer (local
file headers + central directory + EOCD, table-driven CRC-32, ~100
lines, pure JS). exportFigure now collects the .svg, the .png (hybrid/
raster path only) and the .provenance.json and downloads exactly ONE
<base>.bundle.zip — a single camera click can no longer trip browser
multi-download blocking, which silently dropped the sidecar and/or
PNG. In-SVG provenance <metadata> unchanged. New node lane
scripts/check_zip.test.ts asserts the CRC-32 check vector
("123456789" -> 0xCBF43926), the archive structure, and interop:
the fixture is listed with `python3 -m zipfile -l` and CRC-tested
with `-t` (Done testing). Camera button/claims-map wording and the
Wave-Q export contract + filename notes updated. Backlog entry
removed.
Infra S3 sweep: boot honesty, theater stability, export provenance
TheYuchen
cab6fcb
Audit backlog wave 3, infra area:
- App boot: unknown ?scenario= keys warn instead of vanishing;
scenario activation runs before the demo-archive check and writes
its workspace mode before any await (mode flash); StrictMode
double-boot guard landed with the canvas batch
- EvidenceTheater: y-domain target band anchors on the FIRST batch
(no mid-run re-zoom); overlay stop annotations flip when the left
side would clip (shared estimateTextW); frame keys are composite
(shots_done can repeat); scrub-reset dep list documented and its
accidental window.open reference removed; "hatched" doc claim
corrected to the 5%-opacity wash actually drawn
- figureExport: regenerate string and scenario doc say F0..F8 (F8
existed, the string didn't); multiverse/history provenance lists
exactly the ARCHIVE_WINDOW the views render while id lookups scan
unbounded; the live run's config_hash comes from theaterRun (run
start) with lastConfigHash as fallback (archive-time value goes
sta…
Filmstrips: Evidence Theater gains a batch-index trace scrubber
(replayed/archived runs only; live path untouched) that renders the
chart AS OF batch k — truncated intervals/envelope, "so far" readouts,
stop annotation only once reached. Exports in a scrubbed state are
bit-exact per (trace, k) and embed trace_position in the provenance;
F0 filmstrip recipe (batch 2 / batch 4 / final) documented with
live-verified widths (±3.06 / ±2.16 / ±1.93pp).
Illustrator-grade true-SVG: new lib/svgPaper.ts holds the pure
presentation-inlining logic (whitelisted attributes resolved via
getComputedStyle to literals — zero var()/currentColor/class/<style>;
concrete font stacks; px normalized; viewBox-derived pt sizing;
standalone XML header) with a plain-node unit test
(scripts/check_svg_paper.test.ts) and a per-export safety audit.
Raster: hybrid PNG at explicit pixel dimensions (never
devicePixelRatio); 2.5x default, 4x via alt-click/long-press on the
camera. Files named <view>_<scenario|runid>[_b…
Wave P: paper-first reorientation
TheYuchen
79cd0aa
De-product: remove WelcomeTour(+slides), AuthButton/session UI,
Support(NSF)/Papers/Developers popovers, Lab link, UploadPluginModal
trigger; plugin protocol stays live via API. Neutral index.html
title/meta + PWA manifest. Header = name/tagline/env chip/live
toggle/theme.
Anonymous mode (double-blind): lib/anon.ts. VITE_ANON=1 build folds
identifying strings out of the bundle (EvidenceQ codename, no paper
bibtex, no GMU theme, vite plugin rewrites index.html+manifest);
?anon=1 runtime fallback hides the same surfaces on normal builds.
Audit: zero user-visible identifying strings in the anon dist.
Figure export with embedded provenance: lib/figureExport.ts + camera
buttons on canvas toolbar / Multiverse header / Evidence header.
True-SVG for svg targets, foreignObject-SVG + 2.5x PNG for HTML
composites; paper transform (white bg, fonts x1.25, chrome stripped);
SVG <metadata> + .provenance.json carry app version, export time,
run_ids/root_seeds/config_hashes of every visible run and t…