Skip to content

feat(mobile): "You may also like" section on media detail (#31)#35

Merged
miicolas merged 1 commit into
devfrom
feat/media-detail-recommendations
Jun 15, 2026
Merged

feat(mobile): "You may also like" section on media detail (#31)#35
miicolas merged 1 commit into
devfrom
feat/media-detail-recommendations

Conversation

@miicolas

Copy link
Copy Markdown
Owner

Closes #31. Part of epic #34.

What

Adds a "You may also like" shelf of related titles (TMDB recommendations) near the bottom of every movie/TV detail page. Tapping a poster opens that title, so the detail page becomes a place to keep browsing.

Changes

  • API: new route GET /tmdb/:mediaType/:tmdbId/recommendations exposing the existing getMediaRecommendations handler (24h cache, filters out people, normalized summary shape). No new query logic.
  • Mobile data: lib/tmdb/recommendations.ts wrapper, tmdbKeys.recommendations key, useMediaRecommendations hook (loads independently → non-blocking).
  • Mobile UI: RecommendationsSection reusing the discover Shelf + PosterCard, rendered after the ratings section, hidden when empty, navigating within the current tab via useMediaRouteBase.
  • i18n: mediaDetail.youMayAlsoLike (EN/FR).
  • What's New: "You May Also Like" release.

Scope

Movie & TV only (episode pages excluded — TMDB recommendations are media-level).

Verification

  • bun run typecheck, bun run lint, bun run format:check all pass.
  • Manual (iOS sim): open a popular movie + TV show → shelf appears, posters navigate within the same tab; shelf hidden when no recommendations.

🤖 Generated with Claude Code

Surface TMDB recommendations as a horizontal shelf near the bottom of
movie and TV detail pages so the page becomes a place to keep browsing.

- api: expose existing getMediaRecommendations via
  GET /tmdb/:mediaType/:tmdbId/recommendations
- mobile: lib wrapper + tmdbKeys.recommendations + useMediaRecommendations
- mobile: RecommendationsSection (reuses Shelf + PosterCard), rendered
  after the ratings section, hidden when empty, navigates within the tab
- i18n: mediaDetail.youMayAlsoLike (EN/FR)
- whats-new: "You May Also Like" release

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@miicolas miicolas merged commit 5152a9e into dev Jun 15, 2026
5 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.

feat(mobile): "You may also like" section on the media detail page

1 participant