feat(hardcover): sync Kobo reading progress to Hardcover (#1926)
* feat(hardcover): sync Kobo reading progress to Hardcover - Add HardcoverSyncService to sync reading progress asynchronously - Store hardcover_book_id in book_metadata for faster lookups - Integrate with KoboReadingStateService to trigger sync on progress updates - Add database migration for hardcover_book_id column * test(hardcover): add unit tests for HardcoverSyncService * test(hardcover): add HardcoverSyncService mock to unit tests for improved coverage * refactor(hardcover): update syncProgressToHardcover method to use book ID - Changed syncProgressToHardcover to accept book ID instead of BookEntity. - Integrated BookRepository to fetch BookEntity within the method. - Updated related unit tests to reflect the new method signature and ensure proper functionality. * feat(hardcover): enhance HardcoverSyncService with edition lookup and logging - Added a method to find an edition by ISBN, improving the accuracy of edition information. - Enhanced logging for progress calculations, search responses, and reading progress updates for better traceability. - Updated the handling of default edition IDs to ensure correct page counts are used when available. * feat(metadata): add hardcoverBookId and its locking mechanism - Introduced hardcoverBookId and hardcoverBookIdLocked fields to MetadataClearFlags, BookMetadata, and BookMetadataEntity. - Updated BookMetadataUpdater to handle locking for hardcoverBookId. - Enhanced MetadataChangeDetector to compare changes for hardcoverBookId, ensuring proper metadata management. * feat(metadata): add hardcoverBookId input and display in metadata dialogs - Introduced hardcoverBookId input field in the metadata editor with locking mechanism. - Updated metadata restore dialog to display hardcoverBookId when available. - Enhanced user interface for better metadata management and visibility. * feat(metadata): integrate hardcoverBookId across components and forms - Added hardcoverBookId and hardcoverBookIdLocked fields to relevant models and interfaces. - Updated metadata editor, picker, and review components to include hardcoverBookId input and locking functionality. - Enhanced form controls and metadata handling to support the new hardcoverBookId feature for improved user experience. * feat(migration): add hardcover_book_id_locked column to book_metadata table - Introduced a new column hardcover_book_id_locked with a default value of FALSE to the book_metadata table for enhanced metadata management. * fix(metadata): realign html with develop --------- Co-authored-by: akiraslingshot <akiraslingshot@gmail.com>
This commit is contained in:
co-authored by
akiraslingshot
parent
f869ac0ac4
commit
2da01e7a2e
@@ -88,6 +88,7 @@ export interface BookMetadata {
|
||||
goodreadsId?: string;
|
||||
comicvineId?: string;
|
||||
hardcoverId?: string;
|
||||
hardcoverBookId?: number | null;
|
||||
googleId?: string;
|
||||
pageCount?: number | null;
|
||||
language?: string;
|
||||
@@ -122,6 +123,7 @@ export interface BookMetadata {
|
||||
comicvineIdLocked?: boolean;
|
||||
goodreadsIdLocked?: boolean;
|
||||
hardcoverIdLocked?: boolean;
|
||||
hardcoverBookIdLocked?: boolean;
|
||||
googleIdLocked?: boolean;
|
||||
pageCountLocked?: boolean;
|
||||
languageLocked?: boolean;
|
||||
@@ -156,6 +158,7 @@ export interface MetadataClearFlags {
|
||||
goodreadsId?: boolean;
|
||||
comicvineId?: boolean;
|
||||
hardcoverId?: boolean;
|
||||
hardcoverBookId?: boolean;
|
||||
googleId?: boolean;
|
||||
pageCount?: boolean;
|
||||
language?: boolean;
|
||||
|
||||
Reference in New Issue
Block a user