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
@@ -185,25 +185,26 @@
</h4>
<div class="details-grid">
<div class="detail-field">
<label>{{ t('userInfo.fullName') }}</label>
<label [for]="'user-full-name-' + user.id">{{ t('userInfo.fullName') }}</label>
@if (user.isEditing) {
<input type="text" pInputText [(ngModel)]="user.name" [placeholder]="t('userInfo.enterFullName')"/>
<input [id]="'user-full-name-' + user.id" type="text" pInputText [(ngModel)]="user.name" [placeholder]="t('userInfo.enterFullName')"/>
} @else {
<span>{{ user.name || t('userInfo.notSet') }}</span>
}
</div>
<div class="detail-field">
<label>{{ t('userInfo.email') }}</label>
<label [for]="'user-email-' + user.id">{{ t('userInfo.email') }}</label>
@if (user.isEditing) {
<input type="email" pInputText [(ngModel)]="user.email" [placeholder]="t('userInfo.enterEmail')"/>
<input [id]="'user-email-' + user.id" type="email" pInputText [(ngModel)]="user.email" [placeholder]="t('userInfo.enterEmail')"/>
} @else {
<span>{{ user.email || t('userInfo.notSet') }}</span>
}
</div>
<div class="detail-field detail-field-wide">
<label>{{ t('userInfo.libraries') }}</label>
<label [for]="'user-libraries-' + user.id">{{ t('userInfo.libraries') }}</label>
@if (user.isEditing) {
<p-multiSelect
[inputId]="'user-libraries-' + user.id"
[options]="allLibraries"
optionLabel="name"
optionValue="id"