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.

Split resource detail drawer docker action owner

rcourtman45c9f0a9c2b1
diff --git a/docs/release-control/v6/internal/subsystems/registry.json b/docs/release-control/v6/internal/subsystems/registry.json
index dee696944c..228c5aea93 100644
--- a/docs/release-control/v6/internal/subsystems/registry.json
+++ b/docs/release-control/v6/internal/subsystems/registry.json
@@ -3177,6 +3177,7 @@
"frontend-modern/src/components/Infrastructure/UnifiedResourceTable.tsx",
"frontend-modern/src/components/Infrastructure/unifiedResourceTableModel.ts",
"frontend-modern/src/components/Infrastructure/useResourceDetailDrawerDerivedState.ts",
+ "frontend-modern/src/components/Infrastructure/useResourceDetailDrawerDockerActionsState.ts",
"frontend-modern/src/components/Infrastructure/useResourceDetailDrawerHistoryState.ts",
"frontend-modern/src/components/Infrastructure/useResourceDetailDrawerState.ts",
"frontend-modern/src/components/Infrastructure/useUnifiedResourceTableState.ts",
@@ -3263,6 +3264,7 @@
"frontend-modern/src/components/Infrastructure/UnifiedResourceTable.tsx",
"frontend-modern/src/components/Infrastructure/unifiedResourceTableModel.ts",
"frontend-modern/src/components/Infrastructure/useResourceDetailDrawerDerivedState.ts",
+ "frontend-modern/src/components/Infrastructure/useResourceDetailDrawerDockerActionsState.ts",
"frontend-modern/src/components/Infrastructure/useResourceDetailDrawerHistoryState.ts",
"frontend-modern/src/components/Infrastructure/useResourceDetailDrawerState.ts",
"frontend-modern/src/components/Infrastructure/useUnifiedResourceTableState.ts",
diff --git a/docs/release-control/v6/internal/subsystems/unified-resources.md b/docs/release-control/v6/internal/subsystems/unified-resources.md
index 8635a84474..6d39dc921c 100644
--- a/docs/release-control/v6/internal/subsystems/unified-resources.md
+++ b/docs/release-control/v6/internal/subsystems/unified-resources.md
@@ -55,14 +55,15 @@ cross-source deduplication.
33. `frontend-modern/src/components/Infrastructure/unifiedResourceTableModel.ts`
34. `frontend-modern/src/components/Infrastructure/useResourceDetailDrawerDerivedState.ts`
35. `frontend-modern/src/components/Infrastructure/useResourceDetailDrawerHistoryState.ts`
-36. `frontend-modern/src/components/Infrastructure/useResourceDetailDrawerState.ts`
-37. `frontend-modern/src/components/Infrastructure/useUnifiedResourceTableState.ts`
-38. `frontend-modern/src/components/Infrastructure/useUnifiedResourceTableViewportSync.ts`
-39. `frontend-modern/src/components/Discovery/DiscoveryTab.tsx`
-40. `frontend-modern/src/components/Discovery/useDiscoveryTabState.ts`
-41. `frontend-modern/src/features/infrastructure/InfrastructurePageSurface.tsx`
-42. `frontend-modern/src/features/infrastructure/useInfrastructurePageRouteState.ts`
-43. `frontend-modern/src/features/infrastructure/useInfrastructurePageState.ts`
+36. `frontend-modern/src/components/Infrastructure/useResourceDetailDrawerDockerActionsState.ts`
+37. `frontend-modern/src/components/Infrastructure/useResourceDetailDrawerState.ts`
+38. `frontend-modern/src/components/Infrastructure/useUnifiedResourceTableState.ts`
+39. `frontend-modern/src/components/Infrastructure/useUnifiedResourceTableViewportSync.ts`
+40. `frontend-modern/src/components/Discovery/DiscoveryTab.tsx`
+41. `frontend-modern/src/components/Discovery/useDiscoveryTabState.ts`
+42. `frontend-modern/src/features/infrastructure/InfrastructurePageSurface.tsx`
+43. `frontend-modern/src/features/infrastructure/useInfrastructurePageRouteState.ts`
+44. `frontend-modern/src/features/infrastructure/useInfrastructurePageState.ts`
## Shared Boundaries
@@ -154,9 +155,10 @@ split used elsewhere in v6: `ResourceDetailDrawer.tsx` owns composition,
`useResourceDetailDrawerState.ts` owns composition of drawer-local state,
`useResourceDetailDrawerHistoryState.ts` owns facet/intelligence/timeline
runtime orchestration, `useResourceDetailDrawerDerivedState.ts` owns the
-canonical drawer derivation layer, and the overview/debug render-heavy
-surfaces live in dedicated drawer-local owners instead of staying inline in
-the shell.
+canonical drawer derivation layer,
+`useResourceDetailDrawerDockerActionsState.ts` owns Docker action runtime, and
+the overview/debug render-heavy surfaces live in dedicated drawer-local owners
+instead of staying inline in the shell.
The backend AI and Patrol context renderers now derive their canonical change
kind, source type, source adapter, actor, reason, and related-resource
fragments from `internal/unifiedresources/change_presentation.go`, so the
@@ -299,9 +301,11 @@ resource-intelligence state through
`frontend-modern/src/components/Infrastructure/useResourceDetailDrawerHistoryState.ts`,
while canonical identity, source, service, and debug derivations route through
`frontend-modern/src/components/Infrastructure/useResourceDetailDrawerDerivedState.ts`
+while Docker update mutations route through
+`frontend-modern/src/components/Infrastructure/useResourceDetailDrawerDockerActionsState.ts`,
and `frontend-modern/src/components/Infrastructure/useResourceDetailDrawerState.ts`
-stays the composition owner, so unified-resource history and investigation
-orchestration no longer accumulate inline beside the drawer-local model layer.
+stays the composition owner, so unified-resource history, investigation, and
+drawer-local action runtime no longer accumulate inline beside the model layer.
The shared `ResourceFacetSummary` consumer now omits capability and
relationship badges from the default table/detail surface entirely, while the
backend contract keeps capability and relationship data on the owned resource
diff --git a/frontend-modern/src/components/Infrastructure/ResourceDetailDrawerOverviewTab.tsx b/frontend-modern/src/components/Infrastructure/ResourceDetailDrawerOverviewTab.tsx
index f764a35ce5..62ffeca1a7 100644
--- a/frontend-modern/src/components/Infrastructure/ResourceDetailDrawerOverviewTab.tsx
+++ b/frontend-modern/src/components/Infrastructure/ResourceDetailDrawerOverviewTab.tsx
@@ -17,7 +17,6 @@ import { DisksCard } from '@/components/shared/cards/DisksCard';
import { TemperaturesCard } from '@/components/shared/cards/TemperaturesCard';
import { RaidCard } from '@/components/shared/cards/RaidCard';
import { DiscoveryTab } from '@/components/Discovery/DiscoveryTab';
-import { MonitoringAPI } from '@/api/monitoring';
import { WebInterfaceUrlField } from '@/components/shared/WebInterfaceUrlField';
import { getServiceHealthPresentation } from '@/utils/serviceHealthPresentation';
import {
@@ -639,24 +638,7 @@ export const ResourceDetailDrawerOverviewTab: Component<ResourceDetailDrawerOver
drawer.dockerHostCommandActive() ||
drawer.dockerHostSourceId() === null
}
- onClick={async () => {
- drawer.setDockerActionError('');
- drawer.setDockerActionNote('');
- drawer.setConfirmUpdateAll(false);
- const hostId = drawer.dockerHostSourceId();
- if (!hostId) return;
- try {
- drawer.setDockerActionBusy(true);
- await MonitoringAPI.checkDockerUpdates(hostId);
- drawer.setDockerActionNote('Check queued.');
- } catch (err) {
- drawer.setDockerActionError(
- (err as Error)?.message || 'Failed to queue check',
- );
- } finally {
- drawer.setDockerActionBusy(false);
- }
- }}
+ onClick={drawer.queueDockerUpdateCheck}
class="rounded-md border border-border bg-surface px-2.5 py-1 text-[11px] font-semibold text-base-content hover:bg-surface-hover disabled:opacity-60"
title={
drawer.dockerUpdateActionsLoading() ? 'Loading settings...' : undefined
@@ -675,33 +657,7 @@ export const ResourceDetailDrawerOverviewTab: Component<ResourceDetailDrawerOver
drawer.dockerHostSourceId() === null ||
drawer.dockerUpdatesAvailable() <= 0
}
- onClick={async () => {
- drawer.setDockerActionError('');
- drawer.setDockerActionNote('');
- const hostId = drawer.dockerHostSourceId();
- if (!hostId) return;
-
- if (!drawer.confirmUpdateAll()) {
- drawer.setConfirmUpdateAll(true);
- drawer.setDockerActionNote(
- `Click again to update ${drawer.dockerUpdatesAvailable()} containers.`,
- );
- return;
- }
-
- try {
- drawer.setDockerActionBusy(true);
- await MonitoringAPI.updateAllDockerContainers(hostId);
- drawer.setDockerActionNote('Update queued.');
- } catch (err) {
- drawer.setDockerActionError(
- (err as Error)?.message || 'Failed to queue update',
- );
- } finally {
- drawer.setDockerActionBusy(false);
- drawer.setConfirmUpdateAll(false);
- }
- }}
+ onClick={drawer.queueDockerUpdateAll}
class="rounded-md border border-sky-200 bg-sky-600 px-2.5 py-1 text-[11px] font-semibold text-white hover:bg-sky-700 disabled:opacity-60 disabled:hover:bg-sky-600 dark:border-sky-700 dark:bg-sky-600 dark:hover:bg-sky-500 dark:disabled:hover:bg-sky-600"
title={
drawer.dockerUpdateActionsDisabled()
@@ -719,7 +675,7 @@ export const ResourceDetailDrawerOverviewTab: Component<ResourceDetailDrawerOver
<button
type="button"
- onClick={() => drawer.setShowDockerUpdateControls((value) => !value)}
+ onClick={drawer.toggleDockerUpdateControls}
class="inline-flex items-center rounded-md border border-sky-200 bg-surface px-2.5 py-1 text-[10px] font-medium text-sky-700 transition-colors hover:bg-base dark:border-sky-700 dark:text-sky-300"
>
{drawer.showDockerUpdateControls() ? 'Hide actions' : 'Show actions'}
diff --git a/frontend-modern/src/components/Infrastructure/__tests__/ResourceDetailDrawer.history.test.tsx b/frontend-modern/src/components/Infrastructure/__tests__/ResourceDetailDrawer.history.test.tsx
index 15062c3b18..3ffe34cf9e 100644
--- a/frontend-modern/src/components/Infrastructure/__tests__/ResourceDetailDrawer.history.test.tsx
+++ b/frontend-modern/src/components/Infrastructure/__tests__/ResourceDetailDrawer.history.test.tsx
@@ -7,6 +7,7 @@ import resourceDetailDrawerShellSource from '@/components/Infrastructure/Resourc
import resourceDetailDrawerOverviewSource from '@/components/Infrastructure/ResourceDetailDrawerOverviewTab.tsx?raw';
import resourceDetailDrawerHistoryStateSource from '@/components/Infrastructure/useResourceDetailDrawerHistoryState.ts?raw';
import resourceDetailDrawerDerivedStateSource from '@/components/Infrastructure/useResourceDetailDrawerDerivedState.ts?raw';
+import resourceDetailDrawerDockerActionsStateSource from '@/components/Infrastructure/useResourceDetailDrawerDockerActionsState.ts?raw';
import resourceDetailDrawerStateSource from '@/components/Infrastructure/useResourceDetailDrawerState.ts?raw';
import type { Resource } from '@/types/resource';
import { ResourceDetailDrawer } from '@/components/Infrastructure/ResourceDetailDrawer';
@@ -124,12 +125,23 @@ describe('ResourceDetailDrawer change history section', () => {
expect(resourceDetailDrawerShellSource).not.toContain('Change history');
expect(resourceDetailDrawerStateSource).toContain("from './useResourceDetailDrawerHistoryState'");
expect(resourceDetailDrawerStateSource).toContain("from './useResourceDetailDrawerDerivedState'");
+ expect(resourceDetailDrawerStateSource).toContain(
+ "from './useResourceDetailDrawerDockerActionsState'",
+ );
expect(resourceDetailDrawerStateSource).not.toContain('createResource(');
+ expect(resourceDetailDrawerStateSource).not.toContain('MonitoringAPI.');
expect(resourceDetailDrawerHistoryStateSource).toContain('createResource(');
expect(resourceDetailDrawerHistoryStateSource).toContain('ResourceAPI.getFacetBundle');
expect(resourceDetailDrawerHistoryStateSource).toContain('AIAPI.getResourceIntelligence');
expect(resourceDetailDrawerDerivedStateSource).toContain('buildWorkloadsHref');
expect(resourceDetailDrawerDerivedStateSource).toContain('toDiscoveryConfig');
+ expect(resourceDetailDrawerOverviewSource).not.toContain('MonitoringAPI.');
+ expect(resourceDetailDrawerOverviewSource).toContain('drawer.queueDockerUpdateCheck');
+ expect(resourceDetailDrawerOverviewSource).toContain('drawer.queueDockerUpdateAll');
+ expect(resourceDetailDrawerDockerActionsStateSource).toContain('MonitoringAPI.checkDockerUpdates');
+ expect(resourceDetailDrawerDockerActionsStateSource).toContain(
+ 'MonitoringAPI.updateAllDockerContainers',
+ );
});
it('keeps compact timeline summary chips in overview while showing one embedded change history section', async () => {
diff --git a/frontend-modern/src/components/Infrastructure/__tests__/useResourceDetailDrawerDockerActionsState.test.ts b/frontend-modern/src/components/Infrastructure/__tests__/useResourceDetailDrawerDockerActionsState.test.ts
new file mode 100644
index 0000000000..9ee6688b0d
--- /dev/null
+++ b/frontend-modern/src/components/Infrastructure/__tests__/useResourceDetailDrawerDockerActionsState.test.ts
@@ -0,0 +1,95 @@
+import { createRoot, createSignal } from 'solid-js';
+import { beforeEach, describe, expect, it, vi } from 'vitest';
+
+import { useResourceDetailDrawerDockerActionsState } from '@/components/Infrastructure/useResourceDetailDrawerDockerActionsState';
+
+const monitoringMock = vi.hoisted(() => ({
+ checkDockerUpdates: vi.fn(),
+ updateAllDockerContainers: vi.fn(),
+}));
+
+vi.mock('@/api/monitoring', () => ({
+ MonitoringAPI: monitoringMock,
+}));
+
+describe('useResourceDetailDrawerDockerActionsState', () => {
+ beforeEach(() => {
+ monitoringMock.checkDockerUpdates.mockReset();
+ monitoringMock.updateAllDockerContainers.mockReset();
+ });
+
+ it('queues docker update checks through the dedicated action owner', async () => {
+ monitoringMock.checkDockerUpdates.mockResolvedValue(undefined);
+
+ const scope = createRoot((dispose) => {
+ const [dockerHostSourceId] = createSignal<string | null>('host-1');
+ const [dockerUpdatesAvailable] = createSignal(3);
+ return {
+ dispose,
+ state: useResourceDetailDrawerDockerActionsState({
+ dockerHostSourceId,
+ dockerUpdatesAvailable,
+ }),
+ };
+ });
+
+ await scope.state.queueDockerUpdateCheck();
+
+ expect(monitoringMock.checkDockerUpdates).toHaveBeenCalledWith('host-1');
+ expect(scope.state.dockerActionNote()).toBe('Check queued.');
+ expect(scope.state.confirmUpdateAll()).toBe(false);
+ scope.dispose();
+ });
+
+ it('requires confirmation before queueing update-all mutations', async () => {
+ monitoringMock.updateAllDockerContainers.mockResolvedValue(undefined);
+
+ const scope = createRoot((dispose) => {
+ const [dockerHostSourceId] = createSignal<string | null>('host-1');
+ const [dockerUpdatesAvailable] = createSignal(4);
+ return {
+ dispose,
+ state: useResourceDetailDrawerDockerActionsState({
+ dockerHostSourceId,
+ dockerUpdatesAvailable,
+ }),
+ };
+ });
+
+ await scope.state.queueDockerUpdateAll();
+
+ expect(monitoringMock.updateAllDockerContainers).not.toHaveBeenCalled();
+ expect(scope.state.confirmUpdateAll()).toBe(true);
+ expect(scope.state.dockerActionNote()).toContain('Click again to update 4 containers.');
+
+ await scope.state.queueDockerUpdateAll();
+
+ expect(monitoringMock.updateAllDockerContainers).toHaveBeenCalledWith('host-1');
+ expect(scope.state.dockerActionNote()).toBe('Update queued.');
+ expect(scope.state.confirmUpdateAll()).toBe(false);
+ scope.dispose();
+ });
+
+ it('clears pending confirmation when docker actions are hidden', async () => {
+ const scope = createRoot((dispose) => {
+ const [dockerHostSourceId] = createSignal<string | null>('host-1');
+ const [dockerUpdatesAvailable] = createSignal(2);
+ return {
+ dispose,
+ state: useResourceDetailDrawerDockerActionsState({
+ dockerHostSourceId,
+ dockerUpdatesAvailable,
+ }),
+ };
+ });
+
+ scope.state.toggleDockerUpdateControls();
+ await scope.state.queueDockerUpdateAll();
+ expect(scope.state.confirmUpdateAll()).toBe(true);
+
+ scope.state.toggleDockerUpdateControls();
+
+ expect(scope.state.confirmUpdateAll()).toBe(false);
+ scope.dispose();
+ });
+});
diff --git a/frontend-modern/src/components/Infrastructure/useResourceDetailDrawerDockerActionsState.ts b/frontend-modern/src/components/Infrastructure/useResourceDetailDrawerDockerActionsState.ts
new file mode 100644
index 0000000000..bfd7b388a6
--- /dev/null
+++ b/frontend-modern/src/components/Infrastructure/useResourceDetailDrawerDockerActionsState.ts
@@ -0,0 +1,101 @@
+import { createEffect, createSignal, type Accessor } from 'solid-js';
+import { MonitoringAPI } from '@/api/monitoring';
+
+interface UseResourceDetailDrawerDockerActionsStateOptions {
+ dockerHostSourceId: Accessor<string | null>;
+ dockerUpdatesAvailable: Accessor<number>;
+}
+
+const formatActionError = (error: unknown, fallback: string): string =>
+ error instanceof Error && error.message ? error.message : fallback;
+
+export const useResourceDetailDrawerDockerActionsState = (
+ options: UseResourceDetailDrawerDockerActionsStateOptions,
+) => {
+ const [showDockerUpdateControls, setShowDockerUpdateControls] = createSignal(false);
+ const [dockerActionError, setDockerActionError] = createSignal('');
+ const [dockerActionNote, setDockerActionNote] = createSignal('');
+ const [confirmUpdateAll, setConfirmUpdateAll] = createSignal(false);
+ const [dockerActionBusy, setDockerActionBusy] = createSignal(false);
+
+ const resetDockerActionFeedback = () => {
+ setDockerActionError('');
+ setDockerActionNote('');
+ };
+
+ createEffect(() => {
+ if (!showDockerUpdateControls() || options.dockerHostSourceId() === null) {
+ setConfirmUpdateAll(false);
+ }
+ });
+
+ createEffect(() => {
+ if (options.dockerUpdatesAvailable() <= 0) {
+ setConfirmUpdateAll(false);
+ }
+ });
+
+ const toggleDockerUpdateControls = () => {
+ setShowDockerUpdateControls((value) => !value);
+ };
+
+ const queueDockerUpdateCheck = async () => {
+ resetDockerActionFeedback();
+ setConfirmUpdateAll(false);
+ const hostId = options.dockerHostSourceId();
+ if (!hostId) return false;
+ try {
+ setDockerActionBusy(true);
+ await MonitoringAPI.checkDockerUpdates(hostId);
+ setDockerActionNote('Check queued.');
+ return true;
+ } catch (error) {
+ setDockerActionError(formatActionError(error, 'Failed to queue check'));
+ return false;
+ } finally {
+ setDockerActionBusy(false);
+ }
+ };
+
+ const queueDockerUpdateAll = async () => {
+ resetDockerActionFeedback();
+ const hostId = options.dockerHostSourceId();
+ if (!hostId) return false;
+
+ if (!confirmUpdateAll()) {
+ setConfirmUpdateAll(true);
+ setDockerActionNote(
+ `Click again to update ${options.dockerUpdatesAvailable()} containers.`,
+ );
+ return false;
+ }
+
+ try {
+ setDockerActionBusy(true);
+ await MonitoringAPI.updateAllDockerContainers(hostId);
+ setDockerActionNote('Update queued.');
+ return true;
+ } catch (error) {
+ setDockerActionError(formatActionError(error, 'Failed to queue update'));
+ return false;
+ } finally {
+ setDockerActionBusy(false);
+ setConfirmUpdateAll(false);
+ }
+ };
+
+ return {
+ showDockerUpdateControls,
+ dockerActionError,
+ dockerActionNote,
+ confirmUpdateAll,
+ dockerActionBusy,
+ toggleDockerUpdateControls,
+ queueDockerUpdateCheck,
+ queueDockerUpdateAll,
+ };
+};
+
+export type UseResourceDetailDrawerDockerActionsStateResult = ReturnType<
+ typeof useResourceDetailDrawerDockerActionsState
+>;
diff --git a/frontend-modern/src/components/Infrastructure/useResourceDetailDrawerState.ts b/frontend-modern/src/components/Infrastructure/useResourceDetailDrawerState.ts
index 898f81b950..c207506d28 100644
--- a/frontend-modern/src/components/Infrastructure/useResourceDetailDrawerState.ts
+++ b/frontend-modern/src/components/Infrastructure/useResourceDetailDrawerState.ts
@@ -4,6 +4,7 @@ import {
} from 'solid-js';
import type { Resource } from '@/types/resource';
import { createLocalStorageBooleanSignal, STORAGE_KEYS } from '@/utils/localStorage';
+import { useResourceDetailDrawerDockerActionsState } from './useResourceDetailDrawerDockerActionsState';
import { useResourceDetailDrawerHistoryState } from './useResourceDetailDrawerHistoryState';
import { useResourceDetailDrawerDerivedState } from './useResourceDetailDrawerDerivedState';
@@ -25,13 +26,8 @@ export const useResourceDetailDrawerState = (options: UseResourceDetailDrawerSta
const [showDiscoveryContext, setShowDiscoveryContext] = createSignal(false);
const [showHostDetails, setShowHostDetails] = createSignal(false);
const [showServiceDetails, setShowServiceDetails] = createSignal(false);
- const [showDockerUpdateControls, setShowDockerUpdateControls] = createSignal(false);
const [showPbsJobDetail, setShowPbsJobDetail] = createSignal(false);
const [showPmgMailFlowDetail, setShowPmgMailFlowDetail] = createSignal(false);
- const [dockerActionError, setDockerActionError] = createSignal('');
- const [dockerActionNote, setDockerActionNote] = createSignal('');
- const [confirmUpdateAll, setConfirmUpdateAll] = createSignal(false);
- const [dockerActionBusy, setDockerActionBusy] = createSignal(false);
const [k8sDeploymentsPrefillNamespace, setK8sDeploymentsPrefillNamespace] = createSignal('');
const history = useResourceDetailDrawerHistoryState({ resource });
@@ -41,6 +37,10 @@ export const useResourceDetailDrawerState = (options: UseResourceDetailDrawerSta
debugEnabled,
resourceIntelligence: history.resourceIntelligence,
});
+ const dockerActions = useResourceDetailDrawerDockerActionsState({
+ dockerHostSourceId: derived.dockerHostSourceId,
+ dockerUpdatesAvailable: derived.dockerUpdatesAvailable,
+ });
createEffect(() => {
if (!debugEnabled() && activeTab() === 'debug') {
@@ -96,24 +96,15 @@ export const useResourceDetailDrawerState = (options: UseResourceDetailDrawerSta
setShowHostDetails,
showServiceDetails,
setShowServiceDetails,
- showDockerUpdateControls,
- setShowDockerUpdateControls,
showPbsJobDetail,
setShowPbsJobDetail,
showPmgMailFlowDetail,
setShowPmgMailFlowDetail,
- dockerActionError,
- setDockerActionError,
- dockerActionNote,
- setDockerActionNote,
- confirmUpdateAll,
- setConfirmUpdateAll,
- dockerActionBusy,
- setDockerActionBusy,
k8sDeploymentsPrefillNamespace,
setK8sDeploymentsPrefillNamespace,
...history,
...derived,
+ ...dockerActions,
handleCopyJson,
};
};
diff --git a/frontend-modern/src/utils/__tests__/frontendResourceTypeBoundaries.test.ts b/frontend-modern/src/utils/__tests__/frontendResourceTypeBoundaries.test.ts
index 84d70777b6..f99fcdc828 100644
--- a/frontend-modern/src/utils/__tests__/frontendResourceTypeBoundaries.test.ts
+++ b/frontend-modern/src/utils/__tests__/frontendResourceTypeBoundaries.test.ts
@@ -249,6 +249,7 @@ import infrastructureSummarySource from '@/components/Infrastructure/Infrastruct
import resourceDetailMappersSource from '@/components/Infrastructure/resourceDetailMappers.ts?raw';
import resourceDetailDrawerHistoryStateSource from '@/components/Infrastructure/useResourceDetailDrawerHistoryState.ts?raw';
import resourceDetailDrawerDerivedStateSource from '@/components/Infrastructure/useResourceDetailDrawerDerivedState.ts?raw';
+import resourceDetailDrawerDockerActionsStateSource from '@/components/Infrastructure/useResourceDetailDrawerDockerActionsState.ts?raw';
import resourceDetailDrawerStateSource from '@/components/Infrastructure/useResourceDetailDrawerState.ts?raw';
import unifiedResourceTableSource from '@/components/Infrastructure/UnifiedResourceTable.tsx?raw';
import unifiedResourceTableStateSource from '@/components/Infrastructure/useUnifiedResourceTableState.ts?raw';
@@ -883,9 +884,20 @@ describe('frontend resource type boundaries', () => {
expect(resourceDetailDrawerShellSource).toContain("from './ResourceDetailDrawerDebugTab'");
expect(resourceDetailDrawerStateSource).toContain("from './useResourceDetailDrawerHistoryState'");
expect(resourceDetailDrawerStateSource).toContain("from './useResourceDetailDrawerDerivedState'");
+ expect(resourceDetailDrawerStateSource).toContain(
+ "from './useResourceDetailDrawerDockerActionsState'",
+ );
expect(resourceDetailDrawerStateSource).not.toContain('createResource(');
+ expect(resourceDetailDrawerStateSource).not.toContain('MonitoringAPI.');
expect(resourceDetailDrawerHistoryStateSource).toContain('createResource(');
expect(resourceDetailDrawerDerivedStateSource).toContain('buildWorkloadsHref');
+ expect(resourceDetailDrawerOverviewSource).not.toContain('MonitoringAPI.');
+ expect(resourceDetailDrawerOverviewSource).toContain('drawer.queueDockerUpdateCheck');
+ expect(resourceDetailDrawerOverviewSource).toContain('drawer.queueDockerUpdateAll');
+ expect(resourceDetailDrawerDockerActionsStateSource).toContain('MonitoringAPI.checkDockerUpdates');
+ expect(resourceDetailDrawerDockerActionsStateSource).toContain(
+ 'MonitoringAPI.updateAllDockerContainers',
+ );
expect(guestDrawerSource).toContain('useGuestDrawerState');
expect(guestDrawerSource).toContain('GuestDrawerOverview');
expect(guestDrawerStateSource).toContain('getCanonicalWorkloadId');