Skip to content

feat(web): link title pages to IMDb, TMDB and TVDB - #2328

Merged
Quick104 merged 1 commit into
mainfrom
feat/web-detail-external-links
Oct 12, 2026
Merged

Quick104 merged 1 commit into
mainfrom
feat/web-detail-external-links

Conversation

@Quick104

@Quick104 Quick104 commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

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.ts builds 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's dereferrer path because TVDB pages are addressed by slug. An ID that doesn't have its provider's shape (tt plus digits for IMDb, a positive number for TMDB and TVDB) gets no link.
  • Movies and series link to all three. Episodes link to IMDb and TVDB only: the episode's stored TMDB ID can't build a TMDB URL, because TMDB addresses episodes by series, season and number. Seasons get no links, because the catalog stores no provider IDs for them.
  • The v2 item detail response already carries imdb_id, tmdb_id and tvdb_id, so the API doesn't change.
  • ActionBar used 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.
  • Links open in a new tab with 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

  • Web lint (no new findings), format:check, build, budget:check, and make test-web pass. The Go gate wasn't run because no Go code changed.
  • New unit tests cover the URL forms, the episode and season rules, and malformed IDs. The ActionBar test checks the separate row, target, rel and the accessible name.
  • On a dev deployment with the curated test library, the movie, series and episode pages were captured before and after at desktop and iPhone width, with no console errors. A DOM check on the after build confirmed each page's hrefs and rel, and that the season page has no links. The TVDB dereferrer and TMDB URLs were checked against the live sites, and each redirects to the title's page.
  • The request page was captured before and after the same way, with requests turned on: The Matrix and Breaking Bad at desktop and iPhone width.

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

  • 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: Claude Code in T3 Code
  • Tool(s): Claude Code
  • Model(s): claude-opus-5-5
  • Involvement: Fully AI-generated at a maintainer's direction; not yet verified by a person
  • Adversarial review: Codex gpt-6.1-sol (xhigh) reviewed 2da534d against the PR's risks (URL correctness per item type, layout, accessibility, validated cases, performance) and found nothing to post. It ran focused tests and checked the TVDB redirects, but couldn't open a browser, so the layout checks rest on the evidence captures.

🤖 Generated with Claude Code

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

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

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 12, 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-12T01:03:38.387309Z 2da534d PR opened
🔒 Security Review ✅ Completed 2026-10-12T01:03:09.160802Z 2da534d 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.

@coderabbitai

coderabbitai Bot commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 1ef8aeaf-32c0-41ad-b2ca-70ba3e1091fb




📥 Commits

Reviewing files that changed from the base of the PR and between d2c6508 and 2da534d.





📒 Files selected for processing (7)
  • web/src/lib/titleLinks.test.ts
  • web/src/lib/titleLinks.ts
  • web/src/pages/ItemDetail/components/ActionBar.test.tsx
  • web/src/pages/ItemDetail/components/ActionBar.tsx
  • web/src/pages/ItemDetail/components/MediaUserActionBar.tsx
  • web/src/pages/ItemDetail/components/RequestActionBar.tsx
  • web/src/pages/ItemDetail/components/WatchedActionBar.tsx




Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 0 remain after this review.






📝 Walkthrough
📝 Walkthrough
📝 Walkthrough
📝 Walkthrough

Walkthrough

The change adds shared helpers to build IMDb, TMDB, and TVDB links from item IDs. Item action bars use these helpers and render external links in a separate labelled row.

Changes

Title links in item actions

Layer / File(s) Summary
Provider link construction
web/src/lib/titleLinks.ts, web/src/lib/titleLinks.test.ts
Adds types and helpers that validate provider IDs and build links for movies, series, and episodes. Tests cover link ordering, URLs, and omitted links for unsupported types or invalid IDs.
Action bar link integration
web/src/pages/ItemDetail/components/ActionBar.tsx, web/src/pages/ItemDetail/components/ActionBar.test.tsx, web/src/pages/ItemDetail/components/MediaUserActionBar.tsx, web/src/pages/ItemDetail/components/RequestActionBar.tsx, web/src/pages/ItemDetail/components/WatchedActionBar.tsx
Action bar callers now pass links from the shared helpers. The action bar renders external links in a separate labelled row, with new-tab accessibility text and noopener noreferrer.

Priority: ⬇️ Low

Estimated code review effort: 3 (Moderate) | ~20 minutes

Change: Feature

Suggested reviewers: rhainland








Merge Risk: ⚪ Minimal · up to 2da53

The title links are ready to merge after normal checks.

Pre-merge checks | Passed 4 | Failed 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 71.43% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 7 functions across 7 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Title check Passed The title clearly and concisely describes the main change: adding IMDb, TMDB, and TVDB links to web title pages.
Description check Passed The description directly explains the link-building implementation, affected page types, accessibility behavior, validation, and scope.

  • Fix all pre-merge checks with AI
✨ Finishing Touches 💡 1
📝 Generate docstrings 💡
  • Commit to this branch
  • Create a new PR





🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR







  • 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.

@silo-triage silo-triage Bot added enhancement New feature or request evidence-required Needs before-and-after evidence before the Evidence check passes impact: polish Annoyance, cosmetic, or nice-to-have javascript Pull requests that update javascript code priority: P2 Limited scope, workaround exists, or polish labels Oct 12, 2026
@silo-triage

silo-triage Bot commented Oct 12, 2026

Copy link
Copy Markdown

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.

@Quick104

Copy link
Copy Markdown
Contributor Author

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.

@Quick104
Quick104 merged commit 872a634 into main Oct 12, 2026
20 checks passed
@Quick104
Quick104 deleted the feat/web-detail-external-links branch October 12, 2026 01:16
Quick104 added a commit that referenced this pull request Oct 19, 2026
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request evidence-required Needs before-and-after evidence before the Evidence check passes impact: polish Annoyance, cosmetic, or nice-to-have javascript Pull requests that update javascript code priority: P2 Limited scope, workaround exists, or polish

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant