Commit History
-
Remove the GMU-branded theme entirely
TheYuchenDouble-blind treatment is no longer needed (reviewers see the paper, not the site), and the branded palette was the last piece of identity chrome with real maintenance cost: theme.ts gated it behind ANON, vite.config.ts carried a CSS-stripping generateBundle hook, and every new visual had to be checked under a third palette. - theme.ts: ThemeKey is light|dark; gmu entry gone; stored "gmu" preference migrates to the light default (comment documents it). - index.css: [data-theme="gmu"] token block deleted. - vite.config.ts: %THEME_KEYS% is always ["dark"]; the anon CSS-stripping hook is retired (nothing left to strip). The rest of the VITE_ANON machinery (titles, manifest) is unchanged. - Stray "three themes" comments updated. Residue grep: only the migration comment mentions the old key.ceee520 -
Audit M1-M3 + minors: lineage, stopping disclosure, anon scrub
TheYuchenM1 scenarios.ts QUCAD_GRAPH is now a literal copy of bundled demo record 5c2a6a71a7a4's graph (ids n1..n5, sampled fidelity, same params/positions) instead of an s1..s5/statevector rebuild — F1/F5 runs now group with the demo cards (same config_hash) and pinned seed 336157917 replays the archived numbers bit-exactly. M2 Optional-stopping honesty in three places: limitation block at the stopping rule (qlib/qiskit_utils.py — width-based data-dependent stopping perturbs exact nominal coverage of the final fixed-n interval; confidence sequences are the rigorous alternative), one sentence in the Wave I doc section, and a clause in the precision-target tooltip. M3 Anon builds scrub the branded theme completely: generateBundle strips the [data-theme=gmu] CSS block, and theme.ts gates the stored-preference fallback behind !ANON so the key literal is dead-code-eliminated from VITE_ANON JS (runtime ?anon=1 behavior unchanged). Anon dist grep…e52951c -
Wave P: paper-first reorientation
TheYuchenDe-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…79cd0aa
-
Polish pass: brand cleanup, popover consistency, mobile safety
Yuchen YuanAudit-driven fixes: 1. Branding: - Dockerfile comment: QuAIM → QuDA Studio - package.json name: jqub-quantum-flow-ui → quda-studio-ui - All localStorage keys: jqub.* → quda.* (theme, pane widths, collapsed state, IBM toggle, tour flag). Existing users will see fresh defaults on first visit (acceptable — the old Space URL is gone anyway so there's no continuity to preserve). 2. Popover consistency: - All 4 popovers (Papers, Developers, Support, BlockPicker) now share z-40 instead of a mix of z-30 and z-50. - BlockPicker gets the same mobile-safe positioning as the other three: fixed left-3 top-14 on narrow screens, absolute on ≥sm. - BlockPicker width clamped with min() so it can't overflow on narrow viewports. 3. Pre-hydration script in index.html updated to read quda.theme instead of jqub.theme.95967ab
-
Extract MoreMenu into its own file; make Light the default theme
Yuchen YuanTwo unrelated cleanups rolled into one commit. --- 1. Extract MoreMenu into components/MoreMenu.tsx FlowCanvas.tsx had crept to 626 lines after the toolbar responsive pass, overshooting the ~350-line ceiling the Wave 2 handover cleanup set. The inline MoreMenu component was the biggest blob (~130 lines including its own outside-click/Escape effect and menu-item data table), and it has nothing to do with React Flow state or pipeline execution — it's a self-contained mobile overflow menu. New file: `components/MoreMenu.tsx` (172 lines, includes new responsive guard — see point 2). FlowCanvas drops to 487 lines; still a little fat (CanvasToast is the next candidate), but back in the reasonable range. Also slipped in: a matchMedia guard for the case where the user opens the menu on mobile, then stretches the viewport past the `md` breakpoint (768px). Before this commit the React `open` state stayed true while the menu's wrapper became `display:none`; if the user later shrank the viewpo…8f72426 -
frontend: rename light theme "Paper" → "Light"
Yuchen Yuan"Paper · print-ready" was cute but non-obvious; people looked at it and wondered why the app wanted to print. Rename to the plain "Light" label most users expect, with a matching tagline. The data-theme key (and all CSS selectors) stay "light" — no runtime behaviour change, no localStorage migration needed.96112b3
-
Add Light (Paper) and GMU (Mason) themes, runtime-switchable
Yuchen Yuan +1: Claude Opus 4.7Groundwork: * Colors migrated from hard-coded hex in tailwind.config.js to CSS variables (RGB triplets so `/<alpha-value>` slash syntax still works, e.g. `bg-canvas/80` -> `rgb(var(--color-canvas) / 0.8)`). * React Flow overrides and MiniMap/Background colors in FlowCanvas now read from the same variables, so theme swaps carry through to the canvas widgets too. * Body background gradient, scrollbar thumb, and edge-stroke color are per-theme via --body-bg, --scrollbar-thumb, --rf-edge-stroke. Themes registered in src/lib/theme.ts: * dark -> :root default (deep navy + cyan — unchanged) * light -> white paper background, deep sky/violet/pink/emerald accents. Good for slides / screenshots / print. * gmu -> Mason green canvas + Mason gold primary (#FFC72C), green secondary (#006633), teal/red algo accents. UI: ThemeSwitcher dropdown in TopBar (next to the Tour button), shows preview swatches and tagline, persists …a4eeda5