Skip to content

fix(kanban): respect manual-order sort direction - #2512

Merged
callumalpass merged 1 commit into
mainfrom
fix/kanban-manual-order-direction
Nov 6, 2026
Merged

callumalpass merged 1 commit into
mainfrom
fix/kanban-manual-order-direction

Conversation

@callumalpass

Copy link
Copy Markdown
Owner

Summary

Kanban always sorted the manual-order property ascending, while the Task List and the rank writer follow the configured direction, which defaults to descending. Under a descending sort, dropping one card wrote the right ranks, but the board showed the whole column reversed.

Kanban now uses one direction-aware comparison, with missing ranks last in either direction.

Upgrade effect

No ranks are migrated and nothing is written on view load. Columns already reordered under a descending sort show their intended order once after updating. This is in the release notes.

Testing

  • Reproduced in isolated Obsidian: the ascending control passed, the descending case reversed the column. Both pass after the fix, for same-column and cross-column moves, with List agreement and persistence after reopening.
  • Added e2e/issues/kanban-manual-order-direction.spec.ts and unit tests for both directions.
  • Local lint, typecheck, build, build:test, focused Jest (50 tests) and native e2e (2 tests) pass.
  • Full local Jest: 781 suites pass. 14 tests in issue-2489-nlp-links.test.ts fail, and they fail the same way on the clean baseline.

@callumalpass
callumalpass merged commit 1183511 into main Nov 6, 2026
3 checks passed
@callumalpass
callumalpass deleted the fix/kanban-manual-order-direction branch November 6, 2026 20:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant