From 623b1fa2a0a0e5719b425b70ff9bbe9967e7a7d4 Mon Sep 17 00:00:00 2001 From: caty21 Date: Sat, 27 Jun 2026 19:05:23 +0200 Subject: [PATCH] =?UTF-8?q?fix:=20compact=20convergence=20block,=20cache?= =?UTF-8?q?=20icon=20tooltip,=20R=C3=A9sum=C3=A9=20IA=20dark=20theme?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Bloc FOND./MARCHÉ/Signaux seuls : 3 colonnes larges → 1 ligne compacte - cache 2h : retiré de l'affichage inline → icône Database tooltip (hover) - Résumé IA : text-indigo-600 → text-slate-400/hover:slate-200 (harmonisé) - Modal Résumé IA : bg-white → dark (bg-slate-900, textes slate-200/300) - Dot "Réel" → abbr "Tx.R" + tooltip explicatif (Taux Réel = CT − CPI YoY) Co-Authored-By: Claude Sonnet 4.6 --- components/CurrencyCard.tsx | 60 ++++++++++++---------------------- components/NarrativeButton.tsx | 14 ++++---- 2 files changed, 27 insertions(+), 47 deletions(-) diff --git a/components/CurrencyCard.tsx b/components/CurrencyCard.tsx index fae8fb5..c7de555 100644 --- a/components/CurrencyCard.tsx +++ b/components/CurrencyCard.tsx @@ -1067,7 +1067,7 @@ export default function CurrencyCard({ { key: "mac", abbr: "Fonda.", dir }, { key: "cot", abbr: "COT", dir: cotSignalDir }, { key: "sent", abbr: "Sent", dir: sentSignalDir }, - { key: "real", abbr: "Réel", dir: realRateDir }, + { key: "real", abbr: "Tx.R", dir: realRateDir }, ]; // Auto-select first available slider block when data changes @@ -1124,8 +1124,8 @@ export default function CurrencyCard({ {esi !== null && } {fromCache && cacheAge && ( - - cache {cacheAge} + + )} @@ -1133,7 +1133,7 @@ export default function CurrencyCard({ {!loading && (
{signalSummary.map(s => ( -
+
+1.5% → restrictif (bullish)\n< 0% → accommodant (bearish)` : `${s.abbr} : ${s.dir}`}>
- {/* ── Divergence macro / marché ───────────────────────────── */} + {/* ── Divergence macro / marché — compact 1 ligne ─────────── */} {(dir !== "neutral" || mispricDir !== "neutral") && ( -
- {/* Macro */} -
- Fond. - - {dir === "bullish" ? "↑" : dir === "bearish" ? "↓" : "—"} - - - {macroScore > 0 ? "+" : ""}{macroScore} - -
- {/* Verdict central */} -
-
- {bothOpposed ? "⚠ Divergence" : bothAligned ? (divergenceSignal === "bullish" ? "✓ Convergence ↑" : "✓ Convergence ↓") : dir !== "neutral" ? "Macro seule" : "Signaux seuls"} -
- {bothOpposed && ( -
- Fond. {dir === "bullish" ? "haussier" : "baissier"} · Marché {mispricDir === "bullish" ? "haussier" : "baissier"} -
- )} -
- {/* Marché / Signaux */} -
- Marché - - {mispricDir === "bullish" ? "↑" : mispricDir === "bearish" ? "↓" : "—"} - - OIS/COT/Sent -
+ Fond. + {dir === "bullish" ? "↑" : dir === "bearish" ? "↓" : "—"} + ({macroScore > 0 ? "+" : ""}{macroScore}) + · + + {bothOpposed ? "⚠ Divergence" : bothAligned ? (divergenceSignal === "bullish" ? "✓ Conv. ↑" : "✓ Conv. ↓") : dir !== "neutral" ? "Macro seule" : "Signaux seuls"} + + · + Marché + {mispricDir === "bullish" ? "↑" : mispricDir === "bearish" ? "↓" : "—"} + OIS/COT
)} diff --git a/components/NarrativeButton.tsx b/components/NarrativeButton.tsx index c9cf506..cf8640b 100644 --- a/components/NarrativeButton.tsx +++ b/components/NarrativeButton.tsx @@ -45,7 +45,7 @@ export default function NarrativeButton({ currency, phase, macroScore }: Props)
-

{analysis}

-
+

{analysis}

+
Powered by Groq · Llama 3.1 8B