feat: add match breakdown tooltip and TMDB poster support - #6
Merged
Merged
Conversation
| import time | ||
|
|
||
| import pandas as pd | ||
| import requests |
Owner
There was a problem hiding this comment.
requirements.txt not updated
LavishSphere
requested changes
Jun 22, 2026
LavishSphere
left a comment
Owner
There was a problem hiding this comment.
Lint is also failing, everything else looks fine.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds two new frontend features and wires up TMDB poster image support in the backend data loader.
%similarity badge on each title card — shows per-field TF-IDF scores (Description, Genres, Cast, Director) plus IMDb and Popularity signals as a mini bar chart overlaying the card face% matchtext in the detail drawer via aDrawerMatchBadgecomponentTitleCard— rendersitem.poster_urlas a full-bleed cover image when available, falls back to monogram initials until the backend provides itdata_loader.pywith a disk cache (data/poster_cache.csv) so TMDB is only queried once on first startup — subsequent restarts load instantly from cacheFrontend changes
frontend/src/App.jsxMatchTooltip,DrawerMatchBadgecomponents; hoverable badge onTitleCard; poster image support with monogram fallbackBackend changes
backend/data_loader.py_fetch_poster_url,_build_poster_cache; TMDB API config viaTMDB_API_KEYenv var;poster_urlcolumn added to master DataFrameWhat needs to happen on the backend before posters work
TMDB_API_KEYas an environment variable on the serverposter_url: Optional[str] = NonetoTitleResultinmain.pyposter_urlin the/recommendand/titleresponsesThe frontend is already wired — the moment
poster_urlexists in the API response, posters appear automatically with no further frontend changes needed.