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.

Clean up dead admitted/first-lab-ready branches after vSphere promotion

rcourtman743d4fb95e6a
diff --git a/frontend-modern/src/utils/__tests__/infrastructureOnboardingPresentation.test.ts b/frontend-modern/src/utils/__tests__/infrastructureOnboardingPresentation.test.ts
index 68a8fd266a..28812d5767 100644
--- a/frontend-modern/src/utils/__tests__/infrastructureOnboardingPresentation.test.ts
+++ b/frontend-modern/src/utils/__tests__/infrastructureOnboardingPresentation.test.ts
@@ -99,9 +99,6 @@ describe('infrastructureOnboardingPresentation', () => {
'Network endpoint',
]);
- expect(
- getInfrastructureApiProductsByGovernanceState('admitted').map((product) => product.label),
- ).toEqual([]);
expect(getInfrastructureGovernanceBadgeLabel('supported', 'supported')).toBeNull();
});
diff --git a/frontend-modern/src/utils/infrastructureOnboardingPresentation.ts b/frontend-modern/src/utils/infrastructureOnboardingPresentation.ts
index 26deaefe40..485e77f80e 100644
--- a/frontend-modern/src/utils/infrastructureOnboardingPresentation.ts
+++ b/frontend-modern/src/utils/infrastructureOnboardingPresentation.ts
@@ -129,15 +129,9 @@ export const getInfrastructureAgentHostProfileSupportText = (): string =>
export const getInfrastructureGovernanceBadgeLabel = (
governanceState: PlatformGovernanceState,
- readinessStage: PlatformReadinessStage,
+ _readinessStage: PlatformReadinessStage,
): string | null => {
if (governanceState === 'supported') return null;
- if (governanceState === 'admitted') {
- // "Early support" is friendlier than the internal "First lab ready"
- // governance term: it tells a user the platform works but has had
- // limited production exposure, without surfacing lane-stage jargon.
- return readinessStage === 'first-lab-ready' ? 'Early support' : 'Admitted';
- }
if (governanceState === 'presentation-only') return 'Presentation only';
return null;
};
@@ -539,9 +533,10 @@ export const getInfrastructureSupportSummaryBadges = (): {
...getInfrastructureApiProductsByGovernanceState('supported').map((product) => product.label),
...INFRASTRUCTURE_AGENT_DISCOVERY_LABELS,
],
- currentAdmissionPath: getInfrastructureApiProductsByGovernanceState('admitted').map(
- (product) => product.label,
- ),
+ // No platforms currently sit in the admitted staging area; the type is
+ // narrowed to the live governance states, so the admission-path summary
+ // is empty until a future platform is admitted-but-not-yet-supported.
+ currentAdmissionPath: [],
installPath: [...INFRASTRUCTURE_AGENT_HOST_LABELS, ...INFRASTRUCTURE_AGENT_DISCOVERY_LABELS],
});