feat(ui): drag rows in the outline and widgets out of the palette #47
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/m9-outline-drag"
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.insertNodealready uses for what is selected, now shared assiteBeside. Only a drop the commit would accept marks the row under the pointer. The four move buttons stay, for the keyboard and for a move of exactly one place.useEditor; it is nowgrownToFitand both callers share it.insertAtjoinsmoveToinsrc/spec/edit.tswith the same gap contract.widgetIdFormoves tosrc/spec/widget.tsrather than being copied into a second caller.Test plan
pnpm test- 678 pass, 14 newpnpm lint,tsc --noEmitandpnpm buildcleanedit.test.tscoverssiteBesideinto a container, after a mark, beside a widget rather than inside one (decision 18)App.test.tsxdrags a row onto another and asserts the tree, the landing highlight appearing only during a drag, nothing marked for a drop that would be refused, one undo entry, and a row let go over itself doing nothingApp.test.tsxalso carries a Notes widget out of the palette onto the sheet: it places, previews the gap, places nothing if the pointer never reaches the paper, abandons on cancel, and is one undo entryView command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.