Repository navigation
feat(web): show a faint brand glow with a type mark for missing artwork - #2172
Conversation
A poster tile with no artwork showed the title in muted text on a plain tile, or "No Poster". It looked unfinished and didn't match the Apple and Android clients. Poster tiles now show one default artwork when the poster is missing or fails to load: the Silo blue, pink and orange as a soft glow, the same for every title. A thumbhash, when there is one, still shows instead. MediaCardArtwork applies one rule to library and TMDB cards, so the fallbackLabel and fallbackOnError props go. The Calendar card, Taste Seed and the More Like This row get the same glow, retry a re-signed poster, and their links keep an accessible name when captions are off. Co-Authored-By: Claude Opus 5.5 <[email protected]>
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. |
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:
|
|
The Evidence section contains the placeholder
Include the surface and build or commit for the captures, or replace the placeholder with the published evidence URL. Automated check: Macroscope check run agent (gpt-6-luna). Evidence was not reviewed for correctness. Posted via Macroscope — Visible change evidence |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (12)
🚧 Files skipped from review as they are similar to previous changes (1)
Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 0 remain after this review. 📝 WalkthroughWalkthroughMissing and failed posters now use default artwork instead of title text. Failed images are hidden, thumbhash backgrounds remain available, and selected cards retry when the poster URL changes. ChangesPoster Artwork
Priority: ➖ Normal Estimated code review effort: 3 (Moderate) | ~20 minutes Change: Feature Suggested reviewers: Merge Risk: ⚪ Minimal · up to The poster fallback change is mergeable after normal checks. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)✅ Passed checks (4 passed)Full details: Docstring CoverageExplanation 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 12 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: 019f32297e
ℹ️ 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".
| <ViewTransitionLink to={href} className="block overflow-hidden rounded-xl"> | ||
| <ViewTransitionLink | ||
| to={href} | ||
| aria-label={event.title} |
There was a problem hiding this comment.
Preserve the watched state in the poster link’s label
When event.watched is true, this explicit aria-label overrides the accessible name previously derived from the image and the descendant aria-label="Watched", so screen-reader link navigation now announces only the title and loses the card’s watched state. Include the watched state in the link label, or provide the fallback title without overriding the descendant content.
Useful? React with 👍 / 👎.
| > | ||
| <span className="line-clamp-3 font-medium">{fallbackLabel || "No Poster"}</span> | ||
| </div> | ||
| !thumbhashUrl && <DefaultArtwork className={dimClass} /> |
There was a problem hiding this comment.
Keep a visible title when captions are disabled
When the viewer selects the artwork-only card presentation, ItemCard and SectionItemCard suppress their captions, so a title with a missing or failed poster now renders only this identical, aria-hidden glow. The previous fallbackLabel kept such cards visibly identifiable; with multiple missing posters, sighted users can no longer tell which card opens which title. Keep a visible identifier in the fallback when the caption is hidden.
Useful? React with 👍 / 👎.
|
Two recorded Web cases render poster cards through components changed by this PR:
The release and credit assertions are unchanged, but the artwork shown for missing or failed posters is different on these screens. Please re-check both cases after merge. Suggested Automated check: Macroscope check run agent (gpt-6-luna). No validation was performed. Posted via Macroscope — v1 validation impact |
Missing posters and covers 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 Android clients. 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 poster tile with no artwork shows the title in muted text on a plain tile, or "No Poster" when no title is passed. The Calendar card and the Taste Seed picker do the same. It looks unfinished and doesn't match the Apple and Android clients.
This change gives web poster tiles 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 Android client (Silo-Server/silo-android#530).
Approach
DefaultArtworkcomponent and.default-artworkCSS: a#16171cbase, three faint radial gradients sized from the tile's longer side (container query units), and a centred lucide icon in white at 13% opacity,clamp(14px, 24cqw, 40px)wide. Without container query support, the base colour and a 24px mark show.MediaCardArtworkshowsDefaultArtworkwhen there is no poster or the poster fails to load, unless a thumbhash exists, which keeps showing as before. ThefallbackLabelandfallbackOnErrorprops are gone: one rule now covers library and TMDB cards alike. The card captions still name each title.CalendarEventCard,TasteSeedand the More Like This row (RecommendationGrid) replace their text tiles withDefaultArtwork, and now also fall back when the poster fails to load.Validation
pnpm run lint,pnpm run format:check,pnpm run build,pnpm run budget:check(325,711 B brotli, within budget): pass on 43503a2.DefaultArtworktest for the type-to-mark mapping andaria-hidden. The full suite on the type-mark change ran 7,205 tests with one failure,AdminCollections.list.test.tsx, which timed out under full-suite load; it is not touched here and passes on its own.mainand from this branch, run with Vite against the shared dev server, captured at desktop and phone widths.Evidence
Evidence: https://evidence.siloserver.org/r/silo-server/pr-2172/
Surface and build: catalog search at 1440×900 and 390×844, plus a 2× close-up of the request row. Vite dev builds of
mainand this branch.Risks
Checklist
AI Disclosure
<img>, the container-query CSS, stacking and accessible names, and raised two issues, both fixed: links with no accessible name once the poster was gone, and a failed state kept after a poster URL was re-signed. It also pointed out the More Like This row, which now uses the default artwork too. 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
DefaultArtworkglow placeholder for missing media artwork in web cardsDefaultArtworkcomponent in DefaultArtwork.tsx that fills its parent with a dark, glowing background and a media-type icon (TV, headphones, book, film fallback). It is hidden from accessibility APIs.MediaCardArtworkto replace the old text fallback withDefaultArtwork, and removes thefallbackOnErroropt-in so failed posters always fall back. Thumbhash backgrounds are kept when present.MediaCardArtworkcallers passing the old required fallback-label string orfallbackOnErrorprop will no longer type-check — check MediaCardArtwork.tsx and any out-of-tree consumers. Missing posters no longer show the title text.Macroscope summarized 43503a2.