List view 4/4: open to each person's chosen view, the list by default #90

Merged
CrowderSoup merged 1 commit from claude/list-view-4-default-view into main 2026-11-12 18:17:20 +00:00
CrowderSoup commented 2026-11-12 17:36:15 +00:00 (Migrated from github.com)

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

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

Summary

  • User.default_view: list, board or calendar. Defaults to list.
  • /home/ (HomeView) redirects to it.
  • These now go to /home/ instead of /board/:
    • sign-in (LOGIN_REDIRECT_URL)
    • the vtodo logo
    • creating a shared workspace, and its Cancel link
    • switching workspace when there's no page to return to
  • Settings → General → "Open to" changes it.

⚠️ Heads-up

The migration (users/0007_user_default_view) gives existing people the list too, Azure included. Anyone who wants the board back can pick it under "Open to". To keep existing people on the board, the migration would need to set them to board; I didn't do that, since the plan was "the list by default".

Test plan

  • DATABASE_URL=sqlite:///:memory: uv run pytest: 548 passed
    • 8 new: new people land on the list, each choice redirects to the right page, an unknown value is ignored, the setting renders, the logo points at /home/, /home/ needs sign-in
    • The two login-redirect tests now expect /home/
  • makemigrations --check: no changes

🤖 Generated with Claude Code

**Stack for the list view (vTodo #369).** Based on #89. 1. #87 one shared task filter 2. #88 sort, grouping and "show done" in the filter 3. #89 the list page at `/list/` 4. **This PR**: open to each person's chosen view, list by default (#385) ## Summary - `User.default_view`: list, board or calendar. Defaults to **list**. - `/home/` (`HomeView`) redirects to it. - These now go to `/home/` instead of `/board/`: - sign-in (`LOGIN_REDIRECT_URL`) - the vtodo logo - creating a shared workspace, and its Cancel link - switching workspace when there's no page to return to - **Settings → General → "Open to"** changes it. ## ⚠️ Heads-up The migration (`users/0007_user_default_view`) gives **existing people the list too**, Azure included. Anyone who wants the board back can pick it under "Open to". To keep existing people on the board, the migration would need to set them to `board`; I didn't do that, since the plan was "the list by default". ## Test plan - [x] `DATABASE_URL=sqlite:///:memory: uv run pytest`: 548 passed - 8 new: new people land on the list, each choice redirects to the right page, an unknown value is ignored, the setting renders, the logo points at `/home/`, `/home/` needs sign-in - The two login-redirect tests now expect `/home/` - [x] `makemigrations --check`: no changes 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Sign in to join this conversation.
No description provided.