diff options
| author | soryu <soryu@soryu.co> | 2026-05-08 12:16:46 +0100 |
|---|---|---|
| committer | soryu <soryu@soryu.co> | 2026-05-08 12:16:46 +0100 |
| commit | 788b54b36d876c93bd42a171e87e2bccfd1ed311 (patch) | |
| tree | 55535f138665f620a5e37a192b0a6fd91b859e26 /makima/frontend/index.html | |
| parent | 6690b714c64aaef5781bc0aac41b777ab72e9070 (diff) | |
| download | soryu-contract-drag-reorder.tar.gz soryu-contract-drag-reorder.zip | |
feat(contracts): drag-to-reorder active contract rows in sidebarcontract-drag-reorder
HTML5 drag/drop on active contract rows. Dragging a row over
another in the same directive folder shows a green top-border drop
indicator; dropping calls reorderDirectiveContract(id, targetPosition)
and refreshes the folder. Shipped/archived rows aren't draggable
(historical, ordering is fixed).
Implementation:
- DocumentRow gains optional draggable + drag event props.
- DirectiveFolder owns the drag/over state and handleReorder
callback; computes target position from the drop-target row's
current position.
- Repository's reorder endpoint already exists from the backbone PR
and handles sibling shift in a transaction.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Diffstat (limited to 'makima/frontend/index.html')
0 files changed, 0 insertions, 0 deletions
