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.

Tighten add-infrastructure picker copy and ordering

rcourtmanb8b4fb043937
diff --git a/frontend-modern/src/components/Settings/ConnectionEditor/CredentialSlots/TrueNASCredentialSlot.tsx b/frontend-modern/src/components/Settings/ConnectionEditor/CredentialSlots/TrueNASCredentialSlot.tsx
index 5aba89d443..47dfd2d435 100644
--- a/frontend-modern/src/components/Settings/ConnectionEditor/CredentialSlots/TrueNASCredentialSlot.tsx
+++ b/frontend-modern/src/components/Settings/ConnectionEditor/CredentialSlots/TrueNASCredentialSlot.tsx
@@ -76,7 +76,7 @@ export const TrueNASCredentialSlot: Component<TrueNASCredentialSlotProps> = (pro
class={formControl}
value={props.state.form().name}
onInput={(event) => props.state.updateForm({ name: event.currentTarget.value })}
- placeholder="tower"
+ placeholder="truenas-1"
/>
</label>
<label class={formField}>
diff --git a/frontend-modern/src/components/Settings/__tests__/InfrastructureSourcePicker.test.tsx b/frontend-modern/src/components/Settings/__tests__/InfrastructureSourcePicker.test.tsx
index 46ab3ef5ac..20b0361d2e 100644
--- a/frontend-modern/src/components/Settings/__tests__/InfrastructureSourcePicker.test.tsx
+++ b/frontend-modern/src/components/Settings/__tests__/InfrastructureSourcePicker.test.tsx
@@ -7,12 +7,12 @@ describe('InfrastructureSourcePicker', () => {
cleanup();
});
- it('labels admitted VMware as first-lab-ready and keeps Pulse Agent on the host profile path', () => {
+ it('labels admitted VMware as Early support and keeps Pulse Agent on the host profile path', () => {
render(() => <InfrastructureSourcePicker onSelectStep={vi.fn()} />);
expect(screen.getByPlaceholderText('Search platforms, hosts, services...')).toBeInTheDocument();
expect(screen.getByText('Common choices')).toBeInTheDocument();
- expect(screen.getByText('First lab ready')).toBeInTheDocument();
+ expect(screen.getByText('Early support')).toBeInTheDocument();
expect(screen.queryByText('Available now')).toBeNull();
expect(screen.getByText('Unraid')).toBeInTheDocument();
expect(screen.getByText('Linux, macOS, Windows host')).toBeInTheDocument();
diff --git a/frontend-modern/src/utils/__tests__/infrastructureOnboardingPresentation.test.ts b/frontend-modern/src/utils/__tests__/infrastructureOnboardingPresentation.test.ts
index f03333b881..fce919dba6 100644
--- a/frontend-modern/src/utils/__tests__/infrastructureOnboardingPresentation.test.ts
+++ b/frontend-modern/src/utils/__tests__/infrastructureOnboardingPresentation.test.ts
@@ -106,7 +106,7 @@ describe('infrastructureOnboardingPresentation', () => {
getInfrastructureOnboardingProductPresentation('vmware').governanceState,
getInfrastructureOnboardingProductPresentation('vmware').readinessStage,
),
- ).toBe('First lab ready');
+ ).toBe('Early support');
expect(getInfrastructureGovernanceBadgeLabel('supported', 'supported')).toBeNull();
});
@@ -149,44 +149,48 @@ describe('infrastructureOnboardingPresentation', () => {
}),
]);
+ // Picker order pins the canonical card layout. Proxmox suite is grouped
+ // first so PVE/PBS/PMG are scannable together, then other API platforms,
+ // then agent-install paths (named platforms before the generic host
+ // card), then the network probe fallback.
expect(getInfrastructureSourcePickerItems()).toEqual([
+ expect.objectContaining({ id: 'pve', connectionType: 'pve', label: 'Proxmox VE' }),
expect.objectContaining({
- id: 'unraid',
- connectionType: 'agent',
- label: 'Unraid',
- catalogDescription: 'Array health, disks, Docker, host telemetry',
+ id: 'pbs',
+ connectionType: 'pbs',
+ label: 'Proxmox Backup Server',
+ }),
+ expect.objectContaining({
+ id: 'pmg',
+ connectionType: 'pmg',
+ label: 'Proxmox Mail Gateway',
}),
expect.objectContaining({
id: 'truenas',
connectionType: 'truenas',
label: 'TrueNAS SCALE',
}),
- expect.objectContaining({ id: 'pve', connectionType: 'pve', label: 'Proxmox VE' }),
- expect.objectContaining({ id: 'docker', connectionType: 'agent', label: 'Docker' }),
- expect.objectContaining({
- id: 'linux-host',
- connectionType: 'agent',
- label: 'Linux, macOS, Windows host',
- }),
expect.objectContaining({
id: 'vmware',
connectionType: 'vmware',
label: 'VMware vCenter',
}),
expect.objectContaining({
- id: 'kubernetes',
+ id: 'unraid',
connectionType: 'agent',
- label: 'Kubernetes',
+ label: 'Unraid',
+ catalogDescription: 'Array health, disks, Docker, host telemetry',
}),
+ expect.objectContaining({ id: 'docker', connectionType: 'agent', label: 'Docker' }),
expect.objectContaining({
- id: 'pbs',
- connectionType: 'pbs',
- label: 'Proxmox Backup Server',
+ id: 'kubernetes',
+ connectionType: 'agent',
+ label: 'Kubernetes',
}),
expect.objectContaining({
- id: 'pmg',
- connectionType: 'pmg',
- label: 'Proxmox Mail Gateway',
+ id: 'linux-host',
+ connectionType: 'agent',
+ label: 'Linux, macOS, Windows host',
}),
expect.objectContaining({
id: 'availability',
diff --git a/frontend-modern/src/utils/infrastructureOnboardingPresentation.ts b/frontend-modern/src/utils/infrastructureOnboardingPresentation.ts
index b640470aa1..26deaefe40 100644
--- a/frontend-modern/src/utils/infrastructureOnboardingPresentation.ts
+++ b/frontend-modern/src/utils/infrastructureOnboardingPresentation.ts
@@ -133,7 +133,10 @@ export const getInfrastructureGovernanceBadgeLabel = (
): string | null => {
if (governanceState === 'supported') return null;
if (governanceState === 'admitted') {
- return readinessStage === 'first-lab-ready' ? 'First lab ready' : '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;
@@ -406,15 +409,21 @@ export const INFRASTRUCTURE_AGENT_DISCOVERY_LABELS = [
export const INFRASTRUCTURE_AGENT_HOST_LABELS = getInfrastructureAgentHostProfileLabels();
const SOURCE_PICKER_ITEM_ORDER: InfrastructureSourcePickerItemId[] = [
- 'unraid',
- 'truenas',
+ // Proxmox suite kept adjacent so a Proxmox-heavy lab finds PVE, PBS, and
+ // PMG without scanning past unrelated cards.
'pve',
- 'docker',
- 'linux-host',
- 'vmware',
- 'kubernetes',
'pbs',
'pmg',
+ // Other platform-API integrations.
+ 'truenas',
+ 'vmware',
+ // Agent-install paths, named platforms first then the generic host card.
+ 'unraid',
+ 'docker',
+ 'kubernetes',
+ 'linux-host',
+ // Endpoint probe last; it is a fallback for hosts that expose neither an
+ // API nor an agent.
'availability',
];