Repository navigation
Phase 2: where to watch in India - #2
Merged
Merged
Conversation
Implements docs/phase-2-plan.md end to end: an availability block on every title page (Stream/Free/Rent/Buy, tier-1 TMDB links, verified tier-2 search links, cost lines), a "Your services" picker persisted per browser, a "Watchable now" lens across home rails, genre discover and search (partitioned, never hidden), and a nightly job that folds India availability into the catalogue and provider list. Shipped behind config.features.watchProviders, now flipped to true. Verified against live TMDB data (DDLJ, JioHotstar pricing, Watchable-now filtering) as well as the full typecheck/lint/vitest/build/bundle/e2e gate. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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
Implements Phase 2 of
docs/phase-2-plan.md: where to watch in India. On any title, a personnow sees whether it streams in India, on which services, whether they already pay for one of
those, and what a new subscription would cost — with a one-click path to the right place. Still
fully static (GitHub Pages, no server).
logos, owned services sorted first and marked "You have this," a quiet empty state (never
"unavailable"), a region switcher when more than one region has listings, a tier-1 link to
TMDB's own watch page, verified tier-2 provider search links, and a cost line for the cheapest
unowned Stream plan (hidden once older than 120 days or never verified).
usePreferences), reachable from theheader, the command palette, and inline whenever the Watchable-now lens has nothing to filter
by yet.
params into genre pages' live
/discovercalls, and partitions search results into "On yourservices / Couldn't check / Not on your services" (nothing is ever hidden).
scripts/build-providers.tsfetches TMDB's India provider catalogue andfolds
watchavailability into every catalogue entry, with graceful fallback to cached data ona partial TMDB outage and a hard stop only on a revoked token.
config.features.watchProviders, now flipped totrue.See
docs/DECISIONS.md's "Phase 2: where to watch in India" entry for the ten load-bearing designdecisions (why availability rides the existing detail call, why
checked:falseis never renderedas "unavailable," why the picker excludes rent/buy stores, etc.).
Test plan
pnpm typecheck,pnpm lint,pnpm test(94 tests),pnpm build,pnpm check:bundle(111.7 KB gzip, budget 180 KB) — all green.
pnpm e2e— all 5 Playwright smoke tests pass, including the new "services and Watchablenow" scenario (pick Netflix → title page shows "You have this" → home rail filters to
exactly the watchable titles → toggle and pick persist across reload).
Stream (Netflix) / Rent / Buy correctly with a working cost line and region switcher; the
services picker renders and persists a selection; the home page's Watchable-now toggle
correctly filtered "Trending this week" down to the exact titles currently on Netflix in
India.
sandbox), the picker shows a blank placeholder instead of a broken-image icon.
🤖 Generated with Claude Code