feat: add pagination to DB layer, HTTP API, and frontend#18
Merged
Tristan578 merged 3 commits intomainfrom Mar 15, 2026
Merged
Conversation
5 tasks
…ocket) - Add TestServer_ListenAndServe: starts real HTTP server on :0, verifies 200 - Add TestServer_UpdateTicket_StrictModeReject: strict project draft->non-draft without US/AC returns 400 - Add TestServer_HandleTerminalWS: WebSocket upgrade test covering PTY failure path on Windows Closes #7 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Add PaginationParams and PaginatedResult[T] generic types - Add Limit/Offset fields to TicketFilter - Update ListProjects, ListTeams, ListLabels, ListTickets to return total count - Add normalizePagination helper (default 50, cap 200) - Fix N+1 queries with batchGetTicketLabels/Subtasks/BlockedBy (chunked at 500) - Add parsePagination server helper for limit/offset query params - List endpoints return PaginatedResult envelope when limit is set, plain array otherwise - Add listPaginated methods to frontend API client - Add Store.Ping() method Closes #10, Closes #11, Closes #12 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
4c6a74a to
f9efc32
Compare
- Handle rows.Close() return values with _ = to satisfy G104 - Add #nosec G201 annotations for safe IN-clause placeholder queries Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
ListTickets,ListProjects,ListTeamsnow acceptPage/PageSizeparameters and return total counts?page=N&pageSize=Nquery params with pagination metadata in responsesTest plan
go test ./...pass🤖 Generated with Claude Code