Skip to content

feat(artwork): draw episode heroes from the series backdrop - #711

Merged
Quick104 merged 2 commits into
mainfrom
feat/episode-parent-artwork
Oct 28, 2026
Merged

Quick104 merged 2 commits into
mainfrom
feat/episode-parent-artwork

Conversation

@Quick104

@Quick104 Quick104 commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

Problem

Related issue: N/A
Validation tasks: not checked against the v1.0 board

An episode card's backdrop_url is usually the episode still, which looks soft when it fills a hero or a full-screen background. Android TV worked around this by fetching item detail for each focused episode to get the series backdrop. Silo-Server/silo-server#3197 (server dependency, not merged yet) now puts the series and season artwork on episode cards and episode detail, behind the episode_parent_artwork image capability.

Approach

  • Decode series_poster_url, series_backdrop_url, season_poster_url and their ThumbHashes on section cards, catalog cards and item detail. All are optional, so older servers keep working.
  • Add one shared helper that picks an episode's series backdrop or parent poster, and use it where an episode fills a hero or background:
    • TV Home and library marquee: the card's series backdrop is the hero from the first frame. A later detail enrichment no longer swaps it, and the Skyline preload warms that image. The detail fetch still runs because it supplies the aired/cast line.
    • TV detail hero: an episode prefers its series backdrop.
    • TV Up Next background: the On Deck fallback uses an episode's series backdrop instead of its still.
    • Watch Next tiles under spoiler protection use the card's series art. The per-series detail lookup now runs only when the card lacks that art.
    • Phone: Home rows, library rows and search hand the series backdrop to the series page as loading artwork. The episode page (shown when its series can't open) uses the detail's series backdrop and season/series poster, and skips the parent fetch when the detail already carries them.
  • Series and season art is never an episode still, so spoiler protection leaves it visible on every path.
  • Card thumbnails and existing poster rows are unchanged.
  • Vendored API v2 fixtures refreshed from the server PR branch with scripts/sync-apiv2-fixtures.sh.

Validation

  • ./gradlew test: passed. New unit tests cover the marquee (series backdrop under spoiler protection, no second swap on enrichment) and Watch Next (card series art without a series lookup).
  • :androidApp:assembleDebug and :androidTvApp:assembleDebug: passed.
  • Android TV emulator against shared dev running the server PR: the Dark Matter (2024) Continue Watching hero shows the series backdrop on Home and the Series tab, and shared dev logged the emulator's requests.
  • Phone emulator (plus tablet and foldable sizes) against shared dev: search to the Dark Matter series page shows the series backdrop while loading and once settled.
  • Review fix: the parent artwork URLs now resolve against the response origin; the new test case fails without the fix.

Evidence

Evidence: https://evidence.siloserver.org/r/silo-android/pr-711/

Surface and build: debug builds of main (9aea8a8) and this branch. Android TV emulator (1080p) for the Home and Series heroes. A local Android 16 phone emulator, also resized to tablet (1600x2560) and foldable open/folded sizes with wm size, for search to the series page. All runs used shared dev as the admin profile. On shared dev the settled screens look the same before and after: the old builds reached the series backdrop through extra detail fetches, and the new builds take it from the card.

Risks

None identified. Older servers omit the new fields, and every path falls back to its previous behavior. Behavior change under spoiler protection: a Watch Next tile for an unwatched episode now uses the series backdrop (16:9) the card carries, where it used to use a non-still portrait poster (2:3).

Checklist

  • I read and can explain the complete diff.
  • This pull request addresses one concern.
  • 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
  • Model(s): claude-opus-5-5
  • Involvement: Fully AI-generated, human verified
  • Adversarial review: n/a

🤖 Generated with Claude Code

Episode cards on servers with episode_parent_artwork carry their series'
and season's artwork. Decode series_poster_url, series_backdrop_url and
season_poster_url (with ThumbHashes) on section cards, catalog cards and
item detail, and prefer the series backdrop wherever an episode fills a
hero or full-screen background: the TV Home and library marquee, the TV
detail hero, the TV Up Next background, Watch Next tiles under spoiler
protection, and the phone's hand-off artwork into a series page.

Series and season art is never an episode still, so spoiler protection
leaves it visible. Watch Next and the phone episode page skip the series
detail fetch when the card or detail already carries the art. Older
servers omit the fields and keep the previous behavior.

Refresh the vendored API v2 fixtures from silo-server#3197.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@silo-triage silo-triage Bot added the size/L 200–499 added + deleted lines (all files); change volume, not priority. label Oct 28, 2026
@silo-kody

silo-kody Bot commented Oct 28, 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 ❌

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 28, 2026 •

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-28T02:18:11.491216Z 8d55b0e New commits
🔒 Security Review ✅ Completed 2026-10-28T02:19:10.978439Z 8d55b0e 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.

@coderabbitai

coderabbitai Bot commented Oct 28, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

Walkthrough

The change adds optional series and season artwork to catalog models and adds helpers to select episode parent artwork. Android and TV screens now use that artwork in several detail, browse, and playback surfaces.

Changes: Episode Parent Artwork

Layer / File(s) Summary
Catalog artwork contract
shared/src/commonMain/kotlin/org/siloserver/silo/model/catalog/CatalogModels.kt, shared/src/commonMain/kotlin/org/siloserver/silo/model/catalog/EpisodeParentArtwork.kt, shared/src/commonMain/kotlin/org/siloserver/silo/model/section/SectionModels.kt, shared/src/commonMain/kotlin/org/siloserver/silo/network/apiv2/CatalogDetailReadV2Models.kt, shared/src/commonTest/resources/api/v2/fixtures/*
Catalog and detail models add optional series and season artwork fields. Helpers select series backdrops and parent posters for episodes. The detail mapper forwards the fields. API fixtures are updated.
Android artwork selection
androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/detail/*, androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/components/MediaRow.kt, androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/home/HomeScreen.kt, androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/search/SearchResults.kt
Detail, home, search, and media-row artwork selection uses series backdrops or parent posters when available. Existing fallback and spoiler checks remain where described.
TV browse and detail artwork
androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/components/TvFocusMarqueeModel.kt, androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/components/TvSkylineSectionFeed.kt, androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/detail/TvItemDetailScreen.kt, androidTvApp/src/androidUnitTest/kotlin/org/siloserver/silo/tv/ui/components/TvFocusMarqueeModelTest.kt
The TV marquee, skyline preload, and detail hero prefer series backdrops when available. A marquee test checks the selected artwork, thumbhash, spoiler preferences, and enrichment.
TV playback and Watch Next artwork
androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/player/TvOnDeckItems.kt, androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/player/TvPlayerScreen.kt, androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/watchnext/WatchNextProgramMapper.kt, androidTvApp/src/androidUnitTest/kotlin/org/siloserver/silo/tv/watchnext/WatchNextProgramMapperTest.kt
On Deck items carry series-backdrop data for the Up Next fallback. Watch Next mapping prefers artwork on the item before fetched series detail. Tests cover episode artwork selection and fallback cases.

Priority: Pending latest changes

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

Change: Feature

Sequence Diagram(s)

sequenceDiagram
  participant CatalogResponse
  participant ItemDetailReadV2
  participant ItemDetail
  participant ArtworkHelper
  participant AndroidAndTVSurfaces
  CatalogResponse->>ItemDetailReadV2: supplies series and season artwork fields
  ItemDetailReadV2->>ItemDetail: maps artwork fields through toDomain()
  AndroidAndTVSurfaces->>ArtworkHelper: requests episode artwork selection
  ArtworkHelper-->>AndroidAndTVSurfaces: returns selected URL and thumbhash
Loading

Suggested reviewers: rxwatcher, rhainland

Merge Risk: Low · up to 6db7d

A compact hero may briefly show an unwatched episode placeholder despite spoiler protection. The change is mergeable with this limitation acknowledged.

Security architecture risk: Low · up to 6db7d

The client changes retain older-server fallbacks and existing credential and profile protections. No introduced security vulnerability was established. Some uncertainty remains because the server-side authorization and URL-format guarantees for the new artwork fields could not be verified.

Retained concerns
No architecture-level concerns identified.

Security review details

Security Blast Radius

  • inferred — The demonstrated exposure is artwork retrieval on client devices and launcher-visible artwork URLs on Android TV. A controlling catalog producer can influence those URLs, but the inspected changes do not establish additional application credentials, cross-tenant authority, or server-side privileges.

Trust Boundaries and Controls

  • observed — Android image loading uses the existing credential-free image client. Source and existing tests show that artwork requests do not attach Authorization, profile-token, profile-identity, or Cookie headers, including direct external artwork requests.

Resilience and Maintainability Implications

  • observed — Watch Next synchronization captures home authority, rejects borrowed identity, and rechecks current ownership and preferences before publication. Provider updates retain cancellation and write-generation checks, duplicate collapse, and serialized clearing. Publication is a multi-step diff rather than an atomic batch; these mechanisms predate the artwork-selection change.

Hardening Proposals

  • proposed — Make the producer contract explicit for parent-artwork authorization, relative versus absolute URLs, and suitability for launcher publication. If root-relative values are supported, apply the existing response-origin normalization to the new field names.
Pre-merge checks: Passed 4 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 63.64% 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(artwork): draw episode heroes from the series backdrop" matches the main change. The diff adds series and season artwork fields, a shared helper that returns the series backdrop for ep…
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.
Description check Passed The pull request description clearly explains the episode parent artwork changes, affected surfaces, compatibility behavior, validation, and fixture updates. It is directly related to the changeset.
Full details: Title check

Explanation

The title "feat(artwork): draw episode heroes from the series backdrop" matches the main change. The diff adds series and season artwork fields, a shared helper that returns the series backdrop for episodes, and uses it in detail heroes, TV marquees, Up Next, Watch Next, and home/search handoffs.

Full details: Docstring Coverage

Explanation

Docstring coverage is 63.64% 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 11 functions across 18 files. (4 skipped: 4 unsupported.)

Resolution

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

Finishing Touches: 💡 1
📝 Generate docstrings: 💡
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Comment @coderabbitai help to get the list of available commands.

@silo-triage silo-triage Bot added enhancement New feature or request evidence-required Needs before-and-after evidence before the Evidence check passes impact: polish Annoyance, cosmetic, or nice-to-have priority: P2 Limited scope, workaround exists, or polish labels Oct 28, 2026
@silo-triage

silo-triage Bot commented Oct 28, 2026

Copy link
Copy Markdown

Evidence is incomplete for the mobile changes: the PR changes the series-page loading artwork and fallback episode-page artwork, but explicitly has no phone, tablet, or foldable captures. Please add before-and-after captures of those paths on a phone, tablet, and foldable (folded and open), as CONTRIBUTING.md requires. The TV captures do not cover these surfaces.

@macroscopeapp

macroscopeapp Bot commented Oct 28, 2026

Copy link
Copy Markdown

The phone-app series-art handoff and episode-detail hero/poster changes are not shown on an Android phone, tablet, or foldable (folded and open). The Evidence section explains that these captures were unavailable; to complete the evidence, add before-and-after captures of the affected screens with the same data on each form factor.

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

Posted via Macroscope — Visible change evidence

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 6db7dfb090

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Add series_poster_url, series_backdrop_url and season_poster_url to the
response-origin URL normalization, so root-relative signed artwork loads.
Keep the phone episode hero's ThumbHash paired with the series backdrop
it shows.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

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: d60d00df-d55b-4a85-872c-8da2dde8cb7d
Commits

Reviewing files that changed from the base of the PR and between 9aea8a8 and 6db7dfb.

Files selected for processing: 22
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/components/MediaRow.kt
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/detail/DetailSharedComponents.kt
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/detail/ItemDetailScreen.kt
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/detail/ItemDetailViewModel.kt
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/home/HomeScreen.kt
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/search/SearchResults.kt
  • androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/components/TvFocusMarqueeModel.kt
  • androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/components/TvSkylineSectionFeed.kt
  • androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/detail/TvItemDetailScreen.kt
  • androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/player/TvOnDeckItems.kt
  • androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/player/TvPlayerScreen.kt
  • androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/watchnext/WatchNextProgramMapper.kt
  • androidTvApp/src/androidUnitTest/kotlin/org/siloserver/silo/tv/ui/components/TvFocusMarqueeModelTest.kt
  • androidTvApp/src/androidUnitTest/kotlin/org/siloserver/silo/tv/watchnext/WatchNextProgramMapperTest.kt
  • shared/src/commonMain/kotlin/org/siloserver/silo/model/catalog/CatalogModels.kt
  • shared/src/commonMain/kotlin/org/siloserver/silo/model/catalog/EpisodeParentArtwork.kt
  • shared/src/commonMain/kotlin/org/siloserver/silo/model/section/SectionModels.kt
  • shared/src/commonMain/kotlin/org/siloserver/silo/network/apiv2/CatalogDetailReadV2Models.kt
  • shared/src/commonTest/resources/api/v2/fixtures/SOURCE
  • shared/src/commonTest/resources/api/v2/fixtures/get_image_capabilities_ok.json
  • shared/src/commonTest/resources/api/v2/fixtures/get_system_info_ok.json
  • shared/src/commonTest/resources/api/v2/fixtures/index.json

Included review availability: This review used your included allowance. 0 included reviews remain after this review. Your included PR review attempts over the past 7 days set your current allowance at 1 review per hour.

@Quick104

Copy link
Copy Markdown
Contributor Author

The evidence page now has phone captures and tablet and foldable (open and folded) sizes, before and after, for the search-to-series flow. Updated page: https://evidence.siloserver.org/r/silo-android/pr-711/

@Quick104
Quick104 merged commit 4d489a8 into main Oct 28, 2026
9 checks passed
@Quick104
Quick104 deleted the feat/episode-parent-artwork branch October 28, 2026 02:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request evidence-required Needs before-and-after evidence before the Evidence check passes impact: polish Annoyance, cosmetic, or nice-to-have priority: P2 Limited scope, workaround exists, or polish size/L 200–499 added + deleted lines (all files); change volume, not priority.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant