feat(ui): redesigned book card and menu (#2396)

This commit is contained in:
Alex
2026-09-21 13:01:58 +01:00
committed by GitHub
parent b7cfd20ecd
commit 5572fc2dbd
38 changed files with 2408 additions and 23 deletions
@@ -0,0 +1,23 @@
import {
BOOK_READ_STATUSES,
type KnownBookReadStatus,
} from '../data/book-response.models';
export type BookReadStatusTarget = Exclude<KnownBookReadStatus, 'UNSET'>;
export const CLEAR_BOOK_READ_STATUS = 'UNSET' satisfies KnownBookReadStatus;
export const CLEAR_BOOK_READ_STATUS_LABEL_KEY = 'book.filter.readStatus.unset';
export const BOOK_READ_STATUS_LABEL_KEYS: Readonly<Record<BookReadStatusTarget, string>> = {
UNREAD: 'book.filter.readStatus.unread',
READING: 'book.filter.readStatus.reading',
RE_READING: 'book.filter.readStatus.reReading',
PARTIALLY_READ: 'book.filter.readStatus.partiallyRead',
PAUSED: 'book.filter.readStatus.paused',
READ: 'book.filter.readStatus.read',
WONT_READ: 'book.filter.readStatus.wontRead',
ABANDONED: 'book.filter.readStatus.abandoned',
};
export const BOOK_READ_STATUS_TARGETS: readonly BookReadStatusTarget[] =
BOOK_READ_STATUSES.filter(status => status !== 'UNSET');