df1e1aa32b3327a73bd9411fba226ebf4c7002c0
30
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
2e60cb4d81 | chore(deps): update pnpm to 11.18.0 (#2193) | ||
|
|
bd7a583989 |
build(ui): add --ignore-scripts for pnpm (#2065)
|
||
|
|
e83a143c36 | chore(repo): migrate from yarn to pnpm (#1598) | ||
|
|
8365efd6d5 | chore(docker): update docker-compose for Gradle caching and build volume management (#1312) | ||
|
|
f2a89fbfde |
chore(deps): bump gradle to 9.5.1 and flyway to 12.6.1 (#1329)
Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: James Ward <james@notjam.es> |
||
|
|
2c81b649ff | chore(docker): bump Gradle version to 9.5.0 in Dockerfile/dev-docker-compose (#1295) | ||
|
|
efb2e1ca2d | refactor(docker): consolidate JVM options into JAVA_TOOL_OPTIONS (#1074) | ||
|
|
c9b2a5734e |
chore(docker): drop mariadb container_name property (#1057)
Co-authored-by: Brandon <git@thebrandonmorris.com> |
||
|
|
254765f4aa | chore(dev): support accessing the dev server from non-localhost (#887) | ||
|
|
1a664dda14 |
chore: rename springboot app folder to backend (#752)
|
||
|
|
3e5a6a9de8 |
refactor(api): optimize caching mechanisms and improve book filtering (#372)
* refactor(api): optimize caching mechanisms and improve book filtering logic * refactor(preferences): remove unused ExternalDocLinkComponent and enhance translate function typing * refactor(initializer): add Duration import for improved cache management * refactor(docker): increase MaxMetaspaceSize for improved memory management * refactor(repository): replace findAllForSummaryByIds with findAllById * refactor(cache): implement invalidateAppBooksQueries for improved cache management * refactor(AppBookService): increase default page size and optimize magic shelf book resolution * refactor(AppBookSpecification, MagicShelfBookService, TaskCancellationManager, magic-shelf-component): streamline join handling and improve memory management * refactor(AppBookService, MagicShelfBookService): enhance book retrieval logic and improve error handling * chore: fix formatting * chore: fix formatting |
||
|
|
402c6f07c8 |
docs(api): normalize OpenAPI tagging and operation metadata for app + auth/task endpoints (#437)
* docs(api): add OpenAPI tags and operation metadata to controllers * docs(api): normalize @Operation annotation formatting in OpenAPI controllers * docs(api): align operationId values with existing controller method names * chore(api-docs): update api docs to be enabled by default for dev builds |
||
|
|
d254da1022 | chore(docker): bump Gradle version to 9.4.1 in Dockerfiles (#379) | ||
|
|
b63f7a6303 | add bash & just to dev containers (#373) | ||
|
|
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> |
||
|
|
1e0b4d0fd5 |
refactor(api): use NightCompress library for reading CBX (#113)
* build: drop unrar from dockerfile * build: add libarchive to dockerfile * ci: add libarchive for tests * build: try adding to the gradle build * refactor: use nightcompress for reading CBX * test: disable tests using nightcompress when unavailable * ci: drop showing java information * build: add libarchive to dev compose * build: fix libarchive link in alpine seems alpine doesn't create libarchive.so and this seems to be the easiest approach to fix that * build: use expected order for allowing java to use native libs * fix: ensure we initialize NightCompress before using it * fix: properly find input stream * fix: return amount of data copied * test: add helper to turn off tests in ArchiveService * test: rewrite CbxMetadataExtractorTest to mock archiveService * refactor: expose `Path` to make `CbxMetadataExtractor` easier to test * test: drop now useless test * test: add archiveservice to rar5 integration * test: mock out archiveservice in cbxreader test * test: use real archiveservice in cbxconverstionintegration * file: the cbxconversionservicetest also seems to be integration * test: remove unused imports from cbxmetadataextractortest * test: cbxcomicinfocompliance is also an integration * test: cbxmetadatawriter is also integration * chore: drop unused properties * test: make cbxmetadataextractortest do something for covers before it was basically useless because of fallback * fix: invert check * chore: better comment * test: fix more cbxmetadataextractor tests that never worked * test: we only ever raise ioexception * fix: handle `null` comicinfo when parsing * test: properly test for no files comicinfo * build: manual link of dev docker compose * test: if you use any matchers, all must be * build: drop unrar from dev compose * test: if you use any matchers, all must be * test: always get a fresh stream * test: drop more toFile |
||
|
|
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` |
||
|
|
4855f36d46 |
build(yarn): migrate frontend and release tooling to yarn 4
- Frontend package management: - add a repo-root `.yarnrc.yml` that pins Yarn to the `node-modules` linker with a local cache - add the modern Yarn package manager declaration to `frontend/package.json` - replace the frontend npm lockfile with `frontend/yarn.lock` - move the frontend Just recipes to Corepack-managed Yarn commands for install, audit, build, test, and lint - run the production build in CI-style mode so non-interactive Yarn builds behave consistently - Release automation: - add the modern Yarn package manager declaration to `tools/release/package.json` - replace the release tooling npm lockfile with `tools/release/yarn.lock` - switch the release Just recipes from `npm` and `npx` to Corepack-managed Yarn scripts - CI and local runtime wiring: - switch the frontend and release GitHub Actions caches from npm lockfiles to Yarn lockfiles - update the root `doctor` output and contributor prerequisites to report Yarn and Corepack instead of npm - update the dev compose UI container to Node 24 with immutable Yarn installs - restore the Docker frontend build stage to install and build through Yarn, including the shared cache path - Repository hygiene: - ignore the repo-local Yarn cache and per-project Yarn state directories created by modern Yarn installs - Validation: - `just ui install-ci` - `just release install` - `just ui build` - `just image-build linux/amd64 codex-yarn-port-test` was not runnable because the local Docker daemon was unavailable |
||
|
|
42d9dcb4d3 |
refactor(frontend): repoint repo tooling to the frontend path
- Tooling and automation: - update Dependabot and the frontend test workflow to read frontend-owned paths - keep published frontend test reports aligned with the renamed project directory - extend ignore rules for frontend-generated test output and local dependencies - Local developer entrypoints: - repoint the root Justfile ui module at frontend/Justfile - update the dev compose bind mount to use ./frontend - update the Weblate setup script to source translations from frontend/src/i18n - Build integration: - repoint the Docker frontend build stage to /workspace/frontend and the renamed source paths - update the backend Gradle fallback dist location to ../frontend/dist/grimmory/browser - Repository guidance: - rewrite root docs and AGENTS references that still pointed at booklore-ui so contributor guidance matches the new directory name - Validation: - not run; this commit is scoped to staged path rewrites only |
||
|
|
69d50d4fb5 |
feat(devex): add a unified just command surface
- Command surface: - add a root `Justfile` with namespaced `api`, `ui`, and `release` modules so humans and agents can use the same entrypoints from the repo root - add project-local Justfiles for `booklore-api`, `booklore-ui`, and `tools/release` so each area remains self-contained and can still be driven from inside its own directory - standardize local developer workflows around `just check`, `just test`, `just api run`, `just ui dev`, `just db-up`, and `just image-build` - Workflow integration: - update the reusable test suite workflow to install `just` and run backend and frontend CI steps through the Justfiles instead of hardcoded shell commands - update the semantic-release workflows to install `just` and invoke release tooling via `just release install`, `just release preview`, and `just release run` - keep the Docker image publication workflows on the native Docker actions while moving the project-command logic into the canonical command surface - Documentation: - split backend and frontend implementation guidance into `booklore-api/README.md`, `booklore-api/CONTRIBUTING.md`, `booklore-ui/README.md`, and `booklore-ui/CONTRIBUTING.md` - simplify the top-level `README.md` and `CONTRIBUTING.md` so they stay focused on overview, policy, and navigation while pointing to component-specific guides for deeper detail - align contributor-facing examples on the `just` interface instead of mixing ad hoc Gradle, npm, Docker, and Compose commands - Developer environment: - add `mise.toml` to pin the expected Java and Node toolchain versions for local work - switch the development Compose defaults from the old Booklore database values to Grimmory-oriented defaults - keep the command layout ready for a future API/UI split without forcing that packaging change yet |
||
|
|
3c0b5c0c9c |
fix(archive): infer archive type via Magic Numbers instead of filename (#79)
* chore(deps): bump actions/setup-node from 6.2.0 to 6.3.0 (#1) Dependabot couldn't find the original pull request head commit, ea510f40fc1855aa17a782e05b0d30547e84955e. Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps): bump docker/setup-buildx-action from 3.12.0 to 4.0.0 (#2) Dependabot couldn't find the original pull request head commit, faed6bf8a712c5fc793fa628157de25d97888131. Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps): bump docker/build-push-action from 6.19.2 to 7.0.0 (#3) Dependabot couldn't find the original pull request head commit, f110823720b6dd773df014ba288a126d8837fe28. Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps): bump docker/login-action from 3.7.0 to 4.0.0 (#6) Dependabot couldn't find the original pull request head commit, 9a8d7a1daf5afff06bb35e36607c3da9aa730e21. Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * fix(archive): infer archive type via Magic Numbers instead of filename * fix(archive): improve archive type detection and improve logging for cover image retrieval --------- Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> |
||
|
|
f3fffeadce |
refactor(misc): Harden request handling, tighten defaults, and pin CI deps (#2878)
* refactor(misc): Harden request handling, tighten defaults, and pin CI dependencies * feat(auth): normalize usernames for login rate limiting * refactor(epub): fix XML document builder creation * feat(http): enhance image download with redirect handling and DNS rebinding protection * chore: upgrade Node.js version to 24 and add frontend dependency audit step * feat(auth): refactor username normalization for login rate limiting and enhance image download security * fix(metadata): simplify JAXB validation event handling by using direct import * chore(pipeline): remove unnecessary --force flag from npm ci and format audit step * chore(pipeline): streamline frontend dependency audits and add validation step * fix(image): improve error handling for image processing and download, enforce pixel limits * test(image): update tests * fix(icon): update DOMPurify import and replace deprecated theme package * fix(imports): update theme package imports and format code for consistency * fix(cors): update allowed origins configuration to support wildcard and trim whitespace |
||
|
|
bc7ba8b933 |
Remove nginx and serve Angular directly from Spring Boot (#2662)
* feat: remove nginx and serve Angular directly from Spring Boot * fix: handle null values in EnabledFields deserialization from persisted JSON * fix(migration): auto-repair failed Flyway migrations on startup * fix(migration): replace DB triggers with app-level orphan cleanup * fix: restore default port to 6060 for backwards compatibility * fix: align all port references to 6060 and add OPDS compression MIME types * fix: resolve NG0101 recursive tick error in book browser selection --------- Co-authored-by: acx10 <acx10@users.noreply.github.com> |
||
|
|
108d94c0f7 |
feat(api, build): Upgrade to Java 25, Gradle 9, and Spring Boot 4, Jackson 3 (#2597)
* refactor: simplify RestTemplate and ObjectMapper configurations, add no-args constructors to progress classes Signed-off-by: Balázs Szücs <bszucs1209@gmail.com> * chore: update Gradle and Java versions in Docker configuration and build files Signed-off-by: Balázs Szücs <bszucs1209@gmail.com> * test: enhance header assertions in tests and add spring-boot-test-autoconfigure dependency Signed-off-by: Balázs Szücs <bszucs1209@gmail.com> * refactor(tests): migrate to SpringBootTest and update entity management in test cases Signed-off-by: Balázs Szücs <bszucs1209@gmail.com> * test: update test property configurations for H2 database in Healthcheck and BookOpds repository tests Signed-off-by: Balázs Szücs <bszucs1209@gmail.com> * test: clean up HealthcheckControllerTest by removing unnecessary whitespace and comments Signed-off-by: Balázs Szücs <bszucs1209@gmail.com> * test: remove unnecessary whitespace in HealthcheckControllerTest Signed-off-by: Balázs Szücs <bszucs1209@gmail.com> * chore: downgrade Flyway version from 12.0.0 to 11.14.1 in build.gradle Signed-off-by: Balázs Szücs <bszucs1209@gmail.com> * chore: downgrade Flyway version from 12.0.0 to 11.14.1 in build.gradle Signed-off-by: Balázs Szücs <bszucs1209@gmail.com> * feat: add @DependsOn annotation for Flyway in MultipartConfig Signed-off-by: Balázs Szücs <bszucs1209@gmail.com> * feat: add @DependsOn annotation for Flyway in LibraryService Signed-off-by: Balázs Szücs <bszucs1209@gmail.com> * feat: add test configuration for Flyway in HealthcheckControllerTest chore: remove unused path variable in deleteLibrary method of LibraryService Signed-off-by: Balázs Szücs <bszucs1209@gmail.com> * feat: configure Flyway migration and update test configuration Signed-off-by: Balázs Szücs <bszucs1209@gmail.com> * feat: enable remote debugging in bootRun configuration Signed-off-by: Balázs Szücs <bszucs1209@gmail.com> * feat: update Flyway version and enhance ObjectMapper configuration Signed-off-by: Balázs Szücs <bszucs1209@gmail.com> * feat: remove @DependsOn annotation for Flyway in MultipartConfig and LibraryService Signed-off-by: Balázs Szücs <bszucs1209@gmail.com> * feat: add NoArgsConstructor and AllArgsConstructor annotations to DTO classes Signed-off-by: Balázs Szücs <bszucs1209@gmail.com> * feat: add NoArgsConstructor and AllArgsConstructor annotations to FileProcessResult, MetadataUpdateContext, and MetadataUpdateWrapper classes Signed-off-by: Balázs Szücs <bszucs1209@gmail.com> * feat: add DependsOnDatabaseInitialization annotation to MultipartConfig, AppSettingService, LibraryService, and JwtSecretService classes Signed-off-by: Balázs Szücs <bszucs1209@gmail.com> * feat: add DependsOnDatabaseInitialization annotation to MultipartConfig and CronService classes Signed-off-by: Balázs Szücs <bszucs1209@gmail.com> * feat: implement lazy initialization and thread safety for JWT secret retrieval Signed-off-by: Balázs Szücs <bszucs1209@gmail.com> * feat: add Flyway dependency and update LibraryService initialization to use ApplicationReadyEvent Signed-off-by: Balázs Szücs <bszucs1209@gmail.com> * refactor: remove outdated comments from JwtSecretService class Signed-off-by: Balázs Szücs <bszucs1209@gmail.com> * refactor: migrate from com.fasterxml.jackson to tools.jackson for JSON processing Signed-off-by: Balázs Szücs <bszucs1209@gmail.com> * refactor: remove unused ObjectMapper bean and related imports from JacksonConfig Signed-off-by: Balázs Szücs <bszucs1209@gmail.com> * feat: configure async support with VirtualThreadTaskExecutor in WebMvcConfig Signed-off-by: Balázs Szücs <bszucs1209@gmail.com> * feat: enhance application performance with virtual threads and HTTP/2 support Signed-off-by: Balázs Szücs <bszucs1209@gmail.com> * feat: add JsonSetter annotation to skip null values for triggeredByCron field Signed-off-by: Balázs Szücs <bszucs1209@gmail.com> * feat: add triggeredByCron field to TaskCreateRequest and initialize in task management Signed-off-by: Balázs Szücs <bszucs1209@gmail.com> * feat: enable Spring Data web support with DTO serialization in WebMvcConfig Signed-off-by: Balázs Szücs <bszucs1209@gmail.com> * refactor(UserDefaultsService): simplify class structure and remove unused methods Signed-off-by: Balázs Szücs <bszucs1209@gmail.com> * refactor(BookOpdsRepositoryDataJpaTest): simplify test setup and use TestEntityManager Signed-off-by: Balázs Szücs <bszucs1209@gmail.com> * refactor(BookOpdsRepositoryDataJpaTest): update test configuration and simplify entity persistence Signed-off-by: Balázs Szücs <bszucs1209@gmail.com> * refactor: update Jackson dependencies and migrate to Jackson 3 Signed-off-by: Balázs Szücs <bszucs1209@gmail.com> * refactor(build.gradle): update jackson-annotations dependency to use Jackson 3 BOM Signed-off-by: Balázs Szücs <bszucs1209@gmail.com> * refactor(BookOpdsRepositoryDataJpaTest): remove unused ObjectMapper bean definition Signed-off-by: Balázs Szücs <bszucs1209@gmail.com> * refactor(LibraryService): simplify library deletion logic Signed-off-by: Balázs Szücs <bszucs1209@gmail.com> --------- Signed-off-by: Balázs Szücs <bszucs1209@gmail.com> |
||
|
|
d36ffaf3e4 |
fix(docker): add build and gradle directories to volumes in docker-compose (#2459)
Signed-off-by: Balázs Szücs <bszucs1209@gmail.com> |
||
|
|
2be02017d4 |
(Refactor) Extract file-specific information from book (#1734)
* refactor(book): extract file-specific information from book First commit in a series aimed at refactoring the data model for books. More specifically, the idea is to extract all file-specific information from the `book` table and move it to the `book_file` table, previously named `book_additional_file` The aim is to make it easier to: * Improve support for books with multiple file formats (PDF, EPUB, etc) for all interactions (Read, Download, etc) * Support for merging/unmerging books * Add support for additional file types * Specify preferred formats at the user level Ref: #489 * refactor(book): ensure the API build and runs Further work on the refactoring aimed at separating file-related details from the `book` table. With this commit all the missing changes that were prventing the API to build or to book have been addressed. TODO: test extensively, adjust existing unit tests and add new ones * fix(read): add mapping for book format This restores the read functionality which relies on the book format field to decide which reader to use. * fix: fix read, dowload and file upload This commit fixes multiple issues either caused by the refactoring or pre-existing: * Fix the Read button behaviour after the refactoring * Unregister the watcher process when uploading additional formats * Fix downloading of additional book formats (using the wrong ID) * fix: adjust tests to use the new BookFileEntity class All the tests that used to fecth file information from BookEntity now need to get them from the relevant BookFileEntity * fix: do not rely on AdditionalFileType * Use the BookFileEntity bookFormat instead * fix: use the relevant BookFileEntity class * fix: call the right methods * fix: Add missing mapping for the test * fix: adapt the test to the new semantics All book files, including the primary one, are treated as equal now. The tests needs to take that into account when checking for additional formats. * fix: use mutable lists * fix: fix syntax for droppung unique constraint MariaDB uses indexes, not constraints * fix: regression on book file ordering We want to make this refactoring 100% compatible with the current behaviour (modulo a few bugs), therefore we need to maintain the right order to ensure the "primary" book stays the same after the migration. * fix: allow download of supplementary files * fix(opds): replace removed additionalFiles entity graph with bookFiles - Update BookOpdsRepository @EntityGraph paths to use BookEntity.bookFiles after the refactor - Add @DataJpaTest to validate BookOpdsRepository wiring and catch invalid EntityGraph attributes - Add H2 as testRuntimeOnly dependency so the JPA slice test can run with an embedded DB * chore(bookdrop): mount bookdrop folder from a local directory It's consistent with the library dir, and makes debugging easier when working on the local environment * fix: rename migration after rebase It's no longer 66, bumped to 73 * fix: handle BookEntity primary file NPEs after rebase Adjust tests to always instanciate BookFileEntity when manipulating BookEntity. * chore: rename migration to avoid conflict V73 is already taken on develop, V67 was left "unused" * chore: rename again to ensure it's applied * fix: make sure to flush the data to DB Without the flush there is a high chance of leaving the DB in an inconsistent state after a book move. * fix: move all files belonging to a book This fixes a pre-existing bug which has some nasty ramifications. We never moved "additional files" when changing library for a book entity, causing them to become effectively "unreacheable" from the UI. * fix(migration): remove the unique index before importing data * fix: fix build and test after rebase * fix(migration): drop legacy table * fix(upload): use the templetized name when storing on DB * fix(rebase): Add logical fixes post rebase * Adapt the code to properly handle the new `archive_type` field and logic * Bump the version number for the DB migration * Use `getPrimaryBookFile()` whenever trying to access book files * fix(migration): Handle additional book formats * Add support for FB2 files * Corretly handle cb7 files as CBX * fix(file mover): fix a regression when moving books across categories The previous approach would trigger the JPA's `orphanRemoval` parameter on the bookEntities, effetively triggering a delete on the DB. This caused files to be moved but the data on the DB would get stale, also causing additional formats to be treated as separate books upon a rescan. * fix(rescan): do not delete alternative files on rescan Upon library rescan, additional files such as images were removed from book entities association when using the "Each file is a book" library structure. |
||
|
|
cc38079c40 |
Enable java remote debug on dev docker stack (#1808)
* Enable java remote debug on dev stack * Enable java remote debug on dev stack * Update docs with info on docker development stack * Update dev docs |
||
|
|
d4121b241a | Fix dev docker environment (#1713) | ||
|
|
2f6ae855dd |
Re-enable ForwardAuth and have ForwardAuth work using email address (#1426)
* Fallback to using email for auth if user not defined by forwardauth * Re-enable RemoteAuth * Update build env |
||
|
|
e0711dddb5 |
feat: Add docker compose to quickly run a dev env (#891)
* feat: Add docker compose to quickly run a dev env * removed packages |