- 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`
Add keyboard handlers and focus support to clickable UI affordances across reader dialogs, metadata views, cards, and layout controls.
Keep the existing click behavior intact while making non-button elements operable from the keyboard and clearing the remaining template interaction accessibility backlog.
Validation: just ui lint
- Frontend accessibility cleanup:
- add concrete `for` and `id` or `inputId` bindings where labels map to real inputs, selects, and number fields
- convert remaining row headers and grouped-control captions from `<label>` to `<span>` where the markup described composite controls rather than a single form element
- Lint progress:
- clear the remaining `@angular-eslint/template/label-has-associated-control` backlog from 109 issues to 0
- reduce total frontend lint errors from 532 to 423 while keeping the next accessibility buckets isolated
- Validation:
- `just ui lint`
- Frontend 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