- Reader and metadata typing:
- align ebook and cbx reader event, progress, dialog, and helper types with the stricter checks surfaced by the ESLint cleanup
- replace unsafe non-null assertions and broad event assumptions with guarded access in reader, metadata, and shelf flows
- Template and component compatibility:
- tighten menu item typing for Angular template checking and normalize overlay and card click handlers to use explicit DOM event types
- repair chart, preferences, and websocket factory typings that broke standalone typecheck and production build validation
- Tests:
- fix the magic shelf form-array assertion so the frontend test suite compiles cleanly under the stricter checker
- Validation:
- `just ui check`
- `just ui typecheck`
- `just ui test`
Replace 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
- Frontend lifecycle cleanup:
- remove empty `ngOnInit` stubs and redundant `OnInit` implementations from components that already initialize through signals or effects
- drop related unused injections that only supported those empty hooks
- No-op handling:
- replace empty catch and callback blocks with explicit no-op expressions or early returns so the existing behavior stays unchanged while satisfying lint
- keep silent failure paths silent where the UI intentionally ignores those errors today
- Validation:
- ran `just ui lint` and cleared the empty lifecycle, empty function, and `no-empty` bucket; the command still fails on the remaining ESLint backlog
- ran `just ui check`; deps and typecheck pass, and the remaining failure is the outstanding ESLint backlog
- Frontend lint cleanup:
- remove unused imports, constants, locals, and callback parameters across the UI codebase
- keep template and callback signatures intact where bindings still pass event arguments by explicitly consuming the values instead of changing behavior
- Metadata and reader surfaces:
- trim dead symbols in the metadata editor, viewer, search, and reader flows without mixing in broader refactors
- preserve existing runtime behavior while tightening the code paths that the ESLint bucket touches
- Validation:
- ran `just ui lint` and cleared the `@typescript-eslint/no-unused-vars` bucket; the command still fails on the remaining ESLint backlog
- ran `just ui check`; deps and typecheck pass, and the remaining failure is the outstanding ESLint backlog
- 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