Commit Graph
1240 Commits
Author SHA1 Message Date
Aditya Chandel 3f94d8a165 Merge pull request #1718 from booklore-app/develop
Merge develop into master for release
2025-12-01 20:03:52 -07:00
Aditya Chandel 4da832cd19 Fix: Missing close button from dialogue window (#1717) 2025-12-01 20:02:53 -07:00
Aditya Chandel b5460a5e90 Fix: Date filter doesn't work very well (#1715) 2025-12-01 19:25:17 -07:00
Muppetteer d4121b241a Fix dev docker environment (#1713) 2025-12-01 17:27:50 -07:00
Aditya Chandel 3052b075e3 Merge pull request #1707 from booklore-app/develop
Merge develop into master for release
2025-12-01 13:42:05 -07:00
aditya.chandel 4b206115ce Tweak UI for dashboard settings and book filter 2025-12-01 12:46:51 -07:00
Aditya Chandel 132e3e3f92 Fix build (#1697) 2025-11-30 18:15:03 -07:00
aditya.chandel 0c9409b087 Metadata viewer minor layout tweaks 2025-11-30 17:36:19 -07:00
Aditya Chandel ff17b74adb Downgrade Java, Spring Boot and Gradle (#1696)
* Revert Spring Boot 4

* Downgrade Java from 25 to 21 and Gradle from 9 to 8
2025-11-30 16:39:56 -07:00
aditya.chandel bdeeee6d8d Fix missing import 2025-11-30 09:55:11 -07:00
CounterClopsandAditya Chandel dfb73d50d9 Feature: Add EPUB conversion support for CBX files to Kobo Sync (#1538)
* Feature/kobo sync cbx support (#3)

* Feature: Add CBX syncing support to Kobo sync (#2)

* feat: add cbx sync support

* fix: phrasing of setting description to align with CBX terminology

* fix: resolve issue with CBX setting persistence

* fix: updated dev docker compose to align with Dockerfile

* feat: add cbx files as allowed entitlements

* fix: relax tomcat query characters for kobo sync

* fix: remove hardcoded epub restrictions

* fix: reduce image size and resolve relative content paths

* fix: resolve issues with the image file encoding

* feat: add rar and cb7 support

* feat: bring generated epub more in line with epub standard

* fix: resolve issues with extra metadata fields

* fix: make css background colour white to improve e-ink performance

* cleanup: code comments

* feat: add cbx unit tests

* fix: update zipfile to use builder pattern as current method is deprecated

* fix: remove comments

* fix: replace regex pattern to a simpler check

* fix: remove unused imports

* fix: update epub template to use standard language string

* fix: missing line end on css

* fix: remove duplicate query characters

* fix: grammer issue

* fix: resolve typo in the entitlement service test

* fix: redundant imports and update long types

* chore: update test descriptions for cbx conversion

* fix: add check for larger images in archive files. unlikely to occur.

* fix: merge temp dir logic for the book download

* fix: update kobo entitlement to always report the format as epub3

* fix: implement suggested changes around javadocs and some edge cases to handle gracefully

* chore: cleanup variable names to be clearer in download service

* feat: change function to extract to disk instead of storing images in memory

* fix: add temp file clean up into the conversion service

* fix: add visual divider to seperate CBX and EPUB settings

* fix: update lambdas to use method references

* fix: reword setting description for cbx to epub sync

---------

Co-authored-by: Aditya Chandel <8075870+adityachandelgit@users.noreply.github.com>
2025-11-30 09:53:26 -07:00
aditya.chandel e47046aa20 Fix flyway versioning 2025-11-30 09:49:20 -07:00
CounterClops 3ef5b60ed6 Feat: Improve kobo reading state sync logic for better bidirectional support (#1644)
* feat: kobo sync improvements (push changes from booklore, and properly delete kobo data on reset)

* fix: issues with sync race conditions and improve readability

* fix: update function names to be clearer and more explicit

* fix: move partially_read to reading status mapping

* fix: make the bufferwindow more explicit in the unsynced progress check

* chore: add unit tests for additional sync logic

* fix: improve bi-directional logic to account for changes in progress and status

* chore: add additional tests to check the kobo sync logic and remove redundant tests
2025-11-30 09:44:11 -07:00
Balázs Szücs 2336d04a46 refactor(exception): modernize exception handling and method signatures across services and controllers (#1670)
* refactor(exception): modernize exception handling and method signatures across services and controllers

- Remove unnecessary checked exceptions from method signatures
- Replace IOException with UncheckedIOException where appropriate
- Update test methods to match new signatures and remove throws declarations
- Improve converter classes with type safety, logging, and null handling
- Simplify collection assignment logic in metadata and book services
- Enhance author and category tokenization in HardcoverParser
- Add equals/hashCode to ShelfEntity for proper set behavior
- Add comprehensive unit tests for converter and service classes

Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>

* refactor(entity): update equality and hashCode for JPA entities to use ID; add comprehensive tests and adjust test data to set IDs

Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>

---------

Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>
2025-11-30 09:41:15 -07:00
Balázs Szücs 965aa9dfab Improve image resource management by ensuring BufferedImage objects are flushed after processing; add tests for cover extraction and image scaling (#1688)
Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>
2025-11-30 08:17:44 -07:00
Aditya Chandel 914d05b464 Enable jumping to filters by clicking page count, file size, or match score ranges (#1685) 2025-11-29 17:42:44 -07:00
Balázs Szücs 348e8e9022 fix(pdf): handle out-of-memory errors gracefully during cover generation and limit image size to prevent OOM (#1680)
* fix(pdf): handle out-of-memory errors gracefully during cover generation and limit image size to prevent OOM

Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>

* fix(file): release native resources after saving image to prevent memory leaks

Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>

---------

Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>
2025-11-29 17:00:43 -07:00
Muppetteer 7baa2ee8bd More single select filters (#1678) 2025-11-29 17:00:13 -07:00
beedaddy 357c98b8ce Add actual language to Kobo metadata (#1682)
Fixes #1681
2025-11-29 16:59:17 -07:00
Aditya Chandel 3017d0413c Improve computed filter label logic for cleaner and more readable summaries (#1684) 2025-11-29 16:58:53 -07:00
Aditya Chandel 2145683ce0 Expose Magic Shelves through the OPDS feed so clients can access them (#1683) 2025-11-29 16:58:31 -07:00
aditya.chandel dbad4f6659 Revert angular update 2025-11-28 19:20:16 -07:00
Aditya Chandel 16ffd5f558 Upgrade Angular to v21 and update all major frontend dependencies (#1674) 2025-11-28 19:15:04 -07:00
MuppetteerandAditya Chandel 7ff72a8916 Add single select filter mode (#1671)
* Add single select filter mode

* Update booklore-ui/src/app/features/book/components/book-browser/book-filter/book-filter.component.ts

Co-authored-by: Aditya Chandel <8075870+adityachandelgit@users.noreply.github.com>

---------

Co-authored-by: Aditya Chandel <8075870+adityachandelgit@users.noreply.github.com>
2025-11-28 18:43:06 -07:00
Muppetteer 5d79e06254 Fix: Prevent sorting prefs select options from overflowing container (#1673) 2025-11-28 18:38:40 -07:00
Aditya Chandel 806ffe22b4 Enable navigation by library, year, language, file type, and read status in metadata viewer (#1672) 2025-11-28 18:22:37 -07:00
Aditya Chandel 81c4424ae6 Fix issue with “unset” read status handling (#1669) 2025-11-28 15:05:23 -07:00
Aditya Chandel 3a9cb965e3 Fix unique file constraint to allow identical filenames in different sub-paths (#1668)
* Upgrade Spring Boot to version 4.0.0

* Fix flyway config

* Fix unique file constraint to allow identical filenames in different sub-paths
2025-11-28 14:10:51 -07:00
Aditya Chandel d647fe401e Upgrade Spring Boot to version 4.0.0 (#1667)
* Upgrade Spring Boot to version 4.0.0

* Fix flyway config
2025-11-28 14:10:14 -07:00
Aditya Chandel 46225a3c0e Upgrade Spring Boot to version 4.0.0 (#1666) 2025-11-28 13:35:40 -07:00
Balázs Szücs 71f02c3238 feat(tests-util): Add comprehensive test coverage for FileService and MetadataChangeDetector (#1658) 2025-11-28 09:35:14 -07:00
Balázs Szücs 900cd0a884 fix(file): truncate long path components and author lists to prevent filesystem errors (#1655) 2025-11-28 09:34:02 -07:00
Muppetteer 721952a679 Maintain book selections when switching between table and grid views (#1651) 2025-11-28 09:31:01 -07:00
Muppetteer 3a291f7770 Keep track of applied filters in URL query string (#1654) 2025-11-28 09:22:16 -07:00
Balázs Szücs d2c6e535e2 fix(bookdrop): Ensure source file is only deleted after successful import and cleanup target on failure (#1638)
* fix(bookdrop): improve error handling and cleanup for file move failures

- Ensure target file is deleted if processing or metadata refresh fails after move
- Only delete source file on successful processing
- Add tests to verify file cleanup and source preservation on failure scenarios
- Use lenient mocking for Files in tests to support error simulation

* fix(bookdrop): enhance file and cover cleanup logic, improve test coverage for import finalization

* test(bookdrop): improve finalize import test with LibraryPathRepository mock and enhanced stubbing
2025-11-27 06:48:17 -07:00
Balázs Szücs ff052c2fed feat(api): add @Builder.Default to entity fields for safer builder initialization and update mappers to ignore unmapped targets; add tests for builder defaults (#1634)
* feat(api): add @Builder.Default to entity fields for safer builder initialization and update mappers to ignore unmapped targets; add tests for builder defaults

Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>

* test: set isDefaultPassword in test user builder for KoboReadingStateServiceTest

Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>

* test: verify isDefaultPassword is false in BookLoreUserEntityTest

Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>

---------

Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>
2025-11-27 06:46:52 -07:00
beedaddy 47f75c2b9a Add option to force hyphenation in KEPUB (#1656)
* Add option to force hyphenation in KEPUB

Fixes #1465

* Default force hyphenation to false

* Remove commented out code
2025-11-27 06:45:47 -07:00
aditya.chandel 190cb1fc7a Update issue templates 2025-11-26 18:27:26 -07:00
Muppetteer a03e59c6d3 Add author + series sort option to view settings (#1652) 2025-11-26 17:56:26 -07:00
Trevor Swanson f8270d7f90 ci: Add OCI Image Specification Labels to Dockerfile (#1636)
* ci: Add OCI labels to Dockerfile

Added OCI labels for metadata and documentation.

* ci: Add APP_VERSION and APP_REVISION arguments

Added ARG directives for application version and revision to Dockerfile.

* ci: Add APP_REVISION build argument to Docker build
2025-11-26 17:47:52 -07:00
Aditya Chandel f933623c72 Merge pull request #1633 from booklore-app/develop
Merge develop into master for the release
2025-11-25 05:54:57 -07:00
Aditya Chandel 5abed1ad53 Update issue templates 2025-11-25 05:50:30 -07:00
Aditya Chandel b77539fcc7 Update issue templates 2025-11-25 05:48:38 -07:00
aditya.chandel aa07f5ee74 Add rollback logic to restore deleted files when move fails 2025-11-25 05:30:12 -07:00
Muppetteer e0e1938f2f Refresh autocomplete data lists when book is saved (#1629) 2025-11-25 04:44:59 -07:00
Muppetteer e2bdb6cea7 Enable assign to shelf on shelves and magic shelves (#1628) 2025-11-25 04:43:33 -07:00
Muppetteer bcee8db6c4 Fixes display of Tags field on bulk lock/unlock metadata screen (#1627) 2025-11-25 04:38:55 -07:00
Aditya Chandel 415207d91d Allow duplicate files both within the same library and across different libraries (#1632) 2025-11-25 04:38:18 -07:00
aditya.chandel c6126b5aea Update readme 2025-11-24 21:42:16 -07:00
Aditya Chandel b3ae93fc6b Fix: correctly assign main title and subtitle from <dc:title> elements (#1626) 2025-11-24 21:28:07 -07:00