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
@@ -38,8 +38,9 @@
<div class="weights-grid">
@for (key of orderedKeys; track key) {
<div class="weight-field">
<label class="field-label">{{ getFieldLabel(key) }}</label>
<label class="field-label" [for]="'metadata-weight-' + key">{{ getFieldLabel(key) }}</label>
<p-inputNumber
[inputId]="'metadata-weight-' + key"
size="small"
[formControlName]="key"
[min]="0"
@@ -24,7 +24,7 @@
@if (amazonEnabled) {
<div class="setting-options">
<div class="config-field">
<label class="config-label">{{ t('region') }}</label>
<span class="config-label">{{ t('region') }}</span>
<p-select
[options]="amazonDomains"
[(ngModel)]="selectedAmazonDomain"
@@ -34,7 +34,7 @@
</div>
<div class="config-field">
<div class="config-label-row">
<label class="config-label">{{ t('cookieLabel') }}</label>
<span class="config-label">{{ t('cookieLabel') }}</span>
<app-external-doc-link docType="amazonCookie"></app-external-doc-link>
</div>
<p class="config-description">{{ t('cookieDesc') }}</p>
@@ -57,7 +57,7 @@
@if (googleEnabled) {
<div class="setting-options">
<div class="config-field">
<label class="config-label">{{ t('languageRestriction') }}</label>
<span class="config-label">{{ t('languageRestriction') }}</span>
<p-select
[options]="googleLanguages"
[(ngModel)]="selectedGoogleLanguage"
@@ -67,7 +67,7 @@
</p-select>
</div>
<div class="config-field">
<label class="config-label">{{ t('apiKeyOptional') }}</label>
<span class="config-label">{{ t('apiKeyOptional') }}</span>
<p class="config-description">{{ t('googleApiDesc') }}</p>
<input
type="text"
@@ -91,7 +91,7 @@
<div class="setting-options">
<div class="config-field">
<div class="config-label-row">
<label class="config-label">{{ t('apiToken') }}</label>
<span class="config-label">{{ t('apiToken') }}</span>
<app-external-doc-link docType="hardcover"></app-external-doc-link>
</div>
<input
@@ -113,7 +113,7 @@
@if (comicvineEnabled) {
<div class="setting-options">
<div class="config-field">
<label class="config-label">{{ t('apiToken') }}</label>
<span class="config-label">{{ t('apiToken') }}</span>
<input
type="text"
pInputText
@@ -134,7 +134,7 @@
@if (audibleEnabled) {
<div class="setting-options">
<div class="config-field">
<label class="config-label">{{ t('region') }}</label>
<span class="config-label">{{ t('region') }}</span>
<p-select
[options]="audibleDomains"
[(ngModel)]="selectedAudibleDomain"