Commit Graph
2132 Commits
Author SHA1 Message Date
Peter Fortuin cb8fa67ecd chore(lint): set LINT_ERROR_THRESHOLD to zero (#238) 2026-04-22 17:26:54 -04:00
James Ward d7867bafc4 fix(api): handle kobo proxy errors during kobo sync (#217)
* fix(api): handle kobo proxy sync failures

when the kobo proxy fails, we no longer fail the sync entirely and
instead just skip the kobo request

* fix(api): always `Accept` application/json

* fix(api): handle edge case for an exception being impossibly raised

* fix(api): update try/catch to be just proxy
2026-04-22 17:26:54 -04:00
James Ward c4107a9ff8 feat(api): use redirect for kobo sync book images (#198)
* refactor(api): simplify routes for kobo thumbnails

the versioned thumbnails are not seemingly called by kobo
and are not in other implementations of kobo sync

* feat(api): use redirect for kobo book images

* chore(api): add documentation for thumbnail redirect
2026-04-22 17:26:54 -04:00
James Ward 66de45c4be refactor: drop unused standalone comicinfo.xml parser (#218) 2026-04-22 17:26:54 -04:00
dependabot[bot]andbrios 052c9323be chore(deps): bump the gradle-dependencies group across 1 directory with 8 updates (#224)
Bumps the gradle-dependencies group with 6 updates in the /booklore-api directory:

| Package | From | To |
| --- | --- | --- |
| org.flywaydb:flyway-mysql | `12.0.3` | `12.2.0` |
| [org.projectlombok:lombok](https://github.com/projectlombok/lombok) | `1.18.42` | `1.18.44` |
| org.apache.pdfbox:pdfbox | `3.0.6` | `3.0.7` |
| com.github.RouHim:jaudiotagger | `2.0.16` | `2.0.19` |
| org.glassfish.jaxb:jaxb-runtime | `4.0.6` | `4.0.7` |
| [gradle-wrapper](https://github.com/gradle/gradle) | `9.4.0` | `9.4.1` |



Updates `org.flywaydb:flyway-mysql` from 12.0.3 to 12.2.0

Updates `org.projectlombok:lombok` from 1.18.42 to 1.18.44
- [Changelog](https://github.com/projectlombok/lombok/blob/master/doc/changelog.markdown)
- [Commits](https://github.com/projectlombok/lombok/compare/v1.18.42...v1.18.44)

Updates `org.apache.pdfbox:pdfbox` from 3.0.6 to 3.0.7

Updates `org.apache.pdfbox:pdfbox-io` from 3.0.6 to 3.0.7

Updates `org.apache.pdfbox:xmpbox` from 3.0.6 to 3.0.7

Updates `com.github.RouHim:jaudiotagger` from 2.0.16 to 2.0.19

Updates `org.glassfish.jaxb:jaxb-runtime` from 4.0.6 to 4.0.7

Updates `gradle-wrapper` from 9.4.0 to 9.4.1
- [Release notes](https://github.com/gradle/gradle/releases)
- [Commits](https://github.com/gradle/gradle/compare/v9.4.0...v9.4.1)

---
updated-dependencies:
- dependency-name: org.flywaydb:flyway-mysql
  dependency-version: 12.2.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: gradle-dependencies
- dependency-name: org.projectlombok:lombok
  dependency-version: 1.18.44
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: gradle-dependencies
- dependency-name: org.apache.pdfbox:pdfbox
  dependency-version: 3.0.7
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: gradle-dependencies
- dependency-name: org.apache.pdfbox:pdfbox-io
  dependency-version: 3.0.7
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: gradle-dependencies
- dependency-name: org.apache.pdfbox:xmpbox
  dependency-version: 3.0.7
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: gradle-dependencies
- dependency-name: com.github.RouHim:jaudiotagger
  dependency-version: 2.0.19
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: gradle-dependencies
- dependency-name: org.glassfish.jaxb:jaxb-runtime
  dependency-version: 4.0.7
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: gradle-dependencies
- dependency-name: gradle-wrapper
  dependency-version: 9.4.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: gradle-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: brios <127139797+balazs-szucs@users.noreply.github.com>
2026-04-22 17:26:53 -04:00
James Ward 97411fa51d refactor(api): use Path for FileUtils.getBookFullPath (#209)
* refactor(api): use `Path` for FileUtils.getBookFullPath

* test: update tests for new behavior
2026-04-22 17:26:53 -04:00
Pedro Nave 85c1749a13 fix(hardcover): use hardcover edition based on ISBN for syncing progress (#173)
* fix: use ISBN to match the edition to sync

* fix: optimize fallback to default editions when ISBN is not present

* chore: added tests for hardcover sync

* fix: handle cases where hardcover does not have page count
2026-04-22 17:26:53 -04:00
James Ward 5f06ab92e9 refactor(api): switch to Spring logging filter (#195)
* refactor(api): switch to Spring logging filter

instead of making our own logging filter via a OncePerRequest,
we can instead use the more fully featured CommonsRequestLoggingFilter
with a bit of customization sprinkled on to ignore websocket requests
and health check requests

* fix(api): check sensitive headers & move up path

* fix: invert path check
2026-04-22 17:26:53 -04:00
74c7ad5502 fix(cbx-reader): add GIF and BMP to supported image extensions (#230)
Co-authored-by: de.banker <hub9ray@gmail.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-22 17:26:53 -04:00
Peter Fortuin 169c9ff1e1 chore(nvm): moved .nvmrc file to the repository root (#237) 2026-04-22 17:26:52 -04:00
Alex 4da5f2be8b chore(frontend): add missing auth service mock (#226) 2026-04-22 17:26:52 -04:00
brios da88da5207 chore(sdkman): add Java version 25.0.2-tem to .sdkmanrc (#228) 2026-04-22 17:26:52 -04:00
brios 4e57719118 chore(dependencies): bump Spring Boot to 4.0.5 and Hibernate to 7.3.0 Final (#223)
* chore(dependencies): bump Spring Boot to 4.0.5 and Hibernate to 7.3.0.Final

* fix(read-status): replace String readStatus with ReadStatus enum in BookRuleEvaluatorService
2026-04-22 17:26:52 -04:00
Alex 8c2a631f9d Symlink CLAUDE.md 2026-04-22 17:26:52 -04:00
Alex 0e94e6b635 Fix primeicons import 2026-04-22 17:26:51 -04:00
James Cox 3fdb63f00d chore(ui): remove remaining series chart template casts
- Series progress chart:
  - replace the remaining `$any($event.target)` template casts with typed input and select handlers
  - keep the search, filter, and sort behavior unchanged while removing leftover template conversion debt
- Validation:
  - `just ui check`
  - `just ui typecheck`
  - `just ui test`
2026-04-22 17:26:51 -04:00
James Cox 43389c8dc4 fix(ui): restore frontend verification after eslint cleanup
- Reader and metadata typing:
  - align ebook and cbx reader event, progress, dialog, and helper types with the stricter checks surfaced by the ESLint cleanup
  - replace unsafe non-null assertions and broad event assumptions with guarded access in reader, metadata, and shelf flows
- Template and component compatibility:
  - tighten menu item typing for Angular template checking and normalize overlay and card click handlers to use explicit DOM event types
  - repair chart, preferences, and websocket factory typings that broke standalone typecheck and production build validation
- Tests:
  - fix the magic shelf form-array assertion so the frontend test suite compiles cleanly under the stricter checker
- Validation:
  - `just ui check`
  - `just ui typecheck`
  - `just ui test`
2026-04-22 17:26:51 -04:00
James Cox 782bd63664 chore(ui): clear reader core any bucket
Replace the final ebook reader any usages with explicit Foliate view, renderer, search, and custom event interfaces.

This completes the frontend ESLint backlog without changing the reader architecture.

Validation: just ui lint
2026-04-22 17:26:51 -04:00
James Cox af9a53dd4e chore(ui): clear reader state any bucket
Replace remaining reader-side any usages outside the core managers with concrete relocate, annotation, renderer, timer, and EPUB metadata types.

This leaves the final no-explicit-any cleanup isolated to event.service and view-manager.service.

Validation: just ui lint
2026-04-22 17:26:51 -04:00
James Cox e12f4ea827 chore(ui): clear reader utility any bucket
Replace reader-adjacent any usages in footer data shapes, settings sync helpers, panel search mapping, legacy font migration, and PDF annotation serialization.

Keep the remaining no-explicit-any backlog isolated to the ebook reader core and annotation/progress surfaces.

Validation: just ui lint
2026-04-22 17:26:50 -04:00
James Cox 3700e356b4 chore(ui): clear settings and stats any bucket
Replace low-risk any usages in settings flows, paginator state handling, and chart helper code with concrete local types.

Leave the remaining no-explicit-any backlog isolated to reader-specific files for the next passes.

Validation: just ui lint
2026-04-22 17:26:50 -04:00
James Cox f7a5d939ae chore(ui): clear helper service any bucket
Replace helper and service any usages with concrete local shapes, typed records, or unknown fallbacks.

Keep runtime behavior unchanged while shrinking the remaining no-explicit-any backlog.

Validation: just ui lint
2026-04-22 17:26:50 -04:00
James Cox 2e66fd30b6 chore(ui): clear test and declaration any bucket
Replace low-risk any usages in test harnesses, specs, and epubjs type declarations with concrete unions, unknown, or Angular form types so the no-explicit-any backlog starts shrinking without changing runtime behavior.

Validation: just ui lint
2026-04-22 17:26:50 -04:00
James Cox 878cfa09c8 chore(ui): clear final prefer-inject bucket
Convert the remaining feature and core constructors flagged by prefer-inject to field injection so the last Angular inject() violations are removed across upload dialogs, core services, and bookdrop flows.

Validation: just ui lint
2026-04-22 17:26:50 -04:00
James Cox 4f7d38a306 chore(ui): clear reader settings prefer-inject bucket
Convert reader settings and shared setup/custom-font components to field injection so these UI surfaces follow the project inject() convention without changing behavior.

Validation: just ui lint
2026-04-22 17:26:49 -04:00
James Cox b3fe4fd598 chore(ui): clear shared prefer-inject bucket
Convert the shared layout shell and shared service constructors to field injection so the frontend shell matches the repo's Angular inject() guidance without changing behavior.

Validation: just ui lint
2026-04-22 17:26:49 -04:00
James Cox 68e3df7cde chore(ui): clear eslint angular style guide bucket
Rename reader dialog outputs away from native DOM event names and convert the menu item component to an element selector so the remaining Angular style-guide lint rules are satisfied without changing behavior.

Validation: just ui lint
2026-04-22 17:26:49 -04:00
James Cox 935b3edced chore(ui): clear eslint optional chain assertion bucket
Replace non-null assertions on optional chains in the library and shelf menu actions with direct entity assertions so the commands keep their current assumptions without tripping the stricter TypeScript lint rule.

Validation: just ui lint
2026-04-22 17:26:49 -04:00
James Cox 79eef411d2 chore(ui): clear eslint expression cleanup bucket
Replace remaining side-effect ternaries with explicit control flow and drop unused error bindings so the affected editors and readers satisfy the current TypeScript lint rules.

Validation: just ui lint
2026-04-22 17:26:48 -04:00
James Cox ac6b44e64e chore(ui): clear eslint control flow bucket
Convert the remaining audit log template ngIf directives to built-in control flow so the template follows the configured Angular control-flow style.

Validation: just ui lint
2026-04-22 17:26:48 -04:00
James Cox eba9688112 chore(ui): clear eslint empty object type bucket
Replace empty object placeholder parameters in dialog helpers with object types so the intent stays object-shaped without relying on the permissive {} type.

Validation: just ui lint
2026-04-22 17:26:48 -04:00
James Cox ea15719b6c chore(ui): clear eslint mechanical style bucket
Replace loose template null checks with strict null and undefined comparisons and convert the remaining simple index loops to for-of iteration.

Keep behavior intact while clearing the low-risk mechanical lint backlog in templates and chart helpers.

Validation: just ui lint
2026-04-22 17:26:48 -04:00
James Cox 18784fd12d chore(ui): clear eslint interaction accessibility bucket
Add keyboard handlers and focus support to clickable UI affordances across reader dialogs, metadata views, cards, and layout controls.

Keep the existing click behavior intact while making non-button elements operable from the keyboard and clearing the remaining template interaction accessibility backlog.

Validation: just ui lint
2026-04-22 17:26:48 -04:00
James Cox b03ecf3a5e chore(ui): clear eslint label-association bucket
- Frontend accessibility cleanup:
  - add concrete `for` and `id` or `inputId` bindings where labels map to real inputs, selects, and number fields
  - convert remaining row headers and grouped-control captions from `<label>` to `<span>` where the markup described composite controls rather than a single form element
- Lint progress:
  - clear the remaining `@angular-eslint/template/label-has-associated-control` backlog from 109 issues to 0
  - reduce total frontend lint errors from 532 to 423 while keeping the next accessibility buckets isolated
- Validation:
  - `just ui lint`
2026-04-22 17:26:47 -04:00
James Cox 0a407f6fae chore(ui): clear eslint presentation-label bucket
- Frontend accessibility cleanup:
  - replace presentational `<label>` elements with `<span>` in settings, reader preferences, and file-mover templates where the text was acting as a control-group heading rather than a form label
  - keep the markup semantics aligned with toggles, sliders, button groups, and custom components instead of forcing fake label associations
- Lint progress:
  - reduce the `@angular-eslint/template/label-has-associated-control` backlog by removing false-positive label markup before the real control-association pass
- Validation:
  - `just ui lint`
2026-04-22 17:26:47 -04:00
James Cox 5dfd1e18d9 chore(ui): clear eslint empty-function bucket
- Frontend lifecycle cleanup:
  - remove empty `ngOnInit` stubs and redundant `OnInit` implementations from components that already initialize through signals or effects
  - drop related unused injections that only supported those empty hooks
- No-op handling:
  - replace empty catch and callback blocks with explicit no-op expressions or early returns so the existing behavior stays unchanged while satisfying lint
  - keep silent failure paths silent where the UI intentionally ignores those errors today
- Validation:
  - ran `just ui lint` and cleared the empty lifecycle, empty function, and `no-empty` bucket; the command still fails on the remaining ESLint backlog
  - ran `just ui check`; deps and typecheck pass, and the remaining failure is the outstanding ESLint backlog
2026-04-22 17:26:47 -04:00
James Cox 0d6f83bed0 chore(ui): clear eslint no-unused-vars bucket
- Frontend lint cleanup:
  - remove unused imports, constants, locals, and callback parameters across the UI codebase
  - keep template and callback signatures intact where bindings still pass event arguments by explicitly consuming the values instead of changing behavior
- Metadata and reader surfaces:
  - trim dead symbols in the metadata editor, viewer, search, and reader flows without mixing in broader refactors
  - preserve existing runtime behavior while tightening the code paths that the ESLint bucket touches
- Validation:
  - ran `just ui lint` and cleared the `@typescript-eslint/no-unused-vars` bucket; the command still fails on the remaining ESLint backlog
  - ran `just ui check`; deps and typecheck pass, and the remaining failure is the outstanding ESLint backlog
2026-04-22 17:26:47 -04:00
James Cox c0dff27f78 style(frontend): enforce selector-class-pattern in scss
- Stylelint:
  - re-enable selector-class-pattern in the frontend Stylelint config
  - keep the selector rename isolated because this rule is the only remaining bucket that crosses stylesheet and template changes
- Series page:
  - rename the metadata card modifier classes to kebab-case in both the stylesheet and template
- Bookdrop and stats:
  - rename the fixed field label and series-name helper classes to kebab-case in the picker stylesheet and template
  - correct the responsive dialog footer selector to PrimeNG's kebab-case class name
- Validation:
  - run just ui stylelint
2026-04-22 17:26:47 -04:00
James Cox ee02f6e386 style(frontend): enforce property-no-vendor-prefix in scss
- Stylelint:
  - re-enable property-no-vendor-prefix in the frontend Stylelint config
  - apply the rule cleanup as its own commit so browser-compatibility changes stay reviewable in isolation
- Styles:
  - remove flagged vendor-prefixed property forms where an unprefixed property already exists or is now used instead
  - clean up duplicate standard declarations left behind by the autofix pass
- Validation:
  - run just ui stylelint
2026-04-22 17:26:46 -04:00
James Cox 0b34a85c50 style(frontend): scope no-invalid-position-declaration for scss mixins
- Stylelint:
  - re-enable no-invalid-position-declaration in the frontend Stylelint config
  - ignore nested @media blocks so shared Sass mixins can keep their responsive declarations without tripping a false positive
- Shared styles:
  - avoid a risky refactor of the auth, panel, and settings mixins, which rely on Sass media bubbling for responsive output
- Validation:
  - run just ui stylelint
2026-04-22 17:26:46 -04:00
James Cox 7058992145 style(frontend): enforce keyframes-name-pattern in scss
- Stylelint:
  - re-enable keyframes-name-pattern in the frontend Stylelint config
  - keep the rule rollout isolated so the animation naming change can be reviewed or reverted independently
- Animation styles:
  - rename camelCase keyframes to kebab-case in the flagged reader, metadata, auth, and directory-picker stylesheets
  - update the matching local animation references in the same files so behavior stays unchanged
- Validation:
  - run just ui stylelint
2026-04-22 17:26:46 -04:00
James Cox 32765de84c style(frontend): enforce declaration-block-single-line-max-declarations in scss
- Stylelint:
  - re-enable declaration-block-single-line-max-declarations in the frontend Stylelint config
  - keep the rule change isolated to a formatting-only commit for easier rollback if needed
- Chart styles:
  - expand compressed declaration blocks in the stats chart styles into multi-line blocks
  - reformat the book flow empty-state styles without changing selectors or declarations
- Layout styles:
  - expand the topbar animation keyframe blocks and bulk ISBN status styles to satisfy the single-line declaration limit
- Validation:
  - run just ui stylelint
2026-04-22 17:26:46 -04:00
James Cox df12acd7fb style(frontend): enforce property-no-deprecated in scss
- Stylelint:
  - re-enable `property-no-deprecated` in the frontend Stylelint config while keeping the agreed Angular and legacy Sass exceptions unchanged
- SCSS:
  - replace deprecated `word-wrap` aliases with `overflow-wrap` in the affected frontend stylesheets and remove duplicate declarations created during the migration
- Validation:
  - `just ui stylelint`
2026-04-22 17:26:46 -04:00
James Cox 1a6588432c style(frontend): enforce declaration-property-value-keyword-no-deprecated
- Stylelint:
  - re-enable `declaration-property-value-keyword-no-deprecated` in the frontend Stylelint config while preserving the agreed Angular and legacy Sass exceptions
- SCSS:
  - replace deprecated `word-break: break-word` usage with `overflow-wrap: anywhere` in the affected frontend stylesheets
- Validation:
  - `just ui stylelint`
2026-04-22 17:26:45 -04:00
James Cox 43412c0d29 style(frontend): enforce at-rule-empty-line-before in scss
- Stylelint:
  - re-enable `at-rule-empty-line-before` in the frontend Stylelint config while preserving the agreed Angular and legacy Sass exceptions
- SCSS:
  - normalize blank-line spacing before Sass includes, media queries, and other at-rules where the repo was inconsistent
- Validation:
  - `just ui stylelint`
2026-04-22 17:26:45 -04:00
James Cox e68938f916 style(frontend): enforce scss dollar-variable-empty-line-before
- Stylelint:
  - re-enable `scss/dollar-variable-empty-line-before` in the frontend Stylelint config while preserving the agreed Angular and legacy Sass exceptions
- SCSS:
  - keep the existing Sass variable block spacing as the enforced convention without requiring additional source changes
- Validation:
  - `just ui stylelint`
2026-04-22 17:26:45 -04:00
James Cox 2ee5dce427 style(frontend): enforce scss dollar-variable-pattern in layout styles
- Stylelint:
  - re-enable `scss/dollar-variable-pattern` in the frontend Stylelint config while keeping the agreed Angular and legacy Sass exceptions intact
- SCSS:
  - rename the remaining camelCase layout Sass variables to kebab-case and update all layout partial references accordingly
- Validation:
  - `just ui stylelint`
2026-04-22 17:26:45 -04:00
James Cox d95424dd22 style(frontend): enforce no-empty-source in scss
- Stylelint:
  - re-enable `no-empty-source` in the frontend Stylelint config while keeping the agreed Angular and legacy Sass exceptions untouched
- SCSS:
  - replace empty stylesheet files with explicit placeholder comments to document that those surfaces intentionally rely on shared styling
- Validation:
  - `just ui stylelint`
2026-04-22 17:26:45 -04:00
James Cox a689751e39 style(frontend): enforce number-max-precision in scss
- Stylelint:
  - re-enable `number-max-precision` in the frontend Stylelint config while keeping the agreed Angular and legacy Sass exceptions unchanged
- SCSS:
  - round overly precise rem values in the shared tag component stylesheet to the configured precision without changing the size scale materially
- Validation:
  - `just ui stylelint`
2026-04-22 17:26:44 -04:00
James Cox 55f448191f style(frontend): enforce rule-empty-line-before in scss
- Stylelint:
  - re-enable `rule-empty-line-before` in the frontend Stylelint config while preserving the agreed Angular and legacy Sass exceptions
- SCSS:
  - normalize blank-line spacing before nested rules and sibling blocks across frontend stylesheets without changing selectors or computed styles
- Validation:
  - `just ui stylelint`
2026-04-22 17:26:44 -04:00