From f500a63e9730f6b3e5dff72999d41590c914bff4 Mon Sep 17 00:00:00 2001 From: DanielS Date: Tue, 11 Aug 2026 17:38:40 +0200 Subject: [PATCH] style(wizard): move categories list under left sidebar status stepper --- shop/components/order-wizard.tsx | 145 ++++++++++++++----------------- 1 file changed, 67 insertions(+), 78 deletions(-) diff --git a/shop/components/order-wizard.tsx b/shop/components/order-wizard.tsx index d4a390f..990ecbd 100644 --- a/shop/components/order-wizard.tsx +++ b/shop/components/order-wizard.tsx @@ -845,8 +845,18 @@ export function OrderWizard({ return (
+ {/* Global Main Header over all columns */} +
+

+ Konfigurieren Sie Ihre Lösung +

+

+ Wählen Sie das passende Paket und die benötigten Module für Ihr Business. +

+
+
- {/* Left Side Status Stepper for ALL steps */} + {/* Left Side Status Stepper & Categories for ALL steps */}

@@ -857,21 +867,62 @@ export function OrderWizard({

+ + {/* Step 3 Categories inside left sidebar */} + {step === 3 && ( +
+

+ Kategorien +

+
+ {visibleCategories.map((cat) => { + const sel = selections[cat.id] + const hasSelection = (sel?.productIds && sel.productIds.length > 0) || !!sel?.productId + const isRequired = cat.is_required + const isActive = activeCategoryId === cat.id + + return ( + + ) + })} +
+
+ )}
{/* Right Main Content Column */}
- {/* Dynamic Header */} - {step !== 3 && ( -
-

- Konfigurieren Sie Ihre Lösung -

-

- Wählen Sie das passende Paket und die benötigten Module für Ihr Business. -

-
- )} {/* Step 1: Customer */} @@ -932,74 +983,12 @@ export function OrderWizard({ initial={{ opacity: 0, x: 20 }} animate={{ opacity: 1, x: 0 }} exit={{ opacity: 0, x: -20 }} - className="h-[calc(100vh-100px)] overflow-hidden bg-slate-950/70 backdrop-blur-xl border border-slate-800/80 rounded-2xl shadow-2xl p-2" + className="h-[calc(100vh-160px)] overflow-hidden bg-slate-950/70 backdrop-blur-xl border border-slate-800/80 rounded-2xl shadow-2xl p-2" > -
+
- {/* LEFT inside step 3: Categories Sidebar Menu */} -
-
-

- Kategorien & Optionen -

-

- Wählen Sie das passende Paket und die benötigten Module für Ihr Business. -

-
- -
- {visibleCategories.map((cat) => { - const sel = selections[cat.id] - const hasSelection = (sel?.productIds && sel.productIds.length > 0) || !!sel?.productId - const isRequired = cat.is_required - const isActive = activeCategoryId === cat.id - - return ( - - ) - })} -
-
- - {/* CENTER: Scrollable Category Selection */} -
+ {/* LEFT: Scrollable Category Selection */} +
{/* Upgrade-Modus Hinweis-Banner */} {upgradeMode && lockedDeviceId && (