Add history page with list, timeline and year in review
- Backend: /history/years and /history/:year return every movie and episode watch in a year, with entry posters, genres, networks and buddies - History tab: watches by month and day, back-to-back episodes grouped - Timeline tab: latest to oldest, month dividers, stacked binge sessions - Year in Review tab: hours, top shows and genres, streaks, busiest day, biggest binge, monthly and weekday charts, buddies and new shows - Year picker, movies/TV filter, state kept in the URL; unknown-date watches badged and excluded from the review by default - History link in the sidebar and command palette
This commit is contained in:
1 parent
c4aa0488d4
commit
760afd8e84
13 files changed
+1724
No files matched your search
@@ -26,6 +26,9 @@ const HomePage = lazy(() =>
|
||||
const DashboardPage = lazy(() =>
|
||||
import("@/pages/DashboardPage").then((m) => ({ default: m.DashboardPage })),
|
||||
);
|
||||
const HistoryPage = lazy(() =>
|
||||
import("@/pages/HistoryPage").then((m) => ({ default: m.HistoryPage })),
|
||||
);
|
||||
const LibraryPage = lazy(() =>
|
||||
import("@/pages/LibraryPage").then((m) => ({ default: m.LibraryPage })),
|
||||
);
|
||||
@@ -161,6 +164,14 @@ export const router = createRouter([
|
||||
</SuspensePage>
|
||||
),
|
||||
},
|
||||
{
|
||||
path: "/history",
|
||||
element: (
|
||||
<SuspensePage fallback={<WatchlistSkeleton />}>
|
||||
<HistoryPage />
|
||||
</SuspensePage>
|
||||
),
|
||||
},
|
||||
{
|
||||
path: "/watchlist",
|
||||
element: (
|
||||
|
||||
Reference in new issue
Block a user