feat(books): add extra sort fields including user-specific progress

This commit is contained in:
neon
2026-04-03 20:52:11 -06:00
parent ca3e4822b5
commit 9dcc513a0d
6 changed files with 49 additions and 7 deletions
+2 -2
View File
@@ -110,9 +110,9 @@ export type GroupRule = {
rules: (Rule | GroupRule)[];
};
export type SortField = "author" | "title" | "series" | "seriesIndex" | "addedAt" | "updatedAt" | "publishedYear" | "pageCount" | "rating";
export type SortField = "author" | "title" | "series" | "seriesIndex" | "addedAt" | "updatedAt" | "publishedYear" | "pageCount" | "rating" | "publisher" | "fileSize" | "readProgress" | "lastReadAt" | "finishedAt" | "random";
export const SORT_FIELDS: SortField[] = ["author", "title", "series", "seriesIndex", "addedAt", "updatedAt", "publishedYear", "pageCount", "rating"];
export const SORT_FIELDS: SortField[] = ["author", "title", "series", "seriesIndex", "addedAt", "updatedAt", "publishedYear", "pageCount", "rating", "publisher", "fileSize", "readProgress", "lastReadAt", "finishedAt", "random"];
export type SortSpec = {
field: SortField;