Repository navigation
feat(artwork): show a faint brand glow with a type mark for missing artwork - #530
Conversation
A title with no artwork showed a flat dark tile on phone and tablet, and a movie icon on TV whatever its type. It read as a loading bug. Posters, covers and stills now show one default artwork when the image is missing or fails to load: the Silo blue, pink and orange as a soft glow, the same for every title, matching the Apple and web clients. A failed load with a ThumbHash keeps the ThumbHash. ThumbhashImage gets an opt-in defaultArtwork flag, so backdrops, logos, avatars and person photos are unchanged. The TV episode rail and TvPoster drop their own empty-URL branches and go through ThumbhashImage. The default artwork carries the image's content description, so a card with its caption hidden keeps an accessible name. 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. |
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 23 minutes. View limit detailsLimit details: You’ve used the included review currently available. Review configuration: ⚙️ Run configuration
📒 Files selected for processing (4)
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (25)
Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthroughThe change adds shared default artwork with marks selected by item type. ChangesShared default artwork
Priority: ➖ Normal Estimated code review effort: 3 (Moderate) | ~25 minutes Change: Feature Sequence Diagram(s)sequenceDiagram
participant MediaCard
participant ThumbhashImage
participant AsyncImage
participant DefaultArtwork
MediaCard->>ThumbhashImage: Pass artwork kind and image URL
ThumbhashImage->>AsyncImage: Load image URL
AsyncImage-->>ThumbhashImage: Report load failure
ThumbhashImage->>DefaultArtwork: Render artwork if no ThumbHash is available
Suggested reviewers: Merge Risk: ⚪ Minimal · up to No identified issue remains that should delay merging after normal checks. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)✅ Passed checks (4 passed)Full details: Docstring CoverageExplanation Docstring coverage is 27.27% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 33 functions across 24 files. (1 skipped: 1 unsupported.) ✨ Finishing Touches 💡 1📝 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 |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: c524cc4217
ℹ️ 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".
There was a problem hiding this comment.
🔇 Additional comments (1)
android-shared/src/androidMain/kotlin/org/siloserver/silo/common/ui/components/ThumbhashImage.kt-198-201 (1)
198-201: 🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
⚠️ Unverified finding
Verification ran but could not confirm this finding. It is shown for review, not as a verified issue.Allow a new request after the image model changes.
If a load fails and
cacheKeyordecodeSizePxchanges whileurlstays the same, this return keepsAsyncImageout of composition. The new request never starts, so the default artwork remains even if the image can now load. Key the failure state to the request model, or permit a new model to retry while retaining the fallback.
ℹ️ Review info
⚙️ Run configuration
- Configuration used: Organization UI
- Review profile: CHILL
- Plan: Advanced
- Run ID:
0dae8ad3-b244-4c30-bf12-e3a139e18f1c
📒 Files selected for processing (15)
android-shared/src/androidMain/kotlin/org/siloserver/silo/common/ui/components/DefaultArtwork.ktandroid-shared/src/androidMain/kotlin/org/siloserver/silo/common/ui/components/ThumbhashImage.ktandroidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/components/BackdropCard.ktandroidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/components/MediaCard.ktandroidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/audiobook/AudiobookDetailContent.ktandroidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/book/BookDetailContent.ktandroidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/calendar/CalendarScreen.ktandroidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/detail/DetailSharedComponents.ktandroidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/detail/EpisodeList.ktandroidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/components/TvEpisodeCard.ktandroidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/components/TvMediaCard.ktandroidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/components/TvPoster.ktandroidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/components/TvReferenceShelfCard.ktandroidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/calendar/TvCalendarScreen.ktandroidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/detail/TvDetailEpisodeRail.kt
Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.
Missing posters, covers and stills now show the brand glow at about a third of its strength on a lighter base, with a small film, TV, headphones or book mark for the item's type, matching the Apple and web clients. Cards that centre their own play or book glyph over the artwork show the glow without a mark. 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:
|
On an episode page where neither the season nor the series has a poster, the tablet poster box now shows the default artwork once the series lookup finishes instead of staying a flat tile. A ThumbHash that fails to decode no longer blocks the default artwork. 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:
|
An episode without a series ID or season number never runs the series poster lookup, so mark the poster resolved and let the default artwork show. 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:
|
Problem
Related issue: Silo-Server/silo-apple#682
Validation tasks: none
A title with no artwork shows a flat dark tile on Android phone and tablet, and a movie icon on Android TV, whatever the title's type. It reads as a loading bug rather than a title that simply has no artwork.
This change gives posters, covers and stills one quiet default artwork: a faint glow in the Silo blue, pink and orange with a small mark for the item's type (film, TV, headphones or book). It is meant to sit next to real posters without drawing attention. It matches the Apple client (Silo-Server/silo-apple#715) and the web client (Silo-Server/silo-server#2172).
Approach
DefaultArtworkcomposable in android-shared: a#16171Cbase, three faint radial gradients sized from the tile's longer side in the brand colours fromMarqueeColors, and a centred Material Outlined icon in white at 13% alpha. The mark is 24% of the tile's width, between 14 and 40 dp; the TV theme raises the cap to 64 dp throughLocalDefaultArtworkMarkMaxSize. Everything is drawn in onedrawWithCachepass, with no subcomposition, since these sit in lazy rows.DefaultArtworkKindpicks the mark:Tvfor series, seasons and episodes,Audiobook(headphones) for audiobooks and podcasts,Bookfor books, ebooks, comics and manga,Video(film) otherwise.GlowOnlydraws no mark. The type checks live next to the existing ones inItemTypes.kt.ThumbhashImagegets an opt-indefaultArtwork: DefaultArtworkKind?. With it set, a missing URL or a failed load with no ThumbHash showsDefaultArtwork. A failed load with a ThumbHash keeps the ThumbHash. Callers that don't opt in (backdrops, logos, avatars, person photos) are unchanged.MediaCard,BackdropCard(Continue Watching, Next Up), episode stills, Calendar cards, the audiobook and book detail covers, and the tablet detail poster.TvMediaCard,TvEpisodeCard,TvReferenceShelfCard, Calendar cards, the detail episode rail, andTvPoster(the audiobook cover, the audiobook player and Watch Party). The episode rail,TvPosterand the tablet detail poster had their own empty-URL branches; those now go throughThumbhashImage.GlowOnly:BackdropCardalways, and the phone episode card when it shows a play button.compose.materialIconsExtendedfor the marks. Both apps already ship it.Validation
./gradlew testDebugUnitTest: pass, 5,570 tests on a460d61. NewDefaultArtworkKindTestcovers the type-to-mark mapping. On ddbf547 (review fixes),:android-sharedand:androidAppunit tests pass. One run hit the 30 s timeout inPlayerViewModelLoadOwnershipIntegrationTestwhile another build loaded the machine; it passed on its own and in the full rerun.:android-shared:lintDebug :androidApp:lintDebug :androidTvApp:lintDebug: pass on ddbf547, no new issues../scripts/test-check-build-supply-chain.shand./scripts/check-build-supply-chain.sh: pass on a460d61.:androidApp:assembleDebug :androidTvApp:assembleDebugand:androidApp:bundleRelease :androidTvApp:bundleRelease: pass.mainand this branch on a phone emulator and an Android TV emulator (Android 14), with the same screens against the same library.Evidence
Evidence: https://evidence.siloserver.org/r/silo-android/pr-530/
Surface and build: search, a series' episode list and an audiobook cover on the phone emulator, and search and the episode rail on the TV emulator. Debug builds of
mainand this branch.Risks
TvPosterno longer shows a movie icon for a missing image; Watch Party and the audiobook player now show the default artwork.booktype gets the book mark here, while the Apple and web clients treat it as an audiobook. Silo's catalog sendsaudiobookandebook, so this only matters for a type the server does not send.Checklist
AI Disclosure
ThumbhashImage's new state against both its gated and ungated paths, callers that don't opt in, zero-size gradients,TvPoster's callers and accessibility, and raised three issues, all fixed: the tablet detail poster showing the stand-in while a series poster loaded, a missing TalkBack description, and a flash before a ThumbHash decoded. The follow-up commit (quieter glow, type mark) was written by a Claude Code subagent and reviewed by the authoring session, not by a separate review agent.🤖 Generated with Claude Code
Note
Add branded glow with type-specific marks for missing artwork
DefaultArtworkcomposable that draws a dark base with three branded radial glows and a centered vector mark, sized between minimum bounds andLocalDefaultArtworkMarkMaxSize(40.dp default, 64.dp on TV viaSiloTvTheme)DefaultArtworkKindandDefaultArtworkKind.forItemType, mapping catalog types to TV, audiobook/podcast, book, or video marks, backed by new type predicates in ItemTypes.ktTvPosterand TV episode cards replace their old solid-icon fallbacks withThumbhashImageisResolvedonDetailPortraitArtworkandepisodeSeriesPosterResolvedinItemDetailUiStateTvPoster's movie icon now render branded glow artwork instead; checkTvPosterandTvDetailEpisodeCardin the TV app for visual regressionsMacroscope summarized 8e58675.