Files
Showy/docs-vault/Pages.md
T

111 lines
2.8 KiB
Markdown

---
title: Pages
tags:
- 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|library store]] — 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|library store]]. 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
- Media gallery → [[Media System]]
## SeasonPage
Season detail with episode list. Width: `max-w-4xl`.
- Breadcrumb: `Title / Season x` (see [[Navigation]])
- Episode progress bar
- Mark-all-as-seen action
- 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)