Skip to content

feat(web): show a faint brand glow with a type mark for missing artwork - #2172

Merged
Quick104 merged 2 commits into
mainfrom
feat/web-default-artwork
Oct 9, 2026
Merged

Quick104 merged 2 commits into
mainfrom
feat/web-default-artwork

Conversation

@Quick104

@Quick104 Quick104 commented Oct 9, 2026 •

Copy link
Copy Markdown
Contributor

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

  • New DefaultArtwork component and .default-artwork CSS: a #16171c base, 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.
  • The mark follows the item type: TV for series, seasons and episodes, headphones for audiobooks and podcasts, a book for ebooks, manga and comics, a film otherwise. Callers pass the type they already have; the Calendar card passes movie or episode.
  • MediaCardArtwork shows DefaultArtwork when there is no poster or the poster fails to load, unless a thumbhash exists, which keeps showing as before. The fallbackLabel and fallbackOnError props are gone: one rule now covers library and TMDB cards alike. The card captions still name each title.
  • CalendarEventCard, TasteSeed and the More Like This row (RecommendationGrid) replace their text tiles with DefaultArtwork, and now also fall back when the poster fails to load.
  • Web only; no server or API change.

Validation

  • pnpm run lint, pnpm run format:check, pnpm run build, pnpm run budget:check (325,711 B brotli, within budget): pass on 43503a2.
  • Vitest: the focused files for the touched components pass (8 files, 82 tests), including a new DefaultArtwork test for the type-to-mark mapping and aria-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.
  • Manual: the web client from main and 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 main and this branch.

Risks

  • A library card whose poster fails to load and has no thumbhash used to show an empty tile; it now shows the default artwork.
  • On poster tiles wider than about 150px, the 40px mark can show a few pixels around the 36px hover play button while it is revealed.

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): pnpm, Vite, Vitest, ESLint, Prettier, Chrome (headless, puppeteer-core, Playwright), 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 first version's full diff. It checked re-signed URLs after a failure, other consumers of the poster <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 DefaultArtwork glow placeholder for missing media artwork in web cards

  • Adds a reusable DefaultArtwork component 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.
  • Reworks MediaCardArtwork to replace the old text fallback with DefaultArtwork, and removes the fallbackOnError opt-in so failed posters always fall back. Thumbhash backgrounds are kept when present.
  • Updates all card callers (ItemCard, RecommendationGrid, SectionItemCard, CalendarEventCard, WatchlistTitleCard, RequestPosterCard, TasteSeed) to pass the media type instead of a title fallback. Recommendation, Calendar, and TasteSeed cards also track failed-poster state by URL so a changed poster URL retries.
  • Styling lives in app.css with three radial glows sized to the container.
  • Risk: Behavioral Change: MediaCardArtwork callers passing the old required fallback-label string or fallbackOnError prop 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.

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]>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 9, 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-09T17:48:46.700220Z 43503a2 New commits
🔒 Security Review ✅ Completed 2026-10-09T17:48:49.823258Z 43503a2 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.

@silo-kody

silo-kody Bot commented Oct 9, 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 added priority: P2 Limited scope, workaround exists, or polish impact: polish Annoyance, cosmetic, or nice-to-have labels Oct 9, 2026 — with Cursor
@macroscopeapp

macroscopeapp Bot commented Oct 9, 2026

Copy link
Copy Markdown

The Evidence section contains the placeholder EVIDENCE_LINK, not attached captures or a usable evidence URL. The stated desktop and phone captures therefore are not available for review.

  • Missing or failed artwork in library/section, discover/request, and watchlist cards (web/src/components/MediaCardArtwork.tsx, web/src/components/RequestPosterCard.tsx, web/src/components/ItemCard.tsx, web/src/components/SectionItemCard.tsx, web/src/components/watchlist/WatchlistTitleCard.tsx): provide before-and-after captures of the same data for each affected screen, at desktop and phone widths.
  • Calendar poster fallback (web/src/components/calendar/CalendarEventCard.tsx): provide before-and-after captures of the same calendar screen at desktop and phone widths.
  • Taste Seed poster fallback (web/src/pages/TasteSeed.tsx): provide before-and-after captures of the same picker at desktop and phone widths.
  • More Like This poster fallback (web/src/components/RecommendationGrid.tsx): provide before-and-after captures of the same recommendation section at desktop and phone widths.

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

@coderabbitai

coderabbitai Bot commented Oct 9, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

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: 350f5c8a-c290-417d-98d6-4fbf6ecb6f71

📥 Commits

Reviewing files that changed from the base of the PR and between 019f322 and 43503a2.


📒 Files selected for processing (12)
  • web/src/app.css
  • web/src/components/DefaultArtwork.test.tsx
  • web/src/components/DefaultArtwork.tsx
  • web/src/components/ItemCard.tsx
  • web/src/components/MediaCardArtwork.tsx
  • web/src/components/RecommendationGrid.tsx
  • web/src/components/RequestPosterCard.test.tsx
  • web/src/components/RequestPosterCard.tsx
  • web/src/components/SectionItemCard.tsx
  • web/src/components/calendar/CalendarEventCard.tsx
  • web/src/components/watchlist/WatchlistTitleCard.tsx
  • web/src/pages/TasteSeed.tsx

🚧 Files skipped from review as they are similar to previous changes (1)
  • web/src/components/RequestPosterCard.test.tsx

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



📝 Walkthrough

Walkthrough

Missing 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.

Changes

Poster Artwork

Layer / File(s) Summary
Shared artwork fallback
web/src/app.css, web/src/components/DefaultArtwork.tsx, web/src/components/DefaultArtwork.test.tsx, web/src/components/MediaCardArtwork.tsx, web/src/components/ItemCard.tsx, web/src/components/ItemCard.test.tsx, web/src/components/RequestPosterCard.tsx, web/src/components/RequestPosterCard.test.tsx, web/src/components/watchlist/WatchlistTitleCard.tsx, web/src/components/SectionItemCard.tsx
Added gradient-backed DefaultArtwork with media-type icons. MediaCardArtwork now hides failed images and displays default artwork only when no thumbhash is available. Its callers and tests use media-type artwork instead of title-based fallback text.
Card-specific poster handling
web/src/components/RecommendationGrid.tsx, web/src/components/calendar/CalendarEventCard.tsx, web/src/pages/TasteSeed.tsx
These cards hide failed poster URLs and show default artwork when no usable poster or thumbhash is available. They track failed URLs so a changed poster URL can be tried. Recommendation and calendar artwork links gain accessible labels.

Priority: ➖ Normal

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

Change: Feature

Suggested reviewers: rhainland


Merge Risk: ⚪ Minimal · up to 43503

The poster fallback change is mergeable after normal checks.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
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 12 files. (1 skipped:… Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
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.
Title check Passed The title clearly summarizes the main change: adding a faint brand glow and media-type mark for missing artwork in the web client.
Description check Passed The description directly explains the missing-artwork problem, implementation, affected components, validation, risks, and scope.

Full details: Docstring Coverage

Explanation

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.)



  • Fix all pre-merge checks with AI
✨ 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


  • 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.

@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: 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}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge 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 👍 / 👎.

Comment thread web/src/components/MediaCardArtwork.tsx Outdated
>
<span className="line-clamp-3 font-medium">{fallbackLabel || "No Poster"}</span>
</div>
!thumbhashUrl && <DefaultArtwork className={dimClass} />

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge 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 👍 / 👎.

@macroscopeapp

macroscopeapp Bot commented Oct 9, 2026

Copy link
Copy Markdown

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 Validation tasks: line:

Validation tasks: changes #1136 C1; changes #1144 C1

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

silo-kody Bot commented Oct 9, 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 changed the title feat(web): show a default brand glow for missing artwork feat(web): show a faint brand glow with a type mark for missing artwork Oct 9, 2026
@Quick104
Quick104 merged commit e5b9a11 into main Oct 9, 2026
20 checks passed
@Quick104
Quick104 deleted the feat/web-default-artwork branch October 9, 2026 18:10
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.

1 participant