Skip to content

feat(artwork): show a default brand glow for missing artwork - #712

Closed
Quick104 wants to merge 3 commits into
mainfrom
feat/artwork-title-card
Closed

Quick104 wants to merge 3 commits into
mainfrom
feat/artwork-title-card

Conversation

@Quick104

@Quick104 Quick104 commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

Problem

Closes #682
Related issue: N/A
Validation tasks: none

A title with no artwork shows a near-black tile with a faint type glyph, or an empty tile when the server sends no artwork URL. It reads as a loading bug rather than a title that simply has no artwork. This affects poster, cover and still cards on iPhone, iPad, Apple TV and Mac.

This change gives those cards one default artwork: the Silo blue, pink and orange as a soft glow, the same for every title. The Android and web clients get the same glow in their own pull requests.

Approach

  • AsyncImageView gets a new .artwork placeholder style. While loading, it behaves like .surface. Once an image is known to be missing (no URL, or the load failed), it shows DefaultArtwork. If the load failed but a ThumbHash exists, it keeps the ThumbHash, which already carries the artwork's colours. Other images keep the faint film glyph.
  • DefaultArtwork is a dark base, three circular gradients sized from the tile's longer side, and a dark overlay. Android and web draw the same stops.
  • Callers using .artwork: poster cards (MediaCard, TVMediaCard, Home's poster card), the Home Continue Watching still card, EpisodeThumbCard, the phone and tvOS episode rails, the phone More Like This and book rails, Calendar cards, the phone and tvOS audiobook covers, and the Mac detail poster. The tvOS episode rail, the More Like This rail and both audiobook covers had their own empty-URL branches; those now go through AsyncImageView too.
  • An empty URL draws its stand-in on the first frame. A missing request (a tvOS row loading offscreen) no longer counts as missing artwork, which would otherwise flash the glow for a frame when the row comes into view.
  • The glow has no type glyph, so the glyph plumbing from fix(artwork): match the missing-poster glyph to the item type #633 goes: ArtworkPlaceholderSymbol, AsyncImageView.placeholderSymbol, the glyph parameters on the book rails and cover hero, and the mediaType that MediaCard and TVMediaCard carried only to pick the glyph.
  • Person photos, avatars, backdrops and collection tiles are unchanged; they have their own fallbacks.

This supersedes #684, which proposed the Silo mark with an "Artwork pending" label.

Validation

  • Unit tests: the full iOS (2,797 tests) and tvOS (2,543 tests) suites pass on fresh simulators. New tests cover what each placeholder style shows for missing artwork. The accessibility tests check that the placeholders add no VoiceOver or UI-automation elements.
  • Builds: Silo, SiloTV and SiloMac compile.
  • Manual: Debug simulator builds of main and this branch on iPhone 17 Pro, iPad Pro 11-inch (M5) and Apple TV 4K (3rd generation), with the same screens against the same library.
  • Not done: a live macOS capture. Mac cards use the same MediaCard as iPhone and iPad.

Evidence

Evidence: https://evidence.siloserver.org/r/silo-apple/pr-712/

Surface and build: search, a series' episode rail and an audiobook cover on the iPhone 17 Pro simulator, and search on the iPad Pro 11-inch (M5) and Apple TV 4K (3rd generation) simulators. Debug builds of main and this branch.

Risks

  • scripts/ci/apple-test-source-ownership.json still lists the deleted ArtworkPlaceholderSymbolTests.swift. The list is sealed by a hash, so it needs its next reviewed refresh. Until then, test-only changes fall back to building every platform, which is what any app-code change already does.
  • The Mac detail page shows no poster slot at all when a title has no poster URL, as before. The glow appears there only when a poster fails to load.

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): xcodebuild, XcodeGen, Xcode Simulator, agent-device, GitHub CLI
  • Model(s): claude-opus-5-5
  • Involvement: Fully AI-generated, human verified
  • Adversarial review: A separate Claude Code review agent (claude-opus-5-5) read the net diff against main. It checked sizing and layout at each caller, tvOS focus and load gating, the removed mediaType uses, platform conditionals and the tests. It found no crash or compile issue and raised three points:
    • On tvOS, a stale "no request" error made art-less cards flash the glow for a frame as rows came into view. Fixed: an empty URL draws its stand-in directly, and a missing request no longer counts as missing artwork.
    • Nothing tested what each style shows for missing artwork. Fixed with ImagePlaceholderStyle.whenMissing and its tests.
    • The CI test ownership list still names the deleted test file. Left for that list's reviewed refresh, as noted under Risks.

🤖 Generated with Claude Code

Note

Show a default brand glow for missing artwork across all views

  • Adds a DefaultArtwork view with three brand-color radial glows over a dark base. It is accessibility-hidden and non-interactive.
  • Replaces ImagePlaceholderStyle.showsErrorIcon with a whenMissing policy. Artwork style keeps the ThumbHash placeholder when one exists and shows DefaultArtwork otherwise; surface shows a fixed film glyph and clear stays transparent.
  • AsyncImageView drops its placeholderSymbol input and renders the missing-image state for invalid URLs and completed load errors, while keeping the loading placeholder for unstarted requests via the new isUnstartedRequest check on imageRequestMissing.
  • Removes the ArtworkPlaceholderSymbol media-type-to-glyph mapping and all per-call-site placeholder symbol plumbing. Posters, rails, and detail covers across iOS and tvOS now use the shared artwork placeholder style with an empty-string fallback URL.
  • Behavioral Change: every missing-image glyph is now the fixed film glyph (no more television or headphones glyphs), and views like TVAudiobookDetailView and EpisodeCardLabel render DefaultArtwork instead of custom book/film icons on elevated surfaces.

Macroscope summarized 5e61c20.

A title with no artwork rendered as a near-black card with a faint type
glyph, or a blank card when the server sent no URL. It read as a loading
bug, and with poster captions turned off nothing said which title it was.

A card with no artwork now draws a stand-in poster: a muted gradient picked
from the title, the type glyph, the title and the caption's second line,
centred so it clears overlay badges in any corner. Over a ThumbHash the
title sits on a dimming scrim instead. Cards under 100pt wide, cards without
a title, and the still cards with a centred play button keep the faint glyph.

The gradient formula moves out of TVCollectionPosterCard into
PlaceholderTint so art-less collections and titles share one palette.
PhoneSimilarRail's empty-URL branch now goes through AsyncImageView too.

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

silo-kody Bot commented Oct 8, 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 8, 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-08T23:56:57.712965Z 5e61c20 New commits
🔒 Security Review ✅ Completed 2026-10-08T23:56:49.202415Z 5e61c20 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.

@Quick104 Quick104 added priority: P2 Limited scope, workaround exists, or polish impact: polish Annoyance, cosmetic, or nice-to-have labels Oct 8, 2026 — with Cursor
@coderabbitai

coderabbitai Bot commented Oct 8, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

Note

Currently processing new changes in this PR. This may take a few minutes, please wait...

⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: b52218b5-a27c-4689-926b-353b7746f2f5
📥 Commits

Reviewing files that changed from the base of the PR and between ef8ea77 and 5e61c20.

📒 Files selected for processing (22)
  • iosApp/Tests/ArtworkPlaceholderAccessibilityTests.swift
  • iosApp/Tests/ArtworkPlaceholderStyleTests.swift
  • iosApp/Tests/ArtworkPlaceholderSymbolTests.swift
  • iosApp/iosApp/Components/EpisodeThumbCard.swift
  • iosApp/iosApp/Components/Images/AsyncImageView.swift
  • iosApp/iosApp/Components/Images/DefaultArtwork.swift
  • iosApp/iosApp/Components/MediaCard.swift
  • iosApp/iosApp/Components/MediaRow.swift
  • iosApp/iosApp/Screens/Browse/CatalogGrid.swift
  • iosApp/iosApp/Screens/Calendar/CalendarEventCard.swift
  • iosApp/iosApp/Screens/Detail/AudiobookDetailContent.swift
  • iosApp/iosApp/Screens/Detail/BookDetailPresentation.swift
  • iosApp/iosApp/Screens/Detail/Phone/PhoneDetailHero.swift
  • iosApp/iosApp/Screens/Detail/Phone/PhoneEpisodeRail.swift
  • iosApp/iosApp/Screens/Detail/Phone/PhoneSimilarRail.swift
  • iosApp/iosApp/Screens/Home/Feed/HomeFeedKit.swift
  • iosApp/iosApp/Screens/Personal/FavoritesView.swift
  • iosApp/iosApp/Screens/Personal/WatchlistView.swift
  • iosApp/iosApp/tvOS/Screens/Components/TVCatalogGrid.swift
  • iosApp/iosApp/tvOS/Screens/Components/TVMediaCard.swift
  • iosApp/iosApp/tvOS/Screens/Detail/TVAudiobookDetailView.swift
  • iosApp/iosApp/tvOS/Screens/Detail/TVEpisodeRail.swift
 _________________________________________________
< Artificial intelligence, natural bug detection. >
 -------------------------------------------------
  \
   \   (\__/)
       (•ㅅ•)
       /   づ

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 7818101e-226f-451a-8fb9-e69db797f4b6
📥 Commits

Reviewing files that changed from the base of the PR and between fb42d05 and ef8ea77.

📒 Files selected for processing (11)
  • iosApp/Tests/ArtworkPlaceholderAccessibilityTests.swift
  • iosApp/Tests/ArtworkPlaceholderSymbolTests.swift
  • iosApp/iosApp/Components/EpisodeThumbCard.swift
  • iosApp/iosApp/Components/Images/AsyncImageView.swift
  • iosApp/iosApp/Components/Images/PlaceholderTint.swift
  • iosApp/iosApp/Components/MediaCard.swift
  • iosApp/iosApp/Screens/Detail/Phone/PhoneEpisodeRail.swift
  • iosApp/iosApp/Screens/Detail/Phone/PhoneSimilarRail.swift
  • iosApp/iosApp/Screens/Home/Feed/HomeFeedKit.swift
  • iosApp/iosApp/tvOS/Screens/Components/TVCollectionPosterCard.swift
  • iosApp/iosApp/tvOS/Screens/Components/TVMediaCard.swift

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


📝 Walkthrough

Walkthrough

Missing-artwork placeholders now use supplied titles and subtitles when available. AsyncImageView renders the placeholders, and poster and still cards provide their missing-artwork metadata. Empty poster URLs on PhonePosterCard also use AsyncImageView.

Changes

Missing artwork cards

Layer / File(s) Summary
Missing artwork model and rendering
iosApp/iosApp/Components/Images/AsyncImageView.swift, iosApp/iosApp/Components/Images/PlaceholderTint.swift, iosApp/Tests/ArtworkPlaceholderSymbolTests.swift, iosApp/Tests/ArtworkPlaceholderAccessibilityTests.swift
MissingArtwork carries a symbol, title, and subtitle. MissingArtworkView draws a glyph or title card. PlaceholderTint provides deterministic gradients. Tests check hue values and confirm decorative placeholder text is excluded from collected accessibility labels.
Card integration
iosApp/iosApp/Components/EpisodeThumbCard.swift, iosApp/iosApp/Components/MediaCard.swift, iosApp/iosApp/Screens/Detail/Phone/PhoneEpisodeRail.swift, iosApp/iosApp/Screens/Detail/Phone/PhoneSimilarRail.swift, iosApp/iosApp/Screens/Home/Feed/HomeFeedKit.swift, iosApp/iosApp/tvOS/Screens/Components/TVCollectionPosterCard.swift, iosApp/iosApp/tvOS/Screens/Components/TVMediaCard.swift
Poster and still cards pass missing-artwork metadata to AsyncImageView. PhonePosterCard also sends empty poster URLs through AsyncImageView. Collection poster gradients use PlaceholderTint.

Priority: ➖ Normal

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

Change: Feature · Severity of issue fixed: Medium

Sequence Diagram(s)

sequenceDiagram
  participant EpisodeThumbCard
  participant AsyncImageView
  participant MissingArtworkView
  EpisodeThumbCard->>AsyncImageView: Provide MissingArtwork metadata
  AsyncImageView->>MissingArtworkView: Render overlay after enabled load error
Loading

Suggested reviewers: rhainland, blurbery

Merge Risk: ⚪ Minimal · up to ef8ea

The missing-artwork title cards and card integrations have no established merge-blocking issue in the supplied evidence. Merge after normal checks.

🚥 Pre-merge checks | ✅ 3 | ❌ 2

❌ Failed checks (2 warnings)

Check name Status Explanation Resolution
Linked Issues check ⚠️ Warning Issue #682 requires the missing-artwork placeholder to show the Silo mark and the text "Artwork pending" for empty or failed artwork on iOS, tvOS, and macOS. The PR intentionally implements a title-de… Implement the Silo mark and "Artwork pending" label for the required missing-artwork cases on iOS, tvOS, and macOS, while preserving the accepted small-card glyph behavior and the other issue requirements. Alternatively, update the active l…
Docstring Coverage ⚠️ Warning Docstring coverage is 45.45% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 11 functions across 11 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (3 passed)
Check name Status Explanation
Out of Scope Changes check ✅ Passed The changed files implement missing-artwork rendering, its callers, related accessibility and tint tests, and the shared gradient used by the tvOS art-less collection fallback. These changes support t…
Title check ✅ Passed The title clearly and concisely describes the main change: rendering title cards for missing artwork.
Description check ✅ Passed The description directly explains the missing-artwork problem, implementation approach, validation, risks, and follow-up scope.
Full details: Linked Issues check

Explanation

Issue #682 requires the missing-artwork placeholder to show the Silo mark and the text "Artwork pending" for empty or failed artwork on iOS, tvOS, and macOS. The PR intentionally implements a title-derived gradient with a type glyph, title, and second line instead. It retains glyph-only behavior for small or untitled cards. The PR addresses loading behavior, overlays, accessibility, and tvOS loading considerations, but it does not meet the core placeholder content requirement in #682.

Resolution

Implement the Silo mark and "Artwork pending" label for the required missing-artwork cases on iOS, tvOS, and macOS, while preserving the accepted small-card glyph behavior and the other issue requirements. Alternatively, update the active linked issue to approve the replacement behavior before merging.

  • Fix all pre-merge checks with AI
✨ Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

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

@Quick104 Quick104 closed this Oct 8, 2026
Quick104 and others added 2 commits October 8, 2026 18:49
Replaces the per-title title card with one default artwork that every
client draws: the Silo blue, pink and orange as a soft glow, the same
for every title. The web and Android clients get the same glow in their own changes.

Posters, audiobook covers, episode and Continue Watching stills, calendar
cards and the detail-page covers use the new `.artwork` placeholder style.
When an image is missing or fails to load they show the glow; when it fails
but a ThumbHash exists they keep the ThumbHash, which already carries the
artwork's colours. Other images keep the faint film glyph.

The glow has no glyph, so the per-type glyph plumbing goes:
ArtworkPlaceholderSymbol, AsyncImageView.placeholderSymbol, the
placeholder symbols on the book rails and cover hero, and the mediaType
property MediaCard and TVMediaCard carried only to pick the glyph. The
episode rail on tvOS, the phone More Like This rail and both audiobook
covers now route empty URLs through AsyncImageView too.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
On tvOS a row loading offscreen has no image request, and Nuke records
that as an imageRequestMissing error. When the row comes into view the
stale error lasts one frame, so every art-less card flashed the default
artwork before loading. A missing request no longer counts as missing
artwork, and an empty URL draws its stand-in straight away instead of
waiting for an empty request to fail.

What a missing image shows per placeholder style is now a small tested
function, ImagePlaceholderStyle.whenMissing.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@Quick104 Quick104 changed the title feat(artwork): draw a title card for missing artwork feat(artwork): show a default brand glow for missing artwork Oct 8, 2026
@Quick104 Quick104 reopened this Oct 8, 2026
@silo-kody

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

@Quick104 Quick104 closed this Oct 8, 2026
.foregroundColor(.siloSecondaryText)
.frame(width: cardWidth, height: stillHeight)
}
AsyncImageView(

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 Kody Rules high

Spoiler exposure in the episode-artwork renderer in iosApp/iosApp/tvOS/Screens/Detail/TVEpisodeRail.swift occurs because it receives the still URL and ThumbHash without applying current spoiler preferences or evaluating the episode's watch and resume state. Apply the shared spoiler policy using the displayed artwork's provenance to protect both the still and its ThumbHash when required, keep the safe brand-glow fallback unblurred, and do not classify an unfinished episode as untouched solely because played is false.

Kody rule violation: Preserve spoiler-relevant state and per-slot artwork provenance

Prompt for LLM

File iosApp/iosApp/tvOS/Screens/Detail/TVEpisodeRail.swift:

Line 789:

Spoiler exposure in the episode-artwork renderer in iosApp/iosApp/tvOS/Screens/Detail/TVEpisodeRail.swift occurs because it receives the still URL and ThumbHash without applying current spoiler preferences or evaluating the episode's watch and resume state. Apply the shared spoiler policy using the displayed artwork's provenance to protect both the still and its ThumbHash when required, keep the safe brand-glow fallback unblurred, and do not classify an unfinished episode as untouched solely because played is false.

Talk to Kody by mentioning @kody

Was this suggestion helpful? React with 👍 or 👎 to help Kody learn from this interaction.

​

​

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

impact: polish Annoyance, cosmetic, or nice-to-have priority: P2 Limited scope, workaround exists, or polish

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Show a Silo-branded "Artwork pending" placeholder when a title has no artwork

1 participant