feat: warningMessage quota IA dans rapports d'import + redémarrage auto services

This commit is contained in:
Manus
2026-06-09 12:15:26 -04:00
parent 595f5dded1
commit f49eadda2b
7 changed files with 2224 additions and 3 deletions

View File

@@ -25,6 +25,7 @@ type ImportLog = {
errors: number;
duplicateDetails: string | null;
errorDetails: string | null;
warningMessage?: string | null;
importedAt: Date | string;
};
@@ -390,7 +391,7 @@ export default function ImportReport() {
/>
</TableCell>
<TableCell className="text-center">
{(log.duplicatesIgnored > 0 || log.errors > 0) && (
{(log.duplicatesIgnored > 0 || log.errors > 0 || (log as any).warningMessage) && (
<Button
size="sm"
variant="ghost"
@@ -486,6 +487,17 @@ export default function ImportReport() {
</div>
)}
{/* Avertissement quota IA */}
{selectedLog.warningMessage && (
<div className="bg-orange-50 border border-orange-300 rounded-lg p-4 flex gap-3">
<AlertTriangle className="w-5 h-5 text-orange-500 flex-shrink-0 mt-0.5" />
<div>
<p className="text-sm font-semibold text-orange-700 mb-1">Avertissement</p>
<p className="text-sm text-orange-600">{selectedLog.warningMessage}</p>
</div>
</div>
)}
{/* Erreurs */}
{selectedLog.errors > 0 && (
<div>