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.

feat(alerts): surface truenas container thresholds canonically

rcourtmanad00ad64bee9
diff --git a/docs/release-control/v6/internal/subsystems/alerts.md b/docs/release-control/v6/internal/subsystems/alerts.md
index 38f9f372af..a9150623df 100644
--- a/docs/release-control/v6/internal/subsystems/alerts.md
+++ b/docs/release-control/v6/internal/subsystems/alerts.md
@@ -259,6 +259,12 @@ The Docker tab now follows that same section-owner shape through
`frontend-modern/src/components/Alerts/ThresholdsTableDockerServiceGapSection.tsx`,
`frontend-modern/src/components/Alerts/ThresholdsTableDockerHostsSection.tsx`,
and `frontend-modern/src/components/Alerts/ThresholdsTableDockerContainersSection.tsx`.
+The containers thresholds surface must consume canonical `app-container`
+parents through the shared alert-overrides state rather than assuming
+`docker-host` is the only runtime shape. API-backed TrueNAS parents belong in
+the same `Container Runtimes` / `Containers` surface, while Docker-specific
+controls like ignored prefixes and Swarm service gap settings must stay gated
+to real Docker runtimes instead of leaking onto non-Docker platforms.
Future Docker thresholds presentation work should extend those section owners
instead of expanding `frontend-modern/src/components/Alerts/ThresholdsTableDockerTab.tsx`
back into a mixed render surface.
diff --git a/docs/release-control/v6/internal/subsystems/frontend-primitives.md b/docs/release-control/v6/internal/subsystems/frontend-primitives.md
index ec5e25e4cf..bd1a1d6591 100644
--- a/docs/release-control/v6/internal/subsystems/frontend-primitives.md
+++ b/docs/release-control/v6/internal/subsystems/frontend-primitives.md
@@ -255,6 +255,15 @@ work extends shared components instead of creating new local variants.
`frontend-modern/src/features/alerts/AlertResourceIncidentsPanel.tsx` so
the panel can render shared route chips without creating another page-local
resource lookup or provider-specific handoff layer.
+19. Keep the alert-thresholds containers surface on the canonical shared owner.
+ `alertOverridesModel.ts`, `useAlertOverridesState.ts`, and
+ `useAlertsConfigurationState.ts` must surface API-backed `app-container`
+ parents such as TrueNAS as first-class `Container Runtimes`, while
+ `ThresholdsTab.tsx` must bridge function-valued selectors into
+ `ThresholdsTable.tsx` explicitly instead of relying on spread-based adapter
+ props that can collapse functions on the live Solid surface. Docker-only
+ controls in `ThresholdsTableDockerTab.tsx` must remain gated to real
+ `docker-host` resources instead of leaking onto platform-managed runtimes.
## Current State
@@ -1280,7 +1289,11 @@ surfaces rather than restoring mixed JSX ownership to
The thresholds tab adapter contract now lives in
`frontend-modern/src/features/alerts/thresholds/thresholdsTabModel.ts`, so
`frontend-modern/src/features/alerts/tabs/ThresholdsTab.tsx` stays a thin shell
-instead of carrying a duplicate table adapter contract inline.
+instead of carrying a duplicate table adapter contract inline. That adapter
+must bridge function-valued selectors and mutation props into
+`frontend-modern/src/components/Alerts/ThresholdsTable.tsx` explicitly; spread-
+based table prop adapters are not allowed here because they can collapse
+function props on the live Solid surface and break thresholds runtime state.
Canonical threshold row shaping now routes through
`frontend-modern/src/features/alerts/thresholds/thresholdsResourceModel.ts`
plus the family-owned feature hooks
@@ -1314,6 +1327,13 @@ for reactive override state and thresholds-facing resource selectors, and
destination config normalization and payload shaping, and
`frontend-modern/src/features/alerts/useAlertDestinationsState.ts` for
notification destination reload and persistence orchestration.
+Within that alerts configuration runtime, canonical container-runtime projection
+now belongs to `alertOverridesModel.ts`,
+`useAlertOverridesState.ts`, and `useAlertsConfigurationState.ts`. The
+thresholds `Containers` workspace must treat API-backed `app-container`
+parents such as TrueNAS as first-class `Container Runtimes`, while Docker-only
+controls in `ThresholdsTableDockerTab.tsx` remain gated to real
+`docker-host` resources instead of leaking onto platform-managed runtimes.
`frontend-modern/src/features/alerts/useAlertWebhookDestinationsState.ts` now
owns webhook runtime, and
`frontend-modern/src/components/Alerts/ResourceTable.tsx` now follows the same
diff --git a/frontend-modern/src/components/Alerts/ThresholdsTableDockerTab.tsx b/frontend-modern/src/components/Alerts/ThresholdsTableDockerTab.tsx
index 3bae3f617e..bb61699123 100644
--- a/frontend-modern/src/components/Alerts/ThresholdsTableDockerTab.tsx
+++ b/frontend-modern/src/components/Alerts/ThresholdsTableDockerTab.tsx
@@ -1,3 +1,5 @@
+import { Show } from 'solid-js';
+
import { ThresholdsTableDockerContainersSection } from './ThresholdsTableDockerContainersSection';
import { ThresholdsTableDockerHostsSection } from './ThresholdsTableDockerHostsSection';
import { ThresholdsTableDockerIgnoredPrefixesSection } from './ThresholdsTableDockerIgnoredPrefixesSection';
@@ -7,8 +9,10 @@ import type { ThresholdsTableSectionProps } from '@/features/alerts/thresholds/t
export function ThresholdsTableDockerTab(props: ThresholdsTableSectionProps) {
return (
<>
- <ThresholdsTableDockerIgnoredPrefixesSection {...props} />
- <ThresholdsTableDockerServiceGapSection {...props} />
+ <Show when={props.state.hasDockerSpecificControls()}>
+ <ThresholdsTableDockerIgnoredPrefixesSection {...props} />
+ <ThresholdsTableDockerServiceGapSection {...props} />
+ </Show>
<ThresholdsTableDockerHostsSection {...props} />
<ThresholdsTableDockerContainersSection {...props} />
</>
diff --git a/frontend-modern/src/components/Alerts/__tests__/ThresholdsTable.test.tsx b/frontend-modern/src/components/Alerts/__tests__/ThresholdsTable.test.tsx
index 829e7c5605..5a0d6dd150 100644
--- a/frontend-modern/src/components/Alerts/__tests__/ThresholdsTable.test.tsx
+++ b/frontend-modern/src/components/Alerts/__tests__/ThresholdsTable.test.tsx
@@ -137,6 +137,7 @@ const baseProps = () => ({
nodes: [],
agents: [],
storage: [],
+ containerRuntimes: [],
dockerHosts: [],
pbsInstances: [],
pmgInstances: [],
@@ -549,6 +550,7 @@ describe('ThresholdsTable Resource Rendering', () => {
render(() => (
<ThresholdsTable
{...(baseProps() as any)}
+ containerRuntimes={[dockerHost]}
dockerHosts={[dockerHost]}
allResources={[container]}
/>
@@ -566,6 +568,52 @@ describe('ThresholdsTable Resource Rendering', () => {
).not.toHaveTextContent('secret-nginx');
});
+ it('renders TrueNAS app containers under canonical container runtimes without Docker-only controls', async () => {
+ setPathname('/alerts/thresholds/containers');
+ const truenasRuntime = {
+ id: 'truenas-resource',
+ type: 'truenas',
+ name: 'truenas-main',
+ displayName: 'TrueNAS Main',
+ platformId: 'truenas-main',
+ platformType: 'truenas',
+ sourceType: 'hybrid',
+ status: 'online',
+ lastSeen: 789,
+ } as any;
+ const container = {
+ id: 'ix-nextcloud',
+ parentId: 'truenas-resource',
+ type: 'app-container',
+ name: 'nextcloud',
+ displayName: 'Nextcloud',
+ platformId: 'truenas-main',
+ platformType: 'truenas',
+ sourceType: 'api',
+ status: 'running',
+ lastSeen: 789,
+ } as any;
+
+ render(() => (
+ <ThresholdsTable
+ {...(baseProps() as any)}
+ containerRuntimes={[truenasRuntime]}
+ allResources={[container]}
+ />
+ ));
+
+ await waitFor(() => {
+ expect(screen.getByTestId('resource-table-Container Runtimes')).toBeInTheDocument();
+ });
+
+ expect(screen.getByTestId('resource-name-truenas-resource')).toHaveTextContent('TrueNAS');
+ expect(screen.getByTestId('resource-name-docker:truenas-resource/ix-nextcloud')).toHaveTextContent(
+ 'Nextcloud',
+ );
+ expect(screen.queryByText('Ignored container prefixes')).not.toBeInTheDocument();
+ expect(screen.queryByText('Swarm service alerts')).not.toBeInTheDocument();
+ });
+
it('renders governed agent disk node labels with the policy-aware display label', async () => {
setPathname('/alerts/thresholds/systems');
const host = {
@@ -693,6 +741,7 @@ describe('ThresholdsTable V6 ID compatibility', () => {
render(() => (
<ThresholdsTable
{...(baseProps() as any)}
+ containerRuntimes={[dockerHost]}
dockerHosts={[dockerHost]}
overrides={() => [override]}
/>
@@ -741,6 +790,7 @@ describe('ThresholdsTable V6 ID compatibility', () => {
render(() => (
<ThresholdsTable
{...(baseProps() as any)}
+ containerRuntimes={[dockerHost]}
dockerHosts={[dockerHost]}
allResources={[container]}
overrides={() => [override]}
@@ -774,6 +824,7 @@ describe('ThresholdsTable V6 ID compatibility', () => {
render(() => (
<ThresholdsTable
{...(baseProps() as any)}
+ containerRuntimes={[dockerHost]}
dockerHosts={[dockerHost]}
removeAlerts={removeAlerts}
/>
diff --git a/frontend-modern/src/features/alerts/AlertsConfigurationSurface.tsx b/frontend-modern/src/features/alerts/AlertsConfigurationSurface.tsx
index 6598ac02b3..b835119d28 100644
--- a/frontend-modern/src/features/alerts/AlertsConfigurationSurface.tsx
+++ b/frontend-modern/src/features/alerts/AlertsConfigurationSurface.tsx
@@ -87,6 +87,7 @@ export function AlertsConfigurationSurface(props: AlertsConfigurationSurfaceProp
allGuests={state.allGuests}
pbsInstances={state.pbsInstances()}
pmgInstances={state.pmgInstances()}
+ containerRuntimes={state.containerRuntimeResources()}
nodes={props.byType('agent')}
agents={state.agentResources()}
storage={props
diff --git a/frontend-modern/src/features/alerts/__tests__/ThresholdsTab.test.tsx b/frontend-modern/src/features/alerts/__tests__/ThresholdsTab.test.tsx
new file mode 100644
index 0000000000..099ceeb0b5
--- /dev/null
+++ b/frontend-modern/src/features/alerts/__tests__/ThresholdsTab.test.tsx
@@ -0,0 +1,190 @@
+import { render, cleanup } from '@solidjs/testing-library';
+import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';
+
+import { ThresholdsTab } from '../tabs/ThresholdsTab';
+import type { ThresholdsTabProps } from '../thresholds/thresholdsTabModel';
+
+const captureThresholdsTableProps = vi.fn();
+
+vi.mock('@/components/Alerts/ThresholdsTable', () => ({
+ ThresholdsTable: (props: unknown) => {
+ captureThresholdsTableProps(props);
+ return null;
+ },
+}));
+
+const buildProps = (): ThresholdsTabProps =>
+ ({
+ overrides: () => [],
+ setOverrides: vi.fn(),
+ rawOverridesConfig: () => ({}),
+ setRawOverridesConfig: vi.fn(),
+ allGuests: () => [],
+ nodes: [],
+ agents: [],
+ storage: [],
+ containerRuntimes: [],
+ dockerHosts: [],
+ allResources: [],
+ pbsInstances: [],
+ pmgInstances: [],
+ pmgThresholds: () => ({}) as any,
+ setPMGThresholds: vi.fn(),
+ guestDefaults: () => ({}),
+ setGuestDefaults: vi.fn(),
+ guestDisableConnectivity: () => false,
+ setGuestDisableConnectivity: vi.fn(),
+ guestPoweredOffSeverity: () => 'warning' as const,
+ setGuestPoweredOffSeverity: vi.fn(),
+ nodeDefaults: () => ({}),
+ setNodeDefaults: vi.fn(),
+ pbsDefaults: () => ({}),
+ setPBSDefaults: vi.fn(),
+ agentDefaults: () => ({ cpu: 80 }),
+ setAgentDefaults: vi.fn(),
+ dockerDefaults: () => ({
+ cpu: 80,
+ memory: 85,
+ disk: 85,
+ restartCount: 3,
+ restartWindow: 300,
+ memoryWarnPct: 90,
+ memoryCriticalPct: 95,
+ serviceWarnGapPercent: 10,
+ serviceCriticalGapPercent: 50,
+ }),
+ dockerDisableConnectivity: () => false,
+ setDockerDisableConnectivity: vi.fn(),
+ dockerPoweredOffSeverity: () => 'warning' as const,
+ setDockerPoweredOffSeverity: vi.fn(),
+ setDockerDefaults: vi.fn(),
+ dockerIgnoredPrefixes: () => [],
+ setDockerIgnoredPrefixes: vi.fn(),
+ ignoredGuestPrefixes: () => [],
+ setIgnoredGuestPrefixes: vi.fn(),
+ guestTagWhitelist: () => [],
+ setGuestTagWhitelist: vi.fn(),
+ guestTagBlacklist: () => [],
+ setGuestTagBlacklist: vi.fn(),
+ storageDefault: () => 85,
+ setStorageDefault: vi.fn(),
+ resetGuestDefaults: vi.fn(),
+ resetNodeDefaults: vi.fn(),
+ resetPBSDefaults: vi.fn(),
+ resetAgentDefaults: vi.fn(),
+ resetDockerDefaults: vi.fn(),
+ resetDockerIgnoredPrefixes: vi.fn(),
+ resetStorageDefault: vi.fn(),
+ factoryGuestDefaults: {},
+ factoryNodeDefaults: {},
+ factoryPBSDefaults: {},
+ factoryAgentDefaults: { cpu: 80 },
+ factoryDockerDefaults: {
+ cpu: 80,
+ memory: 85,
+ disk: 85,
+ restartCount: 3,
+ restartWindow: 300,
+ memoryWarnPct: 90,
+ memoryCriticalPct: 95,
+ serviceWarnGapPercent: 10,
+ serviceCriticalGapPercent: 50,
+ },
+ factoryStorageDefault: 85,
+ timeThresholds: () => ({ guest: 5, node: 5, storage: 5, pbs: 5, agent: 5 }),
+ metricTimeThresholds: () => ({}),
+ setMetricTimeThresholds: vi.fn(),
+ snapshotDefaults: () => ({
+ enabled: false,
+ warningDays: 30,
+ criticalDays: 45,
+ warningSizeGiB: 0,
+ criticalSizeGiB: 0,
+ }),
+ setSnapshotDefaults: vi.fn(),
+ snapshotFactoryDefaults: {
+ enabled: false,
+ warningDays: 30,
+ criticalDays: 45,
+ warningSizeGiB: 0,
+ criticalSizeGiB: 0,
+ },
+ resetSnapshotDefaults: vi.fn(),
+ backupDefaults: () => ({
+ enabled: false,
+ warningDays: 7,
+ criticalDays: 14,
+ freshHours: 24,
+ staleHours: 72,
+ alertOrphaned: true,
+ ignoreVMIDs: [],
+ }),
+ setBackupDefaults: vi.fn(),
+ backupFactoryDefaults: {
+ enabled: false,
+ warningDays: 7,
+ criticalDays: 14,
+ freshHours: 24,
+ staleHours: 72,
+ alertOrphaned: true,
+ ignoreVMIDs: [],
+ },
+ resetBackupDefaults: vi.fn(),
+ setHasUnsavedChanges: vi.fn(),
+ activeAlerts: {},
+ removeAlerts: vi.fn(),
+ disableAllNodes: () => false,
+ setDisableAllNodes: vi.fn(),
+ disableAllGuests: () => false,
+ setDisableAllGuests: vi.fn(),
+ disableAllAgents: () => false,
+ setDisableAllAgents: vi.fn(),
+ disableAllStorage: () => false,
+ setDisableAllStorage: vi.fn(),
+ disableAllPBS: () => false,
+ setDisableAllPBS: vi.fn(),
+ disableAllPMG: () => false,
+ setDisableAllPMG: vi.fn(),
+ disableAllDockerHosts: () => false,
+ setDisableAllDockerHosts: vi.fn(),
+ disableAllDockerServices: () => false,
+ setDisableAllDockerServices: vi.fn(),
+ disableAllDockerContainers: () => false,
+ setDisableAllDockerContainers: vi.fn(),
+ disableAllNodesOffline: () => false,
+ setDisableAllNodesOffline: vi.fn(),
+ disableAllGuestsOffline: () => false,
+ setDisableAllGuestsOffline: vi.fn(),
+ disableAllAgentsOffline: () => false,
+ setDisableAllAgentsOffline: vi.fn(),
+ disableAllPBSOffline: () => false,
+ setDisableAllPBSOffline: vi.fn(),
+ disableAllPMGOffline: () => false,
+ setDisableAllPMGOffline: vi.fn(),
+ disableAllDockerHostsOffline: () => false,
+ setDisableAllDockerHostsOffline: vi.fn(),
+ }) as unknown as ThresholdsTabProps;
+
+describe('ThresholdsTab', () => {
+ beforeEach(() => {
+ captureThresholdsTableProps.mockReset();
+ });
+
+ afterEach(() => {
+ cleanup();
+ });
+
+ it('passes resolved threshold props through the tab adapter without dropping function fields', () => {
+ render(() => <ThresholdsTab {...buildProps()} />);
+
+ expect(captureThresholdsTableProps).toHaveBeenCalledTimes(1);
+ const props = captureThresholdsTableProps.mock.calls[0][0] as Record<string, unknown>;
+
+ expect(typeof props.dockerIgnoredPrefixes).toBe('function');
+ expect((props.dockerIgnoredPrefixes as () => string[])()).toEqual([]);
+ expect(props.dockerHosts).toEqual([]);
+ expect(props.containerRuntimes).toEqual([]);
+ expect(typeof props.guestDefaults).toBe('object');
+ expect(typeof props.dockerDefaults).toBe('object');
+ });
+});
diff --git a/frontend-modern/src/features/alerts/__tests__/alertOverridesModel.test.ts b/frontend-modern/src/features/alerts/__tests__/alertOverridesModel.test.ts
index 9b0e88e7c3..4d935e71f9 100644
--- a/frontend-modern/src/features/alerts/__tests__/alertOverridesModel.test.ts
+++ b/frontend-modern/src/features/alerts/__tests__/alertOverridesModel.test.ts
@@ -3,6 +3,7 @@ import { describe, expect, it } from 'vitest';
import type { Resource } from '@/types/resource';
import {
+ buildContainerRuntimeResources,
buildProjectedOverrides,
normalizeRawOverridesConfig,
} from '../alertOverridesModel';
@@ -56,7 +57,7 @@ describe('alertOverridesModel', () => {
containerResources: [],
storageResources: [],
agentResourceList: [],
- dockerHostResources: [],
+ containerRuntimeResources: [],
getChildren: () => [],
pbsInstanceById: new Map(),
}),
@@ -72,4 +73,75 @@ describe('alertOverridesModel', () => {
}),
]);
});
+
+ it('derives canonical container runtimes from explicit docker hosts and TrueNAS app parents', () => {
+ const truenas = makeResource({
+ id: 'truenas-main',
+ type: 'truenas',
+ name: 'truenas-main',
+ });
+ const dockerHost = makeResource({
+ id: 'docker-main',
+ type: 'docker-host',
+ name: 'docker-main',
+ });
+ const app = makeResource({
+ id: 'ix-nextcloud',
+ type: 'app-container',
+ name: 'nextcloud',
+ parentId: 'truenas-main',
+ });
+
+ expect(
+ buildContainerRuntimeResources({
+ allResources: [truenas, dockerHost, app],
+ dockerHostResources: [dockerHost],
+ }).map((resource) => resource.id),
+ ).toEqual(['docker-main', 'truenas-main']);
+ });
+
+ it('projects TrueNAS app overrides through the canonical container runtime surface', () => {
+ const truenas = makeResource({
+ id: 'truenas-main',
+ type: 'truenas',
+ name: 'truenas-main',
+ displayName: 'TrueNAS Main',
+ });
+ const app = makeResource({
+ id: 'ix-nextcloud',
+ type: 'app-container',
+ name: 'nextcloud',
+ displayName: 'Nextcloud',
+ parentId: 'truenas-main',
+ status: 'running',
+ });
+
+ expect(
+ buildProjectedOverrides({
+ rawConfig: {
+ 'docker:truenas-main/ix-nextcloud': {
+ cpu: { trigger: 95, clear: 90 },
+ } as any,
+ },
+ nodeResources: [],
+ vmResources: [],
+ containerResources: [],
+ storageResources: [],
+ agentResourceList: [truenas],
+ containerRuntimeResources: [truenas],
+ getChildren: (resourceId) => (resourceId === 'truenas-main' ? [app] : []),
+ pbsInstanceById: new Map(),
+ }),
+ ).toEqual([
+ expect.objectContaining({
+ id: 'docker:truenas-main/ix-nextcloud',
+ type: 'dockerContainer',
+ name: 'Nextcloud',
+ node: 'TrueNAS Main',
+ thresholds: {
+ cpu: 95,
+ },
+ }),
+ ]);
+ });
});
diff --git a/frontend-modern/src/features/alerts/__tests__/useAlertOverridesState.test.tsx b/frontend-modern/src/features/alerts/__tests__/useAlertOverridesState.test.tsx
index 07f46702c3..fa49b5d277 100644
--- a/frontend-modern/src/features/alerts/__tests__/useAlertOverridesState.test.tsx
+++ b/frontend-modern/src/features/alerts/__tests__/useAlertOverridesState.test.tsx
@@ -112,4 +112,45 @@ describe('useAlertOverridesState', () => {
await waitFor(() => expect(result.overrides()).toEqual([]));
expect(overviewOverrides()).toEqual([]);
});
+
+ it('exposes canonical container runtimes for TrueNAS-backed app workloads', async () => {
+ const [hasUnsavedChanges] = createSignal(false);
+ const [overviewOverrides, setOverviewOverrides] = createSignal([]);
+ const resources = [
+ makeResource({
+ id: 'truenas-main',
+ name: 'truenas-main',
+ displayName: 'TrueNAS Main',
+ type: 'truenas',
+ platformData: {
+ agent: {
+ agentId: 'truenas-main',
+ },
+ },
+ }),
+ makeResource({
+ id: 'ix-nextcloud',
+ name: 'nextcloud',
+ displayName: 'Nextcloud',
+ type: 'app-container',
+ parentId: 'truenas-main',
+ }),
+ ];
+
+ const { result } = renderHook(() =>
+ useAlertOverridesState({
+ allResources: () => resources,
+ byType: (resourceType) => resources.filter((resource) => resource.type === resourceType),
+ children: (resourceId) => resources.filter((resource) => resource.parentId === resourceId),
+ hasUnsavedChanges,
+ setOverviewOverrides,
+ }),
+ );
+
+ await waitFor(() => expect(result.containerRuntimeResources()).toHaveLength(1));
+ expect(result.containerRuntimeResources()[0]).toMatchObject({
+ id: 'truenas-main',
+ type: 'truenas',
+ });
+ });
});
diff --git a/frontend-modern/src/features/alerts/__tests__/useAlertsConfigurationState.test.tsx b/frontend-modern/src/features/alerts/__tests__/useAlertsConfigurationState.test.tsx
new file mode 100644
index 0000000000..498e44d138
--- /dev/null
+++ b/frontend-modern/src/features/alerts/__tests__/useAlertsConfigurationState.test.tsx
@@ -0,0 +1,88 @@
+import { renderHook, waitFor } from '@solidjs/testing-library';
+import { beforeEach, describe, expect, it, vi } from 'vitest';
+
+const mockGetConfig = vi.fn();
+const mockLoadDestinations = vi.fn();
+const mockReplaceRawOverridesConfig = vi.fn();
+const containerRuntimeResources = () =>
+ [
+ {
+ id: 'truenas-main',
+ type: 'truenas',
+ },
+ ] as any[];
+
+vi.mock('@/api/alerts', () => ({
+ AlertsAPI: {
+ getConfig: (...args: unknown[]) => mockGetConfig(...args),
+ updateConfig: vi.fn(),
+ },
+}));
+
+vi.mock('../useAlertDestinationsState', () => ({
+ useAlertDestinationsState: () => ({
+ isLoadingDestinations: () => false,
+ destConfigLoadError: () => '',
+ emailConfig: () => null,
+ setEmailConfig: vi.fn(),
+ appriseConfig: () => null,
+ setAppriseConfig: vi.fn(),
+ resetDestinations: vi.fn(),
+ loadDestinations: (...args: unknown[]) => mockLoadDestinations(...args),
+ saveDestinations: vi.fn(),
+ }),
+}));
+
+vi.mock('../useAlertOverridesState', () => ({
+ useAlertOverridesState: () => ({
+ overrides: () => [],
+ setOverrides: vi.fn(),
+ rawOverridesConfig: () => ({}),
+ setRawOverridesConfig: vi.fn(),
+ replaceRawOverridesConfig: (...args: unknown[]) => mockReplaceRawOverridesConfig(...args),
+ allGuests: () => [],
+ agentResources: () => [],
+ containerRuntimeResources,
+ pbsInstances: () => [],
+ pmgInstances: () => [],
+ }),
+}));
+
+import { useAlertsConfigurationState } from '../useAlertsConfigurationState';
+
+describe('useAlertsConfigurationState', () => {
+ beforeEach(() => {
+ mockGetConfig.mockReset();
+ mockLoadDestinations.mockReset();
+ mockReplaceRawOverridesConfig.mockReset();
+ mockGetConfig.mockResolvedValue({ overrides: {} });
+ mockLoadDestinations.mockResolvedValue(undefined);
+ });
+
+ it('surfaces canonical container runtime resources from the overrides owner', async () => {
+ const { result } = renderHook(() =>
+ useAlertsConfigurationState({
+ activeTab: () => 'thresholds',
+ allResources: () => [],
+ byType: () => [],
+ children: () => [],
+ activeAlerts: {},
+ removeAlerts: vi.fn(),
+ setOverviewOverrides: vi.fn(),
+ hasUnsavedChanges: () => false,
+ setHasUnsavedChanges: vi.fn(),
+ alertsActivationState: () => null,
+ alertsActivationConfig: () => null,
+ }),
+ );
+
+ await waitFor(() => expect(mockGetConfig).toHaveBeenCalledTimes(1));
+ expect(result.containerRuntimeResources).toBe(containerRuntimeResources);
+ expect(result.containerRuntimeResources()).toEqual([
+ expect.objectContaining({
+ id: 'truenas-main',
+ type: 'truenas',
+ }),
+ ]);
+ });
+});
diff --git a/frontend-modern/src/features/alerts/alertOverridesModel.ts b/frontend-modern/src/features/alerts/alertOverridesModel.ts
index 8360793358..767c7d6983 100644
--- a/frontend-modern/src/features/alerts/alertOverridesModel.ts
+++ b/frontend-modern/src/features/alerts/alertOverridesModel.ts
@@ -92,6 +92,37 @@ export const dockerContainerOverrideIdCandidates = (
...dockerHostOverrideIdCandidates(host).map((hostId) => `docker:${hostId}/${shortId}`),
);
+export const buildContainerRuntimeResources = ({
+ allResources,
+ dockerHostResources,
+}: {
+ allResources: Resource[];
+ dockerHostResources: Resource[];
+}): Resource[] => {
+ const resourceById = new Map(allResources.map((resource) => [resource.id, resource]));
+ const runtimes: Resource[] = [];
+ const seen = new Set<string>();
+
+ const addRuntime = (resource: Resource | undefined) => {
+ if (!resource || seen.has(resource.id)) return;
+ seen.add(resource.id);
+ runtimes.push(resource);
+ };
+
+ dockerHostResources.forEach(addRuntime);
+ allResources.forEach((resource) => {
+ if (resource.type === 'truenas') {
+ addRuntime(resource);
+ }
+ });
+ allResources.forEach((resource) => {
+ if (resource.type !== 'app-container' || !resource.parentId) return;
+ addRuntime(resourceById.get(resource.parentId));
+ });
+
+ return runtimes;
+};
+
interface BuildProjectedOverridesArgs {
rawConfig: Record<string, RawOverrideConfig>;
nodeResources: Resource[];
@@ -99,7 +130,7 @@ interface BuildProjectedOverridesArgs {
containerResources: Resource[];
storageResources: Resource[];
agentResourceList: Resource[];
- dockerHostResources: Resource[];
+ containerRuntimeResources: Resource[];
getChildren: (resourceId: string) => Resource[];
pbsInstanceById: Map<string, PBSInstance>;
}
@@ -111,7 +142,7 @@ export const buildProjectedOverrides = ({
containerResources,
storageResources,
agentResourceList,
- dockerHostResources,
+ containerRuntimeResources,
getChildren,
pbsInstanceById,
}: BuildProjectedOverridesArgs): Override[] => {
@@ -141,7 +172,7 @@ export const buildProjectedOverrides = ({
};
};
- dockerHostResources.forEach((host) => {
+ containerRuntimeResources.forEach((host) => {
dockerHostOverrideIdCandidates(host).forEach((id) => {
dockerHostMap.set(id, host);
});
diff --git a/frontend-modern/src/features/alerts/tabs/ThresholdsTab.tsx b/frontend-modern/src/features/alerts/tabs/ThresholdsTab.tsx
index 8657ac6d4b..cb983ed014 100644
--- a/frontend-modern/src/features/alerts/tabs/ThresholdsTab.tsx
+++ b/frontend-modern/src/features/alerts/tabs/ThresholdsTab.tsx
@@ -1,14 +1,110 @@
-import { createMemo } from 'solid-js';
-
import { ThresholdsTable } from '@/components/Alerts/ThresholdsTable';
-import {
- buildThresholdsTableProps,
- type ThresholdsTabProps,
-} from '../thresholds/thresholdsTabModel';
+import type { ThresholdsTabProps } from '../thresholds/thresholdsTabModel';
export function ThresholdsTab(props: ThresholdsTabProps) {
- const tableProps = createMemo(() => buildThresholdsTableProps(props));
-
- return <ThresholdsTable {...tableProps()} />;
+ return (
+ <ThresholdsTable
+ overrides={props.overrides}
+ setOverrides={props.setOverrides}
+ rawOverridesConfig={props.rawOverridesConfig}
+ setRawOverridesConfig={props.setRawOverridesConfig}
+ allGuests={props.allGuests}
+ nodes={props.nodes}
+ agents={props.agents}
+ storage={props.storage}
+ containerRuntimes={props.containerRuntimes}
+ dockerHosts={props.dockerHosts}
+ allResources={props.allResources}
+ pbsInstances={props.pbsInstances}
+ pmgInstances={props.pmgInstances}
+ pmgThresholds={props.pmgThresholds}
+ setPMGThresholds={props.setPMGThresholds}
+ guestDefaults={props.guestDefaults()}
+ setGuestDefaults={props.setGuestDefaults}
+ guestDisableConnectivity={props.guestDisableConnectivity}
+ setGuestDisableConnectivity={props.setGuestDisableConnectivity}
+ guestPoweredOffSeverity={props.guestPoweredOffSeverity}
+ setGuestPoweredOffSeverity={props.setGuestPoweredOffSeverity}
+ nodeDefaults={props.nodeDefaults()}
+ pbsDefaults={props.pbsDefaults()}
+ agentDefaults={props.agentDefaults()}
+ setNodeDefaults={props.setNodeDefaults}
+ setPBSDefaults={props.setPBSDefaults}
+ setAgentDefaults={props.setAgentDefaults}
+ dockerDefaults={props.dockerDefaults()}
+ dockerDisableConnectivity={props.dockerDisableConnectivity}
+ setDockerDisableConnectivity={props.setDockerDisableConnectivity}
+ dockerPoweredOffSeverity={props.dockerPoweredOffSeverity}
+ setDockerPoweredOffSeverity={props.setDockerPoweredOffSeverity}
+ setDockerDefaults={props.setDockerDefaults}
+ dockerIgnoredPrefixes={props.dockerIgnoredPrefixes}
+ setDockerIgnoredPrefixes={props.setDockerIgnoredPrefixes}
+ ignoredGuestPrefixes={props.ignoredGuestPrefixes}
+ setIgnoredGuestPrefixes={props.setIgnoredGuestPrefixes}
+ guestTagWhitelist={props.guestTagWhitelist}
+ setGuestTagWhitelist={props.setGuestTagWhitelist}
+ guestTagBlacklist={props.guestTagBlacklist}
+ setGuestTagBlacklist={props.setGuestTagBlacklist}
+ storageDefault={props.storageDefault}
+ setStorageDefault={props.setStorageDefault}
+ resetGuestDefaults={props.resetGuestDefaults}
+ resetNodeDefaults={props.resetNodeDefaults}
+ resetPBSDefaults={props.resetPBSDefaults}
+ resetAgentDefaults={props.resetAgentDefaults}
+ resetDockerDefaults={props.resetDockerDefaults}
+ resetDockerIgnoredPrefixes={props.resetDockerIgnoredPrefixes}
+ resetStorageDefault={props.resetStorageDefault}
+ factoryGuestDefaults={props.factoryGuestDefaults}
+ factoryNodeDefaults={props.factoryNodeDefaults}
+ factoryPBSDefaults={props.factoryPBSDefaults}
+ factoryAgentDefaults={props.factoryAgentDefaults}
+ factoryDockerDefaults={props.factoryDockerDefaults}
+ factoryStorageDefault={props.factoryStorageDefault}
+ timeThresholds={props.timeThresholds}
+ metricTimeThresholds={props.metricTimeThresholds}
+ setMetricTimeThresholds={props.setMetricTimeThresholds}
+ snapshotDefaults={props.snapshotDefaults}
+ setSnapshotDefaults={props.setSnapshotDefaults}
+ snapshotFactoryDefaults={props.snapshotFactoryDefaults}
+ resetSnapshotDefaults={props.resetSnapshotDefaults}
+ backupDefaults={props.backupDefaults}
+ setBackupDefaults={props.setBackupDefaults}
+ backupFactoryDefaults={props.backupFactoryDefaults}
+ resetBackupDefaults={props.resetBackupDefaults}
+ setHasUnsavedChanges={props.setHasUnsavedChanges}
+ activeAlerts={props.activeAlerts}
+ removeAlerts={props.removeAlerts}
+ disableAllNodes={props.disableAllNodes}
+ setDisableAllNodes={props.setDisableAllNodes}
+ disableAllGuests={props.disableAllGuests}
+ setDisableAllGuests={props.setDisableAllGuests}
+ disableAllAgents={props.disableAllAgents}
+ setDisableAllAgents={props.setDisableAllAgents}
+ disableAllStorage={props.disableAllStorage}
+ setDisableAllStorage={props.setDisableAllStorage}
+ disableAllPBS={props.disableAllPBS}
+ setDisableAllPBS={props.setDisableAllPBS}
+ disableAllPMG={props.disableAllPMG}
+ setDisableAllPMG={props.setDisableAllPMG}
+ disableAllDockerHosts={props.disableAllDockerHosts}
+ setDisableAllDockerHosts={props.setDisableAllDockerHosts}
+ disableAllDockerServices={props.disableAllDockerServices}
+ setDisableAllDockerServices={props.setDisableAllDockerServices}
+ disableAllDockerContainers={props.disableAllDockerContainers}
+ setDisableAllDockerContainers={props.setDisableAllDockerContainers}
+ disableAllNodesOffline={props.disableAllNodesOffline}
+ setDisableAllNodesOffline={props.setDisableAllNodesOffline}
+ disableAllGuestsOffline={props.disableAllGuestsOffline}
+ setDisableAllGuestsOffline={props.setDisableAllGuestsOffline}
+ disableAllAgentsOffline={props.disableAllAgentsOffline}
+ setDisableAllAgentsOffline={props.setDisableAllAgentsOffline}
+ disableAllPBSOffline={props.disableAllPBSOffline}
+ setDisableAllPBSOffline={props.setDisableAllPBSOffline}
+ disableAllPMGOffline={props.disableAllPMGOffline}
+ setDisableAllPMGOffline={props.setDisableAllPMGOffline}
+ disableAllDockerHostsOffline={props.disableAllDockerHostsOffline}
+ setDisableAllDockerHostsOffline={props.setDisableAllDockerHostsOffline}
+ />
+ );
}
diff --git a/frontend-modern/src/features/alerts/thresholds/hooks/__tests__/useThresholdsTableState.test.tsx b/frontend-modern/src/features/alerts/thresholds/hooks/__tests__/useThresholdsTableState.test.tsx
index 7e35b35083..89922ab2ef 100644
--- a/frontend-modern/src/features/alerts/thresholds/hooks/__tests__/useThresholdsTableState.test.tsx
+++ b/frontend-modern/src/features/alerts/thresholds/hooks/__tests__/useThresholdsTableState.test.tsx
@@ -69,6 +69,7 @@ const buildProps = (): ThresholdsTableProps =>
allGuests: () => [],
allResources: [],
backupDefaults: () => ({ criticalDays: 7, enabled: false, warningDays: 3 }),
+ containerRuntimes: [],
disableAllAgents: () => false,
disableAllAgentsOffline: () => false,
disableAllDockerContainers: () => false,
@@ -183,6 +184,7 @@ describe('useThresholdsTableState', () => {
expect(captured).toBeDefined();
expect(captured!.activeTab()).toBe('systems');
+ expect(captured!.hasDockerSpecificControls()).toBe(false);
captured!.dismissHelpBanner();
expect(captured!.helpBannerDismissed()).toBe(true);
diff --git a/frontend-modern/src/features/alerts/thresholds/hooks/useThresholdsDockerData.ts b/frontend-modern/src/features/alerts/thresholds/hooks/useThresholdsDockerData.ts
index 99fc088fdd..efb0485a0f 100644
--- a/frontend-modern/src/features/alerts/thresholds/hooks/useThresholdsDockerData.ts
+++ b/frontend-modern/src/features/alerts/thresholds/hooks/useThresholdsDockerData.ts
@@ -29,7 +29,7 @@ export function useThresholdsDockerData(inputs: ThresholdsDataInputs) {
const overridesMap = createOverridesMap(props.overrides());
const seen = new Set<string>();
- const hosts: TableResource[] = (props.dockerHosts ?? []).map((host) => {
+ const hosts: TableResource[] = (props.containerRuntimes ?? []).map((host) => {
const idCandidates = dockerHostOverrideIdCandidates(host);
const originalName = getAlertResourceDisplayLabel(host);
const friendlyName = getFriendlyAlertNodeName(originalName, host.policy);
@@ -109,7 +109,7 @@ export function useThresholdsDockerData(inputs: ThresholdsDataInputs) {
const groups: Record<string, TableResource[]> = {};
const seen = new Set<string>();
- (props.dockerHosts ?? []).forEach((host) => {
+ (props.containerRuntimes ?? []).forEach((host) => {
const dockerHostIds = dockerHostOverrideIdCandidates(host);
const dockerHostIdForActions = dockerHostIds[0] || host.id;
const hostLabel = getAlertResourceDisplayLabel(host);
@@ -220,7 +220,7 @@ export function useThresholdsDockerData(inputs: ThresholdsDataInputs) {
);
const totalDockerContainers = createMemo(() =>
- (props.dockerHosts ?? []).reduce(
+ (props.containerRuntimes ?? []).reduce(
(sum, host) => sum + (dockerContainersByHostId().get(host.id)?.length ?? 0),
0,
),
@@ -228,7 +228,7 @@ export function useThresholdsDockerData(inputs: ThresholdsDataInputs) {
const dockerHostGroupMeta = createMemo<Record<string, GroupHeaderMeta>>(() => {
const meta: Record<string, GroupHeaderMeta> = {};
- (props.dockerHosts ?? []).forEach((host) => {
+ (props.containerRuntimes ?? []).forEach((host) => {
const originalName = getAlertResourceDisplayLabel(host);
const friendlyName = getFriendlyAlertNodeName(originalName, host.policy);
const headerMeta: GroupHeaderMeta = {
diff --git a/frontend-modern/src/features/alerts/thresholds/hooks/useThresholdsTableState.ts b/frontend-modern/src/features/alerts/thresholds/hooks/useThresholdsTableState.ts
index e1d7545c81..201f7d116f 100644
--- a/frontend-modern/src/features/alerts/thresholds/hooks/useThresholdsTableState.ts
+++ b/frontend-modern/src/features/alerts/thresholds/hooks/useThresholdsTableState.ts
@@ -128,6 +128,8 @@ export function useThresholdsTableState(props: ThresholdsTableProps) {
return '';
});
+ const hasDockerSpecificControls = createMemo(() => (props.dockerHosts?.length ?? 0) > 0);
+
const getActiveTabFromRoute = (): ThresholdsActiveTab => {
const path = location.pathname;
if (path.includes('/thresholds/containers')) return 'docker';
@@ -304,7 +306,7 @@ export function useThresholdsTableState(props: ThresholdsTableProps) {
label: 'Container Runtimes',
overrides: countOverrides(dockerHostsWithOverrides()),
tab: 'docker',
- total: props.dockerHosts?.length ?? 0,
+ total: props.containerRuntimes?.length ?? 0,
},
{
key: 'agents',
@@ -547,6 +549,7 @@ export function useThresholdsTableState(props: ThresholdsTableProps) {
hasActiveAlert,
hasSection,
helpBannerDismissed,
+ hasDockerSpecificControls,
isBulkEditDialogOpen,
isCollapsed,
nodesWithOverrides,
diff --git a/frontend-modern/src/features/alerts/thresholds/thresholdsTabModel.ts b/frontend-modern/src/features/alerts/thresholds/thresholdsTabModel.ts
index 93cc091945..f29c917fab 100644
--- a/frontend-modern/src/features/alerts/thresholds/thresholdsTabModel.ts
+++ b/frontend-modern/src/features/alerts/thresholds/thresholdsTabModel.ts
@@ -13,14 +13,3 @@ export interface ThresholdsTabProps
agentDefaults: Accessor<ThresholdsTableProps['agentDefaults']>;
dockerDefaults: Accessor<ThresholdsTableProps['dockerDefaults']>;
}
-
-export function buildThresholdsTableProps(props: ThresholdsTabProps): ThresholdsTableProps {
- return {
- ...props,
- guestDefaults: props.guestDefaults(),
- nodeDefaults: props.nodeDefaults(),
- pbsDefaults: props.pbsDefaults(),
- agentDefaults: props.agentDefaults(),
- dockerDefaults: props.dockerDefaults(),
- };
-}
diff --git a/frontend-modern/src/features/alerts/thresholds/types.ts b/frontend-modern/src/features/alerts/thresholds/types.ts
index e12e2be974..3ecdff4c24 100644
--- a/frontend-modern/src/features/alerts/thresholds/types.ts
+++ b/frontend-modern/src/features/alerts/thresholds/types.ts
@@ -68,6 +68,7 @@ export interface ThresholdsTableProps {
nodes: Resource[];
agents: Resource[];
storage: Resource[];
+ containerRuntimes: Resource[];
dockerHosts: Resource[];
allResources: Resource[];
pbsInstances?: PBSInstance[]; // PBS instances derived from unified resources
diff --git a/frontend-modern/src/features/alerts/useAlertOverridesState.ts b/frontend-modern/src/features/alerts/useAlertOverridesState.ts
index 9d4822d7ce..426707bd09 100644
--- a/frontend-modern/src/features/alerts/useAlertOverridesState.ts
+++ b/frontend-modern/src/features/alerts/useAlertOverridesState.ts
@@ -6,7 +6,11 @@ import type { Resource, ResourceType } from '@/types/resource';
import { hasAgentFacet } from '@/utils/agentResources';
import { pbsInstanceFromResource, pmgInstanceFromResource } from '@/utils/resourceStateAdapters';
-import { buildProjectedOverrides, normalizeRawOverridesConfig } from './alertOverridesModel';
+import {
+ buildContainerRuntimeResources,
+ buildProjectedOverrides,
+ normalizeRawOverridesConfig,
+} from './alertOverridesModel';
import type { Override } from './types';
export interface AlertOverridesStateProps {
@@ -71,6 +75,13 @@ export function useAlertOverridesState(props: AlertOverridesStateProps) {
.filter((resource): resource is PMGInstance => Boolean(resource)),
);
+ const containerRuntimeResources = createMemo(() =>
+ buildContainerRuntimeResources({
+ allResources: props.allResources(),
+ dockerHostResources: props.byType('docker-host'),
+ }),
+ );
+
createEffect(() => {
if (props.hasUnsavedChanges()) {
return;
@@ -94,7 +105,6 @@ export function useAlertOverridesState(props: AlertOverridesStateProps) {
.allResources()
.filter((resource) => resource.type === 'storage' || resource.type === 'datastore');
const agentResourceList = agentResources();
- const dockerHostResources = props.byType('docker-host');
const overridesList = buildProjectedOverrides({
rawConfig,
nodeResources,
@@ -102,7 +112,7 @@ export function useAlertOverridesState(props: AlertOverridesStateProps) {
containerResources,
storageResources,
agentResourceList,
- dockerHostResources,
+ containerRuntimeResources: containerRuntimeResources(),
getChildren: props.children,
pbsInstanceById: pbsInstanceById(),
});
@@ -145,6 +155,7 @@ export function useAlertOverridesState(props: AlertOverridesStateProps) {
replaceRawOverridesConfig,
allGuests,
agentResources,
+ containerRuntimeResources,
pbsInstances,
pmgInstances,
};
diff --git a/frontend-modern/src/features/alerts/useAlertsConfigurationState.ts b/frontend-modern/src/features/alerts/useAlertsConfigurationState.ts
index 859636315b..a48d3a1df4 100644
--- a/frontend-modern/src/features/alerts/useAlertsConfigurationState.ts
+++ b/frontend-modern/src/features/alerts/useAlertsConfigurationState.ts
@@ -128,6 +128,7 @@ export function useAlertsConfigurationState(props: AlertsConfigurationSurfacePro
...configurationSnapshotState,
allGuests: overridesState.allGuests,
agentResources: overridesState.agentResources,
+ containerRuntimeResources: overridesState.containerRuntimeResources,
pbsInstances: overridesState.pbsInstances,
pmgInstances: overridesState.pmgInstances,
loadAlertConfiguration,
diff --git a/tests/integration/tests/26-truenas-alert-thresholds.spec.ts b/tests/integration/tests/26-truenas-alert-thresholds.spec.ts
index 356fa5d744..ba85a7ecfb 100644
--- a/tests/integration/tests/26-truenas-alert-thresholds.spec.ts
+++ b/tests/integration/tests/26-truenas-alert-thresholds.spec.ts
@@ -38,7 +38,7 @@ const test = base.extend<{}, WorkerFixtures>({
test.describe('TrueNAS alert thresholds', () => {
test.setTimeout(180_000);
- test('routes TrueNAS through the neutral infrastructure and systems thresholds surfaces', async ({
+ test('routes TrueNAS through the neutral infrastructure, systems, and containers thresholds surfaces', async ({
page,
}) => {
await page.route('**/api/resources**', async (route) => {
@@ -100,6 +100,27 @@ test.describe('TrueNAS alert thresholds', () => {
},
},
},
+ {
+ id: 'ix-nextcloud',
+ type: 'app-container',
+ name: 'nextcloud',
+ displayName: 'Nextcloud',
+ parentId: 'truenas-resource',
+ parentName: 'TrueNAS Main',
+ platformId: 'truenas-main',
+ platformType: 'truenas',
+ sourceType: 'api',
+ sources: ['truenas'],
+ status: 'running',
+ lastSeen: '2026-03-29T22:00:00Z',
+ canonicalIdentity: {
+ displayName: 'Nextcloud',
+ platformId: 'truenas-main',
+ },
+ platformData: {
+ sources: ['truenas'],
+ },
+ },
{
id: 'storage-truenas-tank',
type: 'storage',
@@ -133,7 +154,7 @@ test.describe('TrueNAS alert thresholds', () => {
meta: {
page: 1,
limit: 200,
- total: 2,
+ total: 3,
totalPages: 1,
},
}),
@@ -189,7 +210,7 @@ test.describe('TrueNAS alert thresholds', () => {
});
});
- await page.goto('/alerts/thresholds/proxmox', {
+ await page.goto('/alerts/thresholds/infrastructure', {
waitUntil: 'domcontentloaded',
});
@@ -210,6 +231,17 @@ test.describe('TrueNAS alert thresholds', () => {
await expect(systemDisksSection.getByText('TrueNAS Main', { exact: true })).toBeVisible();
await expect(systemDisksSection.getByText('/mnt/tank', { exact: true })).toBeVisible();
+ await page.getByRole('button', { name: 'Containers' }).click();
+
+ await expect(page).toHaveURL(/\/alerts\/thresholds\/containers/);
+ const runtimeTable = page.locator('table').nth(0);
+ const containersTable = page.locator('table').nth(1);
+ await expect(page.getByText('Container Runtimes')).toBeVisible();
+ await expect(runtimeTable.getByText('TrueNAS', { exact: true })).toBeVisible();
+ await expect(containersTable.getByText('Nextcloud', { exact: true })).toBeVisible();
+ await expect(page.getByText('Ignored container prefixes')).toHaveCount(0);
+ await expect(page.getByText('Swarm service alerts')).toHaveCount(0);
+
await page.screenshot({ path: SCREENSHOT_PATH, fullPage: true });
});
});