callumalpass_tasknotes/tasknotes-e2e-vault
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
..
.obsidian chore: checkpoint current tasknotes state 2026-03-25 08:08:28 +11:00
TaskNotes feat(kanban): add within-column drag-to-reorder with sort_order 2026-03-29 07:32:29 +11:00
2025-12-31.md chore: add e2e test vault to version control 2025-12-31 09:58:27 +11:00
2026-01-01.md feat(TaskService): support {{currentNotePath}} for inline task command (#1334) 2026-01-01 16:04:30 +11:00
Embedded-TaskList-Test.md test(#1261): add failing tests for double scrollbar in embedded task list 2026-01-06 22:40:28 +11:00
Inline-Task-Test.md test(e2e): add failing tests for issue #1350 - Reading View inline task refresh 2026-01-01 09:23:23 +11:00
Welcome.md chore: add e2e test vault to version control 2025-12-31 09:58:27 +11:00