feat(people): unify person detail page for DB and TMDB sources
- Merge PersonDetailsPage and PersonTmdbRedirectPage into one component - /people/:id fetches from local DB with favorite toggle - /people/tmdb/:tmdbId fetches from TMDB with "Add to Library" button - Add TMDB external link in person metadata - Fix CastList links for TMDB preview cast (use /people/tmdb/:tmdbId) - Replace 11MB getAll() with server-side paginated infinite scroll - Add useLocalPeopleInfinite hook and PaginatedPeopleResponse type
This commit is contained in:
1 parent
6d676d803c
commit
db6da6782f
6 files changed
+231
-59
No files matched your search
@@ -71,11 +71,6 @@ const PersonDetailsPage = lazy(() =>
|
||||
default: m.PersonDetailsPage,
|
||||
}))
|
||||
);
|
||||
const PersonTmdbRedirectPage = lazy(() =>
|
||||
import('@/pages/PersonTmdbRedirectPage').then((m) => ({
|
||||
default: m.PersonTmdbRedirectPage,
|
||||
}))
|
||||
);
|
||||
const SettingsPage = lazy(() =>
|
||||
import('@/pages/SettingsPage').then((m) => ({ default: m.SettingsPage }))
|
||||
);
|
||||
@@ -218,7 +213,7 @@ export const router = createBrowserRouter([
|
||||
path: '/people/tmdb/:tmdbId',
|
||||
element: (
|
||||
<SuspensePage fallback={<PersonDetailsSkeleton />}>
|
||||
<PersonTmdbRedirectPage />
|
||||
<PersonDetailsPage />
|
||||
</SuspensePage>
|
||||
),
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user