Add a bottom-right canvas mini-map for Graph and Code - #94
Open
braedonsaunders wants to merge 1 commit into
Open
Add a bottom-right canvas mini-map for Graph and Code#94braedonsaunders wants to merge 1 commit into
braedonsaunders wants to merge 1 commit into
Conversation
Click or drag the overview to center that region. Nodes, folder hulls, and code cards stay in the one-file app; thickness prefs are unchanged. Co-authored-by: Braedon Saunders <braedonsaunders@users.noreply.github.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
braedonsaunders
marked this pull request as ready for review
August 28, 2026 18:13
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Owner
Author
|
@codex review |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
This was referenced Aug 28, 2026
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.
Follow-up to the Code canvas notes in #82. On 2026-08-22 eorroe asked for a bottom-right mini-map like https://v2.codecanvas.app, where you can click and drag to move the focus of the canvas. They said a draggable mini-map widget with a top-left drag handle is unnecessary. Braedon deferred that (along with zoom-out color blocks and a root-file gate). Thickness from #93 is already on main. This PR ships the mini-map only.
What this PR does
Adds a compact mini-map in the bottom-right of the canvas for Graph and Code. Those two views share the same SVG camera (
d3-zoom) and the same node/hull positions, so one overview covers both.The map is light chrome: a small panel, no drag handle, no extra settings.
3D Graph, Treemap, Matrix, Tree, Flow, Cluster, Bundle, and Block Diagram keep their own cameras and do not show this map.
Out of scope
Not in this PR, as requested:
Still one HTML file. No extra pages or Node runtime for the browser app.
How to verify
index.htmllocally, or the Vercel preview: https://codeflow-git-cursor-canvas-mini-f2f4a8-braedonsaunders-projects.vercel.apptests/fixtures/golden-worldtree is enough, or any small GitHub URL).Tests
npm test: 177 pass / 0 failvizHasCanvasMinimapis true only for Graph and CodePlease review and merge when ready. No Codex review ping.