gabriel / musehub public
feat BREAKING feat/cursor-pagination-remaining #1 / 1
AI Agent gabriel · 163 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
+4 ~29 −2 symbols
sha256:54a57b8aeada6534cf66db4a9abf1e4fedc9c010e122ff52afc7839ee08f110a snapshot
+4
symbols added
~29
symbols modified
−2
symbols removed
0
dead code introduced
Semantic Changes 35 symbols
~ docs/reference/type-contracts.md .md 4 symbols added, 1 symbol removed, 8 symbols modified
py` section ActivityFeedResponse — `musehub/models/musehub.py` L1064–1078
+ py`@L1064 section ActivityEventResponse — `musehub/models/musehub.py` L1064–1080
+ py`@L3689 section MyModel — `tests/test_api_contracts_section37.py` L3689–3697
+ py`@L3707 section MyModel — `tests/test_api_contracts_section37.py` L3707–3715
+ py`@L3716 section MyModel — `tests/test_api_contracts_section37.py` L3716–3724
~ py`
~ musehub/models/musehub.py .py 1 symbol removed, 1 symbol modified
ActivityFeedResponse class class ActivityFeedResponse L2208–2220
← 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"