feat(sentinel): track synchronization state and refresh status UI

Add sentinel waiting-state tracking, synchronization broadcasts, and restore
status handling across server and application interfaces.
This commit is contained in:
Andras Bacsai
2026-09-16 12:51:27 +02:00
parent e1bcf1fb86
commit 16b092336e
29 changed files with 770 additions and 54 deletions
@@ -21,3 +21,13 @@ test('sentinel startup allows legacy metrics migrations to finish before health
expect($action)->toContain('--health-start-period 120s');
});
test('local sentinel joins the Coolify network and waits for an authenticated push before becoming live', function () {
$action = file_get_contents(dirname(__DIR__, 2).'/app/Actions/Server/StartSentinel.php');
expect($action)
->toContain('--network coolify')
->toContain('sentinelHeartbeat(isReset: true)')
->toContain("sentinel_waiting_since' => now()")
->not->toContain('$server->sentinelHeartbeat();');
});