Repository navigation
Conversation
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 — 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:
|
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Note Currently processing new changes in this PR. This may take a few minutes, please wait... ⚙️ Run configuration
📒 Files selected for processing (22)
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (11)
Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthroughMissing-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. ChangesMissing artwork cards
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
Suggested reviewers: Merge Risk: ⚪ Minimal · up to 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)
✅ Passed checks (3 passed)
Full details: Linked Issues checkExplanation Issue 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.
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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. Comment |
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]>
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:
|
| .foregroundColor(.siloSecondaryText) | ||
| .frame(width: cardWidth, height: stillHeight) | ||
| } | ||
| AsyncImageView( |
There was a problem hiding this comment.
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.
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
AsyncImageViewgets a new.artworkplaceholder style. While loading, it behaves like.surface. Once an image is known to be missing (no URL, or the load failed), it showsDefaultArtwork. 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.DefaultArtworkis a dark base, three circular gradients sized from the tile's longer side, and a dark overlay. Android and web draw the same stops..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 throughAsyncImageViewtoo.ArtworkPlaceholderSymbol,AsyncImageView.placeholderSymbol, the glyph parameters on the book rails and cover hero, and themediaTypethatMediaCardandTVMediaCardcarried only to pick the glyph.This supersedes #684, which proposed the Silo mark with an "Artwork pending" label.
Validation
mainand 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.MediaCardas 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
mainand this branch.Risks
scripts/ci/apple-test-source-ownership.jsonstill lists the deletedArtworkPlaceholderSymbolTests.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.Checklist
AI Disclosure
main. It checked sizing and layout at each caller, tvOS focus and load gating, the removedmediaTypeuses, platform conditionals and the tests. It found no crash or compile issue and raised three points:ImagePlaceholderStyle.whenMissingand its tests.🤖 Generated with Claude Code
Note
Show a default brand glow for missing artwork across all views
DefaultArtworkview with three brand-color radial glows over a dark base. It is accessibility-hidden and non-interactive.ImagePlaceholderStyle.showsErrorIconwith awhenMissingpolicy. Artwork style keeps the ThumbHash placeholder when one exists and showsDefaultArtworkotherwise; surface shows a fixed film glyph and clear stays transparent.AsyncImageViewdrops itsplaceholderSymbolinput and renders the missing-image state for invalid URLs and completed load errors, while keeping the loading placeholder for unstarted requests via the newisUnstartedRequestcheck onimageRequestMissing.ArtworkPlaceholderSymbolmedia-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.TVAudiobookDetailViewandEpisodeCardLabelrenderDefaultArtworkinstead of custom book/film icons on elevated surfaces.Macroscope summarized 5e61c20.