Commit Graph
343 Commits
Author SHA1 Message Date
Alexander PuzyniaandAditya Chandel 694ee11540 Book additional files support library (3/3) (#872)
* feat(api/model): add new entity BookAdditionalFileEntity

* feat(api/db): add book additional file repository

* feat(api/db): add migration

* test(api/db): add book additional file repository test

* test(api/db): add book additional file repository tests for hash uniqueness

* feat(api/domain): add support to additional file model

* feat(api): add additional files controller

* refactor(api): move addAdditionalFile to FileUploadService as uploadAdditionalFile method

* feat(service): search book by additional file

* feat(services): process deleted additional files with ability to promote alternative formats to book instead of deleting them

* refactor(util): use common code to resolve patter for entity and domain object

* feat(service): move additional files

* test(service): test move additional files along with book itself

* feat(ui/domain): add alternativeFormats and supplementaryFiles to book model

* feat(ui/domain): add download additional file method to book service

* refactor(api/domain): extract FileInfo interface with common fields

Allow to share the same interface thet is implemented by AdditionFile and Book

* feat(ui): show multiple download options

* feat(ui/domain): add delete additional file method to book service

* feat(ui): add delete additional file ui

* feat(ui): add additional-file-uploader.component

* feat(ui/domain): add uploadAdditionalFile to the service

* feat(ui): add Upload File menu item

* feat(ui): show supplementary files in download menu item

* feat(ui): show supplementary files in delete file menu item

* feat(ui): book card allow to select single file to download or delete

* feat(api/domain): add scan mode and default book format to the library

* feat(ui): select scan mode and default book format

* feat(api): create/update library settings

* refactor(services): get processor based on scan mode

* feat(services): read all files if processor supports supplimentary files

* fix(services): detectNewBookPaths should check additional files as well

* feat(services): implement folder as book file processor

* test(service): add tests for FolderAsBookFileProcessor

* feat(services): allow follow links for search library files

* test(library): add tests for folder as book file processor

* refactor(library): use Path instead of String for directory path

* feat(library): sort directories before processing

* feat(library): reuse library file book type

* fix(library): do not add additional format if it is used in another book

* test(library): test same hashes files

* refactor(library): simplify FolderAsBookFileProcessor

* test(library): add test with deep folder structure

* test(library): add additional files to existing book

---------

Co-authored-by: Aditya Chandel <8075870+adityachandelgit@users.noreply.github.com>
2025-08-27 08:20:29 -06:00
Alexander Puzynia b81a8d1422 Book additional files support (1/3) (#868)
* feat(api/model): add new entity BookAdditionalFileEntity

* feat(api/db): add book additional file repository

* feat(api/db): add migration

* test(api/db): add book additional file repository test

* test(api/db): add book additional file repository tests for hash uniqueness

* feat(api/domain): add support to additional file model

* feat(api): add additional files controller

* refactor(api): move addAdditionalFile to FileUploadService as uploadAdditionalFile method

* feat(service): search book by additional file

* feat(services): process deleted additional files with ability to promote alternative formats to book instead of deleting them

* refactor(util): use common code to resolve patter for entity and domain object

* feat(service): move additional files

* test(service): test move additional files along with book itself
2025-08-27 08:11:04 -06:00
aditya.chandel 19e1b75325 Fix server.port error 2025-08-25 16:17:10 -06:00
Aditya Chandel fe8925f65e feat(kobo): add optional EPUB → KEpub conversion for Kobo downloads (#969) 2025-08-23 20:51:04 -06:00
aditya.chandel 6e6861b329 Kobo Phase 1: Enable Book Transfer/Sync 2025-08-22 22:57:03 -06:00
aditya.chandel a092d629c9 Refine bookdrop results and related websocket events 2025-08-16 10:18:33 -06:00
aditya.chandel c75c4dce5b OIDC Authentication Revamp: Smarter Init, Error Handling, and Fallback 2025-08-15 21:02:33 -06:00
aditya.chandel 44541849ff Enhance OIDC flow for better error handling and misconfiguration recovery 2025-08-15 15:44:24 -06:00
aditya.chandel 628a6c7bcf Restrict web-socket connections to the initiating user 2025-08-15 13:45:00 -06:00
aditya.chandel 3ab52de171 Refactor Bookdrop file processing to prevent orphan target files on error 2025-08-14 18:22:41 -06:00
aditya.chandel 7cea853756 Expose safe public app settings via dedicated endpoint 2025-08-14 18:19:49 -06:00
aditya.chandel 77e02ac7f9 Cover lock not working in metadata picker and editor 2025-08-14 11:41:22 -06:00
aditya.chandel 6d7235731b Fix crash on Collection.remove() in Bookdrop import workflow 2025-08-14 10:20:10 -06:00
aditya.chandel b3af1723df Polish main dashboard UI and improve aesthetics 2025-08-13 17:41:49 -06:00
aditya.chandel 800cc4054f Support adding private, user-specific notes to books 2025-08-13 15:54:45 -06:00
aditya.chandel c660497e0b Implement public review fetching from metadata providers 2025-08-13 13:02:53 -06:00
astrodadandAditya Chandel b4e95a3cc1 Feature/update date finished integration (#895)
* Fixed issue with not updating the book finished date when updating read status
* Added ability to set a date finished after setting the book status to Read.

---------

Co-authored-by: Aditya Chandel <8075870+adityachandelgit@users.noreply.github.com>
2025-08-12 14:42:51 -06:00
aditya.chandel c3b2940f36 Enhanced book "Finished On" functionality 2025-08-11 22:23:07 -06:00
astrodadandAditya Chandel 53aae8bb42 Feature/update date finished date (#873)
* Fixed issue with not updating the book finished date when updating read status
* Added ability to set a date finished after setting the book status to Read.

---------

Co-authored-by: Aditya Chandel <8075870+adityachandelgit@users.noreply.github.com>
2025-08-11 21:33:47 -06:00
aditya.chandel dd7453fae1 Implement file moving based on library naming rules, falling back to app defaults 2025-08-11 16:59:42 -06:00
aditya.chandel 978bd05b1e Add per-library customizable file naming patterns 2025-08-10 11:27:28 -06:00
aditya.chandel b1508493cf Implement live progress tracking for bulk metadata refresh (remaining books, status, cancel support) 2025-08-10 00:28:20 -06:00
aditya.chandel 2c078716bf Fix memory leak in bulk metadata refresh process 2025-08-09 18:30:29 -06:00
aditya.chandel f794babdb4 Improve support component 2025-08-09 09:40:55 -06:00
aditya.chandel e9cbc36768 Update Frontend and Backend Dependencies - August 2025 2025-08-09 01:04:18 -06:00
aditya.chandel fb5a70c7e7 Allow book upload GUI to upload into Bookdrop 2025-08-09 00:50:50 -06:00
astrodadandAditya Chandel a2a0ec9e7c Fixed issue with not updating the book finished date when updating read status
Co-authored-by: Aditya Chandel <8075870+adityachandelgit@users.noreply.github.com>
2025-08-08 20:00:49 -06:00
aditya.chandel 850ecb0b0c Improve version checking 2025-08-08 19:54:58 -06:00
Aditya Chandel 9ae1c6e2dc Add koreader sync support for book progress tracking 2025-08-08 09:38:20 -06:00
Aditya Chandel ac798d05b5 Enhance Comicvine metadata parsing and error handling (#835) 2025-08-06 14:23:51 -06:00
aditya.chandel 504c777eec Fix comicvine 2025-08-06 11:47:03 -06:00
Louis-André LabadieandAditya Chandel 7d006355c7 Feat: ForwardAuth user creation follows OIDC library attribution preferences (#805)
* ForwardAuth user provisioning: Assign default permissions when available

* Add forward auth mention in README + details in a separate doc

Add Forward Auth docs

* Fix: PermissionDeleteBooks → PermissionDeleteBook

---------

Co-authored-by: Aditya Chandel <8075870+adityachandelgit@users.noreply.github.com>
2025-08-06 11:30:46 -06:00
Rprasad2400andAditya Chandel 46f86deb24 Feature: Add Comicvine to metadata providers. (#804)
* added comcivine
* updated comicvine schema
* added comic vine support
* changed SQL changes
* fixed init provider bug
* updated changes for Flyway migration.

---------

Co-authored-by: Aditya Chandel <8075870+adityachandelgit@users.noreply.github.com>
2025-08-06 11:29:12 -06:00
aditya.chandel 225824b6f5 Enhance icon picker UI and usability 2025-08-05 17:53:41 -06:00
aditya.chandel 1edc5f21f4 fix: refresh magic shelves after moving book to muggle shelf to reflect read status 2025-08-05 14:24:04 -06:00
aditya.chandel f69110c164 feat(bookdrop): add full pagination support with select-all and metadata caching
- Implemented backend pagination for Bookdrop file review
- Updated finalizeImport logic to support select-all with excluded IDs
- Handled partial metadata submission from frontend
- Refactored chunk processing and logging for clarity
- Enhanced frontend Bookdrop UI with paginated selection, metadata sync, and virtual scroll compatibility
- Improved UX for bulk finalize and discard actions
2025-08-05 12:34:44 -06:00
astrodad 21f23ca6a2 Feature: Add support for recording when a book is finished, so that users can create Magic Shelves based on this information. (#803)
* Added migration for new field in user_book_progress table
* Added ability to set date finished when book status changes to read, and reset date finished when book status changes to another value
* Added ability to use date published in a Magic Shelf
2025-08-04 21:12:19 -06:00
Alberto Paro 95bc88feea fix: limit author name to 255 characters as in table (#801) 2025-08-04 20:43:43 -06:00
aditya.chandel 63518b7eb8 Implement magic shelves with dynamic rule-based filters 2025-07-28 07:59:00 -06:00
Alexander PuzyniaandCopilot a5003cb2aa style(services): remove unused usings
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-07-23 14:11:27 -06:00
Alexander PuzyniaandCopilot c1796769dc style(services): remove unused usings
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-07-23 14:11:27 -06:00
Alexander PuzyniaandCopilot 0cfec8bcd8 style(services): remove unused usings
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-07-23 14:11:27 -06:00
Alexander Puzynia f4207cf9b3 refactor(services): update BookFileProcessor to use BookFileType for processor retrieval 2025-07-23 14:11:27 -06:00
Alexander Puzynia 3f23e4a3eb refactor(services): add LibraryFileProcessorRegistry to get processor based on scan mode 2025-07-23 14:11:27 -06:00
Alexander Puzynia d6c3c8e4c6 test(service): add unit tests for FileAsBookProcessor to validate library file processing 2025-07-23 14:11:27 -06:00
Alexander Puzynia 31e4ae2972 refactor(service): integrate BookFileProcessorRegistry for handling multiple book file formats 2025-07-23 14:11:27 -06:00
Alexander Puzynia 3d17159c59 refactor(services): add common BookFileProcessorRegistry for all current and future book file processors 2025-07-23 14:11:27 -06:00
Alexander Puzynia b7a17e1405 refactor(service): use full path instead of just name to sync book files 2025-07-23 14:11:27 -06:00
Alexander Puzynia c9e05b1c28 refactor(library): extract processLibraryFiles into separate FileAsBookProcessor class 2025-07-23 14:11:27 -06:00
Alexander Puzynia f084bb1da6 refactor(library): remove checked IOException 2025-07-23 14:11:27 -06:00