Repository navigation
feat(web): show collections as one full-width poster wall - #3437
Conversation
The Collections page now fills the width like a library page: one poster grid with a Show filter (All, Mine, Shared, Server, one pill per library) kept in the URL. A collection's own page drops the width cap too. Load more focus counts the list's rendered children, so cards placed before the loaded ones need no bookkeeping. Shared cards use the poster card's "by owner" line alongside their meta line.
Silo Kody — review completeReview finished. Check the inline comments for findings and verify each suggestion against the code and tests. Reviewing changes in Silo
Review settingsReview OptionsThe following review options are enabled or disabled:
|
|
The evidence page should include a short recording showing where focus moves after Load more on the combined collections wall; the PR changes that focus behavior, and the description mentions captures but no recording. Automated check: Macroscope check run agent (gpt-6-luna). Evidence was not reviewed for correctness. Posted via Macroscope — Visible change evidence |
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
| {personalLoading ? ( | ||
| <PosterGridSkeleton /> | ||
| ) : ( | ||
| <YourCollections | ||
| collections={own} | ||
| canReorder={capabilities?.item_reorder === true} | ||
| canSync={capabilities?.imports === true} | ||
| otherProfileNames={otherProfileNames} | ||
| <Wall |
There was a problem hiding this comment.
A pending personal collections request hides loaded server collections
Render Wall independently of personalLoading and show the personal loading indicator separately.
Prompt for LLM
File web/src/pages/Collections.tsx, lines 219-222:
A pending personal collections request hides loaded server collections
The All wall is withheld until the personal collections request completes, even if the independent server collections request has already succeeded. Render the wall while personal collections load and show the personal loading indicator separately so a stalled personal request does not hide all server collections.
Talk to Kody by mentioning @kody
Was this suggestion helpful? React with 👍 or 👎 to help Kody learn from this interaction.
There was a problem hiding this comment.
Fixed in ac1778e. The wall now renders straight away, with a skeleton in place of the personal cards while they load, so server collections that have loaded show without waiting. A test covers a personal request that never answers.
There was a problem hiding this comment.
Thanks for the update. The described fix addresses the concern: loaded server collections can appear while personal collections are still pending. The test also covers a personal request that never completes.
I haven’t independently verified the commit or test.
The All wall waited for the profile's own collections before showing any card, so a slow personal request hid server collections that had already loaded. The wall now renders at once, with a skeleton in place of the personal cards until they arrive.
739b6f9 to
ac1778e
Compare
Silo Kody — review completeReview finished. Check the inline comments for findings and verify each suggestion against the code and tests. Reviewing changes in Silo
Review settingsReview OptionsThe following review options are enabled or disabled:
|
|
The Evidence section names desktop and mobile surfaces and the builds, but it contains no before-and-after captures or evidence link; saying captures will follow is not evidence.
Automated check: Macroscope check run agent (gpt-6-luna). Evidence was not reviewed for correctness. Posted via Macroscope — Visible change evidence |
|
The Evidence section describes captures but does not include any. Please attach:
The separate Load more focus movement also needs a short recording, as noted in the earlier comment. Automated check: Macroscope check run agent (gpt-6-luna). Evidence was not reviewed for correctness. Posted via Macroscope — Visible change evidence |
|
W7 remains unrun pending #1615; this PR does not unblock it because it changes the separate sections into a Show-filtered wall without changing the underlying owner/access behavior. There is no prior W7 pass to invalidate. Once #1615 is complete, run W7 against the Mine/Shared views and owner bylines. Suggested follow-up: retain W7 as blocked until #1615 is complete, then verify the new filter and card presentation. Automated check: Macroscope check run agent (gpt-6-luna). No validation was performed. Posted via Macroscope — v1 validation impact |
Personal cards now load into the same list as the server cards, ahead of them. If they arrived while a Load more press was loading, the press-time child count pointed at an existing card. The hook now remembers the list's last item at the press and focuses the one after it.
Silo Kody — review completeReview finished. Check the inline comments for findings and verify each suggestion against the code and tests. Reviewing changes in Silo
Review settingsReview OptionsThe following review options are enabled or disabled:
|
|
The Web cases Suggested fix: retain the existing line and record results after merge; re-run W7 when #1615 is resolved. Automated check: Macroscope check run agent (gpt-6-luna). No validation was performed. Posted via Macroscope — v1 validation impact |
Problem
Related issue: N/A
Validation tasks: changes #195 W1, W5, W7 (none has a passed result yet)
The web Collections page shows collections as three stacked sections (Your collections, Shared with me, Server collections) inside a column capped at 1000px, with filter pills only on the server section. On a wide screen most of the page is empty margin, and server collections start below the fold. A collection's own page is also capped at 1400px, though the library it belongs to is not.
This change turns the page into one full-width poster wall, sized by the viewer's poster size setting, and removes the width cap on a collection's own page.
Approach
?show=mine|shared|server,?library=<id>), so a reload or link opens the same view.CollectionPosterCard's existing owner line, which now shows alongside a meta line. That line is inside the card's link, so the link's name now includes the owner.useLoadMoreFocusnow counts the list's rendered children instead of taking a count. The server cards share a list with the personal cards, so the hook needs the first new child's position in the whole list.page-shellfor user and library collections only. Watchlist, Favorites, History and search keep the cap; whether they should go full width too is a separate decision.Web app only. There is no API change, so the Apple and Android clients and jellycompat are unaffected.
Validation
tsc, ESLint and Prettier: clean.Evidence
Evidence: https://evidence.siloserver.org/r/silo-server/pr-3437/
Surface and build: web app on desktop (1920 and 1440 wide) and phone (390 wide), with the same local test data on both builds. Before is
mainat 6de6d5e and after is this branch at 94a5bc7. The recording shows where focus goes after Load more on the All wall.Risks
None identified. The change is web-only and keeps the existing routes. Old
/collectionslinks open on All.Checklist
AI Disclosure
?show=serveror?show=sharedflashed All, that a single-library?library=link highlighted no pill, and that no test covered Load more focus after personal cards. All four are fixed and tested. One finding was not adopted: showing the drag hint under All, for the reason given above.Note
Merge personal, shared, and server collections into one full-width poster wall
showandlibraryparams, and server collections render while personal collections load. See Collections.tsx.usePosterGridhook.useLoadMoreFocusin useLoadMoreFocus.ts to anchor focus on the item that was last in the list at press time, so newly inserted items do not shift the focus target.CollectionsSection,OwnerInitial, andServerCollectionsSection; library selection moves from local state to the URL. Server-collection and sharing tests in Collections.cards.test.tsx and Collections.sharing.test.tsx were rewritten for the unified wall.Macroscope summarized 5da7baf.