Green mesh banner on each remote card, naming the failing leg when it is not green

This commit is contained in:
Gmer4Lfe
2026-08-17 14:42:15 -04:00
parent d417bd5360
commit e7e9d9fecf
2 changed files with 33 additions and 0 deletions
+9
View File
@@ -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;