feat(read-status): Add Read Status tracking and filtering support

- Introduced `ReadStatus` enum and added `readStatus` field to `BookEntity`
- Updated database schema with Flyway migration to store read status
- Extended DTOs and backend API to handle read status updates
- Added `updateBookReadStatus()` in backend service and controller
- Integrated read status in Angular: display, update, and toast feedback
- Added read status filters and labels across book listing, sidebar filter, and viewer
- Refactored `MetadataViewerComponent` and extracted read status UI logic
- Simplified read status label resolution using a mapping function
This commit is contained in:
aditya.chandel
2025-06-22 00:26:12 -06:00
committed by Aditya Chandel
parent cd4e14c8ad
commit 6bfbff5d34
13 changed files with 176 additions and 20 deletions
@@ -18,6 +18,7 @@ export interface Book {
fileSizeKb?: number;
seriesCount?: number | null;
metadataMatchScore?: number | null;
readStatus?: ReadStatus;
}
export interface EpubProgress {
@@ -165,3 +166,14 @@ export interface BookDeletionResponse {
deleted: number[];
failedFileDeletions: number[];
}
export enum ReadStatus {
UNREAD = 'UNREAD',
READING = 'READING',
RE_READING = 'RE_READING',
READ = 'READ',
PARTIALLY_READ = 'PARTIALLY_READ',
PAUSED = 'PAUSED',
WONT_READ = 'WONT_READ',
ABANDONED = 'ABANDONED'
}