Skip to content

Phase 2: where to watch in India - #2

Merged
sudoquasar merged 1 commit into
mainfrom
feature/where-to-watch-india
Oct 1, 2026
Merged

sudoquasar merged 1 commit into
mainfrom
feature/where-to-watch-india

Conversation

@sudoquasar

Copy link
Copy Markdown
Owner

Summary

Implements Phase 2 of docs/phase-2-plan.md: where to watch in India. On any title, a person
now 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).

  • Availability block on every title page — Stream / Free / Rent / Buy groups with provider
    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).
  • "Your services" picker — persisted per browser (usePreferences), reachable from the
    header, the command palette, and inline whenever the Watchable-now lens has nothing to filter
    by yet.
  • "Watchable now" lens — filters the home rails (catalogue data), pushes provider/monetization
    params into genre pages' live /discover calls, and partitions search results into "On your
    services / Couldn't check / Not on your services" (nothing is ever hidden).
  • Nightly pipeline — scripts/build-providers.ts fetches TMDB's India provider catalogue and
    folds watch availability into every catalogue entry, with graceful fallback to cached data on
    a partial TMDB outage and a hard stop only on a revoked token.
  • Shipped behind config.features.watchProviders, now flipped to true.

See docs/DECISIONS.md's "Phase 2: where to watch in India" entry for the ten load-bearing design
decisions (why availability rides the existing detail call, why checked:false is never rendered
as "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 Watchable
    now" scenario (pick Netflix → title page shows "You have this" → home rail filters to
    exactly the watchable titles → toggle and pick persist across reload).
  • Manually verified against live TMDB data in a real browser: DDLJ's title page renders
    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.
  • Confirmed the app degrades gracefully when a provider logo fails to load (network-restricted
    sandbox), the picker shows a blank placeholder instead of a broken-image icon.

🤖 Generated with Claude Code

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>
@sudoquasar
sudoquasar merged commit 69bbd50 into main Oct 1, 2026
2 checks passed
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