Skip to content

fix(tmdb): match the TMDB linking to the server - #1485

Merged
hidden4003 merged 3 commits into
stagingfrom
split/08-tmdb-linking
Oct 10, 2026
Merged

hidden4003 merged 3 commits into
stagingfrom
split/08-tmdb-linking

Conversation

@revam

@revam revam commented Oct 3, 2026 •

Copy link
Copy Markdown
Member

Why

The server's TMDB auto-search preview now returns one entry per origin with a Rejection, and the episode mapping reads UnsetAll. The linking page didn't follow.

What changed

  • Each candidate is listed once, with a badge for every origin that found it (search, current link, prequel link, AniDB resource, cross-source link).
  • A candidate the automatic search wouldn't link shows the server's Rejection as a badge with a tooltip; it can still be picked by hand. The badge is a warning, except for an existing link or an unneeded hint, which only give context.
  • DateAndNumberMatches and DateOffsetMatches get a badge and count.
  • The episode mapping body sends UnsetAll instead of ResetAll, which the server never read.

Where to look first

  • src/components/Collection/Tmdb/TmdbLinkSelectPanel.tsx: grouping by candidate and the badges.

Feedback wanted

Whether the rejection badges and tooltips explain enough.

Stack

Part 8 of 12 in the split of #1477. Below: Part 7, the scheduled actions page. Above: Part 9, linking any metadata source.

Testing

pnpm tscheck, pnpm lint, pnpm test and pnpm build pass at this branch's tip. Manual, on 6.0.0-dev.495: open the TMDB linking page for a series with several suggestions; each shows once, with its origins.

@revam
revam added this pull request to stack #1490 October 3, 2026 17:38
@harshithmohan
harshithmohan force-pushed the split/08-tmdb-linking branch from ecd0a42 to 4d07d8f Compare October 3, 2026 17:43
@revam
revam force-pushed the split/08-tmdb-linking branch from 4d07d8f to f925150 Compare October 3, 2026 18:48
@harshithmohan
harshithmohan force-pushed the split/08-tmdb-linking branch 3 times, most recently from 3f50dc9 to 623b509 Compare October 4, 2026 08:00
@harshithmohan
harshithmohan force-pushed the split/08-tmdb-linking branch from 623b509 to eb5c1a3 Compare October 5, 2026 17:38
@harshithmohan
harshithmohan removed this pull request from stack #1490 October 5, 2026 17:42
@harshithmohan
harshithmohan added this pull request to stack #1492 October 5, 2026 17:42
- The auto search preview lists a candidate once per origin; each entry is now listed once, with a badge for every origin that found it
- Episode links rated `DateAndNumberMatches` or `DateOffsetMatches` showed a blank badge and were left out of the counts
- The episode mapping body sent `ResetAll`, which the server never read; it is `UnsetAll` now
- A suggestion the automatic search would not link shows the server's `Rejection` as a badge, with its details in a tooltip; it can still be picked. The badge is a warning, except for an existing link or an unneeded hint, which only give context
@harshithmohan
harshithmohan force-pushed the split/08-tmdb-linking branch from eb5c1a3 to fa2b4d8 Compare October 6, 2026 13:50
@harshithmohan
harshithmohan removed this pull request from stack #1492 October 6, 2026 13:53
@harshithmohan
harshithmohan changed the base branch from split/07-scheduled-actions to master October 6, 2026 13:53
@harshithmohan
harshithmohan added this pull request to stack #1494 October 6, 2026 13:53
@harshithmohan
harshithmohan removed this pull request from stack #1494 October 6, 2026 13:54
@harshithmohan
harshithmohan added this pull request to stack #1495 October 6, 2026 13:55
@harshithmohan
harshithmohan removed this pull request from stack #1495 October 6, 2026 16:37
@harshithmohan
harshithmohan changed the base branch from master to staging October 6, 2026 16:37
@harshithmohan
harshithmohan added this pull request to stack #1496 October 6, 2026 16:37
hidden4003 and others added 2 commits October 9, 2026 22:34
Keeps the per-origin dedup/grouping and badges from #1485, but removes
the Rejection reason mapping, tooltip, and badge — flagged as too much
inline data-translation logic for a presentational row component.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Codifies when a presentational child component defined alongside its
parent should be split into its own file, prompted by review feedback
on the TMDB rejection-badge removal in this PR.
@hidden4003
hidden4003 merged commit e211f67 into staging Oct 10, 2026
1 check passed
@hidden4003 hidden4003 mentioned this pull request Oct 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants