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
@@ -0,0 +1,2 @@
ALTER TABLE book
ADD COLUMN read_status VARCHAR(20) DEFAULT 'UNREAD';