Commit Graph
80 Commits
Author SHA1 Message Date
brios 6c8a907325 feat(pdf): move ebook reader to embedpdf, add bookmarks, remove old pdf.js stuff (#393)
* feat(pdf): move ebook reader to embedpdf, add bookmarks, remove old pdf.js stuff

* feat(pdf): add page number support for bookmarks and enhance mobile navigation

* feat(pdf): implement document ID tracking for search functionality

* feat(pdf): add page number column to book marks and update unique index

* feat(pdf): enhance annotation handling and improve search result scrolling

* feat(pdf): improve layout handling and enhance resize observer functionality

* feat(pdf): improve document viewer initialization and improve close button styling

* fix(pdf): remove 'form' from disabled categories

* feat(pdf): add pan mode functionality and enhance sidebar layout

* feat(pdf): improve book viewer initialization with enhanced element detection

* feat(pdf): add link handling to text selection and improve popup actions

* feat(pdf): enhance link detection and improve selection handling in event service

* feat(pdf): improve accessibility and improve resource management in PDF viewer

* feat(pdf): add resize observer for improved layout handling

* feat(pdf): error handling and improve navigation in PDF reader
2026-04-22 17:27:07 -04:00
brios 1db1b8404a feat(cbx-viewer): add (back) infinite and long-strip modes, fixed. (#390)
* feat(cbx-viewer): add (back) infinite and long-strip modes, fixed.

* feat(reader): improve strip width controls and improve continuation affordance

* fix(cbx-reader): clear debounce timer on layout generation changes
2026-04-22 17:27:07 -04:00
dependabot[bot] fadc1293c8 chore(deps): bump @hono/node-server from 1.19.11 to 1.19.13 in /frontend (#419)
Bumps [@hono/node-server](https://github.com/honojs/node-server) from 1.19.11 to 1.19.13.
- [Release notes](https://github.com/honojs/node-server/releases)
- [Commits](https://github.com/honojs/node-server/compare/v1.19.11...v1.19.13)

---
updated-dependencies:
- dependency-name: "@hono/node-server"
  dependency-version: 1.19.13
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-04-22 17:27:06 -04:00
brios b2ff955e9c fix(cache): improve cache handling by checking availability before operations (#397)
* fix(cache): improve cache handling by checking availability before operations

* fix(cache): improve cache handling and improve error management
2026-04-22 17:27:06 -04:00
brios 4527d43e84 fix(reader): add fetchFreshBookDetail method to ensure up-to-date reading position across devices (#358)
* fix(reader): add fetchFreshBookDetail method to ensure up-to-date reading position across devices

* test(audiobook): enhance tests to verify queryClient interactions for progress updates

* fix(audiobook): include audiobookProgress and fileProgress in progress payload
2026-04-22 17:27:06 -04:00
NamLe029 d502c18948 fix(frontend): fixes library health pinging even when the user is not authenticated (#385)
* fix(frontend): library health pings even not authenticated

* test

* authInitialized guard

* subscription
2026-04-22 17:27:05 -04:00
James Ward 91c19739dc feat(api): allow disable of kobo store proxy (#337)
* chore(api): fix typing for kobo sync service

* feat(api): add more paths for grimmory/kobo API

* fix(api): disable kobo features if kobo is unavailable

* feat(api): add proxy flag to kobo setting

* feat(api): adhere to kobo proxy enabled flag

* feat(ui): add forward requests toggle

* fix(ui): load setting

* style: use assertNotNull

* fix: reduce advertised routes

this cuts down the advertised routes - in particular to reduce the
number of auth-related requests we will be taking on.  we may eventually
want to do this but I want to reduce the amount of change in this PR

* fix: undo disable of kobo features

This reverts commit 1b242fa6614084b05c58ff3b24e142adb1bcf729.
2026-04-22 17:27:05 -04:00
dependabot[bot] f7294bf370 chore(deps): bump lodash-es from 4.17.23 to 4.18.1 in /frontend (#344)
Bumps [lodash-es](https://github.com/lodash/lodash) from 4.17.23 to 4.18.1.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.23...4.18.1)

---
updated-dependencies:
- dependency-name: lodash-es
  dependency-version: 4.18.1
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-04-22 17:27:04 -04:00
brios 74c5bbd81a refactor(pdf-viewer): improve worker and blob handling for better loading of wasm PDFium workers (#333)
* refactor(pdf-viewer): improve worker and blob handling for better loading of wasm PDFium workers

* feat(doc-viewer): add dismissible info banner for saved changes
2026-04-22 17:27:03 -04:00
brios 707f0a8b9b fix(file): update file type and size retrieval to use primaryFile structure (#383) 2026-04-22 17:27:03 -04:00
brios a176be3e74 fix(search): replace dropdown with popover for search results and improve visibility handling (#355)
* fix(search): replace dropdown with popover for search results and improve visibility handling

* fix(search): improve search results popover styling and transition effects
2026-04-22 17:27:01 -04:00
brios 64083fe9b7 feat(pdf): integrate PDFium4j for PDF processing and metadata extraction (#281)
* feat(pdf): integrate PDFium4j for PDF processing and metadata extraction

* feat(pdf): update PDFium4j to version 0.12.0 and optimize XMP metadata handling

* feat(pdf): update PDFium4j to version 0.13.0

* feat(pdf): enhance cross-compilation support and improve XML parsing in metadata extraction

* Delete dev.local-libs.docker-compose.yml

* feat(pdf): update PDFium4j to version 0.14.0
2026-04-22 17:27:01 -04:00
briosandcoderabbitai[bot] ad3a981ad1 fix(hibernate): improve transaction management and optimize entity fetching (#176)
* fix(hibernate): improve transaction management and optimize entity fetching

* chore(tests): clean-up comments

* chore: fix config issue in the kotlin dsl

* fix(hibernate): fix entity equality checks

* fix(hibernate): add transactional read-only support to BookService

* Update booklore-api/src/main/java/org/booklore/model/entity/BookLoreUserEntity.java

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* fix(hibernate): remove redundant annotations in BookLoreUserEntity

* fix(hibernate): import Hibernate

* fix(tests): fix merge conflict caused errors

* refactor(book): optimize book retrieval methods and reduce cache sizes

* refactor(metadata): remove lazy loading from description field in BookMetadataEntity

* fix(build): increase max heap size for test tasks

---------

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2026-04-22 17:27:01 -04:00
Alex be0b717ff4 perf(ui): decouple book browser rendering pipeline (#341)
* perf(ui): deferred processing for book browser

* perf(ui): Further optimisation + toolbar tweaks

* perf(ui): layered pipeline, toolbar and error-state fixes

- Layered computed signals for memoized pipeline stages
- bookIndexById map replaces O(n) indexOf in template
- Remove BookFilterOrchestrationService
- Filter sidebar icon: pi-filter / pi-filter-fill
- View toggle moved into display settings popover
- Toolbar alignment fix
- Error state no longer stuck on skeleton

* perf(ui): split cache pathways + added specs

* perf(ui): final spec updates

* perf(ui): revert view toggle change

* perf(ui): review followup

* perf(ui): make spec loading state explicit
2026-04-22 17:27:01 -04:00
NamLe029andbrios 5495225ad5 feat(web-reader): HTTP Caching & Cache Storage for content responses (#75)
* Squashed commit of the following:

commit e799d02a1b3557fcbe9c67bd276ced9ddc783e83
Author: Nam Le <namle888029@gmail.com>
Date:   Wed Apr 1 18:47:08 2026 +0700

    should be done

commit d232c4d48bd97dbc7d8d800cdb3d18e85a73b8ec
Author: Nam Le <namle888029@gmail.com>
Date:   Wed Apr 1 18:32:49 2026 +0700

    ok done

commit 911d69c3347c6596ae0feb3261355f7b234b6171
Author: Nam Le <namle888029@gmail.com>
Date:   Wed Apr 1 18:32:15 2026 +0700

    dont break pls

commit 498e996bb42a74f9edda65b914a9124b15a8baea
Author: Nam Le <namle888029@gmail.com>
Date:   Sat Mar 21 11:35:32 2026 +0700

    changes:
    + avoid double caching
    + detach get & validate logic
    + error handling for cache insert

commit a215d11d6855a3381e4f2ecbca32d45d4b06869f
Author: Nam Le <namle888029@gmail.com>
Date:   Fri Mar 20 22:01:37 2026 +0700

    fix dup

commit 539b70f6f9c859bdf6d2a2557e3ba1c1fc10a601
Author: Nam Le <namle888029@gmail.com>
Date:   Fri Mar 20 21:46:43 2026 +0700

    fix
    + leaking Blob resource
    + scss lint
    + extra `}`

commit d1c8ceea944c0a25a9a2a54bb83122e0a9480b05
Author: NamLe029 <146613205+NamLe029@users.noreply.github.com>
Date:   Fri Mar 20 21:34:14 2026 +0700

    Apply suggestions from code review

    Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

commit ca14572c8c6df143295ebff2acf210f3a5164ed5
Author: Nam Le <namle888029@gmail.com>
Date:   Fri Mar 20 20:25:46 2026 +0700

    wording

commit 558b0f69fe6a6736aa114f592abd87451b173ccb
Author: Nam Le <namle888029@gmail.com>
Date:   Fri Mar 20 19:51:28 2026 +0700

    remove dexie

commit 4b0750824685e70dd5a13fd9e899064fd6b009c6
Author: Nam Le <namle888029@gmail.com>
Date:   Fri Mar 20 19:22:43 2026 +0700

    use observable for pdf bookdata

commit 1c88aff7c01a51a5263aca3522797624ed794862
Author: Nam Le <namle888029@gmail.com>
Date:   Wed Apr 1 18:07:14 2026 +0700

    switch to cache storage

commit c766428c32b97fab339b3438b6c4e693082a07a3
Author: Nam Le <namle888029@gmail.com>
Date:   Fri Mar 20 15:13:42 2026 +0700

    error handling

commit bdbaa8f5f769fcd80f3f93aac0c52ffba8bcec27
Author: Nam Le <namle888029@gmail.com>
Date:   Fri Mar 20 14:16:49 2026 +0700

    cleanup unecessary validation

commit 56e264ee5570948cf1512c8ce4de4622430d3cdc
Author: Nam Le <namle888029@gmail.com>
Date:   Fri Mar 20 12:50:45 2026 +0700

    apply simpleCacheService

commit 45ef6ae5d460b27d134b696951fd613eefcb2d64
Author: Nam Le <namle888029@gmail.com>
Date:   Wed Apr 1 18:02:44 2026 +0700

    interface for local settings

commit 421305dbcb108647b5f0cc29c567de5daee2a93d
Author: Nam Le <namle888029@gmail.com>
Date:   Wed Apr 1 18:01:20 2026 +0700

    simple cache service for caching request response

commit 1aa81b4a08b006d52e398da61464527fd90e51cb
Author: Nam Le <namle888029@gmail.com>
Date:   Fri Mar 20 12:47:54 2026 +0700

    local settings service for device-scoped settings

commit 647b4f561336617651f5c4f14fe83dc70df3f30f
Author: Nam Le <namle888029@gmail.com>
Date:   Fri Mar 20 12:46:35 2026 +0700

    add dexie dependency

commit d8bfed64b0096c2d99052fceee718413b5dc8b40
Author: Nam Le <namle888029@gmail.com>
Date:   Fri Mar 20 12:46:00 2026 +0700

    enable HTTP Caching (Last-Modified) for PDF, EPUB, audiobook content response

* delete unused

* final touch

* move local settings

* test

* remove test case for deleted  method

* lint

---------

Co-authored-by: brios <127139797+balazs-szucs@users.noreply.github.com>
2026-04-22 17:27:00 -04:00
brios 84ff5953f6 chore(dependencies): update @embedpdf packages to version 2.12.0 (#325)
* chore(dependencies): update @embedpdf packages to version 2.12.0

* chore(dependencies): update @embedpdf packages to version 2.12.1
2026-04-22 17:26:59 -04:00
Alex f376b68873 chore(ui): enforce placeholder aspect ratios (#320)
* chore(ui): enforce placeholder aspect ratios

* chore(ui): add proper cover crop behavior
2026-04-22 17:26:59 -04:00
Alex 2fd7310e81 refactor(ui): replace SVG artwork placeholders with CSS (#292)
* chore(ui): replace SVG placeholders with CSS alternative

* fix(ui): Placeholder review followup
2026-04-22 17:26:58 -04:00
Alexandbrios 351074fcb6 fix(ui): Fix book scroll judder (#309)
Co-authored-by: brios <127139797+balazs-szucs@users.noreply.github.com>
2026-04-22 17:26:58 -04:00
Alex 55a6343f65 refactor(frontend): decouple app shell from PrimeNG layout system (#307)
* refactor(layout): decouple shell from PrimeNG

* fix(frontend): review fixes for layout decoupling

- Rewrite layout service spec to match new API surface
- Remove dead ToastModule import from AppLayoutComponent
- Add missing type="button" to profile and logout buttons
- Add missing i18n keys to all non-English locales

* chore(frontend): Layout shell consistency

* chore(frontend): shell and routing improvements

* chore(frontend): remove stray shimmer effect

* chore(frontend): code cleanup

* chore(ui): Fix navitem types consistency

* chore(frontend): simplify layout structure + imports

* chore(frontend): remove empty files

* chore(frontend): Menu component cleanup

* chore(frontend): remove nav translation layer

* chore(frontend): revert stray artwork change

* chore(frontend): revert author animation tweak

* chore(frontend): review fixes

* fix(frontend): restore topbar template after rebase conflict
2026-04-22 17:26:57 -04:00
brios 61b9b53a60 feat(reader): add document mode to the PDF viewer, overhaul PDF viewer, add different modes to CBX viewer (#306)
* feat(reader): add document mode to the PDF viewer, overhaul PDF viewer, add different modes to CBX viewer

* feat(reader): improve reader settings with brightness, emulate book mode, and click-to-paginate options

* feat(reader): add long strip scroll mode and update related settings
2026-04-22 17:26:57 -04:00
Alexandbrios 2a2dee8e8f chore(ui): lazily load filter sidebar content (#283)
* chore(ui): filter sidebar lazy loading

* fix(ui): remove spec

---------

Co-authored-by: brios <127139797+balazs-szucs@users.noreply.github.com>
2026-04-22 17:26:56 -04:00
James Cox a3c5da988c chore: expand and generate specs for the frontend code section (#242)
* docs(plan): add frontend 90 coverage execution plan

- Planning:
  - persist the frontend 90% coverage strategy under docs/plans for reuse across long-running execution and compaction events
  - capture the operating rules for the run, including per-bucket ordering, acceptance checks, and runtime-code-change policy
- Workflow:
  - establish a durable in-repo reference that later progress updates can anchor to without re-deriving context

* chore(testing): strengthen frontend coverage tooling

- Harness:
  - consolidate the Vitest configuration Angular actually uses and add richer coverage reporters for iterative analysis
  - add browser-test dependencies for Angular Testing Library, MSW, Playwright, and canvas-aware DOM assertions
- Workflow:
  - add just/package scripts for coverage summaries and browser-test setup so the coverage push can run through the repo command surface
  - expand test setup with stable browser shims needed by interactive frontend tests without touching runtime application code

* fix(frontend): restore chart datalabel typings for test builds

- Frontend build:
  - add a type-only declaration that imports `chartjs-plugin-datalabels`
  - restore the plugin's Chart.js option augmentation during Angular test compilation
- Why:
  - `just ui test` and `just ui coverage` were blocked by stats chart option typing errors
  - this keeps the fix isolated from the new test work and does not change runtime behavior

* test(auth): cover routing guards and login flows

- Auth and routing:
  - add specs for the route table, auth guard, auth interceptor, and setup/login guards
  - cover token expiry, default-password redirects, refresh retry behavior, and setup redirects
- Login surface:
  - add login component coverage for query-param messaging, local login outcomes, OIDC init, and forced OIDC mode
  - stabilize the Angular test harness for direct targeted Vitest runs with compiler/test setup support
- Validation:
  - pass `just ui typecheck`
  - pass `just ui lint`
  - pass `just ui test`
  - pass `just ui coverage`

* chore(testing): force frontend tests to run once

* test(core-security): expand auth and oidc coverage

* chore(frontend): refresh ui dependencies and dev stack

- Frontend dependencies:
  - bump the Angular, Vitest, Testing Library, Playwright, linting, and related Yarn package ecosystem versions
  - regenerate the lockfile to keep the workspace aligned with the updated package set
- Dev compose:
  - keep the database service on the existing `backend_db` name while retaining the frontend `node_modules` volume setup
  - remove the frontend-to-backend startup ordering dependency to avoid coupling container startup semantics unnecessarily
- Lint compatibility:
  - rewrite the reading survival median-dropout branch to use a single derived constant instead of redundant assignment
  - simplify theme path replacement in the layout service so the updated lint rules pass without changing runtime behavior
- Validation:
  - run `docker compose -f dev.docker-compose.yml config`
  - run `just ui lint`
  - run `just ui check`
  - run `just ui typecheck`
  - run `just ui test`

* test(frontend): cover core and shared startup services

- Core config:
  - add language initializer coverage for persisted, legacy, browser-locale, and english fallback paths
  - cover the auth initialization signal service state transition
- Shared services:
  - add local storage, startup, and version service specs around parsing, error handling, token-gated startup, and HTTP requests
- Testing:
  - keep the batch green under the Angular test harness and drop the brittle main bootstrap spec attempt for now

* chore(testing): prepare frontend swarm controller

- Planning:
  - rewrite the persistent frontend coverage plan around a controller branch with repo-local worktrees and bounded worker ownership
  - keep the swarm execution rules, integration order, and validation expectations in docs/plans/frontend-90-coverage-plan.md
- Testing tooling:
  - harden the coverage summary script so it resolves reports from the frontend root and reports branch and line coverage correctly
  - simplify the secondary Vitest config so it cleanly inherits the Angular-backed base config
- Repo hygiene:
  - reserve .worktrees/ as the only local worktree root and ignore it in the repository

* test(frontend): cover author notebook and series services

- Author browser:
  - cover cache patching, debounced scale persistence, and selection-range behavior
- Notebook and series browser:
  - cover notebook query parameter construction and series service state/summary logic
  - add scale preference coverage for series browsing persistence
- Validation:
  - ran just ui typecheck, just ui lint, and just ui test for the controller bucket

* test(core): cover transloco and auth bootstrap branches

- Core config:
  - add inline transloco loader coverage for english defaults, lazy language merges, and unsupported-language fallback
- Core auth:
  - broaden auth initializer coverage across local auth, remote auth, missing settings, and remote login failure paths
  - add the missing OIDC discovery failure branch when the provider omits an authorization endpoint
- Validation:
  - ran just ui typecheck, just ui lint, and just ui test in the f90-core-auth worktree

* test(book): add service and helper coverage

- Book query/cache surfaces:
  - expand invalidation coverage for list, detail, and recommendation query paths
  - cover cache patch helpers for metadata, field updates, and updater callbacks
  - cover empty delete-input handling
- Book service/helper surfaces:
  - add query-key assertions for the primary book and library keys
  - cover navigation state transitions and derived computed state
  - cover read-status icon, class, tooltip, and visibility branches
  - cover sort service branches for no-sort, natural ordering, array comparisons, null handling, and unknown fields

* test(shared): cover shared helpers and lightweight services

- Utilities:
  - add direct tests for placeholder resolution and custom-font dropdown shaping
  - cover icon category list generation for deterministic shared metadata
- Services:
  - verify the book metadata host subject publishes switch requests
  - exercise the menu source/reset subjects used by the shared layout shell
- Scope:
  - keep the first shared bucket small and isolated from the heavier HTTP-backed service specs

* fix(testing): restore targeted vitest setup

- frontend:
  - restore the frontend Vitest wrapper config so direct targeted runs load `src/test-setup.ts`
  - keep the Angular base config as the shared source while preserving per-run spec discovery for local and worktree validation
- workflow:
  - make worker branches able to validate narrow spec buckets without falling back to the full Angular test builder path

* test(metadata): cover sidecar and review option flows

- metadata services:
  - add HTTP contract coverage for sidecar fetch, sync, import, and export endpoints
- metadata dialogs:
  - cover fetch option initialization and request submission behavior
  - cover provider field selection persistence and translation lookups
  - cover review dialog task loading, save progression, and close/error branches
- validation:
  - exercise the first metadata bucket with a targeted Angular Vitest run plus frontend typecheck and lint

* test(settings): cover core settings service branches

- Settings services:
  - cover email provider and recipient CRUD flows, including defaults and deletions
  - cover email sending, OPDS user management, and content restriction CRUD
  - cover task scheduling, cron updates, task progress, and metadata refresh toast branches
- Preferences components:
  - cover reader preference persistence with nested path updates and early-return behavior
- Validation:
  - targeted settings test run via `ng test --runner vitest --include src/app/features/settings/**/*.spec.ts --watch=false`
  - `just ui typecheck`
  - `just ui lint`

* test(settings): cover preference shell components

- Reader preferences shell:
  - cover application-mode scope hydration and update forwarding for PDF, new PDF, EPUB, and CBX
- Metadata center mode shell:
  - cover hydrated view-mode and series-view state plus save behavior for both user-present and user-missing branches
- View preferences shell:
  - cover default sidebar width fallback and width persistence alongside the CSS variable update path
- Validation:
  - settings subtree run via `ng test --runner vitest --include src/app/features/settings/**/*.spec.ts --watch=false`
  - `just ui typecheck`
  - `just ui lint`

* test(readers): cover ebook bookmark and page decorator helpers

- Reader bookmark service:
  - add deterministic coverage for missing-position handling, success toasts, default titles, duplicate conflicts, and generic failure resets
- Page decoration:
  - add focused coverage for header and footer rendering across missing renderer state, single-column layout, multi-column layout, and theme-aware styling
- Validation:
  - reran the exact small reader bucket alongside `just ui typecheck` and `just ui lint` to keep the first readers tranche green

* test(book-browser): cover support service branches

- Query-param orchestration:
  - cover explicit sort/filter parsing, legacy preference fallback, and default sort fallback
  - exercise query-param updates for view mode, sort, filter mode, filter sync, and series expansion detection
- Browser preference services:
  - cover table column merging, visible-column ordering, and persistence skip/save branches
  - cover cover-scale loading, unchanged-scale bypass, debounce persistence, and error reporting
- Validation:
  - run the book spec glob for the feature area
  - verify frontend typecheck and lint remain green

* test(metadata): cover fetch option state branches

- Metadata options:
  - add deterministic coverage for advanced fetch option hydration, submit validation, bulk provider assignment, and reset behavior
  - exercise the error toast path when enabled metadata fields are missing provider priorities
- Multi-book fetch:
  - verify dialog initialization resolves the requested books and refresh type
  - cover signal-driven adoption of default metadata refresh options from app settings
- Validation:
  - run targeted Angular metadata specs for sidecar, provider selector, fetch options, advanced fetch options, multi-book fetch, and review dialog
  - run just ui typecheck and just ui lint in the metadata worktree

* test(metadata): cover sidecar viewer and reading sessions

- Reading sessions:
  - add coverage for initial loading, book switches, formatting helpers, and progress or location display branches
  - verify failure handling clears loading without leaking stale session state
- Sidecar viewer:
  - cover sync-status lookup, sidecar content loading, import/export success and failure toasts, and status label or severity mapping
  - suppress expected console noise in negative-path assertions while keeping the error branches exercised
- Validation:
  - run targeted Angular metadata specs for sidecar viewer and book reading sessions
  - run just ui typecheck and just ui lint in the metadata worktree

* test(metadata): cover manager aggregation and routing helpers

- Metadata manager state:
  - cover effect-driven aggregation of authors, categories, moods, tags, series, publishers, and languages from loaded books
  - verify loading gating so metadata extraction waits for the shared book list to settle
- Metadata manager routing and selection:
  - cover tab query-param handling, page-title updates, active-tab navigation, selection helpers, and filtered book navigation
  - exercise string matching and table filter plumbing without relying on template trivia
- Validation:
  - run targeted Angular metadata spec for metadata manager
  - run just ui typecheck and just ui lint in the metadata worktree

* test(metadata): cover picker review and save branches

- Metadata picker:
  - cover provider-field visibility, suggestion filtering, metadata patching, review-state reset, and autocomplete or drag-drop helpers
  - exercise copied-value handling, locked-field warnings, save behavior, audible cover upload, lock toggles, hover state, and comic or format helper branches
- Scope:
  - keep the bucket purely in metadata picker specs without runtime changes for testability
- Validation:
  - run targeted Angular metadata spec for metadata picker
  - run just ui typecheck and just ui lint in the metadata worktree

* test(stats): cover library filters and survival chart state

- Cover library stats service behavior for empty libraries, translated fallbacks, selected-library filtering, and formatted totals
- Cover user chart config state for load, toggle, reorder, reset, bulk enable/disable, and malformed storage fallback
- Cover reading survival chart behavior for loading, empty, and populated source data paths
- Validation:
  - targeted stats specs through the Angular Vitest harness
  - `just ui typecheck`
  - `just ui lint`

* test(frontend): harvest worker coverage batches

- Core and auth:
  - expand transloco, auth initialization, OIDC, interceptor, reuse strategy, and loading coverage without changing runtime code
  - repair merged worker specs so they stay compatible with the Angular test harness and repo lint rules
- Book, settings, and app shell:
  - stabilize the harvested book-browser expectations, meta-center view-mode spec, and app component coverage additions
  - keep the merged batch green after pulling worker output onto the controller branch
- Shared and readers:
  - add low-risk shared model, validator, and cache specs
  - pull in deterministic ebook and cbx reader service coverage from the closed worktrees
- Validation:
  - run just ui typecheck
  - run just ui lint
  - run just ui test

* test(frontend): expand browser and reader service coverage

- Browser services:
  - strengthen author, series, notebook, and dashboard service specs to cover cache state, preferences, and supporting data flows
  - add book-browser service and filter specs for entity lookup, selection, scroll restoration, search normalization, sidebar filtering, and series collapse behavior
- Reader services:
  - add ebook reader service coverage for annotation rendering, left-panel note/search state, and sidebar navigation, bookmarks, and annotation synchronization
- Validation:
  - pass `just ui typecheck`, `just ui lint`, and `just ui test`

* test(playwright): add port-safe smoke harness

- Harness:
  - replace the ad hoc browser scaffold with an env-driven Playwright config that supports unique worker ports, per-port output directories, and non-watch dev-server startup
  - ignore Playwright output and browser cache artifacts so repeated smoke runs do not dirty the branch
- Browser smoke baseline:
  - add a single canonical login-and-books scenario fixture with tightly scoped API mocks and auth seeding helpers
  - document the authoring rules for future browser scenarios so agents reuse the harness instead of inventing new configs and catch-all route shims
- Planning and validation:
  - record the port-safe Playwright rules in the frontend coverage plan
  - pass `just ui typecheck`, `just ui lint`, `just ui test`, and `PLAYWRIGHT_PORT=4301 corepack yarn e2e playwright/login-and-books.spec.ts --list`

* test(playwright): route browser commands through just

- Harness:
  - add dedicated frontend Just recipes for Playwright server startup, single-spec execution, and test listing
  - switch the Playwright web server command to use the frontend Justfile instead of invoking Yarn directly
- Docs:
  - update the Playwright README to document the Justfile entrypoints and the port-safe single-spec command
  - record the same Justfile rule in the frontend 90 percent coverage plan so future workers follow the same command surface
- Validation:
  - ran `just ui typecheck`
  - ran `just ui lint`
  - ran `just ui test`
  - ran `just ui check`
  - ran `just --justfile frontend/Justfile --working-directory frontend e2e-list playwright/login-and-books.spec.ts`
  - ran `PLAYWRIGHT_PORT=4301 just --justfile frontend/Justfile --working-directory frontend e2e-file playwright/login-and-books.spec.ts` and confirmed the remaining failure is Chromium launch sandboxing, not port or watch configuration

* docs(frontend): refresh 90 coverage execution state

- Controller state:
  - replace the stale swarm assumptions with the current controller-driven launch record
  - record the repaired worktree layout, paused notifier state, and durable next actions
- Incident tracking:
  - log the bad worktree setup, false-positive notification path, and rejected worker buckets
  - document why the book, metadata, readers, and shared lanes are not integration-ready
- Coverage checkpoint:
  - capture the validated core lane totals and accepted candidate bucket
  - preserve the exact validation commands and commit proposal for the first integration step

* test(core-auth-routes): add branch coverage for auth settings and route helpers

- Core auth settings:
  - cover provider persistence, group sync, force-only handling, and mapping dialog flows
  - cover delete-group-mapping success and failure paths
- Core utilities:
  - cover route reuse null-handle and missing scroll-position branches
  - cover secure image fallback and object URL cleanup
  - cover loading overlay custom-message and multi-loader cursor behavior
- Validation:
  - `just ui typecheck`
  - `just ui lint`
  - `just ui test`
  - `just ui coverage`
  - `just ui coverage-summary`

* test(bookdrop): cover file review selection flows

- File review state:
  - cover default path derivation, selection counts, and finalize eligibility across current-page and select-all modes
  - cover selection toggles so cached UI state stays in sync with bulk selection state
- Destructive action guards:
  - cover the reset, finalize, and delete warning paths when no files are selected
- Validation:
  - `just ui typecheck`
  - `just ui lint`
  - `just ui test`
  - `just ui coverage`
  - `just ui coverage-summary`

* test(readers): cover ebook selection state transitions

- Reader selection state:
  - cover overlapping-annotation detection and popup state updates for text selections
  - cover preview, copy, search, and dismiss actions for the current selection
- Reader annotation flows:
  - cover annotation creation, ignored deletion responses, and preview cleanup on hide
- Validation:
  - `just ui typecheck`
  - `just ui lint`
  - `just ui test`
  - `just ui coverage`
  - `just ui coverage-summary`

* docs(frontend): record controller checkpoint after worktree recovery

Capture the current root truth after stop-all review and lane recovery.

- Root is at 6c78b1de and ahead of origin by 4 commits.
- Integrated buckets: core/auth/routes, bookdrop, and readers(selection-service only).
- Current combined coverage: statements 21.62%, branches 16.57%, functions 18.31%, lines 37.45%.
- Notification handling is paused behind the single local loop using /tmp/f90-status-loop.lock and local-scripts/.f90-status-loop.pid.
- Shared batch was discarded; metadata, readers, and shared worktrees were cleaned and recreated for restart.
- Next action is to restart one clean high-yield lane, starting with metadata + settings + stats if it remains test-only.

* test(metadata-viewer): cover metadata viewer branches

Add the accepted metadata viewer spec batch in the root checkout.

- Owns only frontend/src/app/features/metadata/component/book-metadata-center/metadata-viewer/metadata-viewer.component.spec.ts.
- Validation already passed in root: focused spec, typecheck, lint, test, coverage, and coverage-summary.
- Coverage impact from the accepted batch: metadata-viewer.component.ts reached 38.28% branch coverage and the metadata/settings/stats lane moved to 13.08% branch coverage.

* docs(frontend): record metadata viewer integration checkpoint

Refresh the durable frontend coverage plan after integrating the accepted metadata viewer batch.

- Root HEAD is now d3f05207 after the metadata viewer spec commit.
- Current root coverage checkpoint: statements 23.00%, branches 17.94%, functions 19.49%, lines 38.37%.
- Metadata-viewer.component.ts reached 38.28% branch coverage, and the metadata/settings/stats lane moved to 13.08% branches (464/3548).
- Next recommended lane remains metadata/settings/stats, starting with metadata-searcher if it can stay test-only; otherwise pivot to the book/author/series/notebook lane.

* test(readers): stabilize ebook event service spec

- Replace the brittle spy typing with a plain callable function type.
- Use a deterministic test document defaultView so selection and frame-element behavior are stable.
- Adjust the click and popup expectations to match the service's actual reader behavior.
- Verify the readers lane with just ui typecheck, just ui lint, and just ui test.

* test(book): cover book card decision paths

- Add focused book-card coverage for derived display state and progress rendering.
- Exercise forced ebook reads, display-format resolution, and guarded card selection.
- Cover series routing and metadata-center dialog behavior without touching runtime code.
- Verify the root frontend gates with `just ui typecheck`, `just ui lint`, and `just ui test`.

* test(shared): cover url helper routing fallbacks

- Cover tokenized thumbnail and audiobook URL generation paths.
- Exercise unsupported primary-reading fallbacks and supported reader routing.
- Verify series and generic filter URL construction without changing runtime code.
- Verify the root frontend gates with just ui typecheck, just ui lint, and just ui test.

* test(author-browser): cover author service control flow

- Cover metadata-search query param branching and quick-match region defaults.
- Exercise SSE auto-match parsing and error propagation paths.
- Cover token-dependent author media URL generation without touching runtime code.
- Verify the root frontend gates with just ui typecheck, just ui lint, and just ui test.

* docs(frontend): record post-lane integration checkpoint

- Record the current root HEAD and integration state after the readers, book, and shared root-side commits.
- Capture the latest coverage-summary output: statements 24.75%, branches 19.73%, functions 20.24%, lines 38.79%.
- Preserve the metadata-viewer checkpoint as historical context while noting the current root tip and next lane recommendation.
- Keep the restart lanes and notifier pause state visible for the next controller wave.

* test(settings): cover task management control flow

- Add focused task-management coverage for load failures, progress updates, and stale rerun gating.
- Exercise async queueing, sync completion and failure handling, cancel flows, and cron validation paths.
- Cover helper methods and task metadata behavior without touching runtime code.
- Verify the frontend gates with just ui typecheck, just ui lint, just ui test, and just ui coverage-summary.

* test(frontend): add todo stubs for missing spec files

- Frontend test scaffolding:
  - add 267 missing sibling spec files under `frontend/src/app`
  - use skipped Vitest placeholders so every stub is explicitly non-executing coverage scaffolding
  - include a `TODO(frontend-coverage)` marker and a matching test-level TODO in each new spec

- Coverage workflow:
  - make the remaining unowned frontend surfaces visible in the test tree without inventing runtime changes
  - create a consistent place for future targeted coverage work across core, features, and shared lanes

- Validation:
  - run `just ui typecheck`
  - run `just ui lint`
  - run `just ui test`
  - run `just ui check`

* test(frontend): cover pure models and config contracts

- Coverage: add type-level specs for pure frontend config, model, and enum surfaces under core, author-browser, book, metadata, readers, and shared.
- Intent: replace placeholder specs with cheap deterministic assertions that lock down static contract behavior without runtime seams.
- Validation: run just ui typecheck, just ui lint, and just ui test.

* test(frontend): cover request payload and contract models

- Coverage: add specs for additional book, metadata, notebook, readers, series-browser, and shared request or model contracts.
- Intent: keep the stub-replacement pass moving through deterministic type-bearing files before shifting into heavier service and component surfaces.
- Validation: run just ui typecheck, just ui lint, and just ui test.

* test(frontend): cover query keys and barrel exports

- Coverage: add tests for shared and settings query keys, email contracts, metadata exports, and audiobook barrel exports.
- Intent: close out low-risk placeholder specs where real value comes from locking contract shape and export stability.
- Validation: run just ui typecheck, just ui lint, and just ui test.

* test(frontend): cover larger model defaults and dashboard contracts

- Coverage: add specs for the main app-settings, dashboard, and book models.
- Intent: finish the remaining pure model stubs before shifting toward control-flow and service behavior.
- Validation: run just ui typecheck, just ui lint, and just ui test.

* test(frontend): cover setup and guard utilities

- Coverage: add deterministic tests for setup services, setup guards, security guards, websocket helpers, and small filter helpers.
- Intent: replace placeholder coverage with branch-bearing guard and bootstrap assertions that do not require runtime code changes.
- Validation: run just ui typecheck, just ui lint, and just ui test.

* test(frontend): cover lightweight shared services

- Coverage: add tests for page title, settings helper, icon picker, metadata-match weights, and notification event services.
- Intent: convert low-friction service placeholders into real control-flow coverage before moving to HTTP-heavy wrappers.
- Validation: run just ui typecheck, just ui lint, and just ui test.

* test(frontend): cover shared HTTP service wrappers

- Coverage: add request and response tests for shared annotation, note, bookmark, reading-session, websocket, and group-mapping services.
- Intent: replace generic HTTP-wrapper stubs with real endpoint-shape coverage that can fail honestly when request contracts drift.
- Validation: run just ui typecheck, just ui lint, and just ui test.

* test(frontend): cover metadata utilities and book HTTP helpers

- Coverage: add tests for metadata form and utility services, file operations, book cover helpers, metadata progress, and metadata-task behavior.
- Intent: push coverage into utility and helper layers that affect metadata control flow without needing heavy component harnesses.
- Validation: run just ui typecheck, just ui lint, and just ui test.

* test(frontend): cover shared utilities and document seam-heavy specs

- Coverage: add real tests for theme, PDF annotation, audiobook session, and config helpers while converting the remaining runtime-heavy shared stubs into explicit seam notes.
- Intent: separate deterministic coverage wins from surfaces that still need browser or runtime harnesses later.
- Validation: run just ui typecheck, just ui lint, and just ui test.

* test(frontend): cover layout upload and reader-session services

- Coverage: add real tests for layout service, background upload, audiobook service, icon service, and reading-session behavior.
- Intent: grow coverage through shared layout and reader utilities without changing runtime code.
- Validation: run just ui typecheck, just ui lint, and just ui test.

* test(frontend): cover lightweight settings wrappers

- Coverage: add tests for directory-picker utilities, audit-log service behavior, and the low-friction library-loading path.
- Intent: keep the pass focused on cheap deterministic seams while documenting the remaining dynamic component seam explicitly.
- Validation: run just ui typecheck, just ui lint, and just ui test.

* test(frontend): cover book service control flow

- Coverage: add real service tests for CBX reader and book patch flows and replace the user-service placeholder with a seam-aware spec.
- Intent: increase branch coverage in book service layers while acknowledging the query-heavy user-service runtime boundary.
- Validation: run just ui typecheck, just ui lint, and just ui test.

* test(frontend): cover small shared standalone components

- Coverage: add direct component behavior tests for external links, empty states, and tag rendering.
- Intent: clear straightforward standalone component stubs without spending time on decorative template-only churn.
- Validation: run just ui typecheck, just ui lint, and just ui test.

* test(frontend): cover library loading and local shared components

- Coverage: add tests for library-loading, live-notification, and directory-picker components using mocked local dependencies.
- Intent: pick off component surfaces that have real behavior but do not require heavy application orchestration.
- Validation: run just ui typecheck, just ui lint, and just ui test.

* test(frontend): document shared runtime seams

- Coverage: replace remaining shared and library runtime-heavy placeholders with explicit seam-noted skipped specs.
- Intent: make the remaining blocker surfaces auditable instead of leaving generic TODO stubs behind.
- Validation: run just ui typecheck, just ui lint, and just ui test.

* test(frontend): document layout shell seams

- Coverage: convert layout-heavy shell placeholders into seam-specific skipped specs.
- Intent: record the need for mounted layout harnesses without spending time on brittle shallow shell tests.
- Validation: run just ui typecheck, just ui lint, and just ui test.

* test(frontend): cover shared forms and dialogs

- Coverage: add real tests for shared standalone form and dialog components with direct control-flow assertions.
- Intent: capture meaningful component behavior where the harness cost is still low enough to justify real tests.
- Validation: run just ui typecheck, just ui lint, and just ui test.

* test(frontend): cover progress and stats wrappers

- Coverage: add real tests for a shared progress widget and a stats HTTP wrapper while documenting heavier query-driven seams.
- Intent: keep coverage growth honest by splitting easy wrappers from runtime-heavy component and service surfaces.
- Validation: run just ui typecheck, just ui lint, and just ui test.

* test(frontend): cover bookdrop API branches

- Coverage: add bookdrop API and control-flow coverage and replace the remaining menu-command-heavy service stub with a seam note.
- Intent: grow branch coverage in bookdrop services while avoiding low-yield template churn.
- Validation: run just ui typecheck, just ui lint, and just ui test.

* test(frontend): cover shared utility components

- Coverage: add real tests for shared utility components and convert heavier reader or chart placeholders into explicit seam-noted skips.
- Intent: continue replacing generic placeholders while keeping runtime-heavy chart and reader shells out of the main path.
- Validation: run just ui typecheck, just ui lint, and just ui test.

* test(frontend): cover book cache and series card behavior

- Coverage: add real tests for book cache and control-flow services plus the series-card component, and document the remaining query-runtime seams.
- Intent: prioritize behavior-bearing book surfaces instead of spreading effort over decorative render-only coverage.
- Validation: run just ui typecheck, just ui lint, and just ui test.

* test(frontend): cover reader preference settings flows

- Coverage: add real tests for reader-preference and naming settings while replacing browser-heavy settings shells and dialogs with seam notes.
- Intent: move settings coverage upward without inventing runtime seams for the stubborn UI-heavy surfaces.
- Validation: run just ui typecheck, just ui lint, and just ui test.

* test(frontend): document dashboard and stats visualization seams

- Coverage: replace dashboard and stats visualization placeholders with explicit chart, canvas, scroll, and orchestration seam notes.
- Intent: make the expensive visualization blockers explicit instead of keeping them as generic unowned TODO stubs.
- Validation: run just ui typecheck, just ui lint, and just ui test.

* test(frontend): document remaining user stats chart seams

- Coverage: convert another wave of user-stats chart placeholders into explicit runtime seam notes.
- Intent: keep the coverage pass honest by documenting chart-runtime blockers without pretending that render smoke tests would help.
- Validation: run just ui typecheck, just ui lint, and just ui test.

* test(frontend): document author-browser and dialog seams

- Coverage: replace author-browser, book-dialog, user-management, and additional stats placeholders with routed dialog or widget seam notes.
- Intent: record the real blocker surfaces cleanly and avoid low-yield retries on complex dialog stacks.
- Validation: run just ui typecheck, just ui lint, and just ui test.

* test(frontend): cover reader dialogs and note library-stats seams

- Coverage: add real tests for simple reader dialogs and header behavior and document the remaining library-stats, reader-shell, and bookdrop orchestration seams.
- Intent: combine cheap reader wins with explicit notes for surfaces that still need mounted runtime harnesses.
- Validation: run just ui typecheck, just ui lint, and just ui test.

* test(frontend): document remaining library stats and reader shell seams

- Coverage: replace the remaining library-stats chart placeholders and ebook or CBX shell stubs with explicit chart and runtime seam notes.
- Intent: finish the chart-heavy placeholder cleanup in a durable, auditable way.
- Validation: run just ui typecheck, just ui lint, and just ui test.

* test(frontend): document settings and metadata shell seams

- Coverage: convert another wave of settings, book, metadata, and stats shells from generic TODO stubs into explicit seam-documented specs.
- Intent: keep the pass moving through high-friction surfaces without faking useful coverage.
- Validation: run just ui typecheck, just ui lint, and just ui test.

* test(frontend): cover deterministic settings services

- Coverage: add real tests for KOReader and metadata settings surfaces where the behavior is deterministic, and document the remaining dialog-heavy seams.
- Intent: take the cheap service and settings wins while isolating the harder modal and query-driven blockers.
- Validation: run just ui typecheck, just ui lint, and just ui test.

* test(frontend): cover selected reader and settings widgets

- Coverage: add real tests for a simple dialog, the CBX footer, kobo settings service behavior, public review settings, and book-card-lite.
- Intent: harvest another set of low-friction component and service wins while documenting the surrounding reader and email shell seams.
- Validation: run just ui typecheck, just ui lint, and just ui test.

* test(frontend): cover book helper and review services

- Coverage: add real tests for book review, dialog helper, orchestration, and overlay-preference services, and convert the remaining book browser and upload shells into explicit seam notes.
- Intent: push branch coverage into real book control flow instead of spreading effort over decorative component smoke tests.
- Validation: run just ui typecheck, just ui lint, and just ui test.

* test(frontend): finish replacing generic spec stubs

- Coverage: close out the remaining generic TODO stubs with real HTTP or class-level specs where cheap, and explicit seam-noted skipped specs where heavier Angular, PrimeNG, or reader-shell harnesses are still required.
- Result: bring the generic TODO stub count under frontend src app to zero while preserving the no-runtime-change rule.
- Validation: run just ui typecheck, just ui lint, just ui test, and finish with just ui check.

* docs(frontend): record stub fill batches and commit plan

- Tracking: capture the single-thread frontend stub fill batches in a durable log with scope, validation, and file lists.
- Commit Plan: add Conventional Commit shapes for each batch so the work can be replayed or audited without rebuilding the grouping logic.
- Validation: reflect the final frontend gate set of just ui typecheck, just ui lint, just ui test, and just ui check.

* test(frontend): bootstrap coverage harness canaries

- Plan:
  - add a new phase plan document for the supervised swarm rollout
  - record the bootstrap checkpoint, worker contract, package posture, and validation gates
- Harnesses:
  - add shared query, chart, and dialog testing helpers for Angular Query, non-rendering chart assertions, and PrimeNG dialog seams
  - bring in `ng-mocks` as part of the test-only toolchain for the next coverage lane
- Canaries:
  - convert the app settings and library service seam docs into executable coverage canaries
  - convert the genre stats chart and author photo search seam docs into active specs using the new helpers
- Validation:
  - prove the bootstrap with focused vitest canaries and the broader `just ui typecheck`, `just ui lint`, `just ui test`, `just ui coverage`, and `just ui coverage-summary` gates

* docs(plans): add phase 3 lieutenant swarm plan

- Execution model:
  - define the controller, gitops lieutenant, notify lieutenant, and bounded worker roles for the next coverage push
  - record the new covswarm worktree scheme and the rule to preserve legacy f90 worktrees without reusing them
- Operations:
  - capture the notification cadence, heartbeat contract, worker health gate, and seam-valuation rules for lane execution
  - define when the swarm widens from the first stats lane into query and dialog lanes
- Baseline:
  - record the current frontend coverage totals, skipped-spec distribution, and bootstrap handoff state after commit 111466b5

* test(frontend): cover personal rating chart stats

(cherry picked from commit b1ea299adc1622ab87a3e4e83d88270e785b7b08)

* test(frontend): fix personal rating chart spec lint

(cherry picked from commit a4b9f5fcff46a12820292ac827c48768a8499624)

* test(frontend): cover shelf service query spec

(cherry picked from commit 07c33f70fe93c313dab33e28680aaeb0503f0ecd)

* test(frontend): cover user service query spec

(cherry picked from commit d7b8047acb824c2dbf2a823a6808a0a2f6a16d7c)

* test(frontend): fix user service helper typing

(cherry picked from commit 5e905879b7bdbd493394f060045a5a77b71ac9d8)

* test(frontend): align bulk edit dialog apply expectation

(cherry picked from commit 5048aa2ac632348f5baf718a15fb2998ddb6f98f)

* test(frontend): harden user service buildUser overrides

(cherry picked from commit 985087df1b35ebfae1983af1615b2f6d56dc3e40)

* test(frontend): cover magic shelf service spec

(cherry picked from commit 594723fe76090b262229fd8610d85bb66aefa88d)

* test(frontend): cover lock metadata dialog spec

(cherry picked from commit d534f0116496181785371fe302fd01456114ac69)

* test(shelf-edit-dialog): cover dialog spec behaviors

- ShelfEditDialogComponent:
  - replace the skipped seam placeholder with a real injection-context harness
  - cover shelf hydration, icon selection, save success, save failure, and cancel flows
- Validation:
  - preserve the worker's targeted Vitest coverage for the dialog spec batch

(cherry picked from commit 488e1b1e9be7edc308a3e26f88fe679ffa6f7b63)

* test(language-chart): cover non-rendering chart logic

- LanguageChartComponent:
  - replace the skipped seam placeholder with deterministic signal-backed spec coverage
  - verify language normalization, top-language chart data, and tooltip formatting without a live Chart.js render
- Validation:
  - preserve the worker's targeted Vitest coverage for the language-chart spec batch

(cherry picked from commit c645a3bb73fe5b03f906a0a9e87b493d8f78e882)

* test(sidebar-sorting-preferences): use angular change detection in spec

- SidebarSortingPreferencesComponent:
  - replace the manual ngOnInit call with fixture.detectChanges so the test uses the standard Angular fixture lifecycle
  - preserve the validated fix for the recursive NG0101 failure in the focused spec run
- Validation:
  - passed env YARN_ENABLE_GLOBAL_CACHE=0 YARN_CACHE_FOLDER=../.yarn/cache corepack yarn vitest run src/app/features/settings/view-preferences-parent/sidebar-sorting-preferences/sidebar-sorting-preferences.component.spec.ts

(cherry picked from commit 5653c92d6a1a3e0ef6b7e53f0218a0c8ad1d00ef)

* test(stats): cover metadata score chart bucketing

- Metadata score chart:
  - replace the skipped seam placeholder with focused spec coverage for score bucketing, average-score calculation, and selected-library filtering
  - assert deterministic doughnut chart labels, dataset values, and tooltip formatting without depending on a live Chart.js instance
- Validation:
  - preserve the targeted Vitest pass previously reported for metadata-score-chart.component.spec.ts with 1 file passed and 3 tests passed

(cherry picked from commit 0191fb93fe0273ff655ecf387f952c360216eab2)

* test(book): cover query-backed book service state

- Book service:
  - replace the skipped placeholder with focused specs for eager fetch behavior, auth-token-gated loading, and query-backed error and loading state
  - cover unique metadata derivation, shelf removal cache updates, and books-query removal when the auth token is cleared
- Validation:
  - preserve the targeted Vitest pass previously reported for book.service.spec.ts with 1 file passed and 5 tests passed

(cherry picked from commit 1f6a1da1830251280f8e578eebad99f98d403116)

* test(stats): cover book formats chart aggregation

- Book formats chart:
  - replace the skipped placeholder with focused specs for selected-library filtering and format aggregation
  - assert deterministic chart labels, dataset values, color selection including fallback colors, and direct tooltip callback output
- Validation:
  - preserve the targeted Vitest pass previously reported for book-formats-chart.component.spec.ts with 1 file passed and 3 tests passed

(cherry picked from commit 9ee15f88cad8b9f57f7b29413791baa528c01d78)

* test(settings): cover create email provider dialog flows

- Create email provider dialog:
  - replace the skipped placeholder with focused specs for validator state, invalid warn handling, and service mutation payloads on success
  - cover translated success and error toast branches, fallback error detail behavior, and explicit dialog close behavior
- Validation:
  - preserve the targeted Vitest pass previously reported for create-email-provider-dialog.component.spec.ts with 1 file passed and 6 tests passed

(cherry picked from commit 10760860cdb6344a3fb8d5eed4623a55734c3bee)

* test(settings): stabilize sidebar sorting preferences spec

- Sidebar sorting preferences:
  - replace the default Transloco test module setup with reRenderOnLangChange disabled to avoid recursive NG0101 behavior in the focused spec runtime
- Validation:
  - preserve the focused rootfix2 Vitest pass for sidebar-sorting-preferences.component.spec.ts
  - keep the validated rerun free of recursive NG0101 stderr

(cherry picked from commit 484a95ed3c40ecff7f379b43eefab82c5f0618a3)

* test(author-browser): cover author match component flows

- Author match component:
  - replace the skipped placeholder with class-only, provider-driven specs for search bootstrapping, canSearch gating, search result replacement, and translated toast handling
  - cover match request shaping, success emission, and failure reporting without coupling the spec to the Prime form runtime
- Validation:
  - preserve the focused author worktree Vitest pass for author-match.component.spec.ts with 1 file passed and 6 tests passed

(cherry picked from commit e5df9291648386e49236b6378bab37f73fc3f11b)

* test(book): cover book notes component flows

Add focused coverage for BookNotesComponent load, create, update, delete, and cancel paths.

Validate the note sorting and toast behavior through service and confirmation doubles so the deferred book-components lane can land as an isolated replay batch.

* test(author-browser): cover author editor component flows

Add focused coverage for author editor form initialization, save payload shaping, photo dialog refresh, and upload handlers.

Land the deferred author-browser lane as a single replay batch without touching runtime code.

* test(book): cover shelf creator component flows

Add dialog-focused coverage for ShelfCreatorComponent icon selection, cancel behavior, create payload shaping, and error handling.

Replay the deferred book-components shelf-creator batch into root without carrying worktree repair residue.

* test(book): cover book file service flows

Add focused HTTP and query-cache coverage for BookFileService downloads, uploads, detach, attach, and delete flows.

Replay the deferred query lane as a single book-service batch with no runtime changes.

* test(stats): cover page count chart bucketing

Add non-rendering chart coverage for PageCountChartComponent bucket aggregation, library filtering, and tooltip callbacks.

Replay the deferred stats batch into root as a single isolated commit.

* test(author-browser): cover author card component flows

Add focused AuthorCardComponent coverage for reset behavior, click-mode branching, menu handling, and quick-match paths.

* test(book): cover shelf assigner component flows

Add dialog-driven ShelfAssignerComponent coverage for filtering, sorting, payload shaping, and success and failure branches.

* test(author-browser): cover author detail component flows

Add AuthorDetailComponent coverage for loading, overflow state, quick-match updates, and author refresh handling.

* test(book): cover add physical book dialog flows

Add AddPhysicalBookDialogComponent coverage for metadata hydration, selection behavior, create gating, and success and failure paths.

* test(book): cover book sender component flows

Add BookSenderComponent coverage for recipient and provider mapping, validation failures, and send success and error behavior.

* test(stats): cover language chart aggregation

Add non-rendering LanguageChartComponent coverage for aggregation, filtering, shaping, and tooltip behavior.

* test(stats): cover metadata score chart states

Add MetadataScoreChartComponent coverage for empty and loading states alongside aggregation and tooltip assertions.

* test(book): cover book reviews component flows

Add BookReviewsComponent coverage for loading, refresh, delete, lock, spoiler, sorting, and helper behavior.

* test(book): cover book file attacher flows

Add BookFileAttacherComponent coverage for bootstrap, filtering, display helpers, attach behavior, and close paths.

* test(stats): cover reading progress chart bucketing

Add non-rendering ReadingProgressChartComponent coverage for precedence rules, progress buckets, and tooltip behavior.

* test(frontend): fix replay lint and typing cleanup

Tighten the replayed specs so the wider frontend lint, typecheck, and test gates pass on the full branch.

This keeps the replay window self-contained instead of leaving post-merge cleanup behind.

* docs(plans): refresh phase 3 replay ledger

Record the replay-window checkpoint, queued worktree batches, and the next accumulation lanes so the coverage swarm can resume cleanly after this cycle.

* test(frontend): align stale specs with current behavior

- Author card specs:
  - remove assertions against the deleted `isImageLoaded` state so the tests reflect the component's current photo handling contract
- Routing specs:
  - update series navigation expectations to use raw route segments instead of pre-encoded values, matching the current Angular router usage in both the URL helper and book card flows
- Validation:
  - run targeted Vitest coverage for the touched specs
  - rerun `just ui typecheck`, `just ui test`, and `just ui check` to confirm the frontend surface is green again

* fix(security): align functional guard signatures

- Guard contracts:
  - update the functional auth and permission guards to accept Angular's `CanActivateFn` route and state parameters explicitly
  - mark the unused parameters with `void` so the implementations stay lint-clean while matching the router contract
- Review follow-up:
  - resolve the PR feedback around superfluous trailing arguments without breaking the existing spec call sites
  - keep the tests and runtime signatures aligned so the guard family reads consistently across the security surface
- Validation:
  - run `corepack yarn ng test --watch=false --include='src/app/core/security/**/*.spec.ts'`
  - run `just ui check`, `just ui typecheck`, and `just ui test`
2026-04-22 17:26:56 -04:00
Alex 09c36dfa0b chore(ui): drop book and author animations (#270)
* chore(ui): drop book and author animations

* chore(ui): remove stale import
2026-04-22 17:26:56 -04:00
Sergio Visinoni 1799493ed7 fix: fix text overflow with attach-to-book flow when dealing with long titles (#265)
* Measure the actual rendered pixel width of the autocomplete wrapper div
* Use the calculated measure to style the component, overriding the PrimeNG default styles
* Add CSS attributes to ensure long titles are truncated with ellipses if they overflow
2026-04-22 17:26:56 -04:00
a92459ddbf fix(frontend): remove double encoding of series name in URL (#262)
Angular Router already encodes path segments automatically. Manually
calling encodeURIComponent() before router.navigate() caused double
encoding (%25 in URL), which was rejected by Spring Security's
StrictHttpFirewall on page refresh (F5), resulting in a Whitelabel
Error Page.

Remove encodeURIComponent() from 3 navigation call sites and the
corresponding decodeURIComponent() workaround in series-page component.

Co-authored-by: de.banker <hub9ray@gmail.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-22 17:26:55 -04:00
Jinandgithub-actions[bot] c1711dd0c1 fix(backend): Fix metadata fields being stripped from API response, causing issues with filtering. (#250)
* chore(release): 2.3.0 [skip ci]

## [2.3.0](https://github.com/grimmory-tools/grimmory/compare/v2.2.6...v2.3.0) (2026-03-21)

### Features

* **release:** document develop-based stable release previews ([930e526](https://github.com/grimmory-tools/grimmory/commit/930e5262285540b3b65b9ef4f7be328a05dfb5b4))

### Bug Fixes

* **api:** fix potential memory leaks in file processing ([031e8ae](https://github.com/grimmory-tools/grimmory/commit/031e8ae257c3354cacce2d17c8c6bc35ce80badb))
* **ci:** correct artifact download action pin ([37ca101](https://github.com/grimmory-tools/grimmory/commit/37ca101dd4bd08ccfe6d4d2395ecc71298cc323d))
* **ci:** publish PR test results from workflow_run ([11a76bf](https://github.com/grimmory-tools/grimmory/commit/11a76bffe12f80d0271e3626291cfbd275346727))
* **ci:** repair release preview and test result publishing ([afa5b81](https://github.com/grimmory-tools/grimmory/commit/afa5b818ebe612e66acc819aa398ac0c6184d21b))
* drop telemetry from app ([#52](https://github.com/grimmory-tools/grimmory/issues/52)) ([4d82cb7](https://github.com/grimmory-tools/grimmory/commit/4d82cb718833a2a4e08ee2f18b2ff3ab9b043dd6))
* **ui:** repair frontend compile after rebrand ([fea1ec6](https://github.com/grimmory-tools/grimmory/commit/fea1ec6930ae64445c6d7e7b38bdc4e7925b51c1))

### Refactors

* **build:** rename frontend dist output to grimmory ([ecf388f](https://github.com/grimmory-tools/grimmory/commit/ecf388f7a2086fbd1d8737a972926d70ec3190d4))
* **i18n:** rename booklore translation keys to grimmory ([eb94afa](https://github.com/grimmory-tools/grimmory/commit/eb94afa7ad600eaa2535802583f21937bd1ae2c0))
* **metadata:** move default parser from Amazon to Goodreads ([e252122](https://github.com/grimmory-tools/grimmory/commit/e252122bc5a89c75af85ddbaae66a14d368479f9))
* pull kepubify & ffprobe during build ([#50](https://github.com/grimmory-tools/grimmory/issues/50)) ([1c15629](https://github.com/grimmory-tools/grimmory/commit/1c15629a10ba2e2ad78455f118e8c937b585b157))
* **ui:** rebrand frontend surfaces to grimmory ([d786dd8](https://github.com/grimmory-tools/grimmory/commit/d786dd8ccbebaa360385dce834816bcb6aaf3b2f))

### Chores

* **api:** remove the custom startup banner ([98c9b1a](https://github.com/grimmory-tools/grimmory/commit/98c9b1ae653c2140b7b2ab86b5511be3376bfe43))
* **deps:** bump flatted from 3.4.1 to 3.4.2 in /booklore-ui ([#73](https://github.com/grimmory-tools/grimmory/issues/73)) ([c4bd0c7](https://github.com/grimmory-tools/grimmory/commit/c4bd0c779ae398968dbdea6d566693ed57eab3eb))
* **funding:** point support links at opencollective ([55c0ac0](https://github.com/grimmory-tools/grimmory/commit/55c0ac089966b8586e7d7bdef1fc469049903d08))
* **release:** 2.2.7 [skip ci] ([0b5e24c](https://github.com/grimmory-tools/grimmory/commit/0b5e24c23848c9e97b04f4221303d0b4bf0b2dd7))
* remove old verbose PR template, replace with temporary more low-key one. ([#84](https://github.com/grimmory-tools/grimmory/issues/84)) ([b868526](https://github.com/grimmory-tools/grimmory/commit/b8685268a9a9730416a209201a70c284cee590c5))
* **ui:** drop financial support dialog ([#21](https://github.com/grimmory-tools/grimmory/issues/21)) ([62be6b1](https://github.com/grimmory-tools/grimmory/commit/62be6b152cbd42910620fdeae1f35783ea258b27))

### Documentation

* updated supported file formats in README.md ([#68](https://github.com/grimmory-tools/grimmory/issues/68)) ([f912e80](https://github.com/grimmory-tools/grimmory/commit/f912e802f97263206308817acd5bab84a5321dcf))

### Style

* **i18n:** normalize translation json formatting ([#89](https://github.com/grimmory-tools/grimmory/issues/89)) ([857290d](https://github.com/grimmory-tools/grimmory/commit/857290d215b518e61c9b3a058ae5d40d5e214672))
* **ui:** simplify the topbar logo branding ([0416d48](https://github.com/grimmory-tools/grimmory/commit/0416d48a6c441792b4c9607b3e472159c879d439))

* Fix backend from stripping fields

* Strip metadata fields by default in backend

* Fix merge conflicts

* Revert yarn.lock change

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-04-22 17:26:55 -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
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