fix(autolayout): relocate notes that overlap blocks after layout#4888
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
PR SummaryLow Risk Overview Full auto-layout ( Shared Reviewed by Cursor Bugbot for commit 8c1c3e0. Configure here. |
Greptile SummaryThis PR fixes a bug where running auto-layout would reposition workflow blocks on top of existing note blocks, since notes are excluded from the topological layout pass. The fix adds a post-layout
Confidence Score: 5/5Safe to merge — the change is well-scoped, self-contained, and does not modify any existing layout logic. The core resolveNoteOverlaps logic is sound: stackY is always initialised from maxBottom, so relocated notes can never collide with retained notes or each other. NaN/Infinity propagation is blocked by hasFinitePosition. Targeted-mode baseline comparison correctly attributes newly-introduced overlaps while preserving pre-existing arrangements. Tests cover all key scenarios. No files require special attention. Important Files Changed
Reviews (2): Last reviewed commit: "fix(autolayout): harden note overlap res..." | Re-trigger Greptile |
…n-finite positions
|
@greptile |
|
@cursor review |
There was a problem hiding this comment.
✅ Bugbot reviewed your changes and found no new issues!
Comment @cursor review or bugbot run to trigger another review on this PR
Reviewed by Cursor Bugbot for commit 8c1c3e0. Configure here.
Summary
Type of Change
Testing
Tested manually. Added unit tests for both full and targeted modes (overlap relocation, clear-note preservation, multi-note stacking, pre-existing-overlap preservation, new-block-onto-note).
Checklist