callumalpass_tasknotes/tasknotes-e2e-vault/TaskNotes
ac8318740 937e5557e4 feat(kanban): add within-column drag-to-reorder with sort_order
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
2026-03-29 07:32:29 +11:00
..
Tasks feat(TaskService): support {{currentNotePath}} for inline task command (#1334) 2026-01-01 16:04:30 +11:00
Views feat(kanban): add within-column drag-to-reorder with sort_order 2026-03-29 07:32:29 +11:00
Buy groceries.md feat(TaskService): support {{currentNotePath}} for inline task command (#1334) 2026-01-01 16:04:30 +11:00
Code review PR 123.md feat(TaskService): support {{currentNotePath}} for inline task command (#1334) 2026-01-01 16:04:30 +11:00
Daily standup.md chore: add e2e test vault to version control 2025-12-31 09:58:27 +11:00
Deploy authentication update.md feat(TaskService): support {{currentNotePath}} for inline task command (#1334) 2026-01-01 16:04:30 +11:00
Fix login bug.md chore: add e2e test vault to version control 2025-12-31 09:58:27 +11:00
Hierarchical tag test.md test(tags): add failing tests for #1347 hierarchical tag coloring 2025-12-31 12:14:25 +11:00
Overdue report.md feat(TaskService): support {{currentNotePath}} for inline task command (#1334) 2026-01-01 16:04:30 +11:00
Plan vacation.md chore: add e2e test vault to version control 2025-12-31 09:58:27 +11:00
Review project proposal.md feat(TaskService): support {{currentNotePath}} for inline task command (#1334) 2026-01-01 16:04:30 +11:00
Weekly team meeting.md feat(TaskService): support {{currentNotePath}} for inline task command (#1334) 2026-01-01 16:04:30 +11:00
Write documentation.md feat(TaskService): support {{currentNotePath}} for inline task command (#1334) 2026-01-01 16:04:30 +11:00