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
This commit is contained in:
1 parent
4d88747649
commit
eb3a12f6cb
41 files changed
+2163
-15
No files matched your search
@@ -68,13 +68,27 @@ See [[Statistics]] for data details.
|
||||
| `CollectionEditDialog` | `dialogs/CollectionEditDialog.tsx` | Create/edit collection |
|
||||
| `MarkSeasonWatchedDialog` | `dialogs/MarkSeasonWatchedDialog.tsx` | Mark season as watched — single date or scatter mode |
|
||||
|
||||
## Discovery Video Components
|
||||
|
||||
> [!info] Folder: `components/discovery-videos/`
|
||||
|
||||
See [[Discovery Videos]].
|
||||
|
||||
| Component | File | Description |
|
||||
|---|---|---|
|
||||
| `VideoCard` | `discovery-videos/VideoCard.tsx` | Card with lazy thumbnail (`loading="lazy"`, on-demand generation) + play overlay, linked-entry chips, edit/delete actions |
|
||||
| `VideoPlayerDialog` | `discovery-videos/VideoPlayerDialog.tsx` | Playback dialog — autoplay, ↑/↓ (and ←/→) prev/next navigation, linked-entry chips, inline edit |
|
||||
| `AddVideoDialog` | `discovery-videos/AddVideoDialog.tsx` | Upload (create) and edit modes — dropzone + description + entry multi-select |
|
||||
| `VideoDropzone` | `discovery-videos/VideoDropzone.tsx` | Native HTML5 drag & drop zone (no dependency) |
|
||||
| `EntryMultiSelect` | `discovery-videos/EntryMultiSelect.tsx` | Search-first library entry picker (debounced 250 ms) reading from [[Stores\|library store]] |
|
||||
|
||||
## Skeletons
|
||||
|
||||
> [!info] File: `components/skeletons/PageSkeletons.tsx`
|
||||
|
||||
14 named skeleton exports used as `<Suspense>` fallbacks for lazy-loaded pages:
|
||||
15 named skeleton exports used as `<Suspense>` fallbacks for lazy-loaded pages:
|
||||
|
||||
`HomeSkeleton`, `LibrarySkeleton`, `WatchlistSkeleton`, `DashboardSkeleton`, `CollectionsSkeleton`, `CollectionDetailsSkeleton`, `MediaSkeleton`, `CalendarSkeleton`, `EntryDetailsSkeleton`, `SeasonSkeleton`, `EpisodeSkeleton`, `PeopleSkeleton`, `PersonDetailsSkeleton`, `SettingsSkeleton`
|
||||
`HomeSkeleton`, `LibrarySkeleton`, `WatchlistSkeleton`, `DashboardSkeleton`, `CollectionsSkeleton`, `CollectionDetailsSkeleton`, `MediaSkeleton`, `CalendarSkeleton`, `EntryDetailsSkeleton`, `SeasonSkeleton`, `EpisodeSkeleton`, `PeopleSkeleton`, `PersonDetailsSkeleton`, `SettingsSkeleton`, `DiscoveryVideosSkeleton`
|
||||
|
||||
## Command Palette
|
||||
|
||||
|
||||
Reference in new issue
Block a user