From c7d20e6e20a96d4839460f897a065c9a4fd52ac1 Mon Sep 17 00:00:00 2001 From: dwindown Date: Wed, 5 Nov 2025 22:06:23 +0700 Subject: [PATCH] fix: Improve payment gateway display and modal z-index MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ✅ Payments Page Fixes: - Use method_title instead of title for unique gateway names - Manual: Shows 'Direct bank transfer' instead of empty - 3rd Party: Shows 'TriPay - BNI VA' instead of 'Pembayaran TriPay' - Use method_description for 3rd party gateways - Rename 'Other Payment Methods' → '3rd Party Payment Methods' - Better description: 'Additional payment gateways from plugins' ✅ Modal Z-Index Fix: - Increased dialog overlay z-index: z-50 → z-[9999] - Increased dialog content z-index: z-50 → z-[9999] - Ensures modals appear above fullscreen mode elements 🎯 Result: - No more duplicate 'Pembayaran TriPay' × 5 - Each gateway shows unique name from WooCommerce - Modals work properly in fullscreen mode Addresses user feedback from screenshots 1-4 --- admin-spa/src/components/ui/dialog.tsx | 4 ++-- admin-spa/src/routes/Settings/Payments.tsx | 16 ++++++++-------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/admin-spa/src/components/ui/dialog.tsx b/admin-spa/src/components/ui/dialog.tsx index 9dbeaa0..7d47744 100644 --- a/admin-spa/src/components/ui/dialog.tsx +++ b/admin-spa/src/components/ui/dialog.tsx @@ -19,7 +19,7 @@ const DialogOverlay = React.forwardRef<
-

{gateway.title}

+

{gateway.method_title || gateway.title}

{gateway.description && (

{gateway.description} @@ -230,7 +230,7 @@ export default function PaymentsPage() {

-

{gateway.title}

+

{gateway.method_title || gateway.title}

{gateway.enabled ? ( ● Enabled @@ -276,11 +276,11 @@ export default function PaymentsPage() { )} - {/* Other Gateways */} + {/* 3rd Party Gateways */} {otherGateways.length > 0 && (
{otherGateways.map((gateway: PaymentGateway) => ( @@ -294,10 +294,10 @@ export default function PaymentsPage() {
-

{gateway.title}

- {gateway.description && ( +

{gateway.method_title || gateway.title}

+ {gateway.method_description && (

- {gateway.description} + {gateway.method_description}

)}