From f5225ac326b3b5f9afa5f072c7061152bee02f55 Mon Sep 17 00:00:00 2001 From: sdarbinyan Date: Sun, 19 Jul 2026 23:39:14 +0400 Subject: [PATCH] fix(storefront): polish cart MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix real regression: the payment success checkmark and timeout clock icons had been corrupted to literal '?' glyphs (confirmed via git history — ✓ and ⏱ were replaced), so a customer who just paid saw a confusing '?' instead of a success indicator. Restored both icons and marked them aria-hidden since the adjacent heading already conveys the status. Add missing accessible names to icon-only buttons that had none: quantity increase/decrease controls and the mobile delete button (desktop remove button had a title attribute only, which is not reliably announced by screen readers — added aria-label alongside it). New cart.increaseQuantity/decreaseQuantity keys added across all three locales. Co-Authored-By: Claude Sonnet 5 --- src/app/i18n/en.ts | 2 ++ src/app/i18n/hy.ts | 2 ++ src/app/i18n/ru.ts | 2 ++ src/app/i18n/translations.ts | 2 ++ src/app/pages/cart/cart.component.html | 14 +++++++------- 5 files changed, 15 insertions(+), 7 deletions(-) diff --git a/src/app/i18n/en.ts b/src/app/i18n/en.ts index faf3573..3eb3cef 100644 --- a/src/app/i18n/en.ts +++ b/src/app/i18n/en.ts @@ -105,6 +105,8 @@ export const en: Translations = { autoClose: 'Window will close automatically...', confirmClear: 'Are you sure you want to clear the cart?', removeItem: 'Remove item', + increaseQuantity: 'Increase quantity', + decreaseQuantity: 'Decrease quantity', paymentQrAlt: 'Payment QR code', acceptTerms: 'Please accept the offer terms, return policy, and warranty terms to proceed with the order.', copyError: 'Copy error:', diff --git a/src/app/i18n/hy.ts b/src/app/i18n/hy.ts index cc1b728..eb5b594 100644 --- a/src/app/i18n/hy.ts +++ b/src/app/i18n/hy.ts @@ -105,6 +105,8 @@ export const hy: Translations = { autoClose: 'Պատուհանը կփակվի ավտոմատ...', confirmClear: 'Վստա՞հ եք, որ ցանկանում եք մաքրել զամբյուղը', removeItem: 'Հեռացնել ապրանքը', + increaseQuantity: 'Ավելացնել քանակը', + decreaseQuantity: 'Նվազեցնել քանակը', paymentQrAlt: 'Վճարման QR կոդ', acceptTerms: 'Խնդրում ենք ընդունել պայմանները՝ պատվերը հաստատելու համար։', copyError: 'Պատճենման սխալ՝', diff --git a/src/app/i18n/ru.ts b/src/app/i18n/ru.ts index eed793d..657ce06 100644 --- a/src/app/i18n/ru.ts +++ b/src/app/i18n/ru.ts @@ -105,6 +105,8 @@ export const ru: Translations = { autoClose: 'Окно закроется автоматически...', confirmClear: 'Вы уверены, что хотите очистить корзину?', removeItem: 'Удалить товар', + increaseQuantity: 'Увеличить количество', + decreaseQuantity: 'Уменьшить количество', paymentQrAlt: 'QR-код для оплаты', acceptTerms: 'Пожалуйста, примите условия оферты, политику возврата и возврата для подтверждения оформления заказа.', copyError: 'Ошибка копирования:', diff --git a/src/app/i18n/translations.ts b/src/app/i18n/translations.ts index 2c1bf4c..b6ff9b8 100644 --- a/src/app/i18n/translations.ts +++ b/src/app/i18n/translations.ts @@ -103,6 +103,8 @@ export interface Translations { autoClose: string; confirmClear: string; removeItem: string; + increaseQuantity: string; + decreaseQuantity: string; paymentQrAlt: string; acceptTerms: string; copyError: string; diff --git a/src/app/pages/cart/cart.component.html b/src/app/pages/cart/cart.component.html index f20674f..11d276c 100644 --- a/src/app/pages/cart/cart.component.html +++ b/src/app/pages/cart/cart.component.html @@ -37,7 +37,7 @@
{{ itemName(item) }} -
- {{ item.quantity }} -
-