Commit History
-
Learn from zero, part 1: exact toy sim + LearnLab frame + steps 0-2 (marker: learn-lab)
TheYuchenlib/quantumToy.ts: tiny EXACT simulator over REAL amplitudes ([a,b] / [a00..a11]) — exact quantum mechanics for the lesson gate set X/H/CX (real matrices keep |0...0> in the real subspace), so H·H|0> returns |0> by sign cancellation and Bell is exactly half/half. Complex phases are deferred, not denied (module header states the stance); seeded rng (mulberry32), probs/measureOnce/measureMany/applyReadoutNoise. Asserted in scripts/check_quantum_toy.test.ts (plain-node lane). components/LearnLab.tsx: the beginner track BEFORE the guided lessons — full center-column overlay (same pattern as board/theater, z-30 in App <main>, both branches), own header (step k of 6, prev/next, progress dots, ×), progress in localStorage quda.learnLabStep. Copy rules enforced by the frame: one bold idea sentence + one guiding line + one interactive per step; percentages only, no formulas. components/learn/: Dial (semicircular lean control — drag, keyboard, snap-to-pole collapse animation), Tally (counts_to…2af5086 -
Cleanup: dead touch-drag bridge, empty-state + tour copy, docs
TheYuchen- touchDrag / pendingTouchDrop machinery removed from the store and FlowCanvas (selectors, both effects, the TouchDragPreview chip): the shelf was its only producer — grep confirms zero remaining references. Tap-to-add via the Add-block popover is the touch path; the shared splice-highlight logic (findClosestEdge + dropTargetEdgeId) stays, since the mouse drag-from-popover path still uses it. - EmptyCanvas teaches the two add paths ("+ Add block", drag from a block's edge into empty space) and carries the five-stage grammar line the shelf used to illustrate. - Tour slide 2 (ComposeSlide) no longer claims a pipeline shelf exists; minimal rewording to "+ Add block" + edge-drag, grammar order kept. - docs/EVIDENCE_WORKBENCH.md: the palette-as-grammar paragraph rewritten honestly — shelf superseded by the chooser popover + grammar-aware insertion; design principle stated (constant chrome, growth in on-demand surfaces). - Store/FlowCanvas comments updated to name t…d17180a -
Tier 1: kill the pipeline shelf — the canvas owns its space again
TheYuchenThe always-visible five-column shelf (marker pipeline-shelf, commit 6d69c3f) cost ~300px of permanent chrome, was mostly whitespace, and grew with block count at the canvas's expense. Removed wholesale: NodePalette.tsx deleted, both <NodePalette /> mounts dropped from App.tsx, MIN_CANVAS_W comment updated (its overflow rationale died with the shelf). The pendingBlockKinds store bridge stays — it is still the add mechanism for the tier-2 chooser popover that replaces the shelf in the next commit.cde3a67 -
Guided lessons: four beginner micro-experiments (marker: guided-lessons)
TheYuchenNew lib/lessons.ts + components/LessonCard.tsx — an integrated beginner path, not a separate mode. Each lesson step rides the SAME machinery scenario boots use (pendingRestore + autoRunAfter through the store bridges), and every lesson run is tagged via the existing RunRecord.scenario field ("L1"…"L4") so lesson runs never pollute evidence pools — the theater prior-pool filter and the F6/F7/F8 pickers already exclude scenario-tagged records (comments at all three sites now name the lesson tags too). The four lessons, numbers grounded like scenarios are: L1 "Measurement is sampling" — bell_state, sampled fidelity, 128 shots fresh ("why isn't it exactly 50%?"), follow-up button runs 4096 → the funnel visibly narrows. L2 "Noise costs fidelity" — vqc_2q_small twice: statevector under bind_zero is EXACTLY 1.0 (RY(0)+CX on |00⟩ is identity in effect), sampled on FakeFez lands ~0.97; after the second run the card selects both runs into Between configurations. L…edfa7f5 -
Pipeline shelf: palette becomes the grammar (marker: pipeline-shelf)
TheYuchenRebuild NodePalette as five stage columns in pipeline order — Source → Backend → Algorithm → Metric → Sink — separated by faint arrow glyphs, so the palette itself reads as the sentence structure a valid pipeline follows. Each column: 10px uppercase header + one-line tagline, blocks stacked vertically as compact h-9 rows (icon + name; the tagline moved into the row tooltip). Killed: the rotated vertical family-letter rails, the count-filter chips, the horizontal tile sprawl. Kept exactly: drag-to-canvas (dataTransfer payload), tap/click-to-add via pendingBlockKinds, the touch-drag bridge, plugin badges + delete, paper links, search (now filtering rows across columns), "Add blocks", and the collapse-to-strip affordance. New: a subtle count dot on rows already placed (canvasKinds is a multiset, so it counts copies). Columns share width equally (min 120px); a column with ≥5 blocks (plugins join their declared family) scrolls internally behind a mask-image fade — growth is vertical, never…6d69c3f
-
Global toast channel: store globalNotice + App-level host; palette alert() migrated
TheYuchenThe store gains globalNotice ({text, tone} | null) + setter — the cross-component notification bridge the audit backlog deferred. App.tsx renders a GlobalToastHost fixed to the viewport's bottom-center at z-50, styled to mirror the canvas toast (tone palette, auto-fade ok=4s / warn=8s, danger sticky with an explicit dismiss). NodePalette's plugin-delete failure alert() now goes through it; window.confirm stays as the blocking guard before destructive plugin deletes, and the FlowCanvas-local canvas Notice stays local (positionally contextual). Backlog entry removed.535c56c -
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 -
Canvas/palette S3 sweep: id collisions, touch-cancel, caps, honest encodings
TheYuchenAudit backlog (docs/AUDIT_BACKLOG.md) wave 3, canvas area: - node ids: module counter kills the same-millisecond collision - touch drag cancel clears the splice highlight; restore-pulse timer held in a ref (cleared on re-restore/unmount) - cost effect reads nodes through a ref (stale closure) - ARCHIVE_WINDOW (runStore) consolidates the 50/100/200/500 listRuns caps; countRuns()/countRunsByConfig() back every displayed total (board header, config-context bar); exportArchive scans unbounded; listRunsByConfig keeps the newest window instead of an arbitrary primary-key subset; import preserves synthesized run_ids (no dupes on re-import) - stale post-run encodings: ribbons/edge labels dim at 0.45 when the live structural hash diverges from the run's hash - RibbonEdge: role=img on the aria-labelled group; deltaSize null (unknown) no longer renders as pass-through; "ops" -> "gates" - replicate loop: sticky progress notice (outlives the 4s fade) and per-iteration clearLivePr…728039f -
Board/theater/export: overlay stacking, figure honesty, export text metrics
TheYuchen- boot "Connecting" overlay at z-50 (painted under board/theater/header) - band run-start effect skips the band Evidence overlay when the theater will auto-open (no double overlay) - DemoArchiveBanner + board hint strips carry data-export-strip (F2 figures drop guidance chrome); scenario force-reimport after "Clear demo data" says so in the banner, and the Clear tooltip drops its "never" claim - shared svgPaper.estimateTextW(chars, fontSize, bumped) budgets the x1.25 PAPER_FONT_BUMP in theater layout math: stop-label flip/intrusion, panel title-dx, and the cost-anchor line (splits into two tspans when the bumped width would clip; svg gets bottom pad for the second line) - DifferenceFunnel viewBox width is two-tier: pane tier derives from the container (labels stay >=9px effective; legend wraps to two lines), export tier keeps the documented 760px geometry via a hidden twin - F6/F8 pair picker excludes scenario-tagged records (F7's guard verified already in place) and …77fb334
-
Layout: no horizontal page scroll at any width >= 768px (band overlay)
TheYuchenAt 864px CSS the app rendered wider than the viewport: persisted pane widths from a wider monitor were only clamped on window-resize EVENTS (never on mount), and even freshly clamped the 768-1200px range cannot host both panes in flow at all -- LEFT_MIN + RIGHT_MIN + MIN_CANVAS_W + two resizers = 808px, so the Evidence pane and toolbar cluster sat past the right edge and the board grid computed auto-fill columns from a container wider than the screen. App.tsx now carries an explicit RESPONSIVE CONTRACT comment block and implements it: 768-1199px is the compact-desktop "band", where the Evidence pane never takes layout width -- it boots collapsed to its 32px strip and, when expanded (strip click, run-start auto-expand, the hintExpandRightPane bridge), opens as a right-anchored overlay over the center column (bandEvidenceOpen: session state, never persisted, so band sessions cannot rewrite the >=1200px preference). The mount+resize clamp is band-aware and runs once at mount. The center …78949f0 -
IA inversion 1/4: the Evidence board is home
TheYuchenStore default workspaceMode = "multiverse"; the last mode is persisted per device (quda.workspaceMode) and read synchronously at store creation, so returning users boot straight into their mode and a first-ever visit (no stored value) paints the board from the first frame. That unifies the two landing paths: App.tsx's demo-import branch that used to force the board landing is removed. Scenario boots write the store field directly (useApp.setState) so scripted figure states never overwrite the preference. Labels renamed, internal ids FROZEN ("compose"/"multiverse" stay in scenario uiState, localStorage and provenance): WorkspaceToggle now reads "Evidence board" (home — every configuration and its evidence) and "Pipeline editor" (define or modify one configuration), board segment first; the label<->id mapping is pinned in the toggle + store comments. Store also gains the editorContext / newConfigRequest bridges the definition-view bar and the board's New-configuration button consume (wi…2e43c22
-
Restore the welcome tour, rewritten for the evidence workbench
TheYuchenThe Wave-P de-product pass deleted the product-era tour along with the identity chrome. Reviewers see the paper rather than the site, so onboarding affordances can return — but the old slides narrated a feature tour of a system that no longer exists. This resurrects the modal shell (keyboard nav, progress dots, first-visit localStorage flag, backdrop dismiss) and rewrites all content around the current narrative in five slides: 1 What this is — pipelines as seeded, archived, replayable experiments ("evidence, not just output") + schematic SVG. 2 Compose & run — palette → canvas → Run; ribbons as circuit flow, node faces as delta strip + CI bar. 3 Evidence accumulates — ×N replicates, lineage (hue=configuration, dot area=shots), the narrowing funnel, precision-target stopping. 4 Compare & explore — Multiverse small multiples, A/B with honest intervals ("overlap ≠ evidence"). 5 Try it — demo archive first moves; "Open Multiverse" button; ?scenario=F0 pointe…afdd2a9 -
Audit A+B: header/toast stacking above overlays; toolbar wraps instead of clipping Run
TheYuchen- TopBar z-20 -> z-40: the ThemeSwitcher dropdown lives inside the header's stacking context, so the Multiverse board (z-20) and the Evidence Theater (z-30) overlays painted over it where it hangs below the bar. Mobile drawers (z-40/50, later in DOM) still cover. - CanvasToast z-30 -> z-40: run errors / replicate notices fire while the theater (which auto-opens on streaming runs) covers the canvas and were invisible behind it. - Canvas toolbar: min-h-12 + flex-wrap (row and action cluster, min-w-0 so wrapping actually engages). The cluster's md:/lg: label breakpoints key on the viewport while the row lives in a resizable column; at 1280-1440px windows with default panes the row overflowed and clipped the Run button. One-line case renders pixel-identical. - Copy: last "Results" remnants -> "Evidence" (TopBar drawer button title/aria, App resizer aria-label).a5c47fa -
Evidence Theater: steering becomes the visual protagonist (+F0 teaser)
TheYuchenThe system's most novel contribution -- anytime evidence steering (streaming CI narrowing + optional stopping, Wave I) -- was the smallest element on screen. New EvidenceTheater overlay (auto-opens on the first step_progress frame, dismissable, localStorage auto-open pref, toolbar + fidelity-card reopen affordances): one big SVG funnel per sampled node -- per-batch Wilson CIs on a linear shots axis with convergence envelope, first-interval-anchored auto-zoom, dashed target corridor + early-stop annotation with unspent-shots region, client- timed cost row (caveat commented) with server-total fallback, and a context strip (config hue chip, live root-seed via new runStream onMeta hook, pooled prior-evidence archive band). Store retains per- node stamped traces until the next run so the theater outlives the step; true-SVG figure export with embedded provenance. Scenario F0 (the teaser): bell_state on FakeFez, 4096 shots, sampled fidelity, target +/-2pp, pinned seed 2026 (probed live: all …f686793 -
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
-
Memoize fake-backend noise models; first-visit demo archive machinery
TheYuchenBackend: AerSimulator.from_backend / NoiseModel.from_backend rebuilt the full 100+ qubit device noise model on every sampled-fidelity and QuCAD step (~40-90 s of GIL-bound Python per fresh run — the dominant cost of every uncached run on the Space). Fake* snapshots are frozen, so the derived model is memoized by backend name (live IBM backends never cached). qlib/qiskit_utils.aer_simulator_for / noise_model_for. Frontend: plumbing for a bundled first-visit evidence archive — RunRecord.demo flag, lib/demoArchive.ts (ensureDemoArchive imports data/demoArchive.json via buildRunRecord on first visit only, decided flag quda-demo-decided, clearDemoRuns), DemoArchiveBanner on the Multiverse board + History tab, per-row demo chip, multiverse landing for first visits, welcome-slide tagline reframed to the evidence story. Archive JSON itself ships in the next commit (placeholder []).b84dc32 -
Multiverse board: configurations as small-multiple evidence
TheYuchenThe set of configurations the analyst has tried becomes a first-class workspace. A Compose|Multiverse segmented toggle in the canvas toolbar flips the center column to a MultiverseBoard: one card per config_hash group, each with a topological pipeline schematic (family-colored 8px squares, warn dots on stages whose params differ from the baseline), the outcome distribution on a shared 0-1 scale (group hue, mean tick, latest emphasized), Δmean vs the most-tried (baseline) configuration in pp with an "(n small)" honesty flag under 3 replicates, and Open/A-B actions wired into the existing restore + compare bridges. The board overlays the canvas instead of replacing it so React Flow graph state and the pendingRestore watcher survive mode flips. hashHue/hueCss move to lib/hues.ts, shared by RunHistory and the board so a configuration keeps one color everywhere. Tour welcome slide gains one sentence pointing at the mode.4bf1a9d -
Evidence pane: tabbed IA, shared-prefix folding, reproducible export
TheYuchenInformation architecture: the results pane is now the Evidence pane with three tabs — Current run (step cards + final metrics + hints), History (lineage view, always expanded, no own collapse toggle when embedded), Compare (instruction pointing at History's checkboxes until two runs are picked). Badges: History = archive size via a new countRuns() IndexedDB count (refreshed on historyVersion), Compare = selection count. Auto-switch: starting a run -> Current; ticking the 2nd compare checkbox -> Compare. flex-wrap tab bar so the pane still works inside the mobile drawer; collapsed strip + drawer title renamed to Evidence. Comparison: consecutive leading step rows that are identical on both sides (same node kind, no structural param diff for that kind, equal transformation-signature deltas) fold into one expandable "shared prefix - N steps" <details> row; the first divergent row carries an accent left border + "divergence point" label. Rationale in code: the analytical question is where…f25d955
-
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
-
Drag-to-insert + plugin lifecycle UX fixes
Yuchen Yuan +1: Claude Opus 4.7 (1M context)Drag-to-insert (new feature) When the user drags a block from the palette and the cursor passes within ~60 flow-units of an existing edge, that edge lights up with an accent-coloured dashed animation. Dropping the block onto a lit edge splices it in: the old edge is removed and replaced by two new edges (upstream → new node, new node → downstream). Implementation: - New _findClosestEdge_ helper does line-segment-distance hit testing against every edge's source-right-center → target-left-center approximation. Threshold is in flow coordinates so it scales with zoom. Falls back to default 200x56 node footprint when React Flow hasn't measured yet. - _onDragOver_ checks for the palette's `application/reactflow` data type and computes the closest edge each frame, setting dropTargetEdgeId. - _onDragLeave_ clears the target so the dashed highlight doesn't linger if the user abandons the drag outside the canvas. - _onDrop_ captures dropTargetEdgeId, clears it, then either splices…dca3016 -
Multi-user: HF OAuth login + per-user plugin persistence
Yuchen Yuan +1: Claude Opus 4.7 (1M context)What this lets users do - Anyone can click "Sign in" in the top bar and authenticate with their Hugging Face account (OpenID Connect via the HF OAuth flow). No account creation, no password management on our side. - Each signed-in user gets their own private namespace for uploaded plugins. Other users (and other browsers from the same person) cannot see them. - Plugins uploaded while signed in are mirrored to a private HF Dataset repo (qudastudio/quda-user-data) so they survive container restarts and follow the user across devices. - Guest (anonymous) mode is fully preserved: visitors can still drop a .zip without signing in; those plugins continue to live in /tmp and are per-browser, exactly as before. Architecture Browser ──cookie──▶ FastAPI ──HfApi──▶ HF Dataset (private) │ └──▶ /tmp (volatile cache) Identity = session cookie's hf_<username> (when signed in) ∥ anon UUID query par…b6faf15 -
Polish pass on plugin Upload modal
Yuchen Yuan +1: Claude Opus 4.7 (1M context)Detail review surfaced four small but meaningful items. Storage listener over-fires (App.tsx) - Was triggered by any quda.* key — included pane widths, theme, live-IBM toggle. Tightened to e.key === "quda.pluginsRev" so only actual plugin upload/delete events refetch. bumpPluginsRev() already writes that exact key. Duplicate-install regex collision (UploadPluginModal) - /already have a plugin/i matched both the per-kind duplicate AND the 5-plugin cap message, so a user at cap who clicked Install on a sample saw a green success banner. Tightened to /already have a plugin with kind=/i so only the idempotent case surfaces as a friendly hint; the cap is now an honest error. - Added a Content-Type guard after the example zip fetch so a captive portal serving an HTML 200 surfaces "got <type>, not a .zip" instead of the confusing manifest-parse error from the backend. Modal UX restructure - Examples-first ordering when installedPlugins.length === 0 — a first-time visito…4d0158a -
Bundled example plugins + UX polish from second audit pass
Yuchen Yuan +1: Claude Opus 4.7 (1M context)Lets users try the plugin upload flow end-to-end without writing one from scratch: the Upload modal now shows a "Try with a sample" section that fetches /api/plugins/examples and offers per-example Install + .zip download buttons. Backend: - New read-only GET /api/plugins/examples returns minimal metadata parsed from each bundled zip's manifest.json (label, family, tagline, color, size). Catalog is empty if the examples dir is missing. - New read-only GET /api/plugins/examples/{name}.zip returns the raw zip bytes. Name is constrained to `^[a-z][a-z0-9_]{0,30}$`; resolved path must stay inside the examples dir (defence in depth against symlink shenanigans). 400 on bad name, 404 on missing or escaped path. - manifest.json read inside the zip capped at 64 KB so a malformed bundled example can't allocate unboundedly. - Defensive comment about route ordering vs the path-param DELETE. - Dockerfile COPYs example_plugins/ into the runtime image so the endpoints have content to s…ef8bb5f -
Plugin protocol Phase 5: final audit fixes + polish
Yuchen Yuan +1: Claude Opus 4.7 (1M context)Defence-in-depth fixes from the security/UX/scientific audits: Backend safety: - Reject `\` and absolute paths in zip entry names (defensive even on Linux containers). - Cap stdin payload at 50 MB in the subprocess wrapper before parsing. - Drop the full `/tmp/quda_plugins/<user>/<kind>/` path from the "handler.py missing" error message — user already knows their kind. Frontend UX: - QNode now renders a red-bordered tombstone card with a "?" badge and a "plugin not installed" hint when a referenced plugin has been deleted, instead of silently disappearing. - App.tsx listens for `storage` events on `quda.*` keys to refresh the plugin list across tabs. - UploadPluginModal title now reads "Upload your own block" with a one-line explanation of what plugins do. - TrySlide adds a "Upload your own block" tip alongside the Export .py one so new users discover the plugin workflow. Docs: - README.md gains a User plugins section pointing to PLUGIN_SDK.md. - PLUGIN_SDK.md adds a "…d06bf19 -
Plugin protocol Phase 3: frontend foundation
Yuchen Yuan* lib/userId.ts — anonymous browser ID stored in localStorage. Uses crypto.getRandomValues for a 16-byte hex string; falls back to Math.random if Web Crypto is unavailable. Matches the backend regex [a-zA-Z0-9_-]{8,64}. * lib/api.ts — three new endpoints (listPlugins / uploadPlugin / deletePlugin) and a PluginManifest type. RunRequest gains an optional user_id field so workflow runs can address the right user's plugins. * lib/store.ts — Zustand state for the current user's plugin list (refreshed on App boot, after upload, and after delete). * App.tsx — on boot, fetch this browser's plugin manifests in parallel with the health probe. Silent failure (just no plugins shown if /api/plugins is unreachable). * FlowCanvas.tsx — include getUserId() in the run-stream request payload so the backend can dispatch unknown node types to this user's plugins. No UI for upload yet — that's Phase 4. After this commit, refresh the live Space and a plugin uploaded directly via curl …10b580f -
Polish: unified value prop, error-message location hints, next-steps guidance
Yuchen YuanFour UX-audit follow-ups: 1. **Value-prop consistency**: WelcomeSlide's opening paragraph replaced. Was "A visual playground for research algorithms" — conflicted with README's "Interactive workflows for quantum system deployment" and TopBar's "Quantum Design Automation Studio" subtitle. Now leads with the QuDA acronym expansion + the canonical "interactive workflows" tagline, then explains the lab context underneath. All three surfaces (TopBar / WelcomeSlide / README) now agree. 2. **Error messages point at UI**: "Pick a circuit first" now also bumps a Zustand counter that App.tsx watches; the left CircuitPicker pane auto-expands (desktop) or its drawer slides open (mobile) so the user can SEE where to act. The message itself names the pane explicitly. "Canvas is empty" now mentions all three ways to add blocks (drag / Add blocks dropdown / preset). 3. **Cross-feature guidance**: After a successful run, ResultsPane shows a subtle "Where to …974ac89 -
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
-
Pane resize: dynamically clamp to keep canvas usable
Yuchen YuanEarlier fix (3fa3c35) suppressed transition during drag and added overflow-x-hidden on the asides — that handled the visual lag, but not the underlying issue. Real cause: NodePalette tiles are each fixed at 108px wide and shrink-0. When a side pane is dragged so wide that <main> shrinks below ~108px, tiles overflow main horizontally and visually escape into the side pane, showing through (or on top of) the Results card. The aside's overflow clip didn't help because the bleed source was main, not the aside. Fix: 1. Dynamic clamp in both PaneResizer onResize callbacks: never let the dragged pane push the canvas below MIN_CANVAS_W (=280px), accounting for the other pane's footprint and both resizers. 2. overflow-x-hidden on <main> as a defensive belt — anything that does try to overflow the canvas column horizontally now gets clipped instead of bleeding into the side panes. 3. Window-resize listener that retroactively shrinks panes which were saved at widths the smaller …136ab9a
-
Fix Results-pane drag bug: content overflowing during fast resize
Yuchen YuanBoth side asides carried `transition-[width] duration-150`, which is nice for the smooth collapse/expand toggle but interacts badly with the PaneResizer drag flow: - Every mousemove fires setRightW (or setLeftW), changing the aside's width on the next render. - The CSS transition kicks off a 150ms width animation toward the new value. - Inner content (e.g. the EmptyHint card) is laid out at the *new* width immediately, so it briefly extends past the visually-animating boundary and bleeds over the canvas's NodePalette blocks. Two-part fix in App.tsx: 1. Track an `isResizing` flag — flipped true on PaneResizer mousedown, false on mouseup via a new `onDragChange` callback. The transition class is only applied when `!isResizing`, so drag updates are instant and collapse/expand still animates. 2. Add `overflow-x-hidden` to the asides as a defensive clip — anything that does try to overflow horizontally now gets cut off cleanly instead of bleeding into the canvas co…3fa3c35 -
Sharper visual affordance on params toggle + match desktop/mobile pane icons
Yuchen YuanTwo follow-ups from user feedback that the previous implementation was too subtle: * The block params toggle was a small chevron + tiny grey text — easy to miss as something clickable. Promote it to a chip-like button: SlidersHorizontal icon (signals 'tune'), uppercase 'PARAMS' label in tracking-wider, current-value summary on the right, ChevronDown that rotates on open. The whole row gets a hover background + border, so the affordance reads even on a first glance. Open state flips background and tints the icon accent for an obvious "active" cue. * Desktop's collapsed-strip used ChevronLeft / ChevronRight; mobile TopBar uses PanelLeft / PanelRight (lucide). Switching desktop to the same panel icons so the cue for 'open this side panel' is identical across breakpoints. Bumped icon size from w-4 to w-5 so it's easy to spot in the narrow 32px collapsed column.4d90ed6 -
Results pane: default to collapsed on first visit, like mobile drawer
Yuchen YuanMirrors the mobile-drawer default (closed) so the desktop right pane also lands on a clean canvas on first paint instead of an immediately- visible empty 'Ready when you are' card. The existing running→expand effect still pops it open the moment the user clicks Run, and user preference still persists via localStorage — so a power-user who likes it permanently expanded keeps that behaviour across sessions.581e2dc
-
Add mobile layout: side panes become edge-swiped drawers below 768px
Yuchen YuanOn narrow screens the three-column desktop layout squeezes the canvas to zero (left 220 + right 300 + resizers ≈ 522px min), so on a 390px phone portrait the flow graph was unusable. New behaviour below the `md` (768px) breakpoint: - useMediaQuery / useIsDesktop subscribe to `(min-width: 768px)` and re-render on viewport changes. Initial match is read synchronously so the first paint is correct. - MobileDrawer: full-height fixed panel with scrim, slides from the chosen edge. Esc closes. Body scroll locked while open. Transform-based animation so it stays cheap. - App.tsx branches: desktop keeps the existing three-column + PaneResizer story; mobile renders only <main>, with CircuitPicker and ResultsPane mounted inside two drawers. Switching to desktop auto-closes any open drawer. Running a pipeline auto-opens the results drawer on mobile (same as auto-expanding the right pane on desktop). - TopBar: accepts `mobile`, `onOpenLeftDrawer`, `o…1be2846 -
Make both side panels collapsible with rotated-label expand strip
Yuchen Yuan- Left / right aside can collapse to a 32 px strip with vertical label and chevron; click the strip to re-expand. - Collapse buttons in each pane header (Pipeline input, Results). - Drag handles auto-hide when the adjacent pane is collapsed. - Collapsed state persists to localStorage alongside the widths. - When a pipeline run kicks off, auto-expand the right pane so the "executing..." indicator is visible and the demo doesn't look frozen.fdae5ba -
Make left/right side panels resizable and bump default widths
Yuchen Yuan- Pipeline input (left aside) was fixed at 280px and couldn't be widened, which made the new sample-diagram preview feel cramped. Bump the default to 320px and add a drag handle (220px..560px range). - Mirror the same affordance on the right Results pane (was 400px fixed; now 300px..720px, default 400px). - Widths persist to localStorage so the user's choice sticks across reloads. - Double-click a handle to snap back to the default width.4637580 -
Move Blocks strip to top of canvas; clarify Pipeline input
Yuchen Yuan- Replace vertical NodePalette in left sidebar with horizontal tile strip above the canvas. With 9 sample circuits + descriptions, the left column got too tall and squeezed Blocks out of view on typical laptop screens. - Tiles are 72x52 with icon + short label; family groups separated by dividers; overflow-x-auto for narrow viewports. - CircuitPicker header renamed 'Circuit' -> 'Pipeline input' and adds a one-line explainer so users know clicking a sample feeds it into the Input circuit block. Loaded card gets a subtle 'Loaded' sublabel. - WelcomeTour 'Build your own' list updated: drag from the top strip instead of 'left panel', and call out the hover-x delete affordance.03db411 -
Add welcome tour with SVG algorithm visualizations
Yuchen YuanFour-slide onboarding overlay shown on first visit and re-openable via the Tour button in the top bar: 1. Hero welcome + animated atom emblem 2. Three algorithm cards with per-algorithm mini visualisations (sparsity bars, noise-history LSTM, gate folding) 3. Pipeline semantics + an animated block diagram 4. Try-it CTA with concrete circuit+algorithm suggestions Persistence via localStorage (jqub-tour-seen-v1). Esc / arrow keys navigate. Backdrop click dismisses. Cleanup: - remove backend/_archive/ (leftover reference test with a personal path) - untrack frontend/tsconfig.tsbuildinfo (build cache)ed3d4cc -
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