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.
Go aialertsdashboarddockerdocker-monitoringgohomelabinfrastructure-monitoringkubernetesmonitoringmspproxmoxproxmox-backup-serverproxmox-mail-gatewayproxmox-veself-hostedtruenastypescriptvspherewebhooks
test(frontend): retarget stale source-contract assertions to moved Assistant owners
rcourtmanec63bc7b08b3
diff --git a/frontend-modern/src/components/AI/Chat/__tests__/ModelSelector.test.tsx b/frontend-modern/src/components/AI/Chat/__tests__/ModelSelector.test.tsxindex e4a52f9ee0..c921292d31 100644--- a/frontend-modern/src/components/AI/Chat/__tests__/ModelSelector.test.tsx+++ b/frontend-modern/src/components/AI/Chat/__tests__/ModelSelector.test.tsx@@ -754,7 +754,7 @@ describe('ModelSelector', () => {// --- Model name display ---- it('falls back to model ID segment when name is not provided', () => {+ it('falls back to a humanized provider route label when name is not provided', () => {const models = [makeModel({ id: 'anthropic:claude-test', name: '', notable: true })];render(() => (<ModelSelector@@ -764,9 +764,7 @@ describe('ModelSelector', () => {/>));- // selectedLabel should use id.split(':').pop() when name is empty but match exists- // Actually, empty name returns falsy, so it falls to id.split(':').pop()- expect(screen.getByText('claude-test')).toBeInTheDocument();+ expect(screen.getByText('Anthropic: Claude Test')).toBeInTheDocument();});// --- Empty models list ---diff --git a/frontend-modern/src/components/Workloads/__tests__/WorkloadsSurface.performance.contract.test.tsx b/frontend-modern/src/components/Workloads/__tests__/WorkloadsSurface.performance.contract.test.tsxindex b6e6bb1556..fbc9da620b 100644--- a/frontend-modern/src/components/Workloads/__tests__/WorkloadsSurface.performance.contract.test.tsx+++ b/frontend-modern/src/components/Workloads/__tests__/WorkloadsSurface.performance.contract.test.tsx@@ -1263,7 +1263,7 @@ describe('Workloads performance contract', () => {expect(guestDrawerStateSource).not.toContain('buildInfrastructureHrefForWorkload');expect(guestDrawerStateSource).not.toContain("from '@/routing/resourceLinks'");expect(guestDrawerStateSource).toContain("from '@/hooks/createNonSuspendingQuery'");- expect(guestDrawerStateSource).toContain('createNonSuspendingQuery<ResourceDiscovery | null');+ expect(guestDrawerStateSource).toMatch(/createNonSuspendingQuery<\s*ResourceDiscovery \| null/);expect(guestDrawerStateSource).not.toContain('createResource');expect(guestDrawerStateSource).toContain("from './workloadTopology'");expect(guestDrawerStateSource).not.toContain('./infrastructureLink');diff --git a/frontend-modern/src/utils/__tests__/frontendResourceTypeBoundaries.test.ts b/frontend-modern/src/utils/__tests__/frontendResourceTypeBoundaries.test.tsindex 103cb50407..ff431c9c20 100644--- a/frontend-modern/src/utils/__tests__/frontendResourceTypeBoundaries.test.ts+++ b/frontend-modern/src/utils/__tests__/frontendResourceTypeBoundaries.test.ts@@ -184,6 +184,8 @@ import resourceCorrelationPresentationSource from '@/utils/resourceCorrelationPrimport confidencePresentationSource from '@/utils/confidencePresentation.ts?raw';import textPresentationSource from '@/utils/textPresentation.ts?raw';import messageItemSource from '@/components/AI/Chat/MessageItem.tsx?raw';+import activeTurnStatusSource from '@/components/AI/Chat/activeTurnStatus.ts?raw';+import toolPresentationSource from '@/components/AI/Chat/toolPresentation.ts?raw';import toolExecutionBlockSource from '@/components/AI/Chat/ToolExecutionBlock.tsx?raw';import aiChatSource from '@/components/AI/Chat/index.tsx?raw';import useChatSource from '@/components/AI/Chat/hooks/useChat.ts?raw';@@ -481,6 +483,7 @@ import patrolRunPresentationSource from '@/utils/patrolRunPresentation.ts?raw';import patrolSummaryPresentationSource from '@/utils/patrolSummaryPresentation.ts?raw';import aiCostDashboardSource from '@/components/AI/AICostDashboard.tsx?raw';import modelSelectorSource from '@/components/AI/Chat/ModelSelector.tsx?raw';+import aiModelPickerSource from '@/components/shared/AIModelPicker.tsx?raw';import remediationStatusSource from '@/components/patrol/RemediationStatus.tsx?raw';import remediationPresentationSource from '@/utils/remediationPresentation.ts?raw';import aiChatPresentationSource from '@/utils/aiChatPresentation.ts?raw';@@ -2137,8 +2140,8 @@ describe('frontend resource type boundaries', () => {expect(k8sDeploymentsDrawerSource).not.toContain("const normalize = (value?: string | null) => (value || '').trim();",);- expect(messageItemSource).toContain('formatIdentifierLabel');- expect(toolExecutionBlockSource).toContain('formatIdentifierLabel');+ expect(activeTurnStatusSource).toContain('formatIdentifierLabel');+ expect(toolPresentationSource).toContain('formatIdentifierLabel');expect(aiChatSource).toContain('formatIdentifierLabel');expect(patrolStatusBarSource).toContain('formatTriggerReason');expect(findingsPanelSource).toContain('formatIdentifierLabel');@@ -3718,7 +3721,8 @@ describe('frontend resource type boundaries', () => {expect(aiCostPresentationSource).toContain('export function getAICostExportHistoryErrorMessage',);- expect(modelSelectorSource).toContain('AI_CHAT_MODEL_SELECTOR_EMPTY_STATE');+ expect(aiModelPickerSource).toContain('AI_CHAT_MODEL_SELECTOR_EMPTY_STATE');+ expect(aiModelPickerSource).not.toContain('No matching models.');expect(modelSelectorSource).not.toContain('No matching models.');expect(aiChatPresentationSource).toContain('export const AI_CHAT_MODEL_SELECTOR_EMPTY_STATE');expect(aiChatPresentationSource).toContain('export const AI_CHAT_SESSION_EMPTY_STATE');