feat: warningMessage quota IA dans rapports d'import + redémarrage auto services
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user