Skip to content

feat(sections): send collection backdrops on rows of collections - #4415

Merged
Quick104 merged 2 commits into
mainfrom
feat/collection-row-backdrop
Nov 17, 2026
Merged

Quick104 merged 2 commits into
mainfrom
feat/collection-row-backdrop

Conversation

@Quick104

@Quick104 Quick104 commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Problem

Related issue: N/A
Validation tasks: none

Other clients: Apple Silo-Server/silo-apple#1210; Android Silo-Server/silo-android#978; Roku Silo-Server/silo-roku#92

The cards on a row of collections (#4410) carry a poster but no backdrop, so a client can't show a collection's backdrop as the hero backdrop while its card is focused, as it does for a title.

Each server collection card now also carries backdrop_url and backdrop_thumbhash.

Approach

SectionCollectionCard gains two optional fields. backdrop_url is presigned at the 1280px variant the collection page already uses, so it is sized for a hero. A backdrop set to other artwork, such as the poster, has no wide variant and comes at card thumbnail size, as on the collection page. Both fields are absent when the collection has no backdrop, and always absent on a personal collection, which can't have one. They appear on every read that answers a Section and in previewAdminSection. The change is additive; clients that don't read the fields are unaffected.

Validation

  • Go: build of the changed packages, gofmt, vet, make lint-changed (golangci-lint v2.15.0) pass. internal/apiv2, internal/sections and internal/api/handlers unit tests pass.
  • Contracts: verify-apiv2-openapi, verify-apiv2-fixtures, verify-apiv2-web-types and verify-apiv2-contract (additive only) pass.
  • Not run locally: the Postgres-backed row card tests (no Postgres where this was built); CI runs them. No new test: the /api/v2 fixture pins the new fields, and the backdrop is signed by the same function the collection page uses.

Evidence

No client shows this yet. getHomeSectionItems for a row of collections, from the regenerated contract fixture, server card only:

Before:

{ "id": "01J9Z8C3W4R5T6Y7U8I9O0P1Q2", "source": "library", "title": "Marvel",
  "poster_url": "https://s3.example.test/marvel.jpg", "poster_is_collage": false,
  "item_count": 12, "library_id": "1" }

After:

{ "id": "01J9Z8C3W4R5T6Y7U8I9O0P1Q2", "source": "library", "title": "Marvel",
  "poster_url": "https://s3.example.test/marvel.jpg", "poster_is_collage": false,
  "backdrop_url": "https://s3.example.test/marvel-backdrop.jpg",
  "backdrop_thumbhash": "3OcRJYB4d3h/iIeHeEh3eIhw+j2w",
  "item_count": 12, "library_id": "1" }

Surface and build: /api/v2 contract fixture at 6642d89d92.

Risks

None identified. A hero-size backdrop per card makes the response slightly larger, by at most 30 URLs per row.

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 how I checked a change nobody sees.

AI Disclosure

  • Harness: Claude Code (in T3 Code)
  • Tool(s): Claude Code
  • Model(s): claude-opus-5-5
  • Involvement: Fully AI-generated. Verified by the agent with unit and contract tests; the maintainer has not checked it by hand
  • Adversarial review: n/a; no independent review has run

🤖 Generated with Claude Code

Note

Add backdrop_url and backdrop_thumbhash to section collection cards

  • Server collection cards in home section items now include a presigned backdrop_url and its backdrop_thumbhash.
  • The fields flow from the new sections.CollectionCard.BackdropURL/BackdropThumbhash fields, through the mapper in library_views.go, with presigning done in the handler collection_row_cards.go.
  • Both fields are optional in the API contract and generated schema; they are absent for personal collections or when no backdrop exists.
  • Updates OpenAPI spec, fixtures, tests, and docs in catalog-api.md.

Macroscope summarized b2ae280.

A row of collections' server collection cards now carry backdrop_url
(presigned at the page-width variant a collection page uses) and
backdrop_thumbhash, so a client can draw the focused card's backdrop as
the hero backdrop. Personal collections have no backdrop and omit both.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@silo-triage silo-triage Bot added the size/M 50–199 added + deleted lines (all files); change volume, not priority. label Nov 17, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-17T03:47:52.290217Z b2ae280 New commits
🔒 Security Review ✅ Completed 2026-11-17T03:49:52.882170Z b2ae280 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@silo-kody

silo-kody Bot commented Nov 17, 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 ❌

@silo-triage silo-triage Bot added enhancement New feature or request priority: P2 Limited scope, workaround exists, or polish labels Nov 17, 2026
@coderabbitai

coderabbitai Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

Collection cards now include backdrop URLs and thumbhashes. The API response maps these values and describes their availability for server and personal collections.

Changes: Collection backdrop data

Layer / File(s) Summary
Populate collection card backdrops
internal/sections/collection_posters.go, internal/api/handlers/collection_row_cards.go
Collection cards now hold backdrop URLs and thumbhashes. Library card construction presigns the backdrop URL and copies the thumbhash.
Expose backdrop fields in API responses
internal/apiv2/library_views.go, contracts/api/v2/openapi.json, web/src/api/v2/schema.ts, docs/catalog-api.md, contracts/api/v2/fixtures/get_home_section_items_collections_ok.json, internal/apiv2/home_test.go
SectionCollectionCard now maps and documents optional backdrop fields. The API contract and fixtures include the fields.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Feature

Suggested reviewers: rhainland, blurbery

Merge Risk: Minimal · up to b2ae2

This adds optional backdrop URL and thumbhash fields to collection cards in API responses. The fields are omitted when unavailable, so existing clients are unaffected. No merge-blocking risk is identified.

Security architecture risk: Minimal · up to b2ae2

The new optional fields reuse existing collection selection and artwork handling. The inspected change does not establish a new authorization bypass, broader asset authority, or persistent-state risk.

Retained concerns
No architecture-level concerns identified.

Security review details

Security Blast Radius

  • inferred — The incremental exposure is backdrop metadata for server collections selected for an existing row response, rather than arbitrary storage keys or a new asset-selection interface. Existing library collection responses already return backdrop metadata using the same collection filtering and artwork helper.

Trust Boundaries and Controls

  • observed — Administrator preview obtains its access filter and acting user/profile from request context. Those values feed the collection-card scope; AdminRow restricts personal-card participation rather than replacing the server-card library and viewer filters.
  • observed — The reused artwork helper returns empty for an empty path or unavailable resolver. Stored HTTP, HTTPS, and root-relative paths follow its existing ImageURLOrEmpty branch; other paths use the artwork resolver. Thus the new card field inherits existing URL-handling behavior rather than establishing that every possible stored value is newly presigned.

Resilience and Maintainability Implications

  • observed — The viewer-count filter's nil-count fallback predates this PR and is also used by the existing collection response path. It is not a newly introduced fail-closed guarantee or a demonstrated PR-specific bypass.
Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the change: collection backdrops (backdrop_url and backdrop_thumbhash) are added to section collection cards on rows of collections. The changeset adds these fields to SectionCollectio…
Description check Passed The description states the problem (row-of-collections cards carry a poster but no backdrop), the approach (two optional fields, 1280px variant, absent when no backdrop or for personal collections), v…
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 names the change: collection backdrops (backdrop_url and backdrop_thumbhash) are added to section collection cards on rows of collections. The changeset adds these fields to SectionCollectionCard, the handler, the mapper, the OpenAPI schema, fixtures, web types, and docs. The title is concise, specific, and follows the conventional commit style.

Full details: Description check

Explanation

The description states the problem (row-of-collections cards carry a poster but no backdrop), the approach (two optional fields, 1280px variant, absent when no backdrop or for personal collections), validation steps, a before/after JSON example, and risks. All of this matches the changed files in the summary.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
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: 785bacb8-df42-4287-9cfd-7bf5da32dd7e
Commits

Reviewing files that changed from the base of the PR and between 6642d89 and b2ae280.

Files selected for processing: 4

  • contracts/api/v2/openapi.json
  • docs/catalog-api.md
  • internal/apiv2/library_views.go
  • web/src/api/v2/schema.ts
Files skipped from review as they are similar to previous changes: 3

  • docs/catalog-api.md
  • internal/apiv2/library_views.go
  • web/src/api/v2/schema.ts

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

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 1

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: 606da7e3-61ba-4f1b-8560-ebf9b5bd397a
Commits

Reviewing files that changed from the base of the PR and between 2cd3d8b and 6642d89.

Files selected for processing: 8

  • contracts/api/v2/fixtures/get_home_section_items_collections_ok.json
  • contracts/api/v2/openapi.json
  • docs/catalog-api.md
  • internal/api/handlers/collection_row_cards.go
  • internal/apiv2/home_test.go
  • internal/apiv2/library_views.go
  • internal/sections/collection_posters.go
  • web/src/api/v2/schema.ts

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

Comment thread docs/catalog-api.md Resolved
@silo-kody

silo-kody Bot commented Nov 17, 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 ❌
⚠️ 4 Kody Rule(s) were not evaluated

These rules declare that they need repository context beyond this diff, and the review could not retrieve it, so they were not judged on this pull request:

  • Preserve optional store capabilities through production wrappers
  • Detach mandatory cleanup from request cancellation and bound its lifetime
  • Preserve durable media identity and share identity-evidence precedence
  • Bound decoder throughput trades and share direct-play eligibility

Quick104 added a commit to Silo-Server/silo-android that referenced this pull request Nov 17, 2026
Silo-Server/silo-server#4415 sends backdrop_url and backdrop_thumbhash on
server collection cards of a row of collections. Read both as optional.
On Android TV a focused collection card now drives the Home hero with its
backdrop, the thumbhash as its placeholder, and warms its neighbours'
backdrops as title cards do. Without a backdrop (older servers, personal
collections, a collection with none) the hero keeps using the poster.

The TV caption goes back to "by Name" for another profile's shared
collection and the count otherwise: both did not fit one poster-wide line.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Quick104 added a commit to Silo-Server/silo-apple that referenced this pull request Nov 17, 2026
Silo-Server/silo-server#4415 sends backdrop_url and backdrop_thumbhash
on server collection cards in a row of collections. Decode both as
optional, so older servers and personal collections (which never have
one) keep today's behavior, and a malformed value leaves the card
without a backdrop rather than dropping it.

On Apple TV, a focused collection's backdrop now fills the Skyline hero
the way a title's does, with its thumbhash while it loads, and the
backdrops of the collections beside it are warmed. A collection without
one still frames its poster there. iPhone, iPad and Mac have no hero
that follows the focused card, so nothing changes on screen there.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@Quick104
Quick104 merged commit 217ff25 into main Nov 17, 2026
20 checks passed
@Quick104
Quick104 deleted the feat/collection-row-backdrop branch November 17, 2026 03:54
Quick104 added a commit to Silo-Server/silo-apple that referenced this pull request Nov 17, 2026
* feat(home): show rows of collections on Home and library pages

A Home or library row with section_type collection_posters now shows its
collections (Silo-Server/silo-server#4410). Before, the row arrived with no
titles and every page dropped it.

- Decode `collections` on a Section: each card's source, title, poster,
  thumbhash and count, the library a server collection opens in (sent as a
  string), and the owner of a personal collection. A card that can't be
  opened is left out and the rest of the row stays.
- iPhone, iPad and Mac draw the row with the Collections tab's poster card
  at Home's poster width, on Home and on library pages. Apple TV uses the
  collection poster card in a Skyline row with the same focus handling as
  title rows, and the marquee previews the focused collection.
- A server collection opens in its library, keeping a library page's
  Movies or Shows filter; a personal collection opens its own page, now
  titled with its name. Another profile's shared collection reads
  "by Name" (new catalog key collections.card.byOwner).
- The row has no See all or Explore all card, is never the hero, and is
  kept by the empty-row filters, the row limit, Home's card removal and
  library page filtering.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(tvos): show a focused collection's backdrop in the Home hero

Silo-Server/silo-server#4415 sends backdrop_url and backdrop_thumbhash
on server collection cards in a row of collections. Decode both as
optional, so older servers and personal collections (which never have
one) keep today's behavior, and a malformed value leaves the card
without a backdrop rather than dropping it.

On Apple TV, a focused collection's backdrop now fills the Skyline hero
the way a title's does, with its thumbhash while it loads, and the
backdrops of the collections beside it are warmed. A collection without
one still frames its poster there. iPhone, iPad and Mac have no hero
that follows the focused card, so nothing changes on screen there.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(tvos): name a shared collection's owner once profiles load

The Skyline marquee reads the "by Name" line from the cached profile
list. When the first preview is another profile's collection and Home
paints before that list arrives, the preview had no owner until focus
moved. Load the list when a row needs it and rebuild the shown
collection preview, as the iOS row already does.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* chore(i18n): sync translations from release 2026.11.17-7bcceee

The release carries collections.card.byOwner from
Silo-Server/silo-translations#72, with the Ukrainian line reworded so it
doesn't need the owner's name inflected.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
Quick104 added a commit to Silo-Server/silo-roku that referenced this pull request Nov 17, 2026
Silo-Server/silo-server#4415 adds backdrop_url and backdrop_thumbhash to
server collection cards on a row of collections. A card with a backdrop
now takes the Home or library page hero while focused: the backdrop
with its wash, the collection's title, and its item count as the meta
line. A card without one (personal collections, collections without a
backdrop, older servers) leaves the hero as before. Options (*) still
opens no menu on collection cards, and Home's launch waits for the hero
only when the first card has a backdrop. docs/spec.md records the
behavior, including the thumbnail-size backdrop the server sends for a
backdrop set to other artwork.

Co-authored-by: Claude Opus 5.5 <[email protected]>
Quick104 added a commit to Silo-Server/silo-android that referenced this pull request Nov 17, 2026
* chore(i18n): sync translations from the Android collection rows catalog branch

Generated from Silo-Server/silo-translations feat/android-collection-rows
(cbbffb9) with scripts/sync-translations --local. It adds the "by {owner}"
line for a shared personal collection and the Home Sections editor's
collection count, and brings in the catalog changes since 2026.11.16-a0142c1.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(home): show rows of collections on Home and library pages

A Home or library row of type collection_posters carries its cards in
collections, not items. The client read only items, so it dropped these
rows, and the Home hydrator refetched each one and then marked Home partial,
which also skipped the Home cache write.

Decode the cards, keep the rows through the hydrator, the dismissal filter,
library media scoping, the device-local Home row editors and TV's ebook
filter, and draw them on phone and Android TV with the existing collection
poster cards. A server collection opens in its library; a personal one opens
as the Collections screen opens it, and one another profile shared reads
"by Name". TV rows join the Skyline feed's focus, return and marquee
handling. The rows have no Explore all and are never the hero.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(home): address review findings on rows of collections

- TV Home holds server collection cards back until it knows which
  libraries TV shows the profile, so an ebook library's collection never
  shows while the library list loads or after it fails.
- Each collection card decodes on its own: a card with a wrongly typed
  field is left out instead of failing the whole Home or library read.
- A personal collection on a Movies- or Series-scoped library page opens
  in that library and scope, as on TV and in the Collections tab.
- The TV marquee follows a focused collection card's new title and poster
  after a refresh.
- A row of collections flagged featured stays on TV library pages; it is
  never a hero.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(home): show a collection's count beside its owner

A personal collection another profile shared now keeps its item count
next to "by Name", as on the web: the phone card's poster badge shows the
exact count, 0 included, and the TV caption reads "3 items · by Name".

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(home): show a collection's backdrop as the TV hero

Silo-Server/silo-server#4415 sends backdrop_url and backdrop_thumbhash on
server collection cards of a row of collections. Read both as optional.
On Android TV a focused collection card now drives the Home hero with its
backdrop, the thumbhash as its placeholder, and warms its neighbours'
backdrops as title cards do. Without a backdrop (older servers, personal
collections, a collection with none) the hero keeps using the poster.

The TV caption goes back to "by Name" for another profile's shared
collection and the count otherwise: both did not fit one poster-wide line.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* chore(i18n): sync translations from release 2026.11.17-fe23d4e

The release carries Silo-Server/silo-translations#73, the catalog change
this branch was synced from with --local; the strings are unchanged.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request priority: P2 Limited scope, workaround exists, or polish size/M 50–199 added + deleted lines (all files); change volume, not priority.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant