Files
Showy/docs-vault/Pages.md
T
Mohammed Abad 22d111ef71 fix(backend): include EpisodeSeen in season episodes and add entry credits endpoint
- Add getEntryCredits service method returning all cast + crew with People, ordered by cast_type, order, episode_count
- Add getEntryCredits controller method
- Add GET /entries/:id/credits route in entry.routes.js
- Include EpisodeSeen association in getSeasonEpisodes so seen dates are returned to frontend
2026-04-29 16:04:10 +01:00

3.8 KiB

title, tags
title tags
Pages
frontend
pages
react

Pages

All pages in react_frontend/src/pages/. Lazy-loaded via React.lazy(). See Routing for URL mapping.


HomePage

Browse trending and popular movies/TV shows from TMDB. Uses infinite scrolling via useTmdb hooks.

SearchPage

TMDB multi-search with debounced input. Results checked against Stores — local entries displayed if already in library.

DashboardPage

Statistics dashboard with 7 chart components. See Statistics.

Charts: WatchActivityChart, WatchTimeChart, CouchDayChart, LibraryGrowthChart, MediaTypeChart, TopGenresChart, RatingsChart

LibraryPage

Entry grid showing all non-watchlist, non-hidden entries from Stores. See Library.

DiscoverPage

TMDB browse by category: popular, trending, top-rated, upcoming. Uses useTmdb infinite queries.

Route: /discover/:category where category = popular-movies, trending-movies, popular-tv, etc.

WatchlistPage

Grid of entries where watchlist = true. Similar to LibraryPage.

CollectionsPage

Grid of all Collections. Both TMDB collections and user-created collections.

CollectionDetailsPage

Single collection with entry list, metadata, poster/backdrop. Edit/delete/refresh actions.

MediaPage

Browse and manage all media (images) across all entries.

CalendarPage

Monthly Calendar view showing upcoming episode air dates. Uses episodesApi.getByMonth().

EntryDetailsPage

The main entry detail view. Width constrained to max-w-4xl.

Sections:

  • Backdrop + poster + title + metadata
  • Actions: watchlist, favorite, refresh, settings, rating
  • Watch history (movies) → Watch Tracking
  • Seasons list (TV) → links to SeasonPage
  • Cast list → links to PersonDetailsPage; shows episode count for TV; "All Cast & Crew" link → EntryCastsPage
  • Media gallery → Media System

EntryCastsPage

Full cast & crew grid for an entry. Route: /entry/:id/cast. Width: max-w-4xl.

  • Breadcrumb: Entry Title / Cast & Crew (Title links back to EntryDetailsPage)
  • Loads ALL credits (cast + crew) via useEntryCredits (GET /entries/:id/credits) — not limited to the 10-cast preview shown on EntryDetailsPage
  • Filter: All / Cast / Crew
  • Sort: Credit Order, Popularity, Name, Birthday, Gender, Episodes (TV only)
  • Sort direction toggle (asc/desc)
  • Shows role/job label and episode count for TV series
  • Lazy loading: renders 24 credits per chunk; an IntersectionObserver sentinel auto-loads the next chunk on scroll
  • Links to Pages#PersonDetailsPage

SeasonPage

Season detail with episode list. Width: max-w-4xl.

  • Breadcrumb: Title / Season x (see Navigation)
  • Episode progress bar
  • Mark Season Watched button (always visible) → opens Components#Dialogs
    • Single Date mode: marks all unwatched episodes on one date
    • Scatter Mode: distributes episodes evenly across a date range (start → end)
  • Episode list with watch status
  • Links to EpisodePage

EpisodePage

Episode detail with watch history. Width: max-w-4xl.

  • Breadcrumb: Title / Season x / Episode x (see Navigation)
  • Episode thumbnail (TMDB still)
  • S##E## display using season.season_number (not DB id)
  • Prev/next episode navigation
  • Watch history management
  • Cast list

PeoplePage

Browse and search people (actors, directors). Both local DB and TMDB search.

PersonDetailsPage

Person profile with biography, filmography. Uses lazy-fetch via Services#PeopleManager.

PersonTmdbRedirectPage

Takes a TMDB person ID, fetches/creates the local person record, redirects to PersonDetailsPage.

SettingsPage

App configuration + maintenance. See Settings Page.

  • General settings (TMDB API key, backend port)
  • Cleanup section (orphan files, orphan media records)