Add zoom-out color blocks for Graph and Code - #95
Open
braedonsaunders wants to merge 3 commits into
Open
Conversation
When zoom drops below 0.4, Graph nodes swap circle/label chrome for folder-tinted rectangles, and Code cards overlay function/import sections. Past 0.22 the card source hides so only the chunks remain. Hover still names the section. Mini-map and the root-file gate stay out of this change. Co-authored-by: Braedon Saunders <braedonsaunders@users.noreply.github.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Graph rectangles were the same world size as the circles they replace, so at k<=0.4 they shrank into noise. Counter-scale them to a 16px floor, turn blocks on at 0.4 inclusive, and give the tiles a stroke. Co-authored-by: Braedon Saunders <braedonsaunders@users.noreply.github.com>
braedonsaunders
marked this pull request as ready for review
August 28, 2026 20:49
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
eorroe tested #95 on a 110-file clone and asked that chunks not look like diffs. Code export/file fills move to teal/amber, and Graph folder/layer/churn tiles remap red and green to blue/cyan/purple/orange. Hover names and the 0.4 / 0.22 zoom switch are unchanged. Co-authored-by: Braedon Saunders <braedonsaunders@users.noreply.github.com>
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 deferred item in #82. On 2026-08-22 eorroe asked for CodeCanvas-style color-coded sections when zoomed out, with a name on hover. Braedon deferred that along with the mini-map and a root-file gate. Mini-map is already in open #94 (untouched here). Thickness from #93 is already on main. This PR ships the zoom-out color blocks only.
A later test of this PR on a 110-file clone of this repo confirmed the chunks work, but asked that red and green be avoided so they are not confused with diffs. Zoom-out fills now use a non-red/green palette. Normal node circles, symbol chips, and the churn legend are unchanged.
What this PR does
At low zoom, Graph and Code drop fine chrome so the map stays readable.
Thresholds (CodeCanvas-aligned):
code-far) so only the chunks remainGraph
Code
title)3D Graph, Treemap, Matrix, Tree, Flow, Cluster, Bundle, and Block Diagram are unchanged.
Out of scope
Not in this PR, as requested:
How to verify
index.htmllocally, or runnpx codeflow tests/fixtures/golden-world.tests/fixtures/golden-worldis enough).−toolbar button or the wheel until scale is 0.4 or below (about two−clicks from 1.0). Circles and labels should become folder-tinted rectangles that stay large enough to read as tiles. No chunk should look red or green. Hover a rectangle for the file name. Zoom back in and the usual chrome returns.Tests
npm test: 178 pass / 0 failcode-blocks/code-farclass togglingPlease review when ready. No Codex review ping.