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:
X4Lo committed 2026-11-03 15:57:53 +00:00
1 parent 4d88747649
commit eb3a12f6cb
41 files changed
+2163 -15

No files matched your search

+14
View File
@@ -16,6 +16,7 @@ import {
MediaSkeleton,
CalendarSkeleton,
SettingsSkeleton,
DiscoveryVideosSkeleton,
} from "@/components/skeletons/PageSkeletons";
// Lazy-loaded pages
@@ -94,6 +95,11 @@ const PersonDetailsPage = lazy(() =>
const SettingsPage = lazy(() =>
import("@/pages/SettingsPage").then((m) => ({ default: m.SettingsPage })),
);
const DiscoveryVideosPage = lazy(() =>
import("@/pages/DiscoveryVideosPage").then((m) => ({
default: m.DiscoveryVideosPage,
})),
);
const DiscoverPage = lazy(() =>
import("@/pages/DiscoverPage").then((m) => ({ default: m.DiscoverPage })),
);
@@ -192,6 +198,14 @@ export const router = createRouter([
</SuspensePage>
),
},
{
path: "/discovery-videos",
element: (
<SuspensePage fallback={<DiscoveryVideosSkeleton />}>
<DiscoveryVideosPage />
</SuspensePage>
),
},
{
path: "/calendar",
element: (