fix(ai): prefix insight text with recommended gamme letter for clarity

This commit is contained in:
Michael committed 2026-02-21 21:39:52 +01:00
1 parent 09f9c0b097
commit c6148b58a4
1 file changed
+3 -2
@@ -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);
}
});