Commit History
-
Restore/replay: transient pulse on the rebuilt canvas
TheYuchenpendingRestore (History restore/replay and scenario boots — same bridge) swaps the whole canvas behind the pane the user clicked in; the silent mutation read as "nothing happened". Every restored node now pulses one 1.2s accent ring (.restore-pulse, index.css), class stripped after 1.4s via functional setNodes so mid-window drags survive and the next restore re-triggers. Global prefers-reduced-motion rule collapses the animation.123b5a8 -
Typography audit: 9px floor, label/decimal convergence, conventions note
TheYuchenInventoried font sizes, label casing, chip styles and number formatting across the seven views. The system is already largely convergent; three real drifts fixed, and the convention is now written down next to the tokens (index.css UI-conventions block): - 9px floor: the only two sub-9px labels (CompareView "divergence point", BlockPicker "plugin" suffix) bumped from 8px to 9px. - Section-label convention: FinalMetrics' uppercase labels were the one instance missing tracking-wider. - Compact-line decimals: the fidelity card's across-runs line mixed a 2dp mean with a 1dp range in one sentence — now 1dp like every other strip/board stat (headline metrics and mono detail lines stay 2dp; targets stay whole pp). Deliberately NOT churned (documented instead): tracking-widest on palette family badges (distinct role), micro-chips in 28px history rows and tab count badges (px exceptions), CompareView's 2dp Δ (it sits in a 2dp mono detail line).2e22380 -
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
-
Mobile + large-touchscreen UX overhaul
Yuchen Yuan +1: Claude Opus 4.7 (1M context)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…5c7eb51 -
Mobile + a11y + defense-in-depth fixes from broader audit
Yuchen Yuan +1: Claude Opus 4.7 (1M context)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…524287c
-
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 -
Fix Auto-connect notice breaking the toolbar layout
Yuchen YuanThree compounding problems visible when Auto-connect produced warnings: 1. The warning text was concatenated onto the summary line, ballooning the notice past 120 characters. Ellipsis truncation then left the user with "only t..." — visible but useless. 2. The left flex cluster had `min-w-0` but no `flex-1`, so it expanded to fit the long text and started pushing the right-side button group off the end of the row. 3. None of the btn variants carried `whitespace-nowrap`, so once a button was squeezed its label wrapped to two lines ("Load" / "preset", "Auto-" / "connect") — visually broken even after truncation kicked in. Fixes: * `Notice.detail` optional field — the notice now shows a short "Connected 4 blocks. (hover for 2 notes)" summary and parks the full multi-line warning list in the hover tooltip. * Left toolbar cluster gets `flex-1 min-w-0`, right cluster gets `shrink-0`, parent adds `gap-4` for breathing room. Truncation now actually engages becau…11a5446 -
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
-
Preset picker: vertical list + distinct accent2 fill; trust proxy headers
Yuchen YuanPreset picker UX - "Load preset" button switches from the subtle outline `btn` style to a new `btn-secondary` variant (tinted accent2 background + accent2 border + accent2 text). Sits between the neutral outline `btn` ("Clear") and the filled gradient `btn-primary` ("Run pipeline") so all three toolbar actions are visually distinct. - Popover changes from a horizontal flex row to a vertical `flex-col` list with a fixed 256px width, matching the convention of a typical menu and removing the awkward horizontal wrap when more presets are added later. Uvicorn --proxy-headers (defensive HTTPS fix) HF Space terminates TLS at edge nginx and forwards `X-Forwarded-Proto: https` on. Without `--proxy-headers`, uvicorn ignores that header, so FastAPI's automatic 307 redirects (e.g. trailing-slash normalisation) and any `request.url_for(...)` calls emit `http://` URLs that get mixed-content-blocked when the page is served over `https://*.hf.space`. This …66f5aac -
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 -
Initial JQub Quantum Flow demo
Yuchen Yuan- FastAPI backend serving QuCAD / QuBound / CompressVQC as a topologically-sorted pipeline under /api/workflow/run - React + Vite + React Flow frontend with drag-and-drop node palette - 14-day offline cache of ibm_fez calibration so the demo runs without an IBM Quantum token - Two-stage Dockerfile targeting HuggingFace Spaces (port 7860) Algorithms by Jovin Antony Maria (JQub); web refactor by Yuchen Yuan.1ee2bb3