Add more 2D graph layout algorithms - #27
Conversation
The layout dropdown now also offers spanning tree, concentric layers, circle, type clusters, and force-directed placement, still persisted in localStorage. Co-authored-by: zord.lack.net <zord.lack.net@gmail.com>
ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Free Run ID: 📒 Files selected for processing (10)
Included review availability: Your plan includes up to 1 review per rolling hour; 0 remain after this review. 📝 WalkthroughWalkthroughThe graph view adds five layout modes: tree, concentric, circle, clusters, and force. Tests cover layout behavior and UI selection. Production JavaScript and CSS assets were regenerated, and the HTML entrypoint references the new hashed files. ChangesGraph layout expansion
Estimated code review effort: 4 (Complex) | ~45 minutes Merge Risk: ⚪ Minimal · up to This adds selectable deterministic 2D graph layouts while preserving the existing layout choice behavior; no actionable merge-blocking risk remains based on the supplied evidence. Sequence Diagram(s)sequenceDiagram
participant LayoutSelector
participant layoutGraph
participant LayoutAlgorithm
participant ReactFlowGraph
LayoutSelector->>layoutGraph: select layout ID
layoutGraph->>LayoutAlgorithm: calculate node positions
LayoutAlgorithm->>layoutGraph: return positioned nodes
layoutGraph->>ReactFlowGraph: render updated positions
Note 🎁 Summarized by CodeRabbit FreeYour organization is on the Free plan. CodeRabbit will generate a high-level summary and a walkthrough for each pull request. For a comprehensive line-by-line review, please upgrade your subscription to CodeRabbit Pro by visiting https://app.coderabbit.ai/login. Comment |
Co-authored-by: zord.lack.net <zord.lack.net@gmail.com>
Co-authored-by: zord.lack.net <zord.lack.net@gmail.com>
The 2D graph toolbar already let you pick architecture layers, edge flow, radial, or a compact grid. This extends that dropdown with five more deterministic algorithms:
The choice still persists in
localStorage. Column layouts keep left-to-right step edges; the new ones use freeform bezier edges like radial/grid.Tests
localStoragestill falls backWalkthrough
Architecture layers (existing default):
Architecture layers layout
Force directed:
Force-directed layout
Spanning tree:
Spanning tree layout
Concentric layers:
Concentric layers layout
To show artifacts inline, enable in settings.
Summary by CodeRabbit
New Features
Bug Fixes
Tests