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`
This commit is contained in:
James Cox
2026-04-22 17:26:47 -04:00
committed by Zach Yale
parent 0a407f6fae
commit b03ecf3a5e
34 changed files with 157 additions and 130 deletions
@@ -53,7 +53,7 @@
</button>
<p-popover #displaySettingsPopover>
<div class="display-settings-content">
<label class="display-settings-label">{{ t('cardSize') }}</label>
<span class="display-settings-label">{{ t('cardSize') }}</span>
<p-slider
[ngModel]="authorScaleService.scaleFactor()"
(ngModelChange)="authorScaleService.setScale($event)"
@@ -72,7 +72,7 @@
<p-popover #filterPopover>
<div class="filter-popover-content">
<div class="filter-group">
<label class="filter-label">{{ t('filters.matchStatus') }}</label>
<span class="filter-label">{{ t('filters.matchStatus') }}</span>
<p-select
[options]="[
{label: t('filters.all'), value: 'all'},
@@ -88,7 +88,7 @@
</div>
<div class="filter-group">
<label class="filter-label">{{ t('filters.photoStatus') }}</label>
<span class="filter-label">{{ t('filters.photoStatus') }}</span>
<p-select
[options]="[
{label: t('filters.all'), value: 'all'},
@@ -104,7 +104,7 @@
</div>
<div class="filter-group">
<label class="filter-label">{{ t('filters.readStatus') }}</label>
<span class="filter-label">{{ t('filters.readStatus') }}</span>
<p-select
[options]="[
{label: t('filters.all'), value: 'all'},
@@ -122,7 +122,7 @@
</div>
<div class="filter-group">
<label class="filter-label">{{ t('filters.bookCount') }}</label>
<span class="filter-label">{{ t('filters.bookCount') }}</span>
<p-select
[options]="[
{label: t('filters.all'), value: 'all'},
@@ -146,7 +146,7 @@
</div>
<div class="filter-group">
<label class="filter-label">{{ t('filters.library') }}</label>
<span class="filter-label">{{ t('filters.library') }}</span>
<p-select
[options]="libraryOptions()"
[ngModel]="filters().library"
@@ -158,7 +158,7 @@
</div>
<div class="filter-group">
<label class="filter-label">{{ t('filters.genre') }}</label>
<span class="filter-label">{{ t('filters.genre') }}</span>
<p-select
[options]="genreOptions()"
[ngModel]="filters().genre"
@@ -3,16 +3,17 @@
<div class="search-form">
<div class="search-fields">
<div class="field">
<label>{{ t('authorNameLabel') }}</label>
<input pInputText type="text" [(ngModel)]="searchQuery" [placeholder]="t('authorNamePlaceholder')" class="search-input"/>
<label for="author-match-name">{{ t('authorNameLabel') }}</label>
<input id="author-match-name" pInputText type="text" [(ngModel)]="searchQuery" [placeholder]="t('authorNamePlaceholder')" class="search-input"/>
</div>
<div class="field">
<label>{{ t('asinLabel') }}</label>
<input pInputText type="text" [(ngModel)]="asinQuery" [placeholder]="t('asinPlaceholder')" class="search-input"/>
<label for="author-match-asin">{{ t('asinLabel') }}</label>
<input id="author-match-asin" pInputText type="text" [(ngModel)]="asinQuery" [placeholder]="t('asinPlaceholder')" class="search-input"/>
</div>
<div class="field region-field">
<label>{{ t('regionLabel') }}</label>
<label for="author-match-region">{{ t('regionLabel') }}</label>
<p-select
inputId="author-match-region"
[options]="regionOptions"
[(ngModel)]="selectedRegion"
optionLabel="label"