Commit History
-
Infra S3 sweep: boot honesty, theater stability, export provenance
TheYuchenAudit 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…cab6fcb
-
Global code-quality polish: DRY + named constants + leak cleanup
Yuchen Yuan +1: Claude Opus 4.7 (1M context)Targeted refactor pass based on a structured audit. Pure maintainability wins; no behaviour changes. Frontend: collapse 8 popovers into one hook 8 components (AuthButton, ThemeSwitcher, MoreMenu, PapersPopover, SupportPopover, DevelopersPopover, BlockPicker, PresetPicker) each carried an identical 16-line "close on mousedown + Escape" effect block. Extracted to lib/useDismissOn.ts; ~150 lines deleted, one hook to audit instead of eight. useDismissOn(open, rootRef, useCallback(() => setOpen(false), [])) Behaviour is intentionally identical to the inlined block so older git-blame on the call sites stays coherent. Backend: consolidate effective-user-id resolution routes/plugins.py and routes/workflow.py each carried a subtly different implementation of "session cookie wins over query_user_id, anon hf_ prefix is reserved". Pulled into auth_service.resolve_effective_user_id(request, query, *, required). - required=True path raises ValueError → routes/plugins maps to 400 - required=…57f0b3e -
Fix popover clipping + IBM-chip transparency bleed-through
Yuchen Yuan +1: Claude Opus 4.7 (1M context)User report: two visible glitches on the screenshots — (1) on a desktop browser, the icons in the TopBar's right cluster appeared to be visually stacked behind/inside the "ibm: n/a" chip on the left cluster; (2) on iPhone Safari, opening the Theme dropdown made the menu slide off the left edge of the screen. Root cause (1) — opacity-70 on the IBM chip When the server has no IBM token, the chip was rendered with class `opacity-70`. That made the WHOLE element 70% translucent, including its background. At narrower viewports where the right- cluster icons (Lab/Papers/Developers/Theme/Tour/Support/Auth) flex- squeeze closer to the chip, anything sitting under or behind it became visible through the alpha. Fixed by replacing opacity-70 with `!bg-canvas` (solid surface color) + the existing `text-mute` for the dimmed-disabled look. Identical visual intent, no alpha transparency. Root cause (2) — 3 popovers lacked the mobile-safe anchor pattern PapersPopover, Support…db325d1
-
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 -
ThemeSwitcher: revert z-index to z-30
Yuchen Yuan +1: Claude Opus 4.7Theme dropdown was working fine at z-30; only Papers needed bumping. Reverting to keep the change surface minimal. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>2ed1d6e -
TopBar: bump header popovers to z-50 so React Flow can't overlay them
Yuchen Yuan +1: Claude Opus 4.7The Papers / Theme popovers had z-30, but React Flow creates its own stacking context for the canvas, which was rendering nodes on top of the popover content when they overlapped. Bumping both popovers to z-50 (same layer as the mobile drawer) puts them above the canvas. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>059dfbe -
Copy audit pass: align timing/recommendation text with QuCAD default
Yuchen YuanAfter switching the default preset to QuCAD, several pieces of copy still framed QuBound-with-LSTM-training as the canonical first-run experience. Sweep them: - ResultsPane EmptyHint/RunningHint: lead with precomputed-cache instant behavior; QuBound's 2-min cold path is now a conditional footnote instead of the headline warning. - WelcomeTour TrySlide: same rewrite; reorder the 'what to try first' list so QuCAD (cache-hit instant) is the top recommendation, QuBound drops to second; upload hint covers .qasm too. - WelcomeTour PipelineSlide SVG: illustrative algo node shows QuCAD (accent2) instead of QuBound (accent3) so the diagram matches the default canvas; section titles use Blocks/Links to match the toolbar chip wording. - WelcomeTour WelcomeSlide: kbd label tracks the real button text ('Run pipeline', not 'Run'). - nodeCatalog: QuBound tagline 'predict fidelity bound' was mixing units vs the 'predicted error bound' label used in the cards and final metrics; uni…4087daa
-
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