Commit Graph
9 Commits
Author SHA1 Message Date
Joshua SchmittandAlex c8a1a59bbf feat(reader): add epub reader tap navigation for mobile (#1909)
Co-authored-by: Alex <25013571+alexhb1@users.noreply.github.com>
2026-09-18 21:56:15 +01:00
Alex cc8a53b1da chore(deps): switch PrimeNG to Optimus UI (#2093) 2026-07-24 19:13:31 +01:00
brios 902f5f5d67 fix(user-settings): fix settings loading errors (#527)
* refactor(user): optimize detail fetching with custom repository implementation

* refactor(fonts): fix font loading and improve custom font handling

* refactor(user-data): update userSettings to use input() for better reactivity

* refactor(fonts): improve font loading logic and improve readi ness state management again

* refactor(user-data): simplify user fetching logic and improve batch loading

* refactor(custom-fonts): improve font loading logic with run ID for better state management
2026-04-22 17:27:35 -04:00
brios 7abac02b0c refactor(settings): replace unsubscribe logic with takeUntilDestroyed for better resource management (#443)
* refactor(settings): replace unsubscribe logic with takeUntilDestroyed for better resource management

* refactor(settings): streamline saveSettings method and improve error handling

* fix(settings): improve error handling in saveSetting method

* refactor(settings): update tab structure

* refactor(settings): implement OnDestroy interface and clean up unused destroyRef instances
2026-04-22 17:27:11 -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 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 5dfd1e18d9 chore(ui): clear eslint empty-function bucket
- Frontend lifecycle cleanup:
  - remove empty `ngOnInit` stubs and redundant `OnInit` implementations from components that already initialize through signals or effects
  - drop related unused injections that only supported those empty hooks
- No-op handling:
  - replace empty catch and callback blocks with explicit no-op expressions or early returns so the existing behavior stays unchanged while satisfying lint
  - keep silent failure paths silent where the UI intentionally ignores those errors today
- Validation:
  - ran `just ui lint` and cleared the empty lifecycle, empty function, and `no-empty` bucket; the command still fails on the remaining ESLint backlog
  - ran `just ui check`; deps and typecheck pass, and the remaining failure is the outstanding ESLint backlog
2026-04-22 17:26:47 -04:00
James Cox 0d6f83bed0 chore(ui): clear eslint no-unused-vars bucket
- Frontend lint cleanup:
  - remove unused imports, constants, locals, and callback parameters across the UI codebase
  - keep template and callback signatures intact where bindings still pass event arguments by explicitly consuming the values instead of changing behavior
- Metadata and reader surfaces:
  - trim dead symbols in the metadata editor, viewer, search, and reader flows without mixing in broader refactors
  - preserve existing runtime behavior while tightening the code paths that the ESLint bucket touches
- Validation:
  - ran `just ui lint` and cleared the `@typescript-eslint/no-unused-vars` bucket; the command still fails on the remaining ESLint backlog
  - ran `just ui check`; deps and typecheck pass, and the remaining failure is the outstanding ESLint backlog
2026-04-22 17:26:47 -04:00
James Cox 874b013f75 refactor(frontend): rename booklore-ui to frontend
- Frontend path:
  - rename the tracked Angular app tree from `booklore-ui/` to `frontend/`
  - preserve file contents during the move so this commit stays focused on the path change itself
- Frontend docs:
  - update the moved frontend README and contribution guide where they refer to the renamed folder
  - keep those edits limited to path references introduced by the directory rename
2026-04-22 17:26:39 -04:00