Repository navigation
fix(artwork): match the missing-poster glyph to the item type - #633
Conversation
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.
|
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 59 minutes. View limit detailsLimit details: You’ve used the included review currently available. Review configuration: ⚙️ Run configuration
📒 Files selected for processing (14)
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 |
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:
|
…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]>
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
Canvas, which exposes no accessibility element.accessibilityHiddenalone removed it from VoiceOver but left a "Tv" element in the UI automation tree.Validation
scripts/ci/check-no-api-v1.sh: pass.main(6242652): the full iOS unit suite ran 2,691 tests. The only failures areArtworkURLTests.testDeliveryCapabilityOnIOSUsesV2RouteAndResetsandImageSizeCapabilityTests.testResetClearsCapability, which fail the same way onmain. tvOSbuild-for-testingand the macOS build succeed.Simulator screenshots (iOS 26.5, tvOS 26.5):
Risks
The hosted accessibility test calls a private accessibility function through
dlsymfrom the test bundle only; it never ships in the app. If Apple removes it, the test fails rather than passing silently.Checklist
AI Disclosure
mainat 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 intearDown, and the file is iOS-only.Note
Show type-specific missing-artwork glyphs in AsyncImageView
Adds a
placeholderSymbolinput toAsyncImageViewwith the film glyph as the default fallback. A newArtworkPlaceholderSymbolutility 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.ArtworkPlaceholderGlyphview that is hidden from accessibility, so the glyph no longer creates a separate VoiceOver element.Macroscope summarized 68742ee.