feat(ui): drag a node on the sheet to reorder it #46
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/m9-drag-reorder"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
main- no stack this time.dropTargetsturns the laid-out boxes into every gap between siblings, as the line a drop snaps to. A row's gaps stand upright, a stack's lie flat, an empty container gets one across its middle so it can be filled from the sheet at all.nearestTargetmeasures to the line rather than to its midpoint: a long drop line is the same drop anywhere along it, and aiming at the near end of one should not lose to the middle of another.Test plan
pnpm test- 664 pass, 19 newpnpm lint,tsc --noEmitandpnpm buildcleansrc/layout/drops.test.tscovers gap placement per container kind, empty containers, children that drew nothing, and that nothing inside a widget is a target (decision 18)Sheet.test.tsxdrives real pointer events: preview appears only past the threshold, nothing commits before release, cancel abandonsApp.test.tsxreorders a widget on the real fixture, asserts one undo entry for a five-move gesture, and that no drop on offer is refused on release