mirror of
https://github.com/callumalpass/tasknotes.git
synced 2026-07-22 12:50:26 +00:00
Implement card-level drag-and-drop reordering within kanban columns. Dragging a card above or below another card computes a new sort_order using a midpoint insertion algorithm and writes it to frontmatter. New capabilities: - Card-level dragover/drop handlers with top/bottom half detection - Visual drop indicators (accent-colored bar above or below target) - Midpoint insertion: new_value = floor((neighbor_above + neighbor_below) / 2) - Vault-wide neighbor lookup so filtered/hidden tasks are still considered when computing midpoints (prevents order collisions) - Proportional gap computation based on median spacing in the column - Collision handling: when neighbors share identical sort_order values, renumber all column tasks evenly across the existing value range - Deferred re-render during drag to prevent DOM destruction mid-drop - Same-column detection to skip unnecessary group property writes Supporting changes: - Add sortOrder field to TaskInfo interface and FieldMapping - Add sort_order to FieldMapper read/write and default field mapping - Add columnTasksCache for render-time group data - Add sort_order to e2e vault kanban view config - Add CSS for drop-above/drop-below position indicators |
||
|---|---|---|
| .. | ||
| Tasks | ||
| Views | ||
| Buy groceries.md | ||
| Code review PR 123.md | ||
| Daily standup.md | ||
| Deploy authentication update.md | ||
| Fix login bug.md | ||
| Hierarchical tag test.md | ||
| Overdue report.md | ||
| Plan vacation.md | ||
| Review project proposal.md | ||
| Weekly team meeting.md | ||
| Write documentation.md | ||