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:
committed by
Aditya Chandel
parent
cd4e14c8ad
commit
6bfbff5d34
@@ -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'
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user