diff --git a/frontend-modern/src/components/Settings/__tests__/InfrastructureWorkspace.test.tsx b/frontend-modern/src/components/Settings/__tests__/InfrastructureWorkspace.test.tsx index 37abb037fb..a30b443697 100644 --- a/frontend-modern/src/components/Settings/__tests__/InfrastructureWorkspace.test.tsx +++ b/frontend-modern/src/components/Settings/__tests__/InfrastructureWorkspace.test.tsx @@ -562,7 +562,7 @@ describe('InfrastructureWorkspace', () => { { id: 'node-pi', name: 'pi', - subtitle: 'API contact', + subtitle: 'Primary node', source: 'agent', host: 'https://pi:8006', hostAliases: ['pi', '192.168.0.2'], @@ -936,7 +936,7 @@ describe('InfrastructureWorkspace', () => { { id: 'node-delly', name: 'delly', - subtitle: 'API contact', + subtitle: 'Primary node', source: 'agent', host: 'https://delly:8006', coverageLabels: ['Host telemetry'], @@ -970,7 +970,7 @@ describe('InfrastructureWorkspace', () => { await waitFor(() => expect(screen.getByText('homelab')).toBeInTheDocument()); expect(screen.getByText('Cluster ยท 2 nodes')).toBeInTheDocument(); - expect(screen.getByText('API contact')).toBeInTheDocument(); + expect(screen.getByText('Primary node')).toBeInTheDocument(); expect(screen.getAllByText('Agent').length).toBeGreaterThan(0); expect(screen.getByText('delly')).toBeInTheDocument(); expect(screen.getByText('minipc')).toBeInTheDocument(); diff --git a/frontend-modern/src/components/Settings/__tests__/infrastructureSettingsModel.test.ts b/frontend-modern/src/components/Settings/__tests__/infrastructureSettingsModel.test.ts index 24b9b32d7e..bac89ea4f3 100644 --- a/frontend-modern/src/components/Settings/__tests__/infrastructureSettingsModel.test.ts +++ b/frontend-modern/src/components/Settings/__tests__/infrastructureSettingsModel.test.ts @@ -42,7 +42,7 @@ describe('filterRepresentedDiscoveredServers', () => { { id: 'node-pi', name: 'pi', - subtitle: 'API contact', + subtitle: 'Primary node', source: 'agent', host: 'https://pi:8006', hostAliases: ['pi', '192.168.0.2'], diff --git a/frontend-modern/src/components/Settings/__tests__/useConnectionsLedger.test.ts b/frontend-modern/src/components/Settings/__tests__/useConnectionsLedger.test.ts index 620ea75b79..4a7487e75f 100644 --- a/frontend-modern/src/components/Settings/__tests__/useConnectionsLedger.test.ts +++ b/frontend-modern/src/components/Settings/__tests__/useConnectionsLedger.test.ts @@ -175,7 +175,7 @@ describe('useConnectionsLedger', () => { { id: 'node-delly', name: 'delly', - subtitle: 'API contact', + subtitle: 'Primary node', source: 'agent', host: 'https://delly:8006', hostAliases: ['delly', '192.168.0.10'], diff --git a/frontend-modern/src/components/Settings/useConnectionsLedger.ts b/frontend-modern/src/components/Settings/useConnectionsLedger.ts index a3ddc5ad2e..81aed4082d 100644 --- a/frontend-modern/src/components/Settings/useConnectionsLedger.ts +++ b/frontend-modern/src/components/Settings/useConnectionsLedger.ts @@ -176,7 +176,7 @@ interface ClusterRollup { } const memberSubtitleFor = (member: ConnectionSystemMember): string => - member.primary ? 'API contact' : 'Cluster member'; + member.primary ? 'Primary node' : 'Cluster member'; const buildMemberRow = ( member: ConnectionSystemMember, @@ -188,7 +188,7 @@ const buildMemberRow = ( const agentConnection = member.agentConnectionId ? connectionsByID.get(member.agentConnectionId) : undefined; - const source: InfrastructureSourceKind = agentConnection ? 'agent' : 'unknown'; + const source: InfrastructureSourceKind = agentConnection ? 'agent' : 'api'; const state = moreSevereState(member.state, agentConnection?.state); const presentation = STATE_PRESENTATION[state] ?? STATE_PRESENTATION.pending; const lastSeen =