Skip to content

Commit 519bfa1

Browse files
committed
feat(todo): add drag-and-drop reordering for checklist items
Add order_index column to checklist_items table to persist custom ordering. Implement DnD-kit for drag-and-drop UI with vertical axis restriction. Separate incomplete/completed items visually and only allow reordering within same completion state. Update toggle logic to assign order index when moving between states.
1 parent 7d86683 commit 519bfa1

File tree

6 files changed

+364
-86
lines changed

6 files changed

+364
-86
lines changed

bun.lockb

-2.02 KB
Binary file not shown.

desktop/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
"@ai-sdk/mistral": "latest",
1919
"@ai-sdk/openai": "latest",
2020
"@dnd-kit/core": "^6.3.1",
21+
"@dnd-kit/modifiers": "^9.0.0",
2122
"@dnd-kit/sortable": "^10.0.0",
2223
"@dnd-kit/utilities": "^3.2.2",
2324
"@hookform/resolvers": "^5.2.2",

0 commit comments

Comments
 (0)