Find a file
Claude eb6bb932f7
Add dual sort modes: manual ordering and by due date
Enhanced task ordering with two sort options:

1. Manual Ordering (default):
   - User can drag/drop to reorder tasks
   - Order stored in task_order array in .listdata.json
   - Only manual changes update the file

2. By Due Date:
   - Tasks automatically sorted by due_date field
   - Tasks without due dates appear at end
   - task_order array ignored when in this mode

Changes:
- Added sort_order field to .listdata.json ("manual" or "by_due_date")
- Added SortOrder enum to TaskList model
- Clarified that Vec<Task> order depends on sort preference
- Added set_sort_order() and get_sort_order() to repository API
- Added CLI sort command to switch between modes
- Removed confusing comment about .listdata.json being "in-memory"

Example .listdata.json:
{
  "sort_order": "manual",
  "task_order": ["uuid-1", "uuid-2", "uuid-3"]
}

CLI usage:
bevy-tasks sort manual --list "Work"
bevy-tasks sort by-due-date --list "Personal"

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-02 18:49:02 +00:00
.idea bevy hello world 2025-08-24 05:45:43 -07:00
src bevy hello world 2025-08-24 05:45:43 -07:00
.gitignore bevy hello world 2025-08-24 05:45:43 -07:00
Cargo.lock bevy hello world 2025-08-24 05:45:43 -07:00
Cargo.toml bevy hello world 2025-08-24 05:45:43 -07:00
PLAN.md Add dual sort modes: manual ordering and by due date 2025-11-02 18:49:02 +00:00