Paginate the task list on the server #333

Closed
opened 2026-10-27 13:35:53 +00:00 by sam · 0 comments
Owner

Goal

GET /api/tasks takes status, limit and a cursor, and the list loads more so every task is reachable.

Evidence

internal/webui/api_tasks.go:51 hard-codes Tasks(ctx, 100); filters run client-side over those 100.

Rules

Read CLAUDE.md. Do only what the Goal and Stop when need. File anything else you notice as a bead; do not fix it. Run task check once at the end; if it fails twice on the same problem, comment on this bead and stop.

Stop when

  • Store query with status and cursor.
  • Tasks page loads more and filters server-side; needs-you count is server-computed.
    Then commit (Conventional Commits, scoped by package), bd close this bead and stop.

Close reason

TasksPage store query with statuses and (updated_at,id) cursor; GET /api/tasks?status&limit&cursor with X-Next-Cursor; board loads more, filters status server-side; needs_you counted in /api/summary


Imported from beads archie-core-l8rc.5 · GitHub #1260 · type feature · priority P1 · created 2026-10-05 · closed 2026-10-05

## Goal GET /api/tasks takes status, limit and a cursor, and the list loads more so every task is reachable. ## Evidence internal/webui/api_tasks.go:51 hard-codes Tasks(ctx, 100); filters run client-side over those 100. ## Rules Read CLAUDE.md. Do only what the Goal and Stop when need. File anything else you notice as a bead; do not fix it. Run `task check` once at the end; if it fails twice on the same problem, comment on this bead and stop. ## Stop when - [ ] Store query with status and cursor. - [ ] Tasks page loads more and filters server-side; needs-you count is server-computed. Then commit (Conventional Commits, scoped by package), `bd close` this bead and stop. ### Close reason TasksPage store query with statuses and (updated_at,id) cursor; GET /api/tasks?status&limit&cursor with X-Next-Cursor; board loads more, filters status server-side; needs_you counted in /api/summary --- _Imported from beads `archie-core-l8rc.5` · GitHub #1260 · type feature · priority P1 · created 2026-10-05 · closed 2026-10-05_
sam added the highfeature labels 2026-10-27 13:35:53 +00:00
sam self-assigned this 2026-10-27 13:35:53 +00:00
sam closed this issue 2026-10-27 13:35:53 +00:00
sam added a new dependency 2026-11-14 14:45:21 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Reference: sam/archie#333