feat: Interactive Canvas — Blueprint, Guided Tour, Corkboard & Stack Studio#26
Merged
Conversation
…/import Add scene CRUD to store.js using existing idbPut/idbGet/idbGetAll/idbDelete helpers. Wire scenes into exportStores, importStores (including replace-mode clear), and clearLibrary. Update store-backup snapshot assertion to include the new scenes count.
Add `scenes` to `MAX_ROWS` (cap 2000), `buildBackup`, `validateBackup`, `emptyValue`, and `summarizeBackup` — mirroring the `snapshots` pattern exactly. Validator (`sceneOk`) requires `id`, `scope`, `nodes[]`, and `edges[]`. Update pre-existing `backup.test.js` assertions to include the new `scenes` field; add `tests/backup-scenes.test.js` for the new path.
Adds a tiny in-repo DOM environment (tests/dom-shim.js + dom-environment.js, wired via a resolve.alias in vitest.config.js) so the one DOM-bound test runs without jsdom — the repo ships no DOM dep and npm install is unavailable. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…, verify glue live
…port Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…stScenes best-effort
…filenames, immutable adapter
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…r (.every vacuous-truth)
…, persist, open on dblclick Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…s silently dropping)
…deClass layer class)
…nteractions, vendored countUp/confetti/auto-animate
…hover title) so long labels don't overflow
…eprecated Node-20 actions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Interactive Canvas — turn a scan into a draggable, shareable map
Adds RepoLens's visual layer: one zero-build canvas engine powering three scopes, plus narrated tours and
.excalidraw/SVG export. The goal is the "fun, addictive, must-have" surface — make evaluations something you see and arrange, not just read.What's included
Phase 1 — Blueprint + Guided Tour + export
atoms/lineage) → an interactive, pan/zoom/draggable architecture map, color-coded by kind, roots highlighted..excalidraw(opens hand-drawn in excalidraw.com / Obsidian / VS Code) and SVG.scenesIndexedDB store (v4→v5, additive) and round-trip through the backup envelope.Phase 2 — Corkboard
Phase 3 — Stack Studio
STACK_BUILDgeneration — no new AI path.Architecture
scene.js) + a vanilla Pointer-Events SVG engine (canvas-engine.js). Each scope is a small data adapter (blueprint-adapter.js,library-scene.js,stack-scene.js) + a layout (canvas-layout.js:layoutBlueprint/layoutCorkboard/layoutStack).repair-graph.jspass normalizes messy LLM graph data. Exporters incanvas-export.js. Zero new dependencies; MV3-CSP-safe; theme-aware across all 13 themes.docs/superpowers/specs/anddocs/superpowers/plans/. Inspired by Egonex-AI/Understand-Anything (concepts only — no React/ELK).Testing
nodeClass).Notable fixes caught during review / live verification
nodeIdFor); the adapter now joins them back to repoIds, so the red string actually connects (was silently dropping).Test plan
.excalidrawdownloads and opens in excalidraw.com.npx vitest runis green (800).Out of scope (follow-ups)
🤖 Generated with Claude Code