feat(watcher): Ajout watcher de fichiers temps réel

- Migration 0006: colonne watcher_enabled
- Crate notify pour surveillance FS temps réel (FSEvents/inotify)
- Watcher redémarré toutes les 30s si config change
- Détection instantanée création/modification/suppression
- Création job immédiate quand fichier détecté
- API: support watcher_enabled dans UpdateMonitoringRequest
- Backoffice: toggle Watcher avec indicateur 
- Fonctionne en parallèle du scheduler auto-scan

Usage: Activer Watcher + Auto-scan pour réactivité max
This commit is contained in:
2026-03-06 11:49:53 +01:00
parent 6e0a77fae0
commit 75f7de2e43
8 changed files with 340 additions and 25 deletions

View File

@@ -1234,3 +1234,27 @@ tr.job-highlighted td {
font-size: 0.75rem;
padding: 2px 4px;
}
/* Watcher toggle styles */
.watcher-toggle {
background: hsl(45 93% 90% / 0.3);
border: 1px solid hsl(45 93% 47% / 0.3);
border-radius: 4px;
padding: 2px 6px;
}
.watcher-toggle.active {
background: hsl(45 93% 90% / 0.6);
border-color: hsl(45 93% 47% / 0.6);
}
.toggle-hint {
margin-left: 4px;
cursor: help;
}
.monitor-options {
display: flex;
gap: 8px;
flex-wrap: wrap;
}