Skip to content

Expand neighbors in place instead of re-laying out and re-fitting the whole graph - #39

Merged
Phoenixrr2113 merged 2 commits into
mainfrom
fix/expand-keeps-viewport
Aug 23, 2026
Merged

Phoenixrr2113 merged 2 commits into
mainfrom
fix/expand-keeps-viewport

Conversation

@Phoenixrr2113

Copy link
Copy Markdown
Owner

Found in real use: double-clicking a node to expand its neighbors made the whole graph jump. The expansion callback ran a full-graph layout with fit enabled and then animated a second fit to the neighborhood, so every existing node moved and the camera relocated.

Expansion is now incremental by contract: the planner returns preserveViewport with no layout and no fit, the viewport is captured before the neighbor request, existing positions are untouched, and new neighbors are seeded in a deterministic ring around the expanded node. Fit, Reset view, and mode switches keep their whole-graph behavior because those genuinely change the picture.

Verification: red-first planner tests (no fit, no global layout, ring seeds relative to the source), dashboard suite 88/88, vite build and pnpm turbo build 21/21.

🤖 Generated with Claude Code

… whole graph

Double-click expansion ran a full-graph layout with fit enabled and
then animated a second fit to the neighborhood, so every existing node
moved and the camera jumped. Expansion now preserves the viewport and
all existing positions and seeds the new neighbors in a ring around the
expanded node; Fit, Reset, and mode switches keep their whole-graph
behavior.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@vercel

vercel Bot commented Aug 23, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
v0-landing-page-build Ready Ready Preview, v0 Aug 23, 2026 6:38pm

Local embedding tests downloaded a real model during unit runs and
flaked with the runner's network; they are now opt-in with a printed
skip reason, and the release lane's cold-local job keeps enforcing the
real download. The workspace persistence test rendered the full shell
near the default timeout under contention; it is faster now and carries
explicit headroom along with the other full-shell renders.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@Phoenixrr2113
Phoenixrr2113 merged commit 2e16d3c into main Aug 23, 2026
12 checks passed
@Phoenixrr2113
Phoenixrr2113 deleted the fix/expand-keeps-viewport branch August 23, 2026 18:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant