From c6148b58a4bb36ec19f46a0933a0431cb9c1be4b Mon Sep 17 00:00:00 2001 From: Michael Date: Sat, 21 Feb 2026 21:39:52 +0100 Subject: [PATCH] fix(ai): prefix insight text with recommended gamme letter for clarity --- src/features/grid/components/bulk-ai-analyzer.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/features/grid/components/bulk-ai-analyzer.tsx b/src/features/grid/components/bulk-ai-analyzer.tsx index 8bad250..8dafac1 100644 --- a/src/features/grid/components/bulk-ai-analyzer.tsx +++ b/src/features/grid/components/bulk-ai-analyzer.tsx @@ -80,8 +80,9 @@ export function BulkAiAnalyzer() { if (reco.codein && reco.recommandationGamme) { // Update the gamme draft setDraftGamme(reco.codein, reco.recommandationGamme); - // Inject the justification into the AI insight column - const justification = reco.justificationCourte || `Recommandation: Gamme ${reco.recommandationGamme}`; + // Inject the justification into the AI insight column (with gamme letter prefix) + const baseJustification = reco.justificationCourte || "Aucune explication."; + const justification = `Gamme ${reco.recommandationGamme} — ${baseJustification}`; setInsight(reco.codein, justification, reco.isDuplicate ?? false); } });