Skip to content

feat(web): show collections as one full-width poster wall - #3437

Merged
Quick104 merged 3 commits into
Silo-Server:mainfrom
Rhainland:feat/collections-wall
Nov 4, 2026
Merged

Quick104 merged 3 commits into
Silo-Server:mainfrom
Rhainland:feat/collections-wall

Conversation

@Rhainland

@Rhainland Rhainland commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

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

  • One wall, one filter. The cards come in order: the profile's own collections, then other profiles' shared ones, then the server's. A Show filter narrows the wall to All, Mine, Shared, Server, or one library (the per-library pills appear when there is more than one library). The filter is kept in the URL (?show=mine|shared|server, ?library=<id>), so a reload or link opens the same view.
    • The wall is labelled for the filter: "Your collections" under Mine and "Shared with me" under Shared, which keeps W7's names.
    • Drag-to-reorder still works on the profile's own cards. The visible drag hint shows only under Mine, because under All it would sit below the whole server wall; the drag handle still gives keyboard instructions to screen readers.
    • Shared cards show "by Name" through 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.
  • Counts. Each pill shows a count except All and Server when there are several libraries. A collection can be in more than one library, so summing the per-library totals would over-count what the wall shows.
  • Load more focus. useLoadMoreFocus now 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.
  • Collection page. Catalog drops page-shell for 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

  • Web unit tests: the full suite passes (839 files, 6,736 tests). Tests cover the filter (narrowing, restoring it from the URL, keeping it while its data loads, a lone library's link), the counts, and Load more focus on the All wall after personal cards.
  • tsc, ESLint and Prettier: clean.
  • Manual check: on a local stack with server and personal collections, at desktop, laptop and phone widths. A collection's page is full width; Watchlist is unchanged.

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 main at 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 /collections links open on All.

Checklist

  • I read and can explain the complete diff.
  • This pull request addresses one concern.
  • Each test this pull request adds meets "Decide what to test" in CONTRIBUTING.md.
  • The Evidence section shows every change a user can see, or says there is none.

AI Disclosure

  • Harness: Claude Code (in T3 Code)
  • Tool(s): Claude Code; OpenAI Codex CLI (review)
  • Model(s): claude-opus-5-5; gpt-6.1-sol (review)
  • Involvement: Fully AI-generated, human verified
  • Adversarial review: Independent reviews of the full diff by claude-opus-5-5 and gpt-6.1-sol, covering correctness, standards and spec. Both reported that the All and Server counts double-count collections in several libraries. Claude also found that a reload on ?show=server or ?show=shared flashed 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

  • Replaces the separate personal, shared, and server sections on the Collections page with a single filterable wall. Filters for All, Mine, Shared, Server, and per-library are URL-driven via show and library params, and server collections render while personal collections load. See Collections.tsx.
  • Shared collections render as individual cards with an owner byline in CollectionPosterCard.tsx, and owner-name badges are removed. The wall uses the viewer's configured poster grid size via a new usePosterGrid hook.
  • Library and user-collection catalog results drop the page-shell width constraint in Catalog.tsx so they render full-width like the wall.
  • Rewrites useLoadMoreFocus in 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.
  • Behavioral Change: removes CollectionsSection, OwnerInitial, and ServerCollectionsSection; 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.

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-triage silo-triage Bot added the size/XL 500–999 added + deleted lines (all files); change volume, not priority. label Nov 3, 2026
@silo-kody

silo-kody Bot commented Nov 3, 2026 •

Copy link
Copy Markdown

Silo Kody — review complete

Review finished. Check the inline comments for findings and verify each suggestion against the code and tests.

Reviewing changes in Silo
  • Include the related issue, expected behavior, and validation steps in the PR description.
  • For API changes, describe the effect on Apple and Android clients and Jellyfin compatibility.
  • For plugin changes, identify the affected SDK contract, plugin, and catalog entry.
  • Follow this repository's AGENTS.md and CONTRIBUTING.md.
  • Request another review with @kody start-review in a PR comment.
  • React with 👍 or 👎 to give feedback on individual suggestions.
Review settings
Review Options

The following review options are enabled or disabled:

Options Enabled
Bug ✅
Performance ✅
Security ✅
Business Logic ❌

@macroscopeapp

macroscopeapp Bot commented Nov 3, 2026

Copy link
Copy Markdown

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

@coderabbitai

coderabbitai Bot commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review.

Walkthrough

The Collections page now combines personal, shared, and server collections in a wall with URL-backed filters. It updates collection-card rendering, poster sizing, and load-more focus behavior. Related tests cover filters, sharing, and loading.

Changes: Collections wall

Layer / File(s) Summary
Filters and wall composition
web/src/pages/Collections.tsx, web/src/pages/Collections.cards.test.tsx, web/src/pages/Collections.smoke.test.tsx, web/src/pages/collectionsPage.test-support.tsx
The page reads show and library filters from the URL and renders personal and server collections in one wall. Filter changes preserve unrelated query parameters. Tests cover filter selection, loading states, and combined collection visibility.
Card rendering and sortable collections
web/src/components/collections/CollectionPosterCard.tsx, web/src/pages/Collections.tsx, web/src/pages/Catalog.tsx, web/src/pages/Collections.sharing.test.tsx
Shared cards display owner attribution. Owned cards retain management and sorting controls. Poster grids use the viewer’s size setting. Library and user collection catalog pages omit the page-shell class.
Incremental loading and focus
web/src/hooks/useLoadMoreFocus.ts, web/src/pages/Collections.tsx, web/src/pages/Collections.cards.test.tsx
The focus hook records the list’s last child when the user activates load more. When content is added, the hook targets the first link after that child. Tests cover focus during concurrent loading.

Estimated code review effort: 3 (Moderate) | ~25 minutes

Change: Feature

Sequence Diagram(s)

sequenceDiagram
  participant Viewer
  participant Collections
  participant URL
  participant Wall
  participant ServerCollections
  Viewer->>Collections: select a show or library filter
  Collections->>URL: update filter query parameters
  Collections->>Wall: render selected collection cards
  Viewer->>Wall: activate Load more
  Wall->>ServerCollections: request the next page
  ServerCollections-->>Wall: return server collection cards
Loading

Possibly related PRs

Suggested reviewers: blurbery, quick104

Merge Risk: Minimal · up to 5da7b

The unified collections wall has no identified merge-blocking issue.

Pre-merge checks: Passed 4 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 66.67% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documenta… Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed Passed checks: 4 passed
Check name Status Explanation
Title check Passed The title "feat(web): show collections as one full-width poster wall" matches the main change. The PR replaces the stacked Collections sections with one full-width poster wall, and the changeset (Coll…
Description check Passed The description states the problem, approach, validation, evidence, risks, and checklist. It explains the single filterable wall, the URL-driven Show filter, the count changes, the useLoadMoreFocus re…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title "feat(web): show collections as one full-width poster wall" matches the main change. The PR replaces the stacked Collections sections with one full-width poster wall, and the changeset (Collections.tsx, Collections tests, useLoadMoreFocus, Catalog.tsx) supports this. The title is specific and concise, and it follows a conventional-commit style.

Full details: Description check

Explanation

The description states the problem, approach, validation, evidence, risks, and checklist. It explains the single filterable wall, the URL-driven Show filter, the count changes, the useLoadMoreFocus rewrite, and the Catalog page-shell change. These match the raw summary of the changed files. The description is related to the changeset and is not off-topic.

Full details: Docstring Coverage

Explanation

Docstring coverage is 66.67% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 6 functions across 8 files.

Resolution

Write docstrings for the functions missing them to satisfy the coverage threshold.

Finishing Touches
Generate unit tests (beta)
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Warning

Some tools did not complete. Review the errors below.

ast-grep (0.51.1)

ast-grep could not parse rule config: /ast-grep-rules/ast-grep-essentials/rules/python/security/torch-jit-load-python.yml

Tip

🎯 Customize your risk assessments

Guide how CodeRabbit assesses merge risk and security architecture risk. Highlight sensitive changes and explain your security boundaries using Merge Risk Instructions and Security Risk Instructions in your review settings. Security architecture risk assessments require the Advanced plan or above.

✅ Automatic approvals, with your rules

Let CodeRabbit approve pull requests once required threads are resolved, pre-merge checks pass, and your risk limits are met. Enable Automatic approvals in review settings, with overrides for teams or file paths.

CodeRabbit Verify

  • Run CodeRabbit Verify to test the changes in this pull request.
Recent review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 66e7e1c4-436e-46c8-b32f-8525fef0666e
Commits

Reviewing files that changed from the base of the PR and between ac1778e and 5da7baf.

Files selected for processing: 2
  • web/src/hooks/useLoadMoreFocus.ts
  • web/src/pages/Collections.cards.test.tsx

Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 2 remain after this review.

@silo-triage silo-triage Bot added enhancement New feature or request impact: polish Annoyance, cosmetic, or nice-to-have javascript Pull requests that update javascript code priority: P2 Limited scope, workaround exists, or polish labels Nov 3, 2026
Comment thread web/src/pages/Collections.tsx Outdated
Comment on lines +219 to +222
{personalLoading ? (
<PosterGridSkeleton />
) : (
<YourCollections
collections={own}
canReorder={capabilities?.item_reorder === true}
canSync={capabilities?.imports === true}
otherProfileNames={otherProfileNames}
<Wall

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

kody code-review Bug medium

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.

​

​

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.
@Rhainland
Rhainland force-pushed the feat/collections-wall branch from 739b6f9 to ac1778e Compare November 3, 2026 07:56
@silo-kody

silo-kody Bot commented Nov 3, 2026 •

Copy link
Copy Markdown

Silo Kody — review complete

Review finished. Check the inline comments for findings and verify each suggestion against the code and tests.

Reviewing changes in Silo
  • Include the related issue, expected behavior, and validation steps in the PR description.
  • For API changes, describe the effect on Apple and Android clients and Jellyfin compatibility.
  • For plugin changes, identify the affected SDK contract, plugin, and catalog entry.
  • Follow this repository's AGENTS.md and CONTRIBUTING.md.
  • Request another review with @kody start-review in a PR comment.
  • React with 👍 or 👎 to give feedback on individual suggestions.
Review settings
Review Options

The following review options are enabled or disabled:

Options Enabled
Bug ✅
Performance ✅
Security ✅
Business Logic ❌

@macroscopeapp

macroscopeapp Bot commented Nov 3, 2026

Copy link
Copy Markdown

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.

  • Collections wall (web/src/pages/Collections.tsx): add same-data before-and-after desktop and phone screenshots showing the unified wall and filter.
  • Collection pages (web/src/pages/Catalog.tsx): add before-and-after desktop and phone screenshots showing the full-width user/library collection results.

Automated check: Macroscope check run agent (gpt-6-luna). Evidence was not reviewed for correctness.

Posted via Macroscope — Visible change evidence

@macroscopeapp

macroscopeapp Bot commented Nov 3, 2026

Copy link
Copy Markdown

The Evidence section describes captures but does not include any. Please attach:

  • Collections wall: before-and-after desktop and mobile screenshots of the same data showing the full-width layout, poster sizing, filters, card order, and shared-owner bylines.
  • Collection catalog page: before-and-after desktop and mobile screenshots showing the width change.

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

Comment thread web/src/hooks/useLoadMoreFocus.ts Resolved
@macroscopeapp

macroscopeapp Bot commented Nov 3, 2026

Copy link
Copy Markdown

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

silo-kody Bot commented Nov 3, 2026 •

Copy link
Copy Markdown

Silo Kody — review complete

Review finished. Check the inline comments for findings and verify each suggestion against the code and tests.

Reviewing changes in Silo
  • Include the related issue, expected behavior, and validation steps in the PR description.
  • For API changes, describe the effect on Apple and Android clients and Jellyfin compatibility.
  • For plugin changes, identify the affected SDK contract, plugin, and catalog entry.
  • Follow this repository's AGENTS.md and CONTRIBUTING.md.
  • Request another review with @kody start-review in a PR comment.
  • React with 👍 or 👎 to give feedback on individual suggestions.
Review settings
Review Options

The following review options are enabled or disabled:

Options Enabled
Bug ✅
Performance ✅
Security ✅
Business Logic ❌

@macroscopeapp

macroscopeapp Bot commented Nov 3, 2026

Copy link
Copy Markdown

The Web cases #195 W1, W5, and W7 need a post-merge re-check for the visible wall changes: separate sections become one URL-filtered poster grid, the shared-owner byline moves under the title, and collection result pages go full width. Access checks and persistence endpoints are unchanged. All three are still Not run; W7 remains blocked by open #1615, so this PR does not unblock it. The Validation tasks: line correctly names these 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

@Quick104
Quick104 merged commit abe2ae4 into Silo-Server:main Nov 4, 2026
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request impact: polish Annoyance, cosmetic, or nice-to-have javascript Pull requests that update javascript code priority: P2 Limited scope, workaround exists, or polish size/XL 500–999 added + deleted lines (all files); change volume, not priority.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants