List view 3/4: the list page at /list/ #89

Merged
CrowderSoup merged 1 commit from claude/list-view-3-page into main 2026-11-12 18:14:02 +00:00
CrowderSoup commented 2026-11-12 17:36:06 +00:00 (Migrated from github.com)

Stack for the list view (vTodo #369). Based on #88.

  1. #87 one shared task filter
  2. #88 sort, grouping and "show done" in the filter
  3. This PR: the list page at /list/ (#384)
  4. Open to each person's chosen view, list by default

Summary

Every task on the board in one list. List is now first in the nav.

  • Toolbar: Group by (nothing / status / assignee / due date / tag), Sort by (board order / due date / status / assignee / title / created / updated), a ↑/↓ direction button, and a Show done chip (on by default).
  • Filters: the same search box, tag, due-date filters and saved views as the board and calendar. A filter set on one view applies on the others.
  • Each row:
    • a round check that completes or reopens the task, through move_task, so a recurring task still spawns its next one
    • the title, which opens the existing task panel
    • status, assignee and a repeat marker. Status is left off when grouped by status, assignee when grouped by assignee.
    • tags (click one to filter by it)
    • the due date, coloured for overdue and today
  • Done tasks sit at the bottom, struck through. Untick Show done to hide them.
  • Groups collapse. The collapsed state is kept in the session, like the board's collapsed lanes.
  • Works at phone width; the due date wraps under the title.

How it fits into the existing views

  • Changes made from the list redraw the whole list. That covers moves, deletes, and panel saves, creates and status changes. The list is sorted and grouped, so one change can move a task anywhere. The page is recognized by HX-Current-URL, the same way the calendar already is (views_list.is_list_page).
  • It lives at /list/, next to /board/ and /calendar/. Like the calendar, it has its own URL module (apps/boards/urls_list.py, namespace list).
  • "Show done" is a filter. It counts on the Filters badge and Clear filters resets it. It sits in the list's toolbar and posts through the filter bar's form via form="board-filter-form", the same trick the search box uses.
  • The board's collapsed lanes don't apply to the list. The list's forms carry them as hidden inputs, so changing a filter or using Clear filters on the list leaves the board as you left it.
  • The filter actions (Save view / Clear filters) now show whenever the view's own filter count is non-zero, rather than checking the fields one by one.

Screenshots

I checked it on a dev server with sample data: desktop light and dark, phone width, each grouping, and the task panel opened from a row. No screenshots are attached here; I can add some if useful.

Test plan

  • DATABASE_URL=sqlite:///:memory: uv run pytest: 540 passed
    • 19 new view tests in test_list_views.py: ordering, show done, sort and group, collapse, complete and reopen, recurring tasks, panel save, status change, delete, create, collapsed lanes kept, empty states, viewers get no controls, login required
    • 4 new Playwright tests in tests/browser/test_list_browser.py: grouping by tag (and the choice surviving a reload), sorting and direction, completing moves the task down, the Show done toggle

🤖 Generated with Claude Code

**Stack for the list view (vTodo #369).** Based on #88. 1. #87 one shared task filter 2. #88 sort, grouping and "show done" in the filter 3. **This PR**: the list page at `/list/` (#384) 4. Open to each person's chosen view, list by default ## Summary Every task on the board in one list. **List** is now first in the nav. - **Toolbar:** Group by (nothing / status / assignee / due date / tag), Sort by (board order / due date / status / assignee / title / created / updated), a ↑/↓ direction button, and a **Show done** chip (on by default). - **Filters:** the same search box, tag, due-date filters and saved views as the board and calendar. A filter set on one view applies on the others. - **Each row:** - a round check that completes or reopens the task, through `move_task`, so a recurring task still spawns its next one - the title, which opens the existing task panel - status, assignee and a repeat marker. Status is left off when grouped by status, assignee when grouped by assignee. - tags (click one to filter by it) - the due date, coloured for overdue and today - **Done tasks** sit at the bottom, struck through. Untick Show done to hide them. - **Groups** collapse. The collapsed state is kept in the session, like the board's collapsed lanes. - Works at phone width; the due date wraps under the title. ## How it fits into the existing views - **Changes made from the list redraw the whole list.** That covers moves, deletes, and panel saves, creates and status changes. The list is sorted and grouped, so one change can move a task anywhere. The page is recognized by `HX-Current-URL`, the same way the calendar already is (`views_list.is_list_page`). - **It lives at `/list/`**, next to `/board/` and `/calendar/`. Like the calendar, it has its own URL module (`apps/boards/urls_list.py`, namespace `list`). - **"Show done" is a filter.** It counts on the Filters badge and Clear filters resets it. It sits in the list's toolbar and posts through the filter bar's form via `form="board-filter-form"`, the same trick the search box uses. - **The board's collapsed lanes don't apply to the list.** The list's forms carry them as hidden inputs, so changing a filter or using Clear filters on the list leaves the board as you left it. - The filter actions (Save view / Clear filters) now show whenever the view's own filter count is non-zero, rather than checking the fields one by one. ## Screenshots I checked it on a dev server with sample data: desktop light and dark, phone width, each grouping, and the task panel opened from a row. No screenshots are attached here; I can add some if useful. ## Test plan - [x] `DATABASE_URL=sqlite:///:memory: uv run pytest`: 540 passed - 19 new view tests in `test_list_views.py`: ordering, show done, sort and group, collapse, complete and reopen, recurring tasks, panel save, status change, delete, create, collapsed lanes kept, empty states, viewers get no controls, login required - 4 new Playwright tests in `tests/browser/test_list_browser.py`: grouping by tag (and the choice surviving a reload), sorting and direction, completing moves the task down, the Show done toggle 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Sign in to join this conversation.
No description provided.