List view 1/4: put the task filter in one place #87
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!87
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "claude/list-view-1-filtering"
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), 4 PRs. Review in order; each builds on the one before.
/list/(#384)Summary
The person's task filter (tags, excluded tags, due window, search, collapsed lanes) was read from the session as a raw dict in seven views, and the matching logic was copied between the board and the calendar. It now lives in
apps/boards/filtering.pyas a frozenTaskFilter:board_filter_for(board, session)/save_board_filter(request, board, f): the only way in and out of the session.TaskFilter.from_config()cleans whatever is stored: blanks, repeats, an unknown due window and malformed lane keys are dropped.apply()/matches(): the one implementation of the tag / due / search rules.including_tag(),excluding_tag(),toggling_lane(): what the tag shortcuts and the lane collapse button did inline.matching_saved_filter(): which saved view is selected, ignoring order.lane_key/parse_lane_keyandtask_matches_columnmoved here too (Settings importedparse_lane_keyfrom the views).Behavior
No visible change. Two small differences:
"due": "next_year") is ignored instead of counting as an active filter.Test plan
DATABASE_URL=sqlite:///:memory: uv run pytest: 494 passed (14 new intest_filtering.py, browser tests included)🤖 Generated with Claude Code