Commit History
-
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 -
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
-
Dockerfile: drop '# syntax=docker/dockerfile:1.6' directive
Yuchen YuanHF Space started rejecting the BuildKit syntax directive with 'cache miss: docker-image://docker/dockerfile:1.6' build errors. Our Dockerfile uses only standard Docker features (multi-stage build, COPY --chown, COPY --from=alias) that don't require BuildKit parser extensions, so the directive is safe to drop.b0b69e1 -
Rename the product from "JQub Quantum Flow" to "QuAIM"
Yuchen YuanThe old name was just a working title. Adopt the proper product name so the Space card, browser tab, welcome tour, TopBar, and the FastAPI OpenAPI title all agree. Changed: * README frontmatter (Space card title + short_description) and H1 * index.html <title> * WelcomeSlide gradient title * TopBar product name * FastAPI app(title=) and startup/shutdown log lines * config.py module docstring * Dockerfile header comment Intentionally NOT changed: * Repo / HF Space path (jqub-quantum-flow) — renaming would break bookmarked share links, existing clones, and CI paths. * frontend/package.json "name" — not published to npm. * Git remote, git history, commit authors. No NSF-specific metadata (award number, program wording, PI listing, dollar amount, abstract text) is added anywhere in the repo. The name "QuAIM" is used standalone without its acronym expansion.52378e7
-
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 -
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