fix(admin): polish reviews
Same select-all/row-checkbox accessible-name gap in table view; grid view already had aria-label on its row checkbox (customer name), table view was the gap. New adminModeration.selectAllRows key added across en/ru/hy. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
@@ -69,7 +69,7 @@
|
||||
<app-table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th><input type="checkbox" (change)="facade.toggleAll($any($event.target).checked)" /></th>
|
||||
<th><input type="checkbox" [attr.aria-label]="'adminModeration.selectAllRows' | translate" (change)="facade.toggleAll($any($event.target).checked)" /></th>
|
||||
<th>{{ 'adminModeration.customer' | translate }}</th>
|
||||
@if (isColumnVisible('product')) { <th>{{ 'adminModeration.product' | translate }}</th> }
|
||||
@if (isColumnVisible('rating')) { <th>{{ 'adminModeration.rating' | translate }}</th> }
|
||||
@@ -83,7 +83,7 @@
|
||||
<tbody>
|
||||
@for (review of facade.reviews(); track review.id) {
|
||||
<tr>
|
||||
<td><input type="checkbox" [checked]="isSelected(review.id)" (change)="facade.toggleSelection(review.id, $any($event.target).checked)" /></td>
|
||||
<td><input type="checkbox" [checked]="isSelected(review.id)" [attr.aria-label]="review.customerName" (change)="facade.toggleSelection(review.id, $any($event.target).checked)" /></td>
|
||||
<td>{{ review.customerName }}</td>
|
||||
@if (isColumnVisible('product')) { <td>{{ review.productName }}</td> }
|
||||
@if (isColumnVisible('rating')) { <td>{{ review.rating }}★</td> }
|
||||
|
||||
@@ -1219,6 +1219,7 @@ export const en: Translations = {
|
||||
},
|
||||
adminModeration: {
|
||||
search: 'Search by customer, product, or review text…',
|
||||
selectAllRows: 'Select all reviews',
|
||||
allStatuses: 'All statuses',
|
||||
allRatings: 'All ratings',
|
||||
rating: 'Rating',
|
||||
|
||||
@@ -1214,6 +1214,7 @@ export const hy: Translations = {
|
||||
},
|
||||
adminModeration: {
|
||||
search: 'Փնտրել ըստ հաճախորդի, ապրանքի կամ կարծիքի տեքստի…',
|
||||
selectAllRows: 'Ընտրել բոլոր կարծիքները',
|
||||
allStatuses: 'Բոլոր կարգավիճակները',
|
||||
allRatings: 'Բոլոր գնահատականները',
|
||||
rating: 'Գնահատական',
|
||||
|
||||
@@ -1214,6 +1214,7 @@ export const ru: Translations = {
|
||||
},
|
||||
adminModeration: {
|
||||
search: 'Поиск по клиенту, товару или тексту отзыва…',
|
||||
selectAllRows: 'Выбрать все отзывы',
|
||||
allStatuses: 'Все статусы',
|
||||
allRatings: 'Все оценки',
|
||||
rating: 'Оценка',
|
||||
|
||||
@@ -1218,6 +1218,7 @@ export interface Translations {
|
||||
};
|
||||
adminModeration: {
|
||||
search: string;
|
||||
selectAllRows: string;
|
||||
allStatuses: string;
|
||||
allRatings: string;
|
||||
rating: string;
|
||||
|
||||
Reference in New Issue
Block a user