Repository navigation
fix(player): show a placeholder when a chapter preview image fails to load - #2229
Conversation
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:
|
|
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 39 minutes. View limit details
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 |
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. |
|
|
Problem
Related issue: #1154
Validation tasks: unblocks #1156 C2
When a chapter preview image fails to load, the web player shows the browser's broken-image icon, and the image's alt text wraps across the chapter menu row and the seek-bar preview. This affects any viewer whose chapter image is missing from storage, expired, or blocked. With this change, a failed image shows the same placeholder the player already uses when a chapter has no image, so labels, timestamps and chapter navigation look normal.
Approach
A shared
PreviewImagecomponent replaces the bare<img>inChaptersMenuandSeekBar. It shows the placeholder after anerrorevent, remembers the failure for that URL only, and tries again when the URL changes, for example after a re-issued signed link. It does not retry the same URL in a loop or raise a toast.Web only. No API, native client, or jellycompat change, and no user-manual change.
#2230 (marker preview images) is stacked on this branch and contains this commit. Merge this one first.
Validation
make test-go; this change touches no Go code.Evidence
Evidence: https://evidence.siloserver.org/r/silo-server/pr-2229/
Risks
None identified. A failed URL stays on the placeholder until the API hands out a different URL.
Checklist
AI Disclosure