Commit Graph
22 Commits
Author SHA1 Message Date
James Cox b03ecf3a5e chore(ui): clear eslint label-association bucket
- 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`
2026-04-22 17:26:47 -04:00
James Cox 0a407f6fae chore(ui): clear eslint presentation-label bucket
- Frontend accessibility cleanup:
  - replace presentational `<label>` elements with `<span>` in settings, reader preferences, and file-mover templates where the text was acting as a control-group heading rather than a form label
  - keep the markup semantics aligned with toggles, sliders, button groups, and custom components instead of forcing fake label associations
- Lint progress:
  - reduce the `@angular-eslint/template/label-has-associated-control` backlog by removing false-positive label markup before the real control-association pass
- Validation:
  - `just ui lint`
2026-04-22 17:26:47 -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 ee02f6e386 style(frontend): enforce property-no-vendor-prefix in scss
- Stylelint:
  - re-enable property-no-vendor-prefix in the frontend Stylelint config
  - apply the rule cleanup as its own commit so browser-compatibility changes stay reviewable in isolation
- Styles:
  - remove flagged vendor-prefixed property forms where an unprefixed property already exists or is now used instead
  - clean up duplicate standard declarations left behind by the autofix pass
- Validation:
  - run just ui stylelint
2026-04-22 17:26:46 -04:00
James Cox 7058992145 style(frontend): enforce keyframes-name-pattern in scss
- Stylelint:
  - re-enable keyframes-name-pattern in the frontend Stylelint config
  - keep the rule rollout isolated so the animation naming change can be reviewed or reverted independently
- Animation styles:
  - rename camelCase keyframes to kebab-case in the flagged reader, metadata, auth, and directory-picker stylesheets
  - update the matching local animation references in the same files so behavior stays unchanged
- Validation:
  - run just ui stylelint
2026-04-22 17:26:46 -04:00
James Cox 32765de84c style(frontend): enforce declaration-block-single-line-max-declarations in scss
- Stylelint:
  - re-enable declaration-block-single-line-max-declarations in the frontend Stylelint config
  - keep the rule change isolated to a formatting-only commit for easier rollback if needed
- Chart styles:
  - expand compressed declaration blocks in the stats chart styles into multi-line blocks
  - reformat the book flow empty-state styles without changing selectors or declarations
- Layout styles:
  - expand the topbar animation keyframe blocks and bulk ISBN status styles to satisfy the single-line declaration limit
- Validation:
  - run just ui stylelint
2026-04-22 17:26:46 -04:00
James Cox 43412c0d29 style(frontend): enforce at-rule-empty-line-before in scss
- Stylelint:
  - re-enable `at-rule-empty-line-before` in the frontend Stylelint config while preserving the agreed Angular and legacy Sass exceptions
- SCSS:
  - normalize blank-line spacing before Sass includes, media queries, and other at-rules where the repo was inconsistent
- Validation:
  - `just ui stylelint`
2026-04-22 17:26:45 -04:00
James Cox d95424dd22 style(frontend): enforce no-empty-source in scss
- Stylelint:
  - re-enable `no-empty-source` in the frontend Stylelint config while keeping the agreed Angular and legacy Sass exceptions untouched
- SCSS:
  - replace empty stylesheet files with explicit placeholder comments to document that those surfaces intentionally rely on shared styling
- Validation:
  - `just ui stylelint`
2026-04-22 17:26:45 -04:00
James Cox a689751e39 style(frontend): enforce number-max-precision in scss
- Stylelint:
  - re-enable `number-max-precision` in the frontend Stylelint config while keeping the agreed Angular and legacy Sass exceptions unchanged
- SCSS:
  - round overly precise rem values in the shared tag component stylesheet to the configured precision without changing the size scale materially
- Validation:
  - `just ui stylelint`
2026-04-22 17:26:44 -04:00
James Cox 55f448191f style(frontend): enforce rule-empty-line-before in scss
- Stylelint:
  - re-enable `rule-empty-line-before` in the frontend Stylelint config while preserving the agreed Angular and legacy Sass exceptions
- SCSS:
  - normalize blank-line spacing before nested rules and sibling blocks across frontend stylesheets without changing selectors or computed styles
- Validation:
  - `just ui stylelint`
2026-04-22 17:26:44 -04:00
James Cox a04daac341 style(frontend): enforce declaration-empty-line-before in scss
- Stylelint:
  - re-enable `declaration-empty-line-before` in the frontend Stylelint config while leaving the agreed Angular and legacy Sass exceptions unchanged
- SCSS:
  - normalize declaration spacing across frontend stylesheets to match the enforced empty-line convention without changing selectors or computed styles
- Validation:
  - `just ui stylelint`
2026-04-22 17:26:44 -04:00
James Cox a991351bb5 style(frontend): enforce color-hex-length in scss
- Stylelint:
  - re-enable `color-hex-length` in the frontend Stylelint config while keeping the agreed Angular and legacy Sass exceptions as-is
- SCSS:
  - normalize repeatable long hex colors to their short form where the value is identical
- Validation:
  - `just ui stylelint`
2026-04-22 17:26:44 -04:00
James Cox 7b9830faf5 style(frontend): enforce shorthand-property-no-redundant-values in scss
- Stylelint:
  - re-enable `shorthand-property-no-redundant-values` in the frontend Stylelint config while leaving the agreed Angular and legacy Sass exceptions intact
- SCSS:
  - collapse redundant shorthand values across frontend stylesheets without changing computed spacing or sizing
- Validation:
  - `just ui stylelint`
2026-04-22 17:26:43 -04:00
James Cox e46f87eb96 style(frontend): enforce media-feature-range-notation in scss
- Stylelint:
  - re-enable `media-feature-range-notation` in the frontend Stylelint config while keeping the agreed Angular and legacy Sass exceptions untouched
- SCSS:
  - convert parenthesized `min-` and `max-` media features to context range notation across frontend stylesheets without changing breakpoint values
- Validation:
  - `just ui stylelint`
2026-04-22 17:26:43 -04:00
James Cox ddcbb5b666 style(frontend): enforce color-function-notation in scss
- Stylelint:
  - re-enable `color-function-notation` in the frontend Stylelint config while keeping the agreed Angular and legacy Sass exceptions unchanged
- SCSS:
  - normalize comma-based `rgb(...)` color syntax to modern space-and-slash notation across frontend stylesheets without changing color values
- Validation:
  - `just ui stylelint`
2026-04-22 17:26:43 -04:00
James Cox 130463bc4b style(frontend): enforce color-function-alias-notation in scss
- Stylelint:
  - re-enable `color-function-alias-notation` in the frontend Stylelint config while preserving the agreed Angular and legacy Sass exceptions
- SCSS:
  - replace legacy `rgba(...)` aliases with `rgb(...)` across the frontend stylesheet tree without changing color values or selector structure
- Validation:
  - `just ui stylelint`
2026-04-22 17:26:43 -04:00
James Cox 6921da76ba style(frontend): enforce alpha-value-notation in scss
- Stylelint:
  - re-enable `alpha-value-notation` in the frontend Stylelint config while keeping the agreed Angular and legacy Sass exceptions disabled
- SCSS:
  - rewrite decimal alpha values to percentage notation across the frontend stylesheet tree without changing selector structure or layout behavior
- Validation:
  - `just ui stylelint`
2026-04-22 17:26:43 -04:00
James Cox dbd1f20357 style(frontend): resolve the remaining stylelint findings
Merge duplicate SCSS selectors that were only tripping stylelint, add a generic fallback for the PrimeIcons font usage, and relax the legacy Sass variable naming rule for the shared layout variables.

Validation:
- just ui stylelint
2026-04-22 17:26:42 -04:00
James Cox e2a8e6a1d6 style(frontend): apply the first eslint autofix pass
- ESLint autofixes:
  - apply the safe automatic ESLint rewrites without taking on manual typing, accessibility, or Angular inject migrations
  - normalize `==` and `!=` comparisons in templates, convert `Array<T>` to `T[]`, and tighten a small set of `let` declarations to `const`
  - remove `autofocus` attributes that ESLint can rewrite mechanically
- Cleanup scope:
  - keep this pass limited to files changed by `ng lint --fix` so the remaining 702 manual ESLint findings stay isolated for later review

- Validation:
  - `env YARN_ENABLE_GLOBAL_CACHE=0 YARN_CACHE_FOLDER=../.yarn/cache corepack yarn lint:eslint --fix` reduced the remaining ESLint count from 721 to 702 before stopping on non-fixable issues
2026-04-22 17:26:40 -04:00
James Cox 34fc60050f style(frontend): apply the first stylelint autofix pass
- SCSS autofixes:
  - apply Stylelint's automatic fixes across the frontend stylesheet set without touching TypeScript or Angular templates
  - normalize zero values, shorthand properties, selector casing, and similar mechanical stylesheet rewrites
  - keep this pass limited to autofix output so the remaining manual stylelint findings stay isolated for later review
- Cleanup scope:
  - update component SCSS and shared layout styles only where Stylelint could rewrite them mechanically
  - leave the unresolved manual stylelint findings in place for a smaller follow-up pass

- Validation:
  - `just ui stylelint-fix` reduced the remaining stylelint count from 140 to 62 before stopping on non-fixable issues
2026-04-22 17:26:40 -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