feat(frontend): fix hooks crash, persist library filters, improve UI

- Fix "rendered more hooks" crash in CollectionDetailsPage by moving all hooks before conditionals
- Persist library search/filters only on back navigation using useNavigationType
- Add resetAll() to useLibraryFiltersStore
- Move sort toolbar to hero bottom-right in CollectionDetailsPage
- Fall back to entry backdrops when collection has none
- Show full cast in TmdbPreviewPage matching EntryDetailsPage layout
- Remove tagline/icons from TmdbPreviewPage to match in-library style
- Lazy load people in local DB mode with infinite scroll
- Move All/Favorite filter to right side in PeoplePage, always visible
- Track dropdownOpen state in EntryCard to fix menu close flash

Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
Mohammed AbadandCopilot committed 2026-04-27 11:49:00 +01:00
1 parent ea143fb32a
commit a42d4ee7d7
7 files changed
+325 -177

No files matched your search

@@ -27,6 +27,7 @@ interface LibraryFiltersState {
setSortDir: (dir: SortDir) => void;
setFilters: (updater: Filters | ((prev: Filters) => Filters)) => void;
clearFilters: () => void;
resetAll: () => void;
}
const defaultFilters: Filters = {
@@ -55,6 +56,14 @@ export const useLibraryFiltersStore = create<LibraryFiltersState>((set) => ({
filters: typeof updater === 'function' ? updater(state.filters) : updater,
})),
clearFilters: () => set({ filters: defaultFilters }),
resetAll: () =>
set({
activeTab: 'all',
search: '',
sortField: 'date_last_seen',
sortDir: 'desc',
filters: defaultFilters,
}),
}));
export { defaultFilters };