Green mesh banner on each remote card, naming the failing leg when it is not green
This commit is contained in:
@@ -548,6 +548,15 @@ function vv_pt_nodes(): array {
|
||||
'api_key_preview' => $apiKeyPreview,
|
||||
'metrics' => $metrics,
|
||||
'media_seed' => $isMe ? [] : vv_pt_media_seed($setupDb, $nodeIdUpper),
|
||||
// Every condition that has to hold for this partner to actually be usable, each
|
||||
// reported separately. One rolled-up boolean would have said "not ok" for the last
|
||||
// hour without saying that the only failing part was a name lookup.
|
||||
'mesh' => $isMe ? null : [
|
||||
'tailscale' => $ts['online'] === true,
|
||||
'ssh' => !empty($system['unraid_version']) || !empty($system['uptime_sec']),
|
||||
'partnership' => ($ptDb['state'] ?? '') === 'ACTIVE',
|
||||
'onboarded' => $onboardPhase >= 2,
|
||||
],
|
||||
];
|
||||
}
|
||||
return $nodes;
|
||||
|
||||
Reference in New Issue
Block a user