From 2786aba3ef7831c0ce758df64b43e76c4dec319f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C3=85=E2=80=9A=20Miczek?= Date: Mon, 19 Oct 2026 19:56:17 +0200 Subject: [PATCH] Add Pay again for unpaid orders and redesign admin modals. Unpaid PayU confirmations can restart payment; initiate reuses the payment row. Admin modals now use the shared K-design shell. Co-authored-by: Cursor --- .../src/app/core/i18n/translations/cs.ts | 4 + .../src/app/core/i18n/translations/de.ts | 4 + .../src/app/core/i18n/translations/en.ts | 4 + .../src/app/core/i18n/translations/pl.ts | 4 + .../orders/order-detail-modal.component.html | 591 +++++++++++------- .../orders/order-detail-modal.component.ts | 35 ++ .../orders/order-invoice-modal.component.html | 189 +++--- .../products/group-form-modal.component.html | 75 +-- .../product-form-modal.component.html | 26 +- src/admin/src/styles.css | 5 + src/admin/src/styles/admin-k.css | 139 ++++ .../Payments/Commands/PaymentCommands.cs | 48 +- src/shop/src/app/core/i18n/translations/cs.ts | 6 + src/shop/src/app/core/i18n/translations/de.ts | 7 + src/shop/src/app/core/i18n/translations/en.ts | 6 + src/shop/src/app/core/i18n/translations/pl.ts | 6 + .../features/checkout/checkout.component.ts | 57 ++ .../order-confirmation.component.html | 49 +- 18 files changed, 876 insertions(+), 379 deletions(-) diff --git a/src/admin/src/app/core/i18n/translations/cs.ts b/src/admin/src/app/core/i18n/translations/cs.ts index 6a4b87f..138b802 100644 --- a/src/admin/src/app/core/i18n/translations/cs.ts +++ b/src/admin/src/app/core/i18n/translations/cs.ts @@ -223,6 +223,10 @@ export const CS_TRANSLATIONS: TranslationMap = { 'orders.prev': 'Předchozí', 'orders.next': 'Další', 'orders.detail': 'Detail objednávky', + 'orders.lines': 'Položky', + 'orders.customerShipping': 'Zákazník a doručení', + 'orders.guestCustomer': 'Host', + 'orders.updateStatus': 'Uložit stav', 'orders.shipping': 'Doručení', 'orders.shipment': 'Zásilka', 'orders.tracking': 'Sledovací číslo', diff --git a/src/admin/src/app/core/i18n/translations/de.ts b/src/admin/src/app/core/i18n/translations/de.ts index 88957b7..1be0193 100644 --- a/src/admin/src/app/core/i18n/translations/de.ts +++ b/src/admin/src/app/core/i18n/translations/de.ts @@ -223,6 +223,10 @@ export const DE_TRANSLATIONS: TranslationMap = { 'orders.prev': 'Zurück', 'orders.next': 'Weiter', 'orders.detail': 'Bestelldetails', + 'orders.lines': 'Positionen', + 'orders.customerShipping': 'Kunde & Versand', + 'orders.guestCustomer': 'Gastkunde', + 'orders.updateStatus': 'Status aktualisieren', 'orders.shipping': 'Versand', 'orders.shipment': 'Sendung', 'orders.tracking': 'Sendungsnummer', diff --git a/src/admin/src/app/core/i18n/translations/en.ts b/src/admin/src/app/core/i18n/translations/en.ts index f72a8e1..2bc1670 100644 --- a/src/admin/src/app/core/i18n/translations/en.ts +++ b/src/admin/src/app/core/i18n/translations/en.ts @@ -221,6 +221,10 @@ export const EN_TRANSLATIONS: TranslationMap = { 'orders.prev': 'Previous', 'orders.next': 'Next', 'orders.detail': 'Order details', + 'orders.lines': 'Line items', + 'orders.customerShipping': 'Customer & shipping', + 'orders.guestCustomer': 'Guest customer', + 'orders.updateStatus': 'Update status', 'orders.shipping': 'Shipping', 'orders.shipment': 'Shipment', 'orders.tracking': 'Tracking number', diff --git a/src/admin/src/app/core/i18n/translations/pl.ts b/src/admin/src/app/core/i18n/translations/pl.ts index 0391e7f..019d1e0 100644 --- a/src/admin/src/app/core/i18n/translations/pl.ts +++ b/src/admin/src/app/core/i18n/translations/pl.ts @@ -221,6 +221,10 @@ export const PL_TRANSLATIONS: TranslationMap = { 'orders.prev': 'Poprzednia', 'orders.next': 'Następna', 'orders.detail': 'Szczegóły zamówienia', + 'orders.lines': 'Pozycje', + 'orders.customerShipping': 'Klient i dostawa', + 'orders.guestCustomer': 'Gość', + 'orders.updateStatus': 'Zapisz status', 'orders.shipping': 'Dostawa', 'orders.shipment': 'Przesyłka', 'orders.tracking': 'Numer śledzenia', diff --git a/src/admin/src/app/features/orders/order-detail-modal.component.html b/src/admin/src/app/features/orders/order-detail-modal.component.html index 1b654f8..2e3d19d 100644 --- a/src/admin/src/app/features/orders/order-detail-modal.component.html +++ b/src/admin/src/app/features/orders/order-detail-modal.component.html @@ -1,115 +1,72 @@ @if (open()) {