Skip to content

fix(artwork): match the missing-poster glyph to the item type - #633

Merged
Quick104 merged 2 commits into
Silo-Server:mainfrom
Rhainland:fix/unmatched-placeholder-label
Oct 6, 2026
Merged

Quick104 merged 2 commits into
Silo-Server:mainfrom
Rhainland:fix/unmatched-placeholder-label

Conversation

@Rhainland

@Rhainland Rhainland commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

Problem

Related issue: N/A
Validation tasks: changes #337 C2

An unmatched series without artwork showed a film reel in its poster placeholder, and VoiceOver read the glyph as "Movie" inside the card. The glyph now follows the item type and is hidden from assistive technology.

Approach

  • Series, seasons and episodes show a TV, audiobooks show headphones, and movies and unknown types keep the film reel. Library, collection, favourites, watchlist and Home cards, the More Like This rail, episode stills and the tvOS library grid pass the type through.
  • The glyph is drawn into a Canvas, which exposes no accessibility element. accessibilityHidden alone removed it from VoiceOver but left a "Tv" element in the UI automation tree.

Validation

  • Unit tests for the type-to-glyph mapping, plus a hosted test that turns the accessibility runtime on and checks that no glyph label appears in the VoiceOver or automation tree: pass.
  • Manual, iPhone and iPad simulators: the unmatched series shows a TV glyph in the library grid and on Home.
  • scripts/ci/check-no-api-v1.sh: pass.
  • All 22 app fixes from this validation run, merged together on main (6242652): the full iOS unit suite ran 2,691 tests. The only failures are ArtworkURLTests.testDeliveryCapabilityOnIOSUsesV2RouteAndResets and ImageSizeCapabilityTests.testResetClearsCapability, which fail the same way on main. tvOS build-for-testing and the macOS build succeed.
  • Local builds used Swift 6.3.3, which needs the ThumbHash type annotations from fix(build): annotate ThumbHash cosine tables so Swift 6.3.3 can type-check them #608 to compile. That change was applied locally and is not part of this PR.

Simulator screenshots (iOS 26.5, tvOS 26.5):

a16-glyph

Risks

The hosted accessibility test calls a private accessibility function through dlsym from the test bundle only; it never ships in the app. If Apple removes it, the test fails rather than passing silently.

Checklist

  • I read and can explain the complete diff.
  • This pull request addresses one concern.

AI Disclosure

  • Harness: Claude Code, running in T3 Code
  • Tool(s): Claude Code subagents, xcodebuild, Xcode Simulator (simctl, Maestro), GitHub CLI
  • Model(s): claude-opus-5-5
  • Involvement: Fully AI-generated, human verified
  • Adversarial review: A separate Claude Code reviewer agent (claude-opus-5-5) read this branch's diff against main at medium effort, checking behaviour, platform guards (iOS, tvOS, macOS), tests and commit hygiene. It found that the hosted test left the accessibility runtime on for the rest of the test process. It now turns it off in tearDown, and the file is iOS-only.

Note

Show type-specific missing-artwork glyphs in AsyncImageView

Adds a placeholderSymbol input to AsyncImageView with the film glyph as the default fallback. A new ArtworkPlaceholderSymbol utility maps catalog types to glyph categories: audiobooks map to headphones, series/seasons/episodes map to television, and movies, empty, or unknown types fall back to film.

  • The error overlay and URL-less posters now render through a Canvas-based ArtworkPlaceholderGlyph view that is hidden from accessibility, so the glyph no longer creates a separate VoiceOver element.
  • Catalog type is now passed into cards across the app: browse grids, home feed and resume rails, favorites, watchlists, similar-content rails, and episode thumbnails on both iOS and tvOS. See AsyncImageView.swift, MediaCard.swift, TVMediaCard.swift, and HomeFeedKit.swift.
  • Adds unit tests for the symbol mapping and UI accessibility tests that host content in a window and verify the glyph is not exposed as a separate accessibility element.
  • Behavioral Change: callers that omit a catalog type keep the existing film glyph; accessibility output for failed artwork no longer includes a separate glyph label.

Macroscope summarized 68742ee.

An unmatched series without artwork showed a film reel in its poster placeholder, and VoiceOver read the glyph as "Movie" inside the card.

The placeholder glyph now follows the item's catalog type: series, seasons, and episodes show a TV, audiobooks show headphones, and movies and unknown types keep the film reel. Library, collection, favorites, watchlist, and Home poster cards, the More Like This rail, episode stills, and the tvOS library grid pass the type through. The glyph is hidden from VoiceOver, since the card's own label already names the item.

ArtworkPlaceholderSymbolTests covers the type-to-glyph mapping.

Found during the Series validation, silo-apple#337.
…tomation

Two leftovers from the placeholder glyph fix. The iPad Home "Recently Added in Series" row still showed a film reel on an unmatched episode's card, because Home's own poster and still cards did not pass the item type. In the library grid, UI automation (Maestro, XCUITest) still listed the glyph as an element labelled "Tv": accessibilityHidden removes an image from VoiceOver but not from the automation tree.

Home poster and still cards now pass the item type. The glyph is drawn into a Canvas (ArtworkPlaceholderGlyph), which exposes no element, in both AsyncImageView and the More Like This rail.

ArtworkPlaceholderAccessibilityTests hosts a bare placeholder and a library card with the accessibility runtime on. It checks that the card's own label is present and that no "Tv" label appears in either the VoiceOver or the automation tree. It fails when the glyph is an Image with accessibilityHidden.

Found during the Series validation, silo-apple#337.
@coderabbitai

coderabbitai Bot commented Oct 5, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You'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 59 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 1675131a-ac67-40ab-b65d-0ef3ed04986c
📥 Commits

Reviewing files that changed from the base of the PR and between 6242652 and 68742ee.

📒 Files selected for processing (14)
  • iosApp/Tests/ArtworkPlaceholderAccessibilityTests.swift
  • iosApp/Tests/ArtworkPlaceholderSymbolTests.swift
  • iosApp/iosApp/Components/EpisodeThumbCard.swift
  • iosApp/iosApp/Components/Images/AsyncImageView.swift
  • iosApp/iosApp/Components/MediaCard.swift
  • iosApp/iosApp/Components/MediaRow.swift
  • iosApp/iosApp/Screens/Browse/CatalogGrid.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
  • 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.

@silo-kody

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

⚠️ Note: some checks couldn't be completed in this run, so auto-approval (when enabled) was skipped. Check the details at https://kodus.siloserver.org/pull-requests and then comment @kody review on this PR to retry once the issue is resolved.

@Rhainland Rhainland mentioned this pull request Oct 5, 2026
11 tasks
@Quick104
Quick104 merged commit e00f7b7 into Silo-Server:main Oct 6, 2026
6 checks passed
Quick104 added a commit that referenced this pull request Oct 9, 2026
…rtwork (#715)

* feat(artwork): show a default brand glow for missing artwork

A title with no artwork showed a near-black tile with a faint type glyph,
or an empty tile when the server sent no artwork URL. It read as a loading
bug rather than a title that has no artwork.

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 Android and web clients. A failed
load with a ThumbHash keeps the ThumbHash. Other images keep the faint
film glyph.

AsyncImageView gets an `.artwork` placeholder style. An empty URL draws
its stand-in on the first frame, and a missing request (a tvOS row loading
offscreen) no longer counts as missing artwork, so rows don't flash the
glow as they come into view. What each style shows is a small tested
function, ImagePlaceholderStyle.whenMissing.

The glow has no type glyph, so the glyph plumbing from #633 goes. The tvOS
episode rail, 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]>

* feat(artwork): quieter default artwork with a type mark

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. Cards that centre a play
button over the artwork show the glow without a mark.

Brings back the per-type symbol plumbing (ArtworkPlaceholderSymbol,
placeholderSymbol, MediaCard/TVMediaCard mediaType) that the glow had
removed, and maps calendar season premieres, podcasts and reading
formats.

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

* fix(artwork): treat an empty URL and "episodes" consistently

An empty artwork URL now shows the default artwork on the first frame
without relying on how Foundation parses "", and the "episodes" alias
gets the TV mark like "episode".

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

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants