Commit Graph
6 Commits
Author SHA1 Message Date
Alex f3138a88c5 feat(ui): New sidebar & search UI (#831) 2026-05-04 09:46:48 +01: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
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 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 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 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