Feat : added and tweaked state machine
All checks were successful
release / build (push) Successful in 39s
release / verify-windows (push) Successful in 1m17s

This commit is contained in:
jeanotx32
2026-08-11 23:21:35 +02:00
parent a5777ad920
commit 2380196169
14 changed files with 469 additions and 53 deletions

View File

@@ -513,6 +513,33 @@ export function AgentSettings({ agent, targets, onClose, onCommand, notify }: Pr
</span>
</label>
<label className="checkbox">
<input
type="checkbox"
checked={watch.stopOnOffline}
onChange={(event) => patchWatch({ stopOnOffline: event.target.checked })}
/>
<span>Clore l'enregistrement quand le flux passe hors-ligne</span>
</label>
<label className="field">
<span>Attente avant clôture (minutes)</span>
<input
value={String(Math.round(watch.offlineStopDelayMs / 60_000))}
disabled={!watch.stopOnOffline}
onChange={(event) =>
patchWatch({ offlineStopDelayMs: (Number(event.target.value) || 0) * 60_000 })
}
inputMode="numeric"
/>
<span className="muted small">
Le passage hors-ligne met l'enregistrement en pause immédiatement l'écran
d'attente n'entre jamais dans le fichier. Ce délai ne décide que de la clôture :
en deçà, un retour du flux reprend le même fichier plutôt que d'en ouvrir un
second.
</span>
</label>
<label className="checkbox">
<input
type="checkbox"