feat(sort): replace compound sort options with atomic fields and multi-sort support (#2686)

* fix(sidebar): replace routerLinkActive with getter-based route matching to prevent stale highlights

* feat(sort): replace compound sort options with atomic fields and add 6 new sort criteria
This commit is contained in:
ACX
2026-02-10 14:27:07 -07:00
committed by GitHub
parent 78a8bb4fea
commit 0fa84e3424
23 changed files with 509 additions and 190 deletions
@@ -231,6 +231,13 @@ export const ALL_FILTER_OPTIONS: { label: string; value: VisibleFilterType }[] =
{label: 'Comic Creator', value: 'comicCreator'}
];
export const DEFAULT_VISIBLE_SORT_FIELDS: string[] = [
'title', 'seriesName', 'fileName', 'filePath',
'author', 'authorSurnameVorname', 'seriesNumber',
'lastReadTime', 'personalRating', 'addedOn',
'fileSizeKb', 'locked', 'publisher', 'publishedDate', 'pageCount', 'random'
];
export interface UserSettings {
perBookSetting: PerBookSetting;
pdfReaderSetting: PdfReaderSetting;
@@ -243,6 +250,7 @@ export interface UserSettings {
sidebarMagicShelfSorting: SidebarMagicShelfSorting;
filterMode: BookFilterMode;
visibleFilters?: VisibleFilterType[];
visibleSortFields?: string[];
metadataCenterViewMode: 'route' | 'dialog';
enableSeriesView: boolean;
entityViewPreferences: EntityViewPreferences;