diff --git a/src/features/ai-copilot/components/ai-explanation-modal.tsx b/src/features/ai-copilot/components/ai-explanation-modal.tsx index 7577eb1..63366c4 100644 --- a/src/features/ai-copilot/components/ai-explanation-modal.tsx +++ b/src/features/ai-copilot/components/ai-explanation-modal.tsx @@ -35,108 +35,101 @@ export function AiExplanationModal({ const handleClose = () => { setIsVisible(false); - setTimeout(onClose, 250); + setTimeout(onClose, 200); }; if (!isOpen && !isVisible) return null; if (!mounted) return null; - const getGammeColor = (g?: string | null) => { + const getGammeStyles = (g?: string | null) => { switch (g) { - case "A": return "text-emerald-500 border-emerald-500/50 bg-emerald-500/10"; - case "C": return "text-amber-500 border-amber-500/50 bg-amber-500/10"; - case "Z": return "text-rose-500 border-rose-500/50 bg-rose-500/10"; - default: return "text-slate-500 border-slate-500/50 bg-slate-500/10"; + case "A": return "text-[var(--accent-success)] border-[var(--accent-success-bg)] bg-[var(--accent-success-bg)]"; + case "C": return "text-[var(--accent-warning)] border-[var(--accent-warning-bg)] bg-[var(--accent-warning-bg)]"; + case "Z": return "text-[var(--accent-error)] border-[var(--accent-error-bg)] bg-[var(--accent-error-bg)]"; + default: return "text-[var(--text-muted)] border-[var(--border)] bg-[var(--bg-elevated)]"; } }; const modalContent = (
- {productName} ({productCode}) +
+ {productName} ({productCode})
- Analyse générée en temps réel selon les indicateurs CA, Marge et Régularité. -
+ {/* Meta Info */} +{ e.stopPropagation(); - handleAnalyze(); + setIsModalOpen(true); }} - /> -