From b1346183c90c5b6365fc414a4ef9c2cee61a63fa Mon Sep 17 00:00:00 2001 From: Christian Vidal Wolf Date: Sat, 21 Feb 2026 11:19:43 +0100 Subject: [PATCH] ui: fix modal z-index conflict in Experiments tab --- components/ExperimentDetail.tsx | 6 +++--- components/ExperimentForm.tsx | 14 ++++++-------- 2 files changed, 9 insertions(+), 11 deletions(-) diff --git a/components/ExperimentDetail.tsx b/components/ExperimentDetail.tsx index 11c17cc..cf423d4 100644 --- a/components/ExperimentDetail.tsx +++ b/components/ExperimentDetail.tsx @@ -66,7 +66,7 @@ const ExperimentDetail: React.FC = ({ experimentId, onClo if (!experimentId) return null; return ( -
+
{/* Header */}
@@ -149,14 +149,14 @@ const ExperimentDetail: React.FC = ({ experimentId, onClo /> = 0 ? '+' : ''}${experiment.actual_lift_percent}%` : '—'} color={experiment.actual_lift_percent && experiment.actual_lift_percent >= 0 ? 'emerald' : 'red'} /> = ({ .split(/[\s,]+/) // Split by space or comma .map(a => a.trim().toUpperCase()) .filter(a => a.length > 0 && /^[A-Z0-9]{9,10}$/.test(a)); // Validate ASIN format - + const uniqueAsins = Array.from(new Set([...formData.asins, ...newAsins])); setFormData({ ...formData, asins: uniqueAsins }); setAsinInput(''); @@ -95,7 +95,7 @@ const ExperimentForm: React.FC = ({ const marketplaceOptions = ['DE', 'UK', 'FR', 'IT', 'ES']; return ( -
+
{/* Header */}
@@ -173,11 +173,10 @@ const ExperimentForm: React.FC = ({ setFormData({ ...formData, asins: [] }); setSelectedLine(''); }} - className={`flex-1 px-3 py-2 rounded-lg text-xs font-bold border transition-all ${ - targetType === 'asin' + className={`flex-1 px-3 py-2 rounded-lg text-xs font-bold border transition-all ${targetType === 'asin' ? 'bg-indigo-600/20 border-indigo-500 text-indigo-400' : 'bg-slate-800 border-slate-600 text-slate-400 hover:border-slate-500' - }`} + }`} > 🎯 Specific ASINs @@ -188,11 +187,10 @@ const ExperimentForm: React.FC = ({ setFormData({ ...formData, asins: [] }); setAsinInput(''); }} - className={`flex-1 px-3 py-2 rounded-lg text-xs font-bold border transition-all ${ - targetType === 'line' + className={`flex-1 px-3 py-2 rounded-lg text-xs font-bold border transition-all ${targetType === 'line' ? 'bg-indigo-600/20 border-indigo-500 text-indigo-400' : 'bg-slate-800 border-slate-600 text-slate-400 hover:border-slate-500' - }`} + }`} > 📦 Entire Product Line