* 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
* 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
* 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
- 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`
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
- 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`
- 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`
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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`
- 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`
- 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`
- 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`
- 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`
- 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`
- 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`
- Stylelint:
- re-enable `declaration-empty-line-before` in the frontend Stylelint config while leaving the agreed Angular and legacy Sass exceptions unchanged
- SCSS:
- normalize declaration spacing across frontend stylesheets to match the enforced empty-line convention without changing selectors or computed styles
- Validation:
- `just ui stylelint`
- Stylelint:
- re-enable `color-hex-length` in the frontend Stylelint config while keeping the agreed Angular and legacy Sass exceptions as-is
- SCSS:
- normalize repeatable long hex colors to their short form where the value is identical
- Validation:
- `just ui stylelint`