List view 2/4: sort, grouping and "show done" in the task filter #88
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
CrowderSoup/vTodo!88
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "claude/list-view-2-sort-group"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Stack for the list view (vTodo #369). Based on #87.
/list/Summary
This PR has the data and logic but no UI yet.
TaskFiltergains:show_done(default on),sort,sort_dir,groupandcollapsed_groups. They round-trip through the session and saved views, so a saved view keeps its layout. Old configs get the defaults.Filters vs. layout:
with_filters_from(post).with_layout_from(post). Changing the grouping forgets which groups were collapsed.show_doneis a filter. The filter bar's form now carries it in a hidden input.Per-view ignores: each view lists the fields it doesn't use (
BOARD_IGNORES,CALENDAR_IGNORES, andLIST_IGNORESin the next PR). Those don't count toward its badge or toward which saved view is selected, on either side of the comparison. Before this, the calendar never showed a saved view as selected if it had a due window or a search.apps/boards/listing.py:Test plan
DATABASE_URL=sqlite:///:memory: uv run pytest: 517 passed (14 new intest_listing.py, 8 new intest_filtering.py, 3 new view tests for saved views keeping the layout)makemigrations --check: no changes🤖 Generated with Claude Code