Skip to content

fix(player): show a placeholder when a chapter preview image fails to load - #2229

Merged
Quick104 merged 1 commit into
Silo-Server:mainfrom
Rhainland:fix/player-preview-image-fallback
Oct 10, 2026
Merged

Quick104 merged 1 commit into
Silo-Server:mainfrom
Rhainland:fix/player-preview-image-fallback

Conversation

@Rhainland

@Rhainland Rhainland commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor

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 PreviewImage component replaces the bare <img> in ChaptersMenu and SeekBar. It shows the placeholder after an error event, 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

  • Web unit tests cover the load, error and new-URL reset paths; the player test suite (724 tests) and TypeScript build pass.
  • Ran the player against a local server with the GREEN chapter's image forced to return 404 (browser request interception) at 1440 px and 390 px. The menu row and seek preview show the placeholder, choosing the chapter seeks to it, playback continues, and no alert appears.
  • The same check passes with chapter thumbnails disabled for the library, where the API returns no image URLs.
  • I did not run the full 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

  • 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: T3 Code, with the Codex harness for the first implementation and the Claude Code harness for the rebase, review and validation
  • Tool(s): Codex, Claude Code, GitHub CLI, Playwright, FFmpeg
  • Model(s): gpt-6.1-sol, claude-opus-5-5
  • Involvement: Fully AI-generated, human verified
  • Adversarial review: A scoped code review of the branch diff against main found no defect in this commit.

@silo-kody

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

@coderabbitai

coderabbitai Bot commented Oct 10, 2026

Copy link
Copy Markdown
Contributor

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 39 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 4 included reviews currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 78b942d9-f89f-4631-bfb2-5b1067e0f662

📥 Commits

Reviewing files that changed from the base of the PR and between 9d37930 and 69b4ab7.


📒 Files selected for processing (4)
  • web/src/player/components/ChaptersMenu.tsx
  • web/src/player/components/PreviewImage.test.tsx
  • web/src/player/components/PreviewImage.tsx
  • web/src/player/components/SeekBar.tsx

  • Autofix · 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 commented Oct 10, 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-10T17:39:45.131596Z 69b4ab7 PR opened
ℹ️ 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.

@Quick104 Quick104 added priority: P3 Needs-info or parked impact: polish Annoyance, cosmetic, or nice-to-have labels Oct 10, 2026 — with Cursor
@Rhainland

Copy link
Copy Markdown
Contributor Author

ci / Web (build) fails on the launch bundle budget, and main fails it too: the push run for 9d37930c6 is red on the same step. Local production builds against the 325405 B budget: main 9d37930c6 326619 B, #2229 326444 B, #2230 326506 B. Neither branch makes the eager bundle larger than main, so I haven't raised the budget here. #2204 is working on the launch-bundle growth.

@Rhainland Rhainland mentioned this pull request Oct 10, 2026
9 tasks done
@Quick104
Quick104 merged commit 9cc40bb into Silo-Server:main Oct 10, 2026
18 of 20 checks passed
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: P3 Needs-info or parked

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants