Repository navigation
feat(web): link title pages to IMDb, TMDB and TVDB - #2328
Conversation
Movie, series and episode pages now link to the title's IMDb, TMDB and TVDB pages, for whichever IDs the item has. One helper builds the URLs for library and request pages, using the forms the Discord embeds use, and skips IDs that don't have their provider's shape. Episodes get no TMDB link because TMDB addresses episodes by series and number, and seasons get none because the catalog stores no IDs for them. The links move to their own row under the action bar, so they don't push the watched, favorite, rating and more controls onto another line. They open in a new tab with rel="noopener noreferrer" and tell screen readers so. Co-Authored-By: Claude Opus 5.5 <[email protected]>
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:
|
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. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Merge Risk: ⚪ Minimal · up to The title links are ready to merge after normal checks. Pre-merge checks |
|
|
Evidence is incomplete for the request page: this PR moves its existing links below the actions and adds TVDB, but the body says that page wasn't checked live. Add before-and-after captures of the same request page and data at desktop and phone width. The component test checks markup, not the changed layout. |
|
Added. The evidence page now has before-and-after captures of the request page for The Matrix and Breaking Bad, at desktop and iPhone width, with the same data on both builds. Before, IMDb and TMDB sit in the action row. After, they're in their own row under it, and Breaking Bad gains TVDB. The Validation section is updated. |
Reverts #2328. Movie, series and episode pages no longer link to the title on IMDb, TMDB or TVDB, and the shared titleLinks helper is gone. The request page goes back to its earlier IMDb and TMDB links in the action row. Co-authored-by: Claude Opus 5.5 <[email protected]>
Problem
Related issue: N/A
Validation tasks: changes #1252 C2 (series detail gains a link row); changes #1204 C1 (request page links move to their own row and add TVDB); #1184 C1 unaffected (heart, stars and More stay where they were)
Movie, series and episode pages in the web app don't link to the title on IMDb, TMDB or TVDB. Only the request page for titles outside the library had links, and it built the URLs inline. This adds the links to library title pages and gives both kinds of page one URL builder.
Approach
web/src/lib/titleLinks.tsbuilds IMDb, TMDB and TVDB links for whichever IDs an item has. It uses the URL forms the Discord embeds already use (internal/notifications/discord_embed_meta.go), with TVDB'sdereferrerpath because TVDB pages are addressed by slug. An ID that doesn't have its provider's shape (ttplus digits for IMDb, a positive number for TMDB and TVDB) gets no link.imdb_id,tmdb_idandtvdb_id, so the API doesn't change.ActionBarused to put links in the main row, between the primary action and Mark Watched. On a library page that would push watched, favorite, rating and More onto another line, so the links now get a row of their own at the end of the action bar on every page, including the request page.rel="noopener noreferrer". They sit in a list named "External links", and each link's accessible name ends in "(opens in a new tab)".Neither the Apple nor the Android app shows these links. Follow-up issues are below. jellycompat needs no change: it already returns
ProviderIds, and Jellyfin clients build links from those.Validation
format:check,build,budget:check, andmake test-webpass. The Go gate wasn't run because no Go code changed.ActionBartest checks the separate row,target,reland the accessible name.rel, and that the season page has no links. The TVDBdereferrerand TMDB URLs were checked against the live sites, and each redirects to the title's page.Evidence
Evidence: https://evidence.siloserver.org/r/silo-server/web-detail-external-links/
Risks
None identified. The change is frontend-only and adds links. The request page's links move below its actions.
Follow-ups
Checklist
AI Disclosure
🤖 Generated with Claude Code