Files desk cut 2: pagination in useAlbums, ShareSet folder test #148

Merged
void merged 2 commits from void/files-desk-cut2 into dev 2026-11-13 22:59:51 +00:00
Member

Cut 2 of docs/commons-files-desk.md (follow-up ratatoskr:follow_up:files-desk-cuts-2-5-and-release-146).

  • readPages: follows next_batch, 20 pages max per endpoint, reports truncated; stops on an empty page.
  • useAlbums pages /threads and each root's /relations; AlbumsState.truncated; AlbumView shows one dim line when cut short.
  • ShareSet.folder.test.tsx: the folder prop reaches the title sendShareSet gets (3 of 4 cases fail if titleIn([], ...)).

Untested: real homeserver pagination (token semantics read from the spec, not a live /threads). Full vitest: 3 failures in features/scene (cssModules, index), files this PR does not touch.

🤖 Generated with Claude Code

Cut 2 of docs/commons-files-desk.md (follow-up `ratatoskr:follow_up:files-desk-cuts-2-5-and-release-146`). - `readPages`: follows `next_batch`, 20 pages max per endpoint, reports `truncated`; stops on an empty page. - `useAlbums` pages `/threads` and each root's `/relations`; `AlbumsState.truncated`; AlbumView shows one dim line when cut short. - `ShareSet.folder.test.tsx`: the `folder` prop reaches the title `sendShareSet` gets (3 of 4 cases fail if `titleIn([], ...)`). Untested: real homeserver pagination (token semantics read from the spec, not a live `/threads`). Full vitest: 3 failures in `features/scene` (cssModules, index), files this PR does not touch. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Files desk cut 2: read every page of threads and replies; pin folder -> album title in ShareSet
Some checks failed
Build pull request / Build pull request (pull_request) Has been cancelled
01dfb155c5
useAlbums followed no next_batch, so a zone past 100 albums or 100 files per album was silently cut. readPages follows the token up to 20 pages per endpoint and says when the cap stopped it; AlbumView shows a dim note then.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Cut 2: doc names the page cap; truncation note says albums or files
All checks were successful
Build pull request / Build pull request (pull_request) Successful in 5m20s
6aaee8badd
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
void merged commit 143bcc2dc6 into dev 2026-11-13 22:59:51 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
GameCult/Ratatoskr!148
No description provided.