feat(filter): add audiobook narrator filter and sort option

This commit is contained in:
ACX
2026-02-10 21:41:46 -07:00
committed by acx10
parent 165a36a574
commit 20e73bd108
10 changed files with 14 additions and 3 deletions
@@ -194,6 +194,7 @@ export type VisibleFilterType =
| 'shelfStatus' | 'tag' | 'publishedDate' | 'fileSize' | 'amazonRating'
| 'goodreadsRating' | 'hardcoverRating' | 'language' | 'pageCount' | 'mood'
| 'ageRating' | 'contentRating'
| 'narrator'
| 'comicCharacter' | 'comicTeam' | 'comicLocation' | 'comicCreator';
export const DEFAULT_VISIBLE_FILTERS: VisibleFilterType[] = [
@@ -225,6 +226,7 @@ export const ALL_FILTER_OPTIONS: { label: string; value: VisibleFilterType }[] =
{label: 'Amazon Rating', value: 'amazonRating'},
{label: 'Goodreads Rating', value: 'goodreadsRating'},
{label: 'Hardcover Rating', value: 'hardcoverRating'},
{label: 'Narrator', value: 'narrator'},
{label: 'Comic Character', value: 'comicCharacter'},
{label: 'Comic Team', value: 'comicTeam'},
{label: 'Comic Location', value: 'comicLocation'},
@@ -70,6 +70,7 @@ export class ViewPreferencesComponent implements OnInit, OnDestroy {
{label: 'Hardcover Rating', field: 'hardcoverRating', translationKey: 'sortHardcoverRating'},
{label: 'Hardcover #', field: 'hardcoverReviewCount', translationKey: 'sortHardcoverCount'},
{label: 'Ranobedb Rating', field: 'ranobedbRating', translationKey: 'sortRanobedbRating'},
{label: 'Narrator', field: 'narrator', translationKey: 'sortNarrator'},
{label: 'Pages', field: 'pageCount', translationKey: 'sortPages'},
{label: 'Random', field: 'random', translationKey: 'sortRandom'},
];