From 740cfcbb9411535fd31520118d6821ac0d042420 Mon Sep 17 00:00:00 2001 From: Dwindi Ramadhana Date: Thu, 8 Jan 2026 09:26:54 +0700 Subject: [PATCH] fix(admin): shipping fallback and variation attribute styling 1. Shipping method selector now shows static shippings list when address is not complete, instead of 'No shipping methods available'. Only shows the empty message when address IS complete but no methods matched. 2. Variation selector in Dialog and Drawer now displays attribute names (Size, Dispenser) in semibold and values (30ml, pump) in normal weight for better visual hierarchy. --- .../src/routes/Orders/partials/OrderForm.tsx | 50 +++++++++++++------ 1 file changed, 35 insertions(+), 15 deletions(-) diff --git a/admin-spa/src/routes/Orders/partials/OrderForm.tsx b/admin-spa/src/routes/Orders/partials/OrderForm.tsx index 1f273a8..d0d9fff 100644 --- a/admin-spa/src/routes/Orders/partials/OrderForm.tsx +++ b/admin-spa/src/routes/Orders/partials/OrderForm.tsx @@ -729,10 +729,10 @@ export default function OrderForm({
{selectedProduct.variations?.map((variation) => { - const variationLabel = Object.entries(variation.attributes) - .map(([key, value]) => `${key}: ${value || ''}`) + // Build formatted label with styled key:value pairs + const variationParts = Object.entries(variation.attributes) .filter(([_, value]) => value) // Remove empty values - .join(', '); + .map(([key, value]) => ({ key, value: value || '' })); return (