* feat(metadata): add auto-save metadata feature in editor settings
Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>
* feat(reader-preferences): add autoSaveMetadata property to user preferences
Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>
* feat(user-service): add autoSaveMetadata property to user preferences in tests
Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>
---------
Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>
* refactor(types): improve type safety by replacing 'any' with specific types in various components
Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>
* fix(filters): handle undefined values in filter streams and update type for selected filters
Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>
* refactor(epub-reader): improve rendition cleanup and enhance debug logging in helper functions
Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>
* fix(epub-reader): handle errors during rendition and book destruction in ngOnDestroy
Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>
---------
Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>
* feat(metadata): add support for Lubimyczytac ID and rating fields
Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>
* feat(metadata): add Lubimyczytac ID and rating fields to metadata editor
Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>
* feat(metadata): add Lubimyczytac ID and rating fields to MetadataRefreshOptions
Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>
---------
Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>
* refactor(types): replace most usages of 'any' with 'unknown' and improve type safety across services and components
- Update method signatures, variables, and interfaces to use 'unknown' instead of 'any'
- Refine event and observable typings for better type inference
- Add or adjust explicit types for function parameters and return values
- Update Chart.js tooltip and context typings for chart services
- Improve type safety in Book, BookState, and related models
- Adjust template bindings and method calls to match stricter typings
- Add SecureSrcDirective for secure image loading with fallback and error handling
Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>
* chore(angular): remove proxy configuration from development build settings
Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>
* refactor(book-browser): streamline entity and book state management with reactive streams
- Refactor entity type and entity fetching logic to use observables and combine route params
- Simplify book state handling by consolidating filtering and fetching into a single reactive pipeline
- Remove redundant applySortOption logic and related subscriptions
- Fix book card index binding in template for improved rendering performance
- Ensure proper cleanup of epub rendition in epub-reader component
Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>
* fix(book-browser, book-uploader): improve permission checks and enhance file upload handling
- Use optional chaining for user permission checks in book-browser.component.html to prevent runtime errors when user data is undefined
- Refactor book-uploader.component.ts to pass destination and IDs explicitly to uploadBatch, reconstruct files for strict type handling, and ensure proper upload flow and UI feedback
Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>
* refactor(charts, services): improve type safety for book state validation and update form field checks
- Refactor isValidBookState methods across chart components and services to use type predicates and stricter type checks for BookState
- Update metadata-picker.component to simplify array field checks for authors, categories, moods, and tags
- Adjust magic-shelf-utils to remove unnecessary fallback in object spread
- Update notification-event.service to use correct timeout type for highlightTimeout
Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>
* fix(theme): ensure safe merging of theme properties and improve type definition for themesMap
Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>
* refactor(epub-reader): streamline book and rendition initialization logic
Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>
---------
Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>
* fix(metadata-viewer): show only allowed other actions and localize amazon link
* fix(metadata-viewer): simplify permission checks for displaying other actions
* feat: add LubimyCzytac metadata provider
- Add LubimyCzytac parser with web scraping for lubimyczytac.pl
- Extract book metadata including title, authors, description, ratings
- Parse JSON-LD structured data for reliable metadata extraction
- Add database migration with columns and JSON property name updates
- Add comprehensive test coverage for parser
* feat: add LubimyCzytac UI integration
- Add LC ID and LC Rating fields to metadata picker
- Update settings page with Lubimyczytac provider toggle
- Add LubimyCzytac to metadata searcher provider list
- Display Lubimyczytac in all metadata viewer sections
- Add Lubimyczytac to advanced fetch options
- Update TypeScript models to match backend serialization
* feat: add cover image auto cropping when oversized
* feat: add smart cropping to ignore sections of constant colours in cover images
* fix: description implied cbx files would be excluded from cover regeneration when they are not
* feat: add options to bulk edit cover images in the library view
* fix: resolve issues with batching requests and data validation for cover images
* 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>