Skip to content

feat: show US age ratings on movie cards and filter by them - #25

Merged
thepushkarp merged 1 commit into
mainfrom
feat/us-age-ratings
Nov 11, 2026
Merged

thepushkarp merged 1 commit into
mainfrom
feat/us-age-ratings

Conversation

@thepushkarp

Copy link
Copy Markdown
Owner

Summary

  • Requests TMDB release_dates with the existing movie details call (no extra requests) and stores the US certification: G, PG, PG-13, R or NC-17. A theatrical release is preferred, then limited, then any other. NR, blank and non-US entries count as no rating.
  • Cards and the movie detail heading show the rating as a small outlined badge between runtime and the IMDb score.
  • New Age rating menu beside Genre/Language. It lists only the ratings present, from least to most restrictive, plus No age rating. The choice is kept in the URL hash and reset by Clear filters.
  • certification joins CACHE_FIELDS, so existing cached movie information refreshes once in the background to pick it up.

Test plan

  • Python tests pass (169), including certification selection (theatrical preferred, NR/blank/other regions ignored, invalid release_dates rejected).
  • Catalogue tests cover the exact-rating, none and combined-with-genre filters.
  • Live on a dev daemon with a copy of the real library: all 73 matched films refreshed, the badges render in grid, list and detail views in light and dark themes, and the R, No age rating and Clear filters options behave correctly and survive a reload.
  • Set the release version before merging, if this ships on its own.

https://claude.ai/code/session_016JG4aCRR1VvsxYDFwhsdEy

Fetch TMDB release dates with the existing movie request and store the US
certification, preferring the theatrical release. Cards and the detail
heading show it as a badge, and an age-rating menu filters the library,
including films with no US rating. Cached movie information without a
certification refreshes in the background.

Claude-Session: https://claude.ai/code/session_016JG4aCRR1VvsxYDFwhsdEy
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-11T07:29:33.262698Z e94d995 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.

@thepushkarp
thepushkarp merged commit 01695f7 into main Nov 11, 2026
8 checks passed
@thepushkarp
thepushkarp deleted the feat/us-age-ratings branch November 11, 2026 07:29
@thepushkarp thepushkarp mentioned this pull request Nov 11, 2026
2 of 3 tasks
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.

1 participant