gabriel / musehub public
feat BREAKING feat/cursor-pagination-remaining #1 / 1
AI Agent gabriel · 59 days ago · Apr 11, 2026 · Diff

feat: cursor-based pagination for all list endpoints — replace offset/page model

- musehub_sessions.list_sessions: cursor param + 3-tuple return (sessions, total, next_cursor) - musehub_repository.list_sessions: same cursor pattern - repos.py list_sessions route: accepts cursor query param, returns next_cursor in response - ui_sessions.py: in-memory cursor by session_id; drop page/per_page params - ui_releases.py: in-memory cursor by release tag; drop page/per_page params - ui_symbols.py: in-memory cursor by symbol address; drop page/per_page params - ui_user_profile.py: SQL cursor by timestamp for activity feed; drop page/per_page params - SessionListResponse: add next_cursor field - ActivityFeedResponse: deleted (dead code — no callers) - pagination.html macro: replace pagination(page, total_pages) with cursor_pagination(next_cursor) - session_rows.html, release_rows.html: use cursor_pagination macro - symbols.html, profile.html: inline cursor nav replacing prev/page/next block - tests: update 3-tuple unpacking for list_sessions callers - type-contracts.md: update SessionListResponse, remove ActivityFeedResponse

sha256:d70e22aec148660471d77145ee4c70def6c5a67e24c544653c7710524900a8b2 sha
sha256:54a57b8aeada6534cf66db4a9abf1e4fedc9c010e122ff52afc7839ee08f110a snapshot
← Older Oldest on feat/cursor-pagination-remaining
All commits
Newer → Latest on feat/cursor-pagination-remaining

0 comments

No comments yet. Be the first to start the discussion.

To add a comment, use the Muse CLI: muse hub commit comment sha256:d70e22aec148660471d77145ee4c70def6c5a67e24c544653c7710524900a8b2 --body "your comment"