perf: remove unused tags, metadataScore, durationSeconds from BookCard

- drop tags field and bookTags fan-out query from all BookCard paths
- drop metadataScore from BookCard select (only used in BookDetail)
- fix durationSeconds: was never selected in DB; derive audiobook badge from file format using FORMAT_TO_GROUP instead
This commit is contained in:
neon
2026-03-29 14:09:24 -06:00
parent ec25a62ebe
commit 399fa179d2
12 changed files with 45 additions and 88 deletions
-3
View File
@@ -38,13 +38,10 @@ export type BookCard = {
publishedYear: number | null;
language: string | null;
genres: string[];
tags: string[];
rating: number | null;
readingProgress: number | null;
readStatus: UserBookStatus | null;
metadataScore: number | null;
addedAt: string;
durationSeconds: number | null;
};
export type BookDetailFile = {