Files
Showy/docs-vault/Routing.md
T
X4Lo eb3a12f6cb Add Discovery Videos feature
Let users upload videos, tag them with one or more entries, and watch
them from a new Discovery Videos page.

Backend:
- Add Video and VideoEntry models and relations
- Add video controller and /video routes
- Add video thumbnail generation service (ffmpeg-static)
- Add video upload storage location and config

Frontend:
- Add DiscoveryVideosPage with sidebar link and route
- Add AddVideoDialog, VideoDropzone, EntryMultiSelect, VideoCard
  and VideoPlayerDialog components
- Add discoveryVideos API client and useDiscoveryVideos hook
- Add format helpers, video types and normalizers
- Add skeleton for the page

Docs:
- Document the feature in docs-vault
2026-11-03 15:57:53 +00:00

2.5 KiB

title, tags
title tags
Routing
frontend
routing
pages

Routing

Overview

React Router 7 with lazy-loaded pages. All routes defined in react_frontend/src/App.tsx.

Every page uses React.lazy() with a custom <Suspense> skeleton fallback.

Route Table

Path Page Component Skeleton Description
/ HomePage HomeSkeleton Landing page with trending/popular
/search SearchPage HomeSkeleton TMDB multi-search
/dashboard DashboardPage DashboardSkeleton Statistics charts
/library LibraryPage LibrarySkeleton Library grid/list
/discover/:category DiscoverPage HomeSkeleton TMDB browse (popular, trending, top-rated, upcoming)
/watchlist WatchlistPage WatchlistSkeleton Watchlist entries
/collections CollectionsPage CollectionsSkeleton Collections overview
/collections/:id CollectionDetailsPage CollectionDetailsSkeleton Collection with entries
/media MediaPage MediaSkeleton Media management
/discovery-videos DiscoveryVideosPage DiscoveryVideosSkeleton Personal video vault — see Discovery Videos
/calendar CalendarPage CalendarSkeleton Calendar upcoming episodes
/entry/:id EntryDetailsPage EntryDetailsSkeleton Entry details, seasons, cast
/entry/:entryId/season/:seasonId SeasonPage SeasonSkeleton Season episodes
/entry/:entryId/season/:seasonId/episode/:episodeId EpisodePage EpisodeSkeleton Episode details
/people PeoplePage PeopleSkeleton People browse
/people/:id PersonDetailsPage PersonDetailsSkeleton Person profile + filmography
/people/tmdb/:tmdbId PersonTmdbRedirectPage PersonDetailsSkeleton TMDB person → local redirect
/settings SettingsPage SettingsSkeleton Settings Page

Layout

All routes are wrapped in AppLayout which provides:

  • Sidebar — left-side navigation
  • Main content area

URL Patterns

Entry Details Hierarchy

/entry/:id                                    → EntryDetailsPage
/entry/:entryId/season/:seasonId              → SeasonPage
/entry/:entryId/season/:seasonId/episode/:episodeId → EpisodePage

Breadcrumbs

See Navigation for breadcrumb patterns on nested pages.

See Also