diff options
| author | soryu <soryu@soryu.co> | 2026-05-08 12:17:07 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-05-08 12:17:07 +0100 |
| commit | 2dda1f96a30eee2fda86be9a8a59ce5cb26dad7f (patch) | |
| tree | 55535f138665f620a5e37a192b0a6fd91b859e26 /makima/frontend/src/components/directives/DocumentEditor.tsx | |
| parent | 6690b714c64aaef5781bc0aac41b777ab72e9070 (diff) | |
| download | soryu-2dda1f96a30eee2fda86be9a8a59ce5cb26dad7f.tar.gz soryu-2dda1f96a30eee2fda86be9a8a59ce5cb26dad7f.zip | |
feat(contracts): drag-to-reorder active contract rows in sidebar (#130)
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/src/components/directives/DocumentEditor.tsx')
0 files changed, 0 insertions, 0 deletions
