feat(studio): hub maintenance panel with reset action (v0.45.0)
Some checks are pending
Security / Security check (push) Waiting to run
Some checks are pending
Security / Security check (push) Waiting to run
UI parity with the platform CLI: `fai reset` (v0.10.93) is now reachable from Settings. The panel shows the reset blurb plus two checkboxes mirroring the CLI flags (Keep modules / Keep audit log + saved flows), then a destructive-styled "Reset hub state" button. Click goes through a confirm dialog before SystemActions.faiReset is invoked. After the CLI returns, Studio bounces its gRPC channel against the same endpoint (the daemon restarts on the same channel + port, so no Settings change needed) and reloads every panel: channel status, system AI, MCP clients, n8n endpoints, registry token. Output (success or failure) is shown in a copyable error box so any unexpected stderr lands somewhere the operator can paste from. Sits at the bottom of the dialog under "HUB MAINTENANCE", separated from the everyday config so a destructive button doesn't crowd the day-to-day controls. Signed-off-by: flemming-it <stefan.a.flemming@googlemail.com>
This commit is contained in:
parent
9944a7ac8a
commit
3db7db7330
8 changed files with 358 additions and 1 deletions
|
|
@ -1159,6 +1159,44 @@ class AppLocalizationsDe extends AppLocalizations {
|
|||
return 'Speichern fehlgeschlagen: $error';
|
||||
}
|
||||
|
||||
@override
|
||||
String get maintenanceHeader => 'HUB-WARTUNG';
|
||||
|
||||
@override
|
||||
String get maintenanceResetBlurb =>
|
||||
'Operator-Zustand zurücksetzen und mit einem sauberen Hub neu starten. Stoppt jeden laufenden Daemon, sichert ~/.fai/ atomar in ein Backup, legt es dann neu an — Binary, Channel-Pointer, MCP-/n8n-/System-AI-Konfiguration und Registry-Token bleiben erhalten. Wiederherstellen durch Zurückverschieben des Backup-Ordners.';
|
||||
|
||||
@override
|
||||
String get maintenanceKeepModulesTitle => 'Installierte Module behalten';
|
||||
|
||||
@override
|
||||
String get maintenanceKeepModulesSubtitle =>
|
||||
'Standardverhalten löscht ~/.fai/modules/, damit eine frische Installation den Modul-Bezugspfad end-to-end verifizieren kann.';
|
||||
|
||||
@override
|
||||
String get maintenanceKeepDataTitle =>
|
||||
'Protokoll + gespeicherte Flows behalten';
|
||||
|
||||
@override
|
||||
String get maintenanceKeepDataSubtitle =>
|
||||
'Standardverhalten löscht ~/.fai/data/, damit die Audit-Kette mit einer neuen Genesis startet und die mitgelieferten Sample-Flows beim ersten Daemon-Start neu importiert werden.';
|
||||
|
||||
@override
|
||||
String get maintenanceResetButton => 'Hub zurücksetzen';
|
||||
|
||||
@override
|
||||
String get maintenanceResetInProgress => 'Zurücksetzen…';
|
||||
|
||||
@override
|
||||
String get maintenanceResetConfirmTitle => 'Hub zurücksetzen?';
|
||||
|
||||
@override
|
||||
String get maintenanceResetConfirmBody =>
|
||||
'Stoppt jeden Daemon, verschiebt ~/.fai/ in ein Backup mit Zeitstempel und startet sauber neu. Das Backup ist vollständig wiederherstellbar. Fortfahren?';
|
||||
|
||||
@override
|
||||
String get maintenanceResetConfirmButton => 'Zurücksetzen';
|
||||
|
||||
@override
|
||||
String get welcomeChecklistAllSetTitle => 'Du bist eingerichtet.';
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue