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`
This commit is contained in:
James Cox
2026-04-22 17:26:51 -04:00
committed by Zach Yale
parent 782bd63664
commit 43389c8dc4
30 changed files with 115 additions and 87 deletions
@@ -658,8 +658,9 @@ describe('MagicShelfComponent (Part 3)', () => {
const rulesArray = result.get('rules') as FormArray;
expect(rulesArray.length).toBe(2);
const nestedGroup = rulesArray.at(1);
expect(nestedGroup.get('rules')).toBeDefined();
expect(nestedGroup.get('rules').length).toBe(1);
const nestedRules = nestedGroup.get('rules') as FormArray;
expect(nestedRules).toBeDefined();
expect(nestedRules.length).toBe(1);
});
it('should preserve join type', () => {