feat(indexer,backoffice): ajouter warnings dans les stats de job, skip fichiers inaccessibles

- Indexer: ajout du champ `warnings` dans JobStats pour les erreurs
  non-fatales (fichiers inaccessibles, permissions)
- Indexer: skip les fichiers dont le stat échoue au lieu de faire
  crasher tout le scan de la library
- Backoffice: affichage des warnings dans le détail job (summary,
  timeline, Index Statistics) et dans la popin jobs

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-13 13:44:48 +01:00
parent f71ca92e85
commit fe54f55f47
5 changed files with 22 additions and 5 deletions

View File

@@ -19,6 +19,7 @@ interface Job {
scanned_files: number;
indexed_files: number;
errors: number;
warnings: number;
} | null;
}
@@ -261,8 +262,11 @@ export function JobsIndicator() {
{job.stats_json && (
<div className="flex items-center gap-3 mt-1.5 text-xs text-muted-foreground">
<span> {job.stats_json.indexed_files}</span>
{(job.stats_json.warnings ?? 0) > 0 && (
<span className="text-warning"> {job.stats_json.warnings}</span>
)}
{job.stats_json.errors > 0 && (
<span className="text-destructive"> {job.stats_json.errors}</span>
<span className="text-destructive"> {job.stats_json.errors}</span>
)}
</div>
)}