From ec248744b1f7efbc0dd86c6b6e600de4f1ac70b5 Mon Sep 17 00:00:00 2001 From: caty21 Date: Sat, 27 Jun 2026 20:12:21 +0200 Subject: [PATCH] =?UTF-8?q?fix:=20R=C3=A9sum=C3=A9=20IA=20inline=20color,?= =?UTF-8?q?=20tooltip=20Implied=20Pts=20custom=20renderer,=20tryUrl=20canc?= =?UTF-8?q?el?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - NarrativeButton: style inline pour forcer #94a3b8 (imbattable vs bundle CDN caché) - CurrencyCard: Tooltip Implied Pts remplacé par custom content renderer (text visible) - investinglive.ts: res.body.cancel() en fire-and-forget (ne masque plus le succès) + console.log article courant/précédent pour diagnostic dans logs Vercel Co-Authored-By: Claude Sonnet 4.6 --- components/CurrencyCard.tsx | 16 ++++++++++++---- components/NarrativeButton.tsx | 5 ++++- lib/investinglive.ts | 12 +++++++----- 3 files changed, 23 insertions(+), 10 deletions(-) diff --git a/components/CurrencyCard.tsx b/components/CurrencyCard.tsx index 6b68ad0..cf5bc5a 100644 --- a/components/CurrencyCard.tsx +++ b/components/CurrencyCard.tsx @@ -561,10 +561,18 @@ function OISEnhancedBlock({ ratePath }: { ratePath: CBRatePath }) { tickFormatter={(v: number) => `${v}bps`} /> [`${v > 0 ? "+" : ""}${v.toFixed(1)}bps`, "Implied"]} + content={({ label, payload }) => { + if (!payload?.length) return null; + const v = payload[0]?.value as number; + return ( +
+

{label}

+

+ Implied : {v > 0 ? "+" : ""}{typeof v === "number" ? v.toFixed(1) : "—"}bps +

+
+ ); + }} /> {impliedPtsData.map((entry, i) => ( diff --git a/components/NarrativeButton.tsx b/components/NarrativeButton.tsx index cf8640b..af1d239 100644 --- a/components/NarrativeButton.tsx +++ b/components/NarrativeButton.tsx @@ -45,7 +45,10 @@ export default function NarrativeButton({ currency, phase, macroScore }: Props)