Skip to content

armgit / Pulse

Public Imported from GitHub
0

Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.

fix(discovery): show availability probe suggestion card for undiscovered guests

rcourtman5c2e465cde2f
diff --git a/frontend-modern/src/utils/discoveryPresentation.ts b/frontend-modern/src/utils/discoveryPresentation.ts
index 0f2a93c4dd..b7a9b569cd 100644
--- a/frontend-modern/src/utils/discoveryPresentation.ts
+++ b/frontend-modern/src/utils/discoveryPresentation.ts
@@ -109,16 +109,18 @@ export function hasMeaningfulDiscoveryContext(
discovery.facts.some((fact) => isMeaningfulDiscoveryFact(fact));
const hasPaths = configPathCount + dataPathCount + logPathCount > 0;
const hasSuggestedUrl = Boolean(normalizeDiscoverySuggestedUrl(discovery.suggested_url));
+ const hasSuggestedProbe = Boolean(discovery.suggested_availability_probe);
return Boolean(
isMeaningfulDiscoveryText(discovery.service_name) ||
- isMeaningfulDiscoveryText(discovery.service_type) ||
- isMeaningfulDiscoveryText(discovery.service_version) ||
- isMeaningfulDiscoveryText(discovery.category) ||
- portCount > 0 ||
- hasFacts ||
- hasPaths ||
- hasSuggestedUrl,
+ isMeaningfulDiscoveryText(discovery.service_type) ||
+ isMeaningfulDiscoveryText(discovery.service_version) ||
+ isMeaningfulDiscoveryText(discovery.category) ||
+ portCount > 0 ||
+ hasFacts ||
+ hasPaths ||
+ hasSuggestedUrl ||
+ hasSuggestedProbe,
);
}