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 Docker inventory into native tables

rcourtmana353d11493b6
diff --git a/docs/release-control/v6/internal/subsystems/frontend-primitives.md b/docs/release-control/v6/internal/subsystems/frontend-primitives.md
index 6b8ee0a0fc..e59765fbde 100644
--- a/docs/release-control/v6/internal/subsystems/frontend-primitives.md
+++ b/docs/release-control/v6/internal/subsystems/frontend-primitives.md
@@ -199,6 +199,9 @@ bounds, current/desired replicas, and metric source columns.
Kubernetes events inventory follows that same primitive boundary while the
unified-resource owner supplies Event type, reason, involved-object, count,
observed-time, and message columns.
+Docker / Podman inventory follows that same primitive boundary while the
+unified-resource owner supplies API-object-specific image, volume, network,
+Swarm node, task, secret, and config columns through dedicated native tables.
1. `frontend-modern/src/components/Settings/APIAccessPanel.tsx` shared with `security-privacy`: the API Access settings intro is both a security/privacy token-management trust surface and a canonical settings-shell presentation boundary.
The panel may own shell placement and local action layout, but
diff --git a/docs/release-control/v6/internal/subsystems/registry.json b/docs/release-control/v6/internal/subsystems/registry.json
index bba4df800e..b934ce75dd 100644
--- a/docs/release-control/v6/internal/subsystems/registry.json
+++ b/docs/release-control/v6/internal/subsystems/registry.json
@@ -5059,9 +5059,16 @@
"frontend-modern/src/components/PMG/PMGInstanceDrawer.tsx",
"frontend-modern/src/components/PMG/PMGInstancePanel.tsx",
"frontend-modern/src/components/PMG/ServiceHealthBadge.tsx",
- "frontend-modern/src/features/docker/DockerInventoryTable.tsx",
+ "frontend-modern/src/features/docker/DockerConfigsTable.tsx",
+ "frontend-modern/src/features/docker/DockerImagesTable.tsx",
+ "frontend-modern/src/features/docker/DockerNativeTableShared.tsx",
+ "frontend-modern/src/features/docker/DockerNetworksTable.tsx",
"frontend-modern/src/features/docker/dockerPageModel.ts",
"frontend-modern/src/features/docker/DockerPageSurface.tsx",
+ "frontend-modern/src/features/docker/DockerSecretsTable.tsx",
+ "frontend-modern/src/features/docker/DockerSwarmNodesTable.tsx",
+ "frontend-modern/src/features/docker/DockerTasksTable.tsx",
+ "frontend-modern/src/features/docker/DockerVolumesTable.tsx",
"frontend-modern/src/features/infrastructure/infrastructurePageModel.ts",
"frontend-modern/src/features/infrastructure/InfrastructurePageSurface.tsx",
"frontend-modern/src/features/infrastructure/useInfrastructurePageRouteState.ts",
@@ -5199,9 +5206,16 @@
"frontend-modern/src/components/PMG/MailGateway.tsx",
"frontend-modern/src/components/PMG/PMGInstanceDrawer.tsx",
"frontend-modern/src/components/PMG/PMGInstancePanel.tsx",
- "frontend-modern/src/features/docker/DockerInventoryTable.tsx",
+ "frontend-modern/src/features/docker/DockerConfigsTable.tsx",
+ "frontend-modern/src/features/docker/DockerImagesTable.tsx",
+ "frontend-modern/src/features/docker/DockerNativeTableShared.tsx",
+ "frontend-modern/src/features/docker/DockerNetworksTable.tsx",
"frontend-modern/src/features/docker/dockerPageModel.ts",
"frontend-modern/src/features/docker/DockerPageSurface.tsx",
+ "frontend-modern/src/features/docker/DockerSecretsTable.tsx",
+ "frontend-modern/src/features/docker/DockerSwarmNodesTable.tsx",
+ "frontend-modern/src/features/docker/DockerTasksTable.tsx",
+ "frontend-modern/src/features/docker/DockerVolumesTable.tsx",
"frontend-modern/src/features/infrastructure/infrastructurePageModel.ts",
"frontend-modern/src/features/infrastructure/InfrastructurePageSurface.tsx",
"frontend-modern/src/features/infrastructure/useInfrastructurePageRouteState.ts",
@@ -5242,6 +5256,7 @@
"frontend-modern/src/components/Infrastructure/__tests__/UnifiedResourceTable.workloads-link.test.tsx",
"frontend-modern/src/components/Infrastructure/__tests__/unifiedResourceTableStateModel.test.ts",
"frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.ts",
+ "frontend-modern/src/features/docker/__tests__/DockerNativeTables.test.tsx",
"frontend-modern/src/features/docker/__tests__/dockerPageModel.test.ts",
"frontend-modern/src/features/docker/__tests__/DockerPageSurface.test.tsx",
"frontend-modern/src/features/infrastructure/__tests__/infrastructurePageModel.test.ts",
diff --git a/docs/release-control/v6/internal/subsystems/unified-resources.md b/docs/release-control/v6/internal/subsystems/unified-resources.md
index 8a6e2f1491..e0e732edfe 100644
--- a/docs/release-control/v6/internal/subsystems/unified-resources.md
+++ b/docs/release-control/v6/internal/subsystems/unified-resources.md
@@ -54,88 +54,95 @@ cross-source deduplication.
30. `frontend-modern/src/components/Infrastructure/ResourceDetailDrawerDebugTab.tsx`
31. `frontend-modern/src/components/Infrastructure/ResourceDetailDrawerSupportDisclosure.tsx`
32. `frontend-modern/src/components/Docker/SwarmServicesDrawer.tsx`
-33. `frontend-modern/src/features/docker/DockerInventoryTable.tsx`
-34. `frontend-modern/src/features/docker/DockerPageSurface.tsx`
-35. `frontend-modern/src/features/docker/dockerPageModel.ts`
-36. `frontend-modern/src/components/Kubernetes/K8sDeploymentsDrawer.tsx`
-37. `frontend-modern/src/components/Kubernetes/K8sNamespacesDrawer.tsx`
-38. `frontend-modern/src/components/PMG/PMGInstanceDrawer.tsx`
-39. `frontend-modern/src/components/PMG/MailGateway.tsx`
-40. `frontend-modern/src/components/PMG/PMGInstancePanel.tsx`
-41. `frontend-modern/src/components/Infrastructure/ResourceActionHistory.tsx`
-42. `frontend-modern/src/components/Infrastructure/ResourceFacetSummary.tsx`
-43. `frontend-modern/src/components/Infrastructure/ResourceChangeSummary.tsx`
-44. `frontend-modern/src/components/Infrastructure/ResourceCorrelationSummary.tsx`
-45. `frontend-modern/src/components/Infrastructure/ResourcePolicySummary.tsx`
-46. `frontend-modern/src/components/Infrastructure/resourceBadges.ts`
-47. `frontend-modern/src/components/Infrastructure/UnifiedResourceHostTableCard.tsx`
-48. `frontend-modern/src/components/Infrastructure/UnifiedResourcePBSTableSection.tsx`
-49. `frontend-modern/src/components/Infrastructure/UnifiedResourcePMGTableSection.tsx`
-50. `frontend-modern/src/components/Infrastructure/UnifiedResourceServiceInfrastructureCard.tsx`
-51. `frontend-modern/src/components/Infrastructure/unifiedResourceTableModel.ts`
-52. `frontend-modern/src/components/Infrastructure/unifiedResourceTableStateModel.ts`
-53. `frontend-modern/src/components/Infrastructure/useResourceDetailDrawerDerivedState.ts`
-54. `frontend-modern/src/components/Infrastructure/resourceDetailDrawerServiceModel.ts`
-55. `frontend-modern/src/components/Infrastructure/resourceDetailDrawerVmwareModel.ts`
-56. `frontend-modern/src/components/Infrastructure/resourceDetailDiscoveryModel.ts`
-57. `frontend-modern/src/components/Infrastructure/resourceDetailDrawerOperationalModel.ts`
-58. `frontend-modern/src/components/Infrastructure/useResourceDetailDrawerHistoryState.ts`
-59. `frontend-modern/src/components/Infrastructure/useResourceDetailDrawerDockerActionsState.ts`
-60. `frontend-modern/src/components/Infrastructure/useResourceDetailDrawerState.ts`
-61. `frontend-modern/src/components/Infrastructure/useUnifiedResourceTableState.ts`
-62. `frontend-modern/src/components/Infrastructure/useUnifiedResourceTableViewportSync.ts`
-63. `frontend-modern/src/components/Discovery/DiscoveryTab.tsx`
-64. `frontend-modern/src/components/Discovery/useDiscoveryTabState.ts`
-65. `frontend-modern/src/features/infrastructure/InfrastructurePageSurface.tsx`
-66. `frontend-modern/src/features/infrastructure/useInfrastructurePageRouteState.ts`
-67. `frontend-modern/src/features/infrastructure/useInfrastructurePageState.ts`
-68. `frontend-modern/src/features/infrastructure/infrastructurePageModel.ts`
-69. `frontend-modern/src/components/Infrastructure/InfrastructureSummary.tsx`
-70. `frontend-modern/src/components/Infrastructure/useInfrastructureSummaryState.ts`
-71. `frontend-modern/src/components/Infrastructure/infrastructureSummaryModel.ts`
-72. `frontend-modern/src/utils/agentResources.ts`
-73. `frontend-modern/src/utils/canonicalResourceTypes.ts`
-74. `frontend-modern/src/utils/resourceBadgePresentation.ts`
-75. `frontend-modern/src/utils/resourceChangePresentation.ts`
-76. `frontend-modern/src/utils/actionAuditPresentation.ts`
-77. `frontend-modern/src/utils/resourceCorrelationPresentation.ts`
-78. `frontend-modern/src/utils/resourcePlatformData.ts`
-79. `frontend-modern/src/utils/resourcePolicyPresentation.ts`
-80. `frontend-modern/src/utils/resourceStateAdapters.ts`
-81. `frontend-modern/src/utils/resourceTypeCompat.ts`
-82. `frontend-modern/src/utils/resourceTypePresentation.ts`
-83. `frontend-modern/src/utils/serviceHealthPresentation.ts`
-84. `frontend-modern/src/utils/sourceTypePresentation.ts`
-85. `frontend-modern/src/utils/workloadTypePresentation.ts`
-86. `frontend-modern/src/components/PMG/ServiceHealthBadge.tsx`
-87. `frontend-modern/src/utils/resourceIdentity.ts`
-88. `frontend-modern/src/components/Infrastructure/resourceDetailDrawerIdentityModel.ts`
-89. `frontend-modern/src/hooks/useUnifiedResources.ts`
-90. `frontend-modern/src/types/resource.ts`
-91. `frontend-modern/src/utils/sourcePlatforms.ts`
-92. `frontend-modern/src/utils/platformSupportManifest.generated.ts`
-93. `internal/unifiedresources/kubernetes_metric_ids.go`
-94. `internal/unifiedresources/policy_posture.go`
-95. `internal/unifiedresources/clone.go`
-96. `frontend-modern/src/components/Infrastructure/resourceDetailDrawerPresentation.ts`
-97. `internal/unifiedresources/storage_consumers.go`
-98. `frontend-modern/src/features/agents/agentsPageModel.ts`
-99. `frontend-modern/src/features/agents/AgentsPageSurface.tsx`
-100. `frontend-modern/src/features/agents/AgentsMachinesTable.tsx`
-101. `internal/platformsupport/manifest_generated.go`
-102. `frontend-modern/src/features/kubernetes/KubernetesInventoryTable.tsx`
-103. `frontend-modern/src/features/kubernetes/KubernetesPageSurface.tsx`
-104. `frontend-modern/src/features/kubernetes/kubernetesPageModel.ts`
-105. `frontend-modern/src/features/kubernetes/KubernetesClustersTable.tsx`
-106. `frontend-modern/src/features/kubernetes/KubernetesDeploymentsTable.tsx`
-107. `frontend-modern/src/features/kubernetes/KubernetesNodesTable.tsx`
-108. `frontend-modern/src/features/kubernetes/KubernetesStorageTable.tsx`
-109. `frontend-modern/src/features/kubernetes/KubernetesNetworkingTable.tsx`
-110. `frontend-modern/src/features/kubernetes/KubernetesServicesTable.tsx`
-111. `frontend-modern/src/features/kubernetes/KubernetesConfigTable.tsx`
-112. `frontend-modern/src/features/kubernetes/KubernetesPolicyTable.tsx`
-113. `frontend-modern/src/features/kubernetes/KubernetesAutoscalingTable.tsx`
-114. `frontend-modern/src/features/kubernetes/KubernetesEventsTable.tsx`
+33. `frontend-modern/src/features/docker/DockerConfigsTable.tsx`
+34. `frontend-modern/src/features/docker/DockerImagesTable.tsx`
+35. `frontend-modern/src/features/docker/DockerNativeTableShared.tsx`
+36. `frontend-modern/src/features/docker/DockerNetworksTable.tsx`
+37. `frontend-modern/src/features/docker/DockerPageSurface.tsx`
+38. `frontend-modern/src/features/docker/DockerSecretsTable.tsx`
+39. `frontend-modern/src/features/docker/DockerSwarmNodesTable.tsx`
+40. `frontend-modern/src/features/docker/DockerTasksTable.tsx`
+41. `frontend-modern/src/features/docker/DockerVolumesTable.tsx`
+42. `frontend-modern/src/features/docker/dockerPageModel.ts`
+43. `frontend-modern/src/components/Kubernetes/K8sDeploymentsDrawer.tsx`
+44. `frontend-modern/src/components/Kubernetes/K8sNamespacesDrawer.tsx`
+45. `frontend-modern/src/components/PMG/PMGInstanceDrawer.tsx`
+46. `frontend-modern/src/components/PMG/MailGateway.tsx`
+47. `frontend-modern/src/components/PMG/PMGInstancePanel.tsx`
+48. `frontend-modern/src/components/Infrastructure/ResourceActionHistory.tsx`
+49. `frontend-modern/src/components/Infrastructure/ResourceFacetSummary.tsx`
+50. `frontend-modern/src/components/Infrastructure/ResourceChangeSummary.tsx`
+51. `frontend-modern/src/components/Infrastructure/ResourceCorrelationSummary.tsx`
+52. `frontend-modern/src/components/Infrastructure/ResourcePolicySummary.tsx`
+53. `frontend-modern/src/components/Infrastructure/resourceBadges.ts`
+54. `frontend-modern/src/components/Infrastructure/UnifiedResourceHostTableCard.tsx`
+55. `frontend-modern/src/components/Infrastructure/UnifiedResourcePBSTableSection.tsx`
+56. `frontend-modern/src/components/Infrastructure/UnifiedResourcePMGTableSection.tsx`
+57. `frontend-modern/src/components/Infrastructure/UnifiedResourceServiceInfrastructureCard.tsx`
+58. `frontend-modern/src/components/Infrastructure/unifiedResourceTableModel.ts`
+59. `frontend-modern/src/components/Infrastructure/unifiedResourceTableStateModel.ts`
+60. `frontend-modern/src/components/Infrastructure/useResourceDetailDrawerDerivedState.ts`
+61. `frontend-modern/src/components/Infrastructure/resourceDetailDrawerServiceModel.ts`
+62. `frontend-modern/src/components/Infrastructure/resourceDetailDrawerVmwareModel.ts`
+63. `frontend-modern/src/components/Infrastructure/resourceDetailDiscoveryModel.ts`
+64. `frontend-modern/src/components/Infrastructure/resourceDetailDrawerOperationalModel.ts`
+65. `frontend-modern/src/components/Infrastructure/useResourceDetailDrawerHistoryState.ts`
+66. `frontend-modern/src/components/Infrastructure/useResourceDetailDrawerDockerActionsState.ts`
+67. `frontend-modern/src/components/Infrastructure/useResourceDetailDrawerState.ts`
+68. `frontend-modern/src/components/Infrastructure/useUnifiedResourceTableState.ts`
+69. `frontend-modern/src/components/Infrastructure/useUnifiedResourceTableViewportSync.ts`
+70. `frontend-modern/src/components/Discovery/DiscoveryTab.tsx`
+71. `frontend-modern/src/components/Discovery/useDiscoveryTabState.ts`
+72. `frontend-modern/src/features/infrastructure/InfrastructurePageSurface.tsx`
+73. `frontend-modern/src/features/infrastructure/useInfrastructurePageRouteState.ts`
+74. `frontend-modern/src/features/infrastructure/useInfrastructurePageState.ts`
+75. `frontend-modern/src/features/infrastructure/infrastructurePageModel.ts`
+76. `frontend-modern/src/components/Infrastructure/InfrastructureSummary.tsx`
+77. `frontend-modern/src/components/Infrastructure/useInfrastructureSummaryState.ts`
+78. `frontend-modern/src/components/Infrastructure/infrastructureSummaryModel.ts`
+79. `frontend-modern/src/utils/agentResources.ts`
+80. `frontend-modern/src/utils/canonicalResourceTypes.ts`
+81. `frontend-modern/src/utils/resourceBadgePresentation.ts`
+82. `frontend-modern/src/utils/resourceChangePresentation.ts`
+83. `frontend-modern/src/utils/actionAuditPresentation.ts`
+84. `frontend-modern/src/utils/resourceCorrelationPresentation.ts`
+85. `frontend-modern/src/utils/resourcePlatformData.ts`
+86. `frontend-modern/src/utils/resourcePolicyPresentation.ts`
+87. `frontend-modern/src/utils/resourceStateAdapters.ts`
+88. `frontend-modern/src/utils/resourceTypeCompat.ts`
+89. `frontend-modern/src/utils/resourceTypePresentation.ts`
+90. `frontend-modern/src/utils/serviceHealthPresentation.ts`
+91. `frontend-modern/src/utils/sourceTypePresentation.ts`
+92. `frontend-modern/src/utils/workloadTypePresentation.ts`
+93. `frontend-modern/src/components/PMG/ServiceHealthBadge.tsx`
+94. `frontend-modern/src/utils/resourceIdentity.ts`
+95. `frontend-modern/src/components/Infrastructure/resourceDetailDrawerIdentityModel.ts`
+96. `frontend-modern/src/hooks/useUnifiedResources.ts`
+97. `frontend-modern/src/types/resource.ts`
+98. `frontend-modern/src/utils/sourcePlatforms.ts`
+99. `frontend-modern/src/utils/platformSupportManifest.generated.ts`
+100. `internal/unifiedresources/kubernetes_metric_ids.go`
+101. `internal/unifiedresources/policy_posture.go`
+102. `internal/unifiedresources/clone.go`
+103. `frontend-modern/src/components/Infrastructure/resourceDetailDrawerPresentation.ts`
+104. `internal/unifiedresources/storage_consumers.go`
+105. `frontend-modern/src/features/agents/agentsPageModel.ts`
+106. `frontend-modern/src/features/agents/AgentsPageSurface.tsx`
+107. `frontend-modern/src/features/agents/AgentsMachinesTable.tsx`
+108. `internal/platformsupport/manifest_generated.go`
+109. `frontend-modern/src/features/kubernetes/KubernetesInventoryTable.tsx`
+110. `frontend-modern/src/features/kubernetes/KubernetesPageSurface.tsx`
+111. `frontend-modern/src/features/kubernetes/kubernetesPageModel.ts`
+112. `frontend-modern/src/features/kubernetes/KubernetesClustersTable.tsx`
+113. `frontend-modern/src/features/kubernetes/KubernetesDeploymentsTable.tsx`
+114. `frontend-modern/src/features/kubernetes/KubernetesNodesTable.tsx`
+115. `frontend-modern/src/features/kubernetes/KubernetesStorageTable.tsx`
+116. `frontend-modern/src/features/kubernetes/KubernetesNetworkingTable.tsx`
+117. `frontend-modern/src/features/kubernetes/KubernetesServicesTable.tsx`
+118. `frontend-modern/src/features/kubernetes/KubernetesConfigTable.tsx`
+119. `frontend-modern/src/features/kubernetes/KubernetesPolicyTable.tsx`
+120. `frontend-modern/src/features/kubernetes/KubernetesAutoscalingTable.tsx`
+121. `frontend-modern/src/features/kubernetes/KubernetesEventsTable.tsx`
## Shared Boundaries
@@ -167,6 +174,12 @@ that preserves event type, reason, involved object, occurrence count, observed
time, and message instead of routing event rows through the generic controller
inventory table.
+Docker / Podman runtime inventory is a unified-resource consumer boundary: the
+container runtime page must render Engine image, volume, network, Swarm node,
+task, secret, and config resources through API-object-native tables that
+preserve the fields documented by the Docker Engine API instead of routing those
+rows through a variant-switched generic inventory table.
+
1. `frontend-modern/src/components/Infrastructure/infrastructureSelectors.ts` shared with `performance-and-scalability`: the infrastructure selector pipeline is both a canonical unified-resource consumer surface and a fleet-scale performance hot-path boundary.
2. `frontend-modern/src/components/Infrastructure/InfrastructureSummary.tsx` shared with `performance-and-scalability`: the infrastructure summary surface is both a canonical unified-resource consumer and a fleet-scale summary chart hot-path boundary.
3. `frontend-modern/src/components/Infrastructure/infrastructureSummaryModel.ts` shared with `performance-and-scalability`: infrastructure summary chart matching, focused-summary view derivation, and metric-series shaping are both a canonical unified-resource consumer surface and a fleet-scale summary chart hot-path boundary.
diff --git a/frontend-modern/src/features/docker/DockerConfigsTable.tsx b/frontend-modern/src/features/docker/DockerConfigsTable.tsx
new file mode 100644
index 0000000000..8ea484e069
--- /dev/null
+++ b/frontend-modern/src/features/docker/DockerConfigsTable.tsx
@@ -0,0 +1,149 @@
+import { For, Show, type Component } from 'solid-js';
+import { TableCard } from '@/components/shared/TableCard';
+import { TableCardHeader } from '@/components/shared/TableCardHeader';
+import {
+ Table,
+ TableBody,
+ TableCell,
+ TableHead,
+ TableHeader,
+ TableRow,
+} from '@/components/shared/Table';
+import {
+ PLATFORM_HEALTH_FILTER_OPTIONS,
+ PLATFORM_TABLE_BODY_CLASS,
+ PLATFORM_TABLE_CARD_CLASS,
+ PLATFORM_TABLE_HEADER_ROW_CLASS,
+ PlatformTableEmptyState,
+ PlatformTableToolbar,
+ createPlatformTableFilterState,
+ filterPlatformResources,
+ getPlatformTableCellClassForKind,
+ getPlatformTableHeadClassForKind,
+ type PlatformResourceStatusFilter,
+} from '@/features/platformPage/sharedPlatformPage';
+import {
+ DockerResourceNameCell,
+ dockerHostName,
+ dockerLabelsSummary,
+ dockerTextValue,
+ type DockerNativeTableProps,
+} from './DockerNativeTableShared';
+
+export const DockerConfigsTable: Component<DockerNativeTableProps> = (props) => {
+ const tableState = createPlatformTableFilterState({
+ resources: () => props.resources,
+ initialStatus: 'all' as PlatformResourceStatusFilter,
+ filter: filterPlatformResources,
+ });
+
+ return (
+ <Show
+ when={props.resources.length > 0}
+ fallback={
+ <PlatformTableEmptyState
+ icon={props.emptyIcon}
+ title={props.emptyTitle}
+ description={props.emptyDescription}
+ />
+ }
+ >
+ <div class="space-y-3">
+ <Show when={props.showToolbar !== false}>
+ <PlatformTableToolbar
+ search={tableState.search}
+ onSearchChange={tableState.setSearch}
+ searchPlaceholder="Search Swarm configs"
+ status={tableState.status()}
+ onStatusChange={tableState.setStatus}
+ statusOptions={PLATFORM_HEALTH_FILTER_OPTIONS}
+ visible={tableState.visible()}
+ total={tableState.total()}
+ rowNoun="configs"
+ />
+ </Show>
+
+ <Show
+ when={tableState.filtered().length > 0}
+ fallback={
+ <PlatformTableEmptyState
+ icon={props.emptyIcon}
+ title="No Swarm configs match current filters"
+ description="Adjust the search or status filter to see more Docker Swarm configs."
+ />
+ }
+ >
+ <TableCard class={PLATFORM_TABLE_CARD_CLASS}>
+ <TableCardHeader title={props.title ?? 'Swarm Configs'} />
+ <Table class="min-w-full table-fixed text-xs md:min-w-[1040px]">
+ <TableHeader>
+ <TableRow class={PLATFORM_TABLE_HEADER_ROW_CLASS}>
+ <TableHead class={`${getPlatformTableHeadClassForKind('name')} md:w-[28%]`}>
+ Config
+ </TableHead>
+ <TableHead class={`${getPlatformTableHeadClassForKind('text')} md:w-[16%]`}>
+ Template
+ </TableHead>
+ <TableHead
+ class={`${getPlatformTableHeadClassForKind('text')} hidden md:table-cell md:w-[16%]`}
+ >
+ Created
+ </TableHead>
+ <TableHead
+ class={`${getPlatformTableHeadClassForKind('text')} hidden md:table-cell md:w-[24%]`}
+ >
+ Labels
+ </TableHead>
+ <TableHead class={`${getPlatformTableHeadClassForKind('text')} md:w-[16%]`}>
+ Host
+ </TableHead>
+ </TableRow>
+ </TableHeader>
+ <TableBody class={PLATFORM_TABLE_BODY_CLASS}>
+ <For each={tableState.filtered()}>
+ {(resource) => (
+ <TableRow class="text-[11px] sm:text-xs" data-docker-config-row={resource.id}>
+ <DockerResourceNameCell resource={resource} />
+ <TableCell
+ class={`${getPlatformTableCellClassForKind('text')} text-base-content`}
+ >
+ {dockerTextValue(resource.docker?.templatingDriver)}
+ </TableCell>
+ <TableCell
+ class={`${getPlatformTableCellClassForKind('text')} hidden text-base-content md:table-cell`}
+ >
+ <span
+ class="inline-block max-w-[14rem] truncate"
+ title={dockerTextValue(resource.docker?.objectCreatedAt)}
+ >
+ {dockerTextValue(resource.docker?.objectCreatedAt)}
+ </span>
+ </TableCell>
+ <TableCell
+ class={`${getPlatformTableCellClassForKind('text')} hidden text-base-content md:table-cell`}
+ >
+ <span
+ class="inline-block max-w-[22rem] truncate"
+ title={dockerLabelsSummary(resource.docker?.labels)}
+ >
+ {dockerLabelsSummary(resource.docker?.labels)}
+ </span>
+ </TableCell>
+ <TableCell
+ class={`${getPlatformTableCellClassForKind('text')} text-base-content`}
+ >
+ {dockerHostName(resource)}
+ </TableCell>
+ </TableRow>
+ )}
+ </For>
+ </TableBody>
+ </Table>
+ </TableCard>
+ </Show>
+ </div>
+ </Show>
+ );
+};
+
+export default DockerConfigsTable;
diff --git a/frontend-modern/src/features/docker/DockerImagesTable.tsx b/frontend-modern/src/features/docker/DockerImagesTable.tsx
new file mode 100644
index 0000000000..8b7e978836
--- /dev/null
+++ b/frontend-modern/src/features/docker/DockerImagesTable.tsx
@@ -0,0 +1,162 @@
+import { For, Show, type Component } from 'solid-js';
+import { TableCard } from '@/components/shared/TableCard';
+import { TableCardHeader } from '@/components/shared/TableCardHeader';
+import {
+ Table,
+ TableBody,
+ TableCell,
+ TableHead,
+ TableHeader,
+ TableRow,
+} from '@/components/shared/Table';
+import {
+ PLATFORM_HEALTH_FILTER_OPTIONS,
+ PLATFORM_TABLE_BODY_CLASS,
+ PLATFORM_TABLE_CARD_CLASS,
+ PLATFORM_TABLE_HEADER_ROW_CLASS,
+ PlatformTableEmptyState,
+ PlatformTableToolbar,
+ createPlatformTableFilterState,
+ filterPlatformResources,
+ getPlatformTableCellClassForKind,
+ getPlatformTableHeadClassForKind,
+ type PlatformResourceStatusFilter,
+} from '@/features/platformPage/sharedPlatformPage';
+import {
+ DockerResourceNameCell,
+ dockerByteValue,
+ dockerHostName,
+ dockerJoinValues,
+ dockerNumberValue,
+ type DockerNativeTableProps,
+} from './DockerNativeTableShared';
+
+export const DockerImagesTable: Component<DockerNativeTableProps> = (props) => {
+ const tableState = createPlatformTableFilterState({
+ resources: () => props.resources,
+ initialStatus: 'all' as PlatformResourceStatusFilter,
+ filter: filterPlatformResources,
+ });
+
+ return (
+ <Show
+ when={props.resources.length > 0}
+ fallback={
+ <PlatformTableEmptyState
+ icon={props.emptyIcon}
+ title={props.emptyTitle}
+ description={props.emptyDescription}
+ />
+ }
+ >
+ <div class="space-y-3">
+ <Show when={props.showToolbar !== false}>
+ <PlatformTableToolbar
+ search={tableState.search}
+ onSearchChange={tableState.setSearch}
+ searchPlaceholder="Search images"
+ status={tableState.status()}
+ onStatusChange={tableState.setStatus}
+ statusOptions={PLATFORM_HEALTH_FILTER_OPTIONS}
+ visible={tableState.visible()}
+ total={tableState.total()}
+ rowNoun="images"
+ />
+ </Show>
+
+ <Show
+ when={tableState.filtered().length > 0}
+ fallback={
+ <PlatformTableEmptyState
+ icon={props.emptyIcon}
+ title="No images match current filters"
+ description="Adjust the search or status filter to see more Docker images."
+ />
+ }
+ >
+ <TableCard class={PLATFORM_TABLE_CARD_CLASS}>
+ <TableCardHeader title={props.title ?? 'Images'} />
+ <Table class="min-w-full table-fixed text-xs md:min-w-[1120px]">
+ <TableHeader>
+ <TableRow class={PLATFORM_TABLE_HEADER_ROW_CLASS}>
+ <TableHead class={`${getPlatformTableHeadClassForKind('name')} md:w-[24%]`}>
+ Image
+ </TableHead>
+ <TableHead class={`${getPlatformTableHeadClassForKind('text')} md:w-[22%]`}>
+ Tags
+ </TableHead>
+ <TableHead
+ class={`${getPlatformTableHeadClassForKind('text')} hidden md:table-cell md:w-[24%]`}
+ >
+ Digests
+ </TableHead>
+ <TableHead
+ class={`${getPlatformTableHeadClassForKind('numeric-value')} md:w-[10%]`}
+ >
+ Size
+ </TableHead>
+ <TableHead
+ class={`${getPlatformTableHeadClassForKind('numeric-value')} md:w-[8%]`}
+ >
+ In Use
+ </TableHead>
+ <TableHead
+ class={`${getPlatformTableHeadClassForKind('text')} hidden md:table-cell md:w-[12%]`}
+ >
+ Host
+ </TableHead>
+ </TableRow>
+ </TableHeader>
+ <TableBody class={PLATFORM_TABLE_BODY_CLASS}>
+ <For each={tableState.filtered()}>
+ {(resource) => (
+ <TableRow class="text-[11px] sm:text-xs" data-docker-image-row={resource.id}>
+ <DockerResourceNameCell resource={resource} />
+ <TableCell
+ class={`${getPlatformTableCellClassForKind('text')} text-base-content`}
+ >
+ <span
+ class="inline-block max-w-[18rem] truncate"
+ title={dockerJoinValues(resource.docker?.repoTags)}
+ >
+ {dockerJoinValues(resource.docker?.repoTags)}
+ </span>
+ </TableCell>
+ <TableCell
+ class={`${getPlatformTableCellClassForKind('text')} hidden text-base-content md:table-cell`}
+ >
+ <span
+ class="inline-block max-w-[22rem] truncate"
+ title={dockerJoinValues(resource.docker?.repoDigests)}
+ >
+ {dockerJoinValues(resource.docker?.repoDigests)}
+ </span>
+ </TableCell>
+ <TableCell
+ class={`${getPlatformTableCellClassForKind('numeric-value')} text-base-content`}
+ >
+ {dockerByteValue(resource.docker?.sizeBytes)}
+ </TableCell>
+ <TableCell
+ class={`${getPlatformTableCellClassForKind('numeric-value')} text-base-content`}
+ >
+ {dockerNumberValue(resource.docker?.imageContainers)}
+ </TableCell>
+ <TableCell
+ class={`${getPlatformTableCellClassForKind('text')} hidden text-base-content md:table-cell`}
+ >
+ {dockerHostName(resource)}
+ </TableCell>
+ </TableRow>
+ )}
+ </For>
+ </TableBody>
+ </Table>
+ </TableCard>
+ </Show>
+ </div>
+ </Show>
+ );
+};
+
+export default DockerImagesTable;
diff --git a/frontend-modern/src/features/docker/DockerInventoryTable.tsx b/frontend-modern/src/features/docker/DockerInventoryTable.tsx
deleted file mode 100644
index 7425bf3806..0000000000
--- a/frontend-modern/src/features/docker/DockerInventoryTable.tsx
+++ /dev/null
@@ -1,525 +0,0 @@
-import { For, Show, type Component, type JSX } from 'solid-js';
-import { StatusDot } from '@/components/shared/StatusDot';
-import { TableCard } from '@/components/shared/TableCard';
-import { TableCardHeader } from '@/components/shared/TableCardHeader';
-import {
- Table,
- TableBody,
- TableCell,
- TableHead,
- TableHeader,
- TableRow,
-} from '@/components/shared/Table';
-import { formatBytes } from '@/utils/format';
-import { getSimpleStatusIndicator } from '@/utils/status';
-import { asTrimmedString } from '@/utils/stringUtils';
-import {
- PLATFORM_HEALTH_FILTER_OPTIONS,
- PLATFORM_TABLE_BODY_CLASS,
- PLATFORM_TABLE_CARD_CLASS,
- PLATFORM_TABLE_HEADER_ROW_CLASS,
- PlatformTableEmptyState,
- PlatformTableToolbar,
- createPlatformTableFilterState,
- filterPlatformResources,
- getPlatformTableCellClassForKind,
- getPlatformTableHeadClassForKind,
- type PlatformResourceStatusFilter,
-} from '@/features/platformPage/sharedPlatformPage';
-import type { Resource } from '@/types/resource';
-
-type DockerInventoryVariant =
- | 'images'
- | 'volumes'
- | 'networks'
- | 'nodes'
- | 'tasks'
- | 'secrets'
- | 'configs';
-
-const textValue = (value: string | undefined): string => asTrimmedString(value) || '—';
-const numberValue = (value: number | undefined): JSX.Element => (
- <span class="tabular-nums">{value ?? 0}</span>
-);
-const byteValue = (value: number | undefined): string =>
- typeof value === 'number' && value > 0 ? formatBytes(value) : '—';
-const cpuValue = (nanoCpus: number | undefined): string => {
- if (typeof nanoCpus !== 'number' || nanoCpus <= 0) return '—';
- const cpus = nanoCpus / 1_000_000_000;
- return cpus >= 10 ? `${Math.round(cpus)}` : cpus.toFixed(cpus % 1 === 0 ? 0 : 1);
-};
-
-const joinValues = (values: readonly (string | undefined)[] | undefined, empty = '—'): string => {
- const joined = (values ?? [])
- .map((value) => asTrimmedString(value))
- .filter((value): value is string => typeof value === 'string' && value.length > 0)
- .join(', ');
- return joined || empty;
-};
-
-const dockerTableTitle = (variant: DockerInventoryVariant, explicit?: string): string => {
- if (explicit) return explicit;
- switch (variant) {
- case 'images':
- return 'Images';
- case 'volumes':
- return 'Volumes';
- case 'networks':
- return 'Networks';
- case 'nodes':
- return 'Swarm Nodes';
- case 'tasks':
- return 'Swarm Tasks';
- case 'secrets':
- return 'Swarm Secrets';
- case 'configs':
- return 'Swarm Configs';
- }
-};
-
-const searchPlaceholder = (variant: DockerInventoryVariant): string => {
- switch (variant) {
- case 'images':
- return 'Search images';
- case 'volumes':
- return 'Search volumes';
- case 'networks':
- return 'Search networks';
- case 'nodes':
- return 'Search Swarm nodes';
- case 'tasks':
- return 'Search Swarm tasks';
- case 'secrets':
- return 'Search Swarm secrets';
- case 'configs':
- return 'Search Swarm configs';
- }
-};
-
-export const DockerInventoryTable: Component<{
- resources: Resource[];
- variant: DockerInventoryVariant;
- emptyIcon: JSX.Element;
- emptyTitle: string;
- emptyDescription: string;
- title?: string;
- showToolbar?: boolean;
-}> = (props) => {
- const tableState = createPlatformTableFilterState({
- resources: () => props.resources,
- initialStatus: 'all' as PlatformResourceStatusFilter,
- filter: filterPlatformResources,
- });
-
- return (
- <Show
- when={props.resources.length > 0}
- fallback={
- <PlatformTableEmptyState
- icon={props.emptyIcon}
- title={props.emptyTitle}
- description={props.emptyDescription}
- />
- }
- >
- <div class="space-y-3">
- <Show when={props.showToolbar !== false}>
- <PlatformTableToolbar
- search={tableState.search}
- onSearchChange={tableState.setSearch}
- searchPlaceholder={searchPlaceholder(props.variant)}
- status={tableState.status()}
- onStatusChange={tableState.setStatus}
- statusOptions={PLATFORM_HEALTH_FILTER_OPTIONS}
- visible={tableState.visible()}
- total={tableState.total()}
- rowNoun={props.variant}
- />
- </Show>
-
- <Show
- when={tableState.filtered().length > 0}
- fallback={
- <PlatformTableEmptyState
- icon={props.emptyIcon}
- title={`No ${props.variant} match current filters`}
- description="Adjust the search or status filter to see more rows."
- />
- }
- >
- <TableCard class={PLATFORM_TABLE_CARD_CLASS}>
- <TableCardHeader title={dockerTableTitle(props.variant, props.title)} />
- <Table class="min-w-full table-fixed text-xs md:min-w-[1080px]">
- <TableHeader>
- <DockerInventoryHeader variant={props.variant} />
- </TableHeader>
- <TableBody class={PLATFORM_TABLE_BODY_CLASS}>
- <For each={tableState.filtered()}>
- {(resource) => <DockerInventoryRow resource={resource} variant={props.variant} />}
- </For>
- </TableBody>
- </Table>
- </TableCard>
- </Show>
- </div>
- </Show>
- );
-};
-
-const DockerInventoryHeader: Component<{ variant: DockerInventoryVariant }> = (props) => {
- if (props.variant === 'images') {
- return (
- <TableRow class={PLATFORM_TABLE_HEADER_ROW_CLASS}>
- <TableHead class={`${getPlatformTableHeadClassForKind('name')} md:w-[31%]`}>
- Image
- </TableHead>
- <TableHead
- class={`${getPlatformTableHeadClassForKind('text')} hidden md:table-cell md:w-[29%]`}
- >
- Digests
- </TableHead>
- <TableHead class={`${getPlatformTableHeadClassForKind('numeric-value')} md:w-[12%]`}>
- Size
- </TableHead>
- <TableHead class={`${getPlatformTableHeadClassForKind('numeric-value')} md:w-[10%]`}>
- In Use
- </TableHead>
- <TableHead
- class={`${getPlatformTableHeadClassForKind('text')} hidden md:table-cell md:w-[18%]`}
- >
- Host
- </TableHead>
- </TableRow>
- );
- }
- if (props.variant === 'volumes') {
- return (
- <TableRow class={PLATFORM_TABLE_HEADER_ROW_CLASS}>
- <TableHead class={`${getPlatformTableHeadClassForKind('name')} md:w-[24%]`}>
- Volume
- </TableHead>
- <TableHead class={`${getPlatformTableHeadClassForKind('text')} md:w-[12%]`}>
- Driver
- </TableHead>
- <TableHead
- class={`${getPlatformTableHeadClassForKind('text')} hidden md:table-cell md:w-[10%]`}
- >
- Scope
- </TableHead>
- <TableHead class={`${getPlatformTableHeadClassForKind('numeric-value')} md:w-[10%]`}>
- Size
- </TableHead>
- <TableHead
- class={`${getPlatformTableHeadClassForKind('numeric-value')} hidden md:table-cell md:w-[8%]`}
- >
- Refs
- </TableHead>
- <TableHead
- class={`${getPlatformTableHeadClassForKind('text')} hidden md:table-cell md:w-[36%]`}
- >
- Mountpoint
- </TableHead>
- </TableRow>
- );
- }
- if (props.variant === 'networks') {
- return (
- <TableRow class={PLATFORM_TABLE_HEADER_ROW_CLASS}>
- <TableHead class={`${getPlatformTableHeadClassForKind('name')} md:w-[25%]`}>
- Network
- </TableHead>
- <TableHead class={`${getPlatformTableHeadClassForKind('text')} md:w-[14%]`}>
- Driver
- </TableHead>
- <TableHead
- class={`${getPlatformTableHeadClassForKind('text')} hidden md:table-cell md:w-[12%]`}
- >
- Scope
- </TableHead>
- <TableHead
- class={`${getPlatformTableHeadClassForKind('text')} hidden md:table-cell md:w-[31%]`}
- >
- Subnets
- </TableHead>
- <TableHead class={`${getPlatformTableHeadClassForKind('text')} md:w-[18%]`}>Host</TableHead>
- </TableRow>
- );
- }
- if (props.variant === 'nodes') {
- return (
- <TableRow class={PLATFORM_TABLE_HEADER_ROW_CLASS}>
- <TableHead class={`${getPlatformTableHeadClassForKind('name')} md:w-[22%]`}>Node</TableHead>
- <TableHead class={`${getPlatformTableHeadClassForKind('text')} md:w-[10%]`}>Role</TableHead>
- <TableHead class={`${getPlatformTableHeadClassForKind('text')} md:w-[12%]`}>
- Availability
- </TableHead>
- <TableHead
- class={`${getPlatformTableHeadClassForKind('text')} hidden md:table-cell md:w-[14%]`}
- >
- Reachability
- </TableHead>
- <TableHead
- class={`${getPlatformTableHeadClassForKind('text')} hidden md:table-cell md:w-[18%]`}
- >
- Engine
- </TableHead>
- <TableHead
- class={`${getPlatformTableHeadClassForKind('numeric-value')} hidden md:table-cell md:w-[8%]`}
- >
- CPUs
- </TableHead>
- <TableHead class={`${getPlatformTableHeadClassForKind('numeric-value')} md:w-[16%]`}>
- Memory
- </TableHead>
- </TableRow>
- );
- }
- if (props.variant === 'secrets') {
- return (
- <TableRow class={PLATFORM_TABLE_HEADER_ROW_CLASS}>
- <TableHead class={`${getPlatformTableHeadClassForKind('name')} md:w-[30%]`}>
- Secret
- </TableHead>
- <TableHead class={`${getPlatformTableHeadClassForKind('text')} md:w-[16%]`}>
- Driver
- </TableHead>
- <TableHead
- class={`${getPlatformTableHeadClassForKind('text')} hidden md:table-cell md:w-[18%]`}
- >
- Template
- </TableHead>
- <TableHead
- class={`${getPlatformTableHeadClassForKind('text')} hidden md:table-cell md:w-[20%]`}
- >
- Labels
- </TableHead>
- <TableHead class={`${getPlatformTableHeadClassForKind('text')} md:w-[16%]`}>Host</TableHead>
- </TableRow>
- );
- }
- if (props.variant === 'configs') {
- return (
- <TableRow class={PLATFORM_TABLE_HEADER_ROW_CLASS}>
- <TableHead class={`${getPlatformTableHeadClassForKind('name')} md:w-[34%]`}>
- Config
- </TableHead>
- <TableHead class={`${getPlatformTableHeadClassForKind('text')} md:w-[18%]`}>
- Template
- </TableHead>
- <TableHead
- class={`${getPlatformTableHeadClassForKind('text')} hidden md:table-cell md:w-[28%]`}
- >
- Labels
- </TableHead>
- <TableHead class={`${getPlatformTableHeadClassForKind('text')} md:w-[20%]`}>Host</TableHead>
- </TableRow>
- );
- }
- return (
- <TableRow class={PLATFORM_TABLE_HEADER_ROW_CLASS}>
- <TableHead class={`${getPlatformTableHeadClassForKind('name')} md:w-[22%]`}>Task</TableHead>
- <TableHead
- class={`${getPlatformTableHeadClassForKind('text')} hidden md:table-cell md:w-[22%]`}
- >
- Service
- </TableHead>
- <TableHead class={`${getPlatformTableHeadClassForKind('text')} md:w-[14%]`}>
- Desired
- </TableHead>
- <TableHead class={`${getPlatformTableHeadClassForKind('text')} md:w-[18%]`}>
- Current
- </TableHead>
- <TableHead
- class={`${getPlatformTableHeadClassForKind('text')} hidden md:table-cell md:w-[24%]`}
- >
- Node
- </TableHead>
- </TableRow>
- );
-};
-
-const DockerInventoryRow: Component<{ resource: Resource; variant: DockerInventoryVariant }> = (
- props,
-) => {
- const indicator = () => getSimpleStatusIndicator(props.resource.status);
- const name = () => asTrimmedString(props.resource.name) || props.resource.id;
- const host = () => textValue(props.resource.docker?.hostname);
- const labelSummary = () => {
- const labels = props.resource.docker?.labels;
- if (!labels || Object.keys(labels).length === 0) return '—';
- return Object.entries(labels)
- .slice(0, 3)
- .map(([key, value]) => `${key}=${value}`)
- .join(', ');
- };
-
- return (
- <TableRow class="text-[11px] sm:text-xs">
- <TableCell class={getPlatformTableCellClassForKind('name')}>
- <div class="flex min-w-0 items-center gap-2">
- <StatusDot
- size="sm"
- variant={indicator().variant}
- title={props.resource.status || 'unknown'}
- ariaHidden
- />
- <span class="truncate font-semibold text-base-content" title={name()}>
- {name()}
- </span>
- </div>
- </TableCell>
- <Show when={props.variant === 'images'}>
- <TableCell
- class={`${getPlatformTableCellClassForKind('text')} hidden text-base-content md:table-cell`}
- >
- <span
- class="inline-block max-w-[24rem] truncate"
- title={joinValues(props.resource.docker?.repoDigests)}
- >
- {joinValues(props.resource.docker?.repoDigests)}
- </span>
- </TableCell>
- <TableCell class={`${getPlatformTableCellClassForKind('numeric-value')} text-base-content`}>
- {byteValue(props.resource.docker?.sizeBytes)}
- </TableCell>
- <TableCell class={`${getPlatformTableCellClassForKind('numeric-value')} text-base-content`}>
- {numberValue(props.resource.docker?.imageContainers)}
- </TableCell>
- <TableCell
- class={`${getPlatformTableCellClassForKind('text')} hidden text-base-content md:table-cell`}
- >
- {host()}
- </TableCell>
- </Show>
- <Show when={props.variant === 'volumes'}>
- <TableCell class={`${getPlatformTableCellClassForKind('text')} text-base-content`}>
- {textValue(props.resource.docker?.driver)}
- </TableCell>
- <TableCell
- class={`${getPlatformTableCellClassForKind('text')} hidden text-base-content md:table-cell`}
- >
- {textValue(props.resource.docker?.scope)}
- </TableCell>
- <TableCell class={`${getPlatformTableCellClassForKind('numeric-value')} text-base-content`}>
- {byteValue(props.resource.docker?.sizeBytes)}
- </TableCell>
- <TableCell
- class={`${getPlatformTableCellClassForKind('numeric-value')} hidden text-base-content md:table-cell`}
- >
- {numberValue(props.resource.docker?.refCount)}
- </TableCell>
- <TableCell
- class={`${getPlatformTableCellClassForKind('text')} hidden text-base-content md:table-cell`}
- >
- <span
- class="inline-block max-w-[28rem] truncate"
- title={textValue(props.resource.docker?.mountpoint)}
- >
- {textValue(props.resource.docker?.mountpoint)}
- </span>
- </TableCell>
- </Show>
- <Show when={props.variant === 'networks'}>
- <TableCell class={`${getPlatformTableCellClassForKind('text')} text-base-content`}>
- {textValue(props.resource.docker?.driver)}
- </TableCell>
- <TableCell
- class={`${getPlatformTableCellClassForKind('text')} hidden text-base-content md:table-cell`}
- >
- {textValue(props.resource.docker?.scope)}
- </TableCell>
- <TableCell
- class={`${getPlatformTableCellClassForKind('text')} hidden text-base-content md:table-cell`}
- >
- {joinValues(props.resource.docker?.subnets?.map((subnet) => subnet.subnet))}
- </TableCell>
- <TableCell class={`${getPlatformTableCellClassForKind('text')} text-base-content`}>
- {host()}
- </TableCell>
- </Show>
- <Show when={props.variant === 'tasks'}>
- <TableCell
- class={`${getPlatformTableCellClassForKind('text')} hidden text-base-content md:table-cell`}
- >
- {textValue(props.resource.docker?.serviceName)}
- </TableCell>
- <TableCell class={`${getPlatformTableCellClassForKind('text')} text-base-content`}>
- {textValue(props.resource.docker?.desiredState)}
- </TableCell>
- <TableCell class={`${getPlatformTableCellClassForKind('text')} text-base-content`}>
- {textValue(props.resource.docker?.currentState)}
- </TableCell>
- <TableCell
- class={`${getPlatformTableCellClassForKind('text')} hidden text-base-content md:table-cell`}
- >
- {textValue(props.resource.docker?.nodeName || props.resource.docker?.nodeId)}
- </TableCell>
- </Show>
- <Show when={props.variant === 'nodes'}>
- <TableCell class={`${getPlatformTableCellClassForKind('text')} text-base-content`}>
- {textValue(props.resource.docker?.nodeRole)}
- </TableCell>
- <TableCell class={`${getPlatformTableCellClassForKind('text')} text-base-content`}>
- {textValue(props.resource.docker?.availability)}
- </TableCell>
- <TableCell
- class={`${getPlatformTableCellClassForKind('text')} hidden text-base-content md:table-cell`}
- >
- {textValue(
- props.resource.docker?.leader ? 'leader' : props.resource.docker?.managerReachability,
- )}
- </TableCell>
- <TableCell
- class={`${getPlatformTableCellClassForKind('text')} hidden text-base-content md:table-cell`}
- >
- {textValue(props.resource.docker?.engineVersion || props.resource.docker?.runtimeVersion)}
- </TableCell>
- <TableCell
- class={`${getPlatformTableCellClassForKind('numeric-value')} hidden text-base-content md:table-cell`}
- >
- {cpuValue(props.resource.docker?.nanoCpus)}
- </TableCell>
- <TableCell class={`${getPlatformTableCellClassForKind('numeric-value')} text-base-content`}>
- {byteValue(props.resource.docker?.memoryBytes)}
- </TableCell>
- </Show>
- <Show when={props.variant === 'secrets'}>
- <TableCell class={`${getPlatformTableCellClassForKind('text')} text-base-content`}>
- {textValue(props.resource.docker?.driver)}
- </TableCell>
- <TableCell
- class={`${getPlatformTableCellClassForKind('text')} hidden text-base-content md:table-cell`}
- >
- {textValue(props.resource.docker?.templatingDriver)}
- </TableCell>
- <TableCell
- class={`${getPlatformTableCellClassForKind('text')} hidden text-base-content md:table-cell`}
- >
- <span class="inline-block max-w-[18rem] truncate" title={labelSummary()}>
- {labelSummary()}
- </span>
- </TableCell>
- <TableCell class={`${getPlatformTableCellClassForKind('text')} text-base-content`}>
- {host()}
- </TableCell>
- </Show>
- <Show when={props.variant === 'configs'}>
- <TableCell class={`${getPlatformTableCellClassForKind('text')} text-base-content`}>
- {textValue(props.resource.docker?.templatingDriver)}
- </TableCell>
- <TableCell
- class={`${getPlatformTableCellClassForKind('text')} hidden text-base-content md:table-cell`}
- >
- <span class="inline-block max-w-[24rem] truncate" title={labelSummary()}>
- {labelSummary()}
- </span>
- </TableCell>
- <TableCell class={`${getPlatformTableCellClassForKind('text')} text-base-content`}>
- {host()}
- </TableCell>
- </Show>
- </TableRow>
- );
-};
-
-export default DockerInventoryTable;
diff --git a/frontend-modern/src/features/docker/DockerNativeTableShared.tsx b/frontend-modern/src/features/docker/DockerNativeTableShared.tsx
new file mode 100644
index 0000000000..bc1ce0a646
--- /dev/null
+++ b/frontend-modern/src/features/docker/DockerNativeTableShared.tsx
@@ -0,0 +1,77 @@
+import { type Component, type JSX } from 'solid-js';
+import { StatusDot } from '@/components/shared/StatusDot';
+import { TableCell } from '@/components/shared/Table';
+import { formatBytes } from '@/utils/format';
+import { getSimpleStatusIndicator } from '@/utils/status';
+import { asTrimmedString } from '@/utils/stringUtils';
+import { getPlatformTableCellClassForKind } from '@/features/platformPage/sharedPlatformPage';
+import type { Resource } from '@/types/resource';
+
+export type DockerNativeTableProps = {
+ resources: Resource[];
+ emptyIcon: JSX.Element;
+ emptyTitle: string;
+ emptyDescription: string;
+ title?: string;
+ showToolbar?: boolean;
+};
+
+export const dockerTextValue = (value: string | undefined): string => asTrimmedString(value) || '—';
+
+export const dockerNumberValue = (value: number | undefined): JSX.Element =>
+ typeof value === 'number' ? <span class="tabular-nums">{value}</span> : <span>—</span>;
+
+export const dockerByteValue = (value: number | undefined): string =>
+ typeof value === 'number' && value > 0 ? formatBytes(value) : '—';
+
+export const dockerCpuValue = (nanoCpus: number | undefined): string => {
+ if (typeof nanoCpus !== 'number' || nanoCpus <= 0) return '—';
+ const cpus = nanoCpus / 1_000_000_000;
+ return cpus >= 10 ? `${Math.round(cpus)}` : cpus.toFixed(cpus % 1 === 0 ? 0 : 1);
+};
+
+export const dockerJoinValues = (
+ values: readonly (string | undefined)[] | undefined,
+ empty = '—',
+): string => {
+ const joined = (values ?? [])
+ .map((value) => asTrimmedString(value))
+ .filter((value): value is string => typeof value === 'string' && value.length > 0)
+ .join(', ');
+ return joined || empty;
+};
+
+export const dockerLabelsSummary = (labels: Record<string, string> | undefined): string => {
+ if (!labels || Object.keys(labels).length === 0) return '—';
+ return Object.entries(labels)
+ .slice(0, 3)
+ .map(([key, value]) => `${key}=${value}`)
+ .join(', ');
+};
+
+export const dockerHostName = (resource: Resource): string =>
+ dockerTextValue(resource.docker?.hostname);
+
+const dockerResourceName = (resource: Resource): string =>
+ asTrimmedString(resource.name) || asTrimmedString(resource.displayName) || resource.id;
+
+export const DockerResourceNameCell: Component<{ resource: Resource }> = (props) => {
+ const indicator = () => getSimpleStatusIndicator(props.resource.status);
+ const name = () => dockerResourceName(props.resource);
+
+ return (
+ <TableCell class={getPlatformTableCellClassForKind('name')}>
+ <div class="flex min-w-0 items-center gap-2">
+ <StatusDot
+ size="sm"
+ variant={indicator().variant}
+ title={props.resource.status || 'unknown'}
+ ariaHidden
+ />
+ <span class="truncate font-semibold text-base-content" title={name()}>
+ {name()}
+ </span>
+ </div>
+ </TableCell>
+ );
+};
diff --git a/frontend-modern/src/features/docker/DockerNetworksTable.tsx b/frontend-modern/src/features/docker/DockerNetworksTable.tsx
new file mode 100644
index 0000000000..74c5fb8658
--- /dev/null
+++ b/frontend-modern/src/features/docker/DockerNetworksTable.tsx
@@ -0,0 +1,195 @@
+import { For, Show, type Component } from 'solid-js';
+import { TableCard } from '@/components/shared/TableCard';
+import { TableCardHeader } from '@/components/shared/TableCardHeader';
+import {
+ Table,
+ TableBody,
+ TableCell,
+ TableHead,
+ TableHeader,
+ TableRow,
+} from '@/components/shared/Table';
+import {
+ PLATFORM_HEALTH_FILTER_OPTIONS,
+ PLATFORM_TABLE_BODY_CLASS,
+ PLATFORM_TABLE_CARD_CLASS,
+ PLATFORM_TABLE_HEADER_ROW_CLASS,
+ PlatformTableEmptyState,
+ PlatformTableToolbar,
+ createPlatformTableFilterState,
+ filterPlatformResources,
+ getPlatformTableCellClassForKind,
+ getPlatformTableHeadClassForKind,
+ type PlatformResourceStatusFilter,
+} from '@/features/platformPage/sharedPlatformPage';
+import {
+ DockerResourceNameCell,
+ dockerHostName,
+ dockerJoinValues,
+ dockerTextValue,
+ type DockerNativeTableProps,
+} from './DockerNativeTableShared';
+import type { Resource } from '@/types/resource';
+
+const networkFlags = (resource: Resource): string =>
+ dockerJoinValues(
+ [
+ resource.docker?.internal ? 'internal' : undefined,
+ resource.docker?.attachable ? 'attachable' : undefined,
+ resource.docker?.ingress ? 'ingress' : undefined,
+ resource.docker?.configOnly ? 'config-only' : undefined,
+ ],
+ 'standard',
+ );
+
+const networkAddressing = (resource: Resource): string =>
+ dockerJoinValues(
+ [
+ resource.docker?.enableIpv4 ? 'IPv4' : undefined,
+ resource.docker?.enableIpv6 ? 'IPv6' : undefined,
+ ],
+ '—',
+ );
+
+const networkSubnets = (resource: Resource): string =>
+ dockerJoinValues(
+ resource.docker?.subnets?.map((subnet) =>
+ subnet.gateway ? `${subnet.subnet} via ${subnet.gateway}` : subnet.subnet,
+ ),
+ );
+
+export const DockerNetworksTable: Component<DockerNativeTableProps> = (props) => {
+ const tableState = createPlatformTableFilterState({
+ resources: () => props.resources,
+ initialStatus: 'all' as PlatformResourceStatusFilter,
+ filter: filterPlatformResources,
+ });
+
+ return (
+ <Show
+ when={props.resources.length > 0}
+ fallback={
+ <PlatformTableEmptyState
+ icon={props.emptyIcon}
+ title={props.emptyTitle}
+ description={props.emptyDescription}
+ />
+ }
+ >
+ <div class="space-y-3">
+ <Show when={props.showToolbar !== false}>
+ <PlatformTableToolbar
+ search={tableState.search}
+ onSearchChange={tableState.setSearch}
+ searchPlaceholder="Search networks"
+ status={tableState.status()}
+ onStatusChange={tableState.setStatus}
+ statusOptions={PLATFORM_HEALTH_FILTER_OPTIONS}
+ visible={tableState.visible()}
+ total={tableState.total()}
+ rowNoun="networks"
+ />
+ </Show>
+
+ <Show
+ when={tableState.filtered().length > 0}
+ fallback={
+ <PlatformTableEmptyState
+ icon={props.emptyIcon}
+ title="No networks match current filters"
+ description="Adjust the search or status filter to see more Docker networks."
+ />
+ }
+ >
+ <TableCard class={PLATFORM_TABLE_CARD_CLASS}>
+ <TableCardHeader title={props.title ?? 'Networks'} />
+ <Table class="min-w-full table-fixed text-xs md:min-w-[1160px]">
+ <TableHeader>
+ <TableRow class={PLATFORM_TABLE_HEADER_ROW_CLASS}>
+ <TableHead class={`${getPlatformTableHeadClassForKind('name')} md:w-[20%]`}>
+ Network
+ </TableHead>
+ <TableHead class={`${getPlatformTableHeadClassForKind('text')} md:w-[12%]`}>
+ Driver
+ </TableHead>
+ <TableHead
+ class={`${getPlatformTableHeadClassForKind('text')} hidden md:table-cell md:w-[10%]`}
+ >
+ Scope
+ </TableHead>
+ <TableHead class={`${getPlatformTableHeadClassForKind('text')} md:w-[12%]`}>
+ Addressing
+ </TableHead>
+ <TableHead class={`${getPlatformTableHeadClassForKind('text')} md:w-[16%]`}>
+ Flags
+ </TableHead>
+ <TableHead
+ class={`${getPlatformTableHeadClassForKind('text')} hidden md:table-cell md:w-[20%]`}
+ >
+ Subnets
+ </TableHead>
+ <TableHead
+ class={`${getPlatformTableHeadClassForKind('text')} hidden md:table-cell md:w-[10%]`}
+ >
+ Host
+ </TableHead>
+ </TableRow>
+ </TableHeader>
+ <TableBody class={PLATFORM_TABLE_BODY_CLASS}>
+ <For each={tableState.filtered()}>
+ {(resource) => (
+ <TableRow class="text-[11px] sm:text-xs" data-docker-network-row={resource.id}>
+ <DockerResourceNameCell resource={resource} />
+ <TableCell
+ class={`${getPlatformTableCellClassForKind('text')} text-base-content`}
+ >
+ {dockerTextValue(resource.docker?.driver)}
+ </TableCell>
+ <TableCell
+ class={`${getPlatformTableCellClassForKind('text')} hidden text-base-content md:table-cell`}
+ >
+ {dockerTextValue(resource.docker?.scope)}
+ </TableCell>
+ <TableCell
+ class={`${getPlatformTableCellClassForKind('text')} text-base-content`}
+ >
+ {networkAddressing(resource)}
+ </TableCell>
+ <TableCell
+ class={`${getPlatformTableCellClassForKind('text')} text-base-content`}
+ >
+ <span
+ class="inline-block max-w-[12rem] truncate"
+ title={networkFlags(resource)}
+ >
+ {networkFlags(resource)}
+ </span>
+ </TableCell>
+ <TableCell
+ class={`${getPlatformTableCellClassForKind('text')} hidden text-base-content md:table-cell`}
+ >
+ <span
+ class="inline-block max-w-[18rem] truncate"
+ title={networkSubnets(resource)}
+ >
+ {networkSubnets(resource)}
+ </span>
+ </TableCell>
+ <TableCell
+ class={`${getPlatformTableCellClassForKind('text')} hidden text-base-content md:table-cell`}
+ >
+ {dockerHostName(resource)}
+ </TableCell>
+ </TableRow>
+ )}
+ </For>
+ </TableBody>
+ </Table>
+ </TableCard>
+ </Show>
+ </div>
+ </Show>
+ );
+};
+
+export default DockerNetworksTable;
diff --git a/frontend-modern/src/features/docker/DockerPageSurface.tsx b/frontend-modern/src/features/docker/DockerPageSurface.tsx
index 619124ab5c..9728f421a2 100644
--- a/frontend-modern/src/features/docker/DockerPageSurface.tsx
+++ b/frontend-modern/src/features/docker/DockerPageSurface.tsx
@@ -13,10 +13,16 @@ import {
PlatformTableLoadingState,
} from '@/features/platformPage/sharedPlatformPage';
import { APP_CONTAINER_COLUMN_LABEL_OVERRIDES } from '@/features/platformPage/appContainerColumns';
+import { DockerConfigsTable } from './DockerConfigsTable';
import { DockerHostsTable } from './DockerHostsTable';
-import { DockerInventoryTable } from './DockerInventoryTable';
+import { DockerImagesTable } from './DockerImagesTable';
+import { DockerNetworksTable } from './DockerNetworksTable';
+import { DockerSecretsTable } from './DockerSecretsTable';
import { DockerServicesTable } from './DockerServicesTable';
import { DockerStorageUsageTable } from './DockerStorageUsageTable';
+import { DockerSwarmNodesTable } from './DockerSwarmNodesTable';
+import { DockerTasksTable } from './DockerTasksTable';
+import { DockerVolumesTable } from './DockerVolumesTable';
import {
DOCKER_TAB_SPECS,
buildDockerPageModel,
@@ -155,27 +161,24 @@ export function DockerPageSurface() {
<DockerContainers workloadsState={workloadsState} />
</Show>
<Show when={activeTab() === 'images'}>
- <DockerInventoryTable
+ <DockerImagesTable
resources={model().images}
- variant="images"
emptyIcon={dockerIcon()}
emptyTitle="No images"
emptyDescription="Images appear here when a Docker or Podman host reports local image inventory."
/>
</Show>
<Show when={activeTab() === 'volumes'}>
- <DockerInventoryTable
+ <DockerVolumesTable
resources={model().volumes}
- variant="volumes"
emptyIcon={dockerIcon()}
emptyTitle="No volumes"
emptyDescription="Volumes appear here when the container runtime reports volume inventory."
/>
</Show>
<Show when={activeTab() === 'networks'}>
- <DockerInventoryTable
+ <DockerNetworksTable
resources={model().networks}
- variant="networks"
emptyIcon={dockerIcon()}
emptyTitle="No networks"
emptyDescription="Networks appear here when the container runtime reports network inventory."
@@ -191,9 +194,8 @@ export function DockerPageSurface() {
/>
</Show>
<Show when={activeTab() === 'swarm-nodes'}>
- <DockerInventoryTable
+ <DockerSwarmNodesTable
resources={model().nodes}
- variant="nodes"
emptyIcon={dockerIcon()}
emptyTitle="No Swarm nodes"
emptyDescription="Swarm nodes appear here when a Docker manager reports the cluster node inventory."
@@ -209,27 +211,24 @@ export function DockerPageSurface() {
/>
</Show>
<Show when={activeTab() === 'tasks'}>
- <DockerInventoryTable
+ <DockerTasksTable
resources={model().tasks}
- variant="tasks"
emptyIcon={dockerIcon()}
emptyTitle="No Swarm tasks"
emptyDescription="Swarm tasks appear here when a Swarm manager reports replica task inventory."
/>
</Show>
<Show when={activeTab() === 'secrets'}>
- <DockerInventoryTable
+ <DockerSecretsTable
resources={model().secrets}
- variant="secrets"
emptyIcon={dockerIcon()}
emptyTitle="No Swarm secrets"
emptyDescription="Swarm secret metadata appears here when a Docker manager reports the secrets API."
/>
</Show>
<Show when={activeTab() === 'configs'}>
- <DockerInventoryTable
+ <DockerConfigsTable
resources={model().configs}
- variant="configs"
emptyIcon={dockerIcon()}
emptyTitle="No Swarm configs"
emptyDescription="Swarm config metadata appears here when a Docker manager reports the configs API."
diff --git a/frontend-modern/src/features/docker/DockerSecretsTable.tsx b/frontend-modern/src/features/docker/DockerSecretsTable.tsx
new file mode 100644
index 0000000000..6010a7b761
--- /dev/null
+++ b/frontend-modern/src/features/docker/DockerSecretsTable.tsx
@@ -0,0 +1,159 @@
+import { For, Show, type Component } from 'solid-js';
+import { TableCard } from '@/components/shared/TableCard';
+import { TableCardHeader } from '@/components/shared/TableCardHeader';
+import {
+ Table,
+ TableBody,
+ TableCell,
+ TableHead,
+ TableHeader,
+ TableRow,
+} from '@/components/shared/Table';
+import {
+ PLATFORM_HEALTH_FILTER_OPTIONS,
+ PLATFORM_TABLE_BODY_CLASS,
+ PLATFORM_TABLE_CARD_CLASS,
+ PLATFORM_TABLE_HEADER_ROW_CLASS,
+ PlatformTableEmptyState,
+ PlatformTableToolbar,
+ createPlatformTableFilterState,
+ filterPlatformResources,
+ getPlatformTableCellClassForKind,
+ getPlatformTableHeadClassForKind,
+ type PlatformResourceStatusFilter,
+} from '@/features/platformPage/sharedPlatformPage';
+import {
+ DockerResourceNameCell,
+ dockerHostName,
+ dockerLabelsSummary,
+ dockerTextValue,
+ type DockerNativeTableProps,
+} from './DockerNativeTableShared';
+
+export const DockerSecretsTable: Component<DockerNativeTableProps> = (props) => {
+ const tableState = createPlatformTableFilterState({
+ resources: () => props.resources,
+ initialStatus: 'all' as PlatformResourceStatusFilter,
+ filter: filterPlatformResources,
+ });
+
+ return (
+ <Show
+ when={props.resources.length > 0}
+ fallback={
+ <PlatformTableEmptyState
+ icon={props.emptyIcon}
+ title={props.emptyTitle}
+ description={props.emptyDescription}
+ />
+ }
+ >
+ <div class="space-y-3">
+ <Show when={props.showToolbar !== false}>
+ <PlatformTableToolbar
+ search={tableState.search}
+ onSearchChange={tableState.setSearch}
+ searchPlaceholder="Search Swarm secrets"
+ status={tableState.status()}
+ onStatusChange={tableState.setStatus}
+ statusOptions={PLATFORM_HEALTH_FILTER_OPTIONS}
+ visible={tableState.visible()}
+ total={tableState.total()}
+ rowNoun="secrets"
+ />
+ </Show>
+
+ <Show
+ when={tableState.filtered().length > 0}
+ fallback={
+ <PlatformTableEmptyState
+ icon={props.emptyIcon}
+ title="No Swarm secrets match current filters"
+ description="Adjust the search or status filter to see more Docker Swarm secrets."
+ />
+ }
+ >
+ <TableCard class={PLATFORM_TABLE_CARD_CLASS}>
+ <TableCardHeader title={props.title ?? 'Swarm Secrets'} />
+ <Table class="min-w-full table-fixed text-xs md:min-w-[1080px]">
+ <TableHeader>
+ <TableRow class={PLATFORM_TABLE_HEADER_ROW_CLASS}>
+ <TableHead class={`${getPlatformTableHeadClassForKind('name')} md:w-[24%]`}>
+ Secret
+ </TableHead>
+ <TableHead class={`${getPlatformTableHeadClassForKind('text')} md:w-[14%]`}>
+ Driver
+ </TableHead>
+ <TableHead
+ class={`${getPlatformTableHeadClassForKind('text')} hidden md:table-cell md:w-[14%]`}
+ >
+ Template
+ </TableHead>
+ <TableHead
+ class={`${getPlatformTableHeadClassForKind('text')} hidden md:table-cell md:w-[14%]`}
+ >
+ Created
+ </TableHead>
+ <TableHead
+ class={`${getPlatformTableHeadClassForKind('text')} hidden md:table-cell md:w-[18%]`}
+ >
+ Labels
+ </TableHead>
+ <TableHead class={`${getPlatformTableHeadClassForKind('text')} md:w-[16%]`}>
+ Host
+ </TableHead>
+ </TableRow>
+ </TableHeader>
+ <TableBody class={PLATFORM_TABLE_BODY_CLASS}>
+ <For each={tableState.filtered()}>
+ {(resource) => (
+ <TableRow class="text-[11px] sm:text-xs" data-docker-secret-row={resource.id}>
+ <DockerResourceNameCell resource={resource} />
+ <TableCell
+ class={`${getPlatformTableCellClassForKind('text')} text-base-content`}
+ >
+ {dockerTextValue(resource.docker?.driver)}
+ </TableCell>
+ <TableCell
+ class={`${getPlatformTableCellClassForKind('text')} hidden text-base-content md:table-cell`}
+ >
+ {dockerTextValue(resource.docker?.templatingDriver)}
+ </TableCell>
+ <TableCell
+ class={`${getPlatformTableCellClassForKind('text')} hidden text-base-content md:table-cell`}
+ >
+ <span
+ class="inline-block max-w-[12rem] truncate"
+ title={dockerTextValue(resource.docker?.objectCreatedAt)}
+ >
+ {dockerTextValue(resource.docker?.objectCreatedAt)}
+ </span>
+ </TableCell>
+ <TableCell
+ class={`${getPlatformTableCellClassForKind('text')} hidden text-base-content md:table-cell`}
+ >
+ <span
+ class="inline-block max-w-[16rem] truncate"
+ title={dockerLabelsSummary(resource.docker?.labels)}
+ >
+ {dockerLabelsSummary(resource.docker?.labels)}
+ </span>
+ </TableCell>
+ <TableCell
+ class={`${getPlatformTableCellClassForKind('text')} text-base-content`}
+ >
+ {dockerHostName(resource)}
+ </TableCell>
+ </TableRow>
+ )}
+ </For>
+ </TableBody>
+ </Table>
+ </TableCard>
+ </Show>
+ </div>
+ </Show>
+ );
+};
+
+export default DockerSecretsTable;
diff --git a/frontend-modern/src/features/docker/DockerSwarmNodesTable.tsx b/frontend-modern/src/features/docker/DockerSwarmNodesTable.tsx
new file mode 100644
index 0000000000..8410a41130
--- /dev/null
+++ b/frontend-modern/src/features/docker/DockerSwarmNodesTable.tsx
@@ -0,0 +1,183 @@
+import { For, Show, type Component } from 'solid-js';
+import { TableCard } from '@/components/shared/TableCard';
+import { TableCardHeader } from '@/components/shared/TableCardHeader';
+import {
+ Table,
+ TableBody,
+ TableCell,
+ TableHead,
+ TableHeader,
+ TableRow,
+} from '@/components/shared/Table';
+import {
+ PLATFORM_HEALTH_FILTER_OPTIONS,
+ PLATFORM_TABLE_BODY_CLASS,
+ PLATFORM_TABLE_CARD_CLASS,
+ PLATFORM_TABLE_HEADER_ROW_CLASS,
+ PlatformTableEmptyState,
+ PlatformTableToolbar,
+ createPlatformTableFilterState,
+ filterPlatformResources,
+ getPlatformTableCellClassForKind,
+ getPlatformTableHeadClassForKind,
+ type PlatformResourceStatusFilter,
+} from '@/features/platformPage/sharedPlatformPage';
+import {
+ DockerResourceNameCell,
+ dockerByteValue,
+ dockerCpuValue,
+ dockerTextValue,
+ type DockerNativeTableProps,
+} from './DockerNativeTableShared';
+
+export const DockerSwarmNodesTable: Component<DockerNativeTableProps> = (props) => {
+ const tableState = createPlatformTableFilterState({
+ resources: () => props.resources,
+ initialStatus: 'all' as PlatformResourceStatusFilter,
+ filter: filterPlatformResources,
+ });
+
+ return (
+ <Show
+ when={props.resources.length > 0}
+ fallback={
+ <PlatformTableEmptyState
+ icon={props.emptyIcon}
+ title={props.emptyTitle}
+ description={props.emptyDescription}
+ />
+ }
+ >
+ <div class="space-y-3">
+ <Show when={props.showToolbar !== false}>
+ <PlatformTableToolbar
+ search={tableState.search}
+ onSearchChange={tableState.setSearch}
+ searchPlaceholder="Search Swarm nodes"
+ status={tableState.status()}
+ onStatusChange={tableState.setStatus}
+ statusOptions={PLATFORM_HEALTH_FILTER_OPTIONS}
+ visible={tableState.visible()}
+ total={tableState.total()}
+ rowNoun="nodes"
+ />
+ </Show>
+
+ <Show
+ when={tableState.filtered().length > 0}
+ fallback={
+ <PlatformTableEmptyState
+ icon={props.emptyIcon}
+ title="No Swarm nodes match current filters"
+ description="Adjust the search or status filter to see more Docker Swarm nodes."
+ />
+ }
+ >
+ <TableCard class={PLATFORM_TABLE_CARD_CLASS}>
+ <TableCardHeader title={props.title ?? 'Swarm Nodes'} />
+ <Table class="min-w-full table-fixed text-xs md:min-w-[1120px]">
+ <TableHeader>
+ <TableRow class={PLATFORM_TABLE_HEADER_ROW_CLASS}>
+ <TableHead class={`${getPlatformTableHeadClassForKind('name')} md:w-[20%]`}>
+ Node
+ </TableHead>
+ <TableHead class={`${getPlatformTableHeadClassForKind('text')} md:w-[10%]`}>
+ Role
+ </TableHead>
+ <TableHead class={`${getPlatformTableHeadClassForKind('text')} md:w-[12%]`}>
+ Availability
+ </TableHead>
+ <TableHead
+ class={`${getPlatformTableHeadClassForKind('text')} hidden md:table-cell md:w-[14%]`}
+ >
+ Reachability
+ </TableHead>
+ <TableHead
+ class={`${getPlatformTableHeadClassForKind('text')} hidden md:table-cell md:w-[16%]`}
+ >
+ Engine
+ </TableHead>
+ <TableHead
+ class={`${getPlatformTableHeadClassForKind('numeric-value')} hidden md:table-cell md:w-[8%]`}
+ >
+ CPUs
+ </TableHead>
+ <TableHead
+ class={`${getPlatformTableHeadClassForKind('numeric-value')} md:w-[10%]`}
+ >
+ Memory
+ </TableHead>
+ <TableHead
+ class={`${getPlatformTableHeadClassForKind('text')} hidden md:table-cell md:w-[10%]`}
+ >
+ Address
+ </TableHead>
+ </TableRow>
+ </TableHeader>
+ <TableBody class={PLATFORM_TABLE_BODY_CLASS}>
+ <For each={tableState.filtered()}>
+ {(resource) => {
+ const managerReachability = () =>
+ dockerTextValue(
+ resource.docker?.leader ? 'leader' : resource.docker?.managerReachability,
+ );
+
+ return (
+ <TableRow
+ class="text-[11px] sm:text-xs"
+ data-docker-swarm-node-row={resource.id}
+ >
+ <DockerResourceNameCell resource={resource} />
+ <TableCell
+ class={`${getPlatformTableCellClassForKind('text')} text-base-content`}
+ >
+ {dockerTextValue(resource.docker?.nodeRole)}
+ </TableCell>
+ <TableCell
+ class={`${getPlatformTableCellClassForKind('text')} text-base-content`}
+ >
+ {dockerTextValue(resource.docker?.availability)}
+ </TableCell>
+ <TableCell
+ class={`${getPlatformTableCellClassForKind('text')} hidden text-base-content md:table-cell`}
+ >
+ {managerReachability()}
+ </TableCell>
+ <TableCell
+ class={`${getPlatformTableCellClassForKind('text')} hidden text-base-content md:table-cell`}
+ >
+ {dockerTextValue(
+ resource.docker?.engineVersion || resource.docker?.runtimeVersion,
+ )}
+ </TableCell>
+ <TableCell
+ class={`${getPlatformTableCellClassForKind('numeric-value')} hidden text-base-content md:table-cell`}
+ >
+ {dockerCpuValue(resource.docker?.nanoCpus)}
+ </TableCell>
+ <TableCell
+ class={`${getPlatformTableCellClassForKind('numeric-value')} text-base-content`}
+ >
+ {dockerByteValue(resource.docker?.memoryBytes)}
+ </TableCell>
+ <TableCell
+ class={`${getPlatformTableCellClassForKind('text')} hidden text-base-content md:table-cell`}
+ >
+ {dockerTextValue(
+ resource.docker?.address || resource.docker?.managerAddress,
+ )}
+ </TableCell>
+ </TableRow>
+ );
+ }}
+ </For>
+ </TableBody>
+ </Table>
+ </TableCard>
+ </Show>
+ </div>
+ </Show>
+ );
+};
+
+export default DockerSwarmNodesTable;
diff --git a/frontend-modern/src/features/docker/DockerTasksTable.tsx b/frontend-modern/src/features/docker/DockerTasksTable.tsx
new file mode 100644
index 0000000000..9ec58b3591
--- /dev/null
+++ b/frontend-modern/src/features/docker/DockerTasksTable.tsx
@@ -0,0 +1,172 @@
+import { For, Show, type Component } from 'solid-js';
+import { TableCard } from '@/components/shared/TableCard';
+import { TableCardHeader } from '@/components/shared/TableCardHeader';
+import {
+ Table,
+ TableBody,
+ TableCell,
+ TableHead,
+ TableHeader,
+ TableRow,
+} from '@/components/shared/Table';
+import {
+ PLATFORM_HEALTH_FILTER_OPTIONS,
+ PLATFORM_TABLE_BODY_CLASS,
+ PLATFORM_TABLE_CARD_CLASS,
+ PLATFORM_TABLE_HEADER_ROW_CLASS,
+ PlatformTableEmptyState,
+ PlatformTableToolbar,
+ createPlatformTableFilterState,
+ filterPlatformResources,
+ getPlatformTableCellClassForKind,
+ getPlatformTableHeadClassForKind,
+ type PlatformResourceStatusFilter,
+} from '@/features/platformPage/sharedPlatformPage';
+import {
+ DockerResourceNameCell,
+ dockerNumberValue,
+ dockerTextValue,
+ type DockerNativeTableProps,
+} from './DockerNativeTableShared';
+
+export const DockerTasksTable: Component<DockerNativeTableProps> = (props) => {
+ const tableState = createPlatformTableFilterState({
+ resources: () => props.resources,
+ initialStatus: 'all' as PlatformResourceStatusFilter,
+ filter: filterPlatformResources,
+ });
+
+ return (
+ <Show
+ when={props.resources.length > 0}
+ fallback={
+ <PlatformTableEmptyState
+ icon={props.emptyIcon}
+ title={props.emptyTitle}
+ description={props.emptyDescription}
+ />
+ }
+ >
+ <div class="space-y-3">
+ <Show when={props.showToolbar !== false}>
+ <PlatformTableToolbar
+ search={tableState.search}
+ onSearchChange={tableState.setSearch}
+ searchPlaceholder="Search Swarm tasks"
+ status={tableState.status()}
+ onStatusChange={tableState.setStatus}
+ statusOptions={PLATFORM_HEALTH_FILTER_OPTIONS}
+ visible={tableState.visible()}
+ total={tableState.total()}
+ rowNoun="tasks"
+ />
+ </Show>
+
+ <Show
+ when={tableState.filtered().length > 0}
+ fallback={
+ <PlatformTableEmptyState
+ icon={props.emptyIcon}
+ title="No Swarm tasks match current filters"
+ description="Adjust the search or status filter to see more Docker Swarm tasks."
+ />
+ }
+ >
+ <TableCard class={PLATFORM_TABLE_CARD_CLASS}>
+ <TableCardHeader title={props.title ?? 'Swarm Tasks'} />
+ <Table class="min-w-full table-fixed text-xs md:min-w-[1160px]">
+ <TableHeader>
+ <TableRow class={PLATFORM_TABLE_HEADER_ROW_CLASS}>
+ <TableHead class={`${getPlatformTableHeadClassForKind('name')} md:w-[18%]`}>
+ Task
+ </TableHead>
+ <TableHead
+ class={`${getPlatformTableHeadClassForKind('text')} hidden md:table-cell md:w-[18%]`}
+ >
+ Service
+ </TableHead>
+ <TableHead
+ class={`${getPlatformTableHeadClassForKind('numeric-value')} hidden md:table-cell md:w-[8%]`}
+ >
+ Slot
+ </TableHead>
+ <TableHead class={`${getPlatformTableHeadClassForKind('text')} md:w-[12%]`}>
+ Desired
+ </TableHead>
+ <TableHead class={`${getPlatformTableHeadClassForKind('text')} md:w-[16%]`}>
+ Current
+ </TableHead>
+ <TableHead
+ class={`${getPlatformTableHeadClassForKind('text')} hidden md:table-cell md:w-[16%]`}
+ >
+ Node
+ </TableHead>
+ <TableHead
+ class={`${getPlatformTableHeadClassForKind('text')} hidden md:table-cell md:w-[12%]`}
+ >
+ Started
+ </TableHead>
+ </TableRow>
+ </TableHeader>
+ <TableBody class={PLATFORM_TABLE_BODY_CLASS}>
+ <For each={tableState.filtered()}>
+ {(resource) => (
+ <TableRow class="text-[11px] sm:text-xs" data-docker-task-row={resource.id}>
+ <DockerResourceNameCell resource={resource} />
+ <TableCell
+ class={`${getPlatformTableCellClassForKind('text')} hidden text-base-content md:table-cell`}
+ >
+ {dockerTextValue(resource.docker?.serviceName)}
+ </TableCell>
+ <TableCell
+ class={`${getPlatformTableCellClassForKind('numeric-value')} hidden text-base-content md:table-cell`}
+ >
+ {dockerNumberValue(resource.docker?.slot)}
+ </TableCell>
+ <TableCell
+ class={`${getPlatformTableCellClassForKind('text')} text-base-content`}
+ >
+ {dockerTextValue(resource.docker?.desiredState)}
+ </TableCell>
+ <TableCell
+ class={`${getPlatformTableCellClassForKind('text')} text-base-content`}
+ >
+ <span
+ class="inline-block max-w-[14rem] truncate"
+ title={dockerTextValue(
+ resource.docker?.error ||
+ resource.docker?.message ||
+ resource.docker?.currentState,
+ )}
+ >
+ {dockerTextValue(resource.docker?.currentState)}
+ </span>
+ </TableCell>
+ <TableCell
+ class={`${getPlatformTableCellClassForKind('text')} hidden text-base-content md:table-cell`}
+ >
+ {dockerTextValue(resource.docker?.nodeName || resource.docker?.nodeId)}
+ </TableCell>
+ <TableCell
+ class={`${getPlatformTableCellClassForKind('text')} hidden text-base-content md:table-cell`}
+ >
+ <span
+ class="inline-block max-w-[12rem] truncate"
+ title={dockerTextValue(resource.docker?.startedAt)}
+ >
+ {dockerTextValue(resource.docker?.startedAt)}
+ </span>
+ </TableCell>
+ </TableRow>
+ )}
+ </For>
+ </TableBody>
+ </Table>
+ </TableCard>
+ </Show>
+ </div>
+ </Show>
+ );
+};
+
+export default DockerTasksTable;
diff --git a/frontend-modern/src/features/docker/DockerVolumesTable.tsx b/frontend-modern/src/features/docker/DockerVolumesTable.tsx
new file mode 100644
index 0000000000..b258ccdd21
--- /dev/null
+++ b/frontend-modern/src/features/docker/DockerVolumesTable.tsx
@@ -0,0 +1,171 @@
+import { For, Show, type Component } from 'solid-js';
+import { TableCard } from '@/components/shared/TableCard';
+import { TableCardHeader } from '@/components/shared/TableCardHeader';
+import {
+ Table,
+ TableBody,
+ TableCell,
+ TableHead,
+ TableHeader,
+ TableRow,
+} from '@/components/shared/Table';
+import {
+ PLATFORM_HEALTH_FILTER_OPTIONS,
+ PLATFORM_TABLE_BODY_CLASS,
+ PLATFORM_TABLE_CARD_CLASS,
+ PLATFORM_TABLE_HEADER_ROW_CLASS,
+ PlatformTableEmptyState,
+ PlatformTableToolbar,
+ createPlatformTableFilterState,
+ filterPlatformResources,
+ getPlatformTableCellClassForKind,
+ getPlatformTableHeadClassForKind,
+ type PlatformResourceStatusFilter,
+} from '@/features/platformPage/sharedPlatformPage';
+import {
+ DockerResourceNameCell,
+ dockerByteValue,
+ dockerNumberValue,
+ dockerTextValue,
+ type DockerNativeTableProps,
+} from './DockerNativeTableShared';
+
+export const DockerVolumesTable: Component<DockerNativeTableProps> = (props) => {
+ const tableState = createPlatformTableFilterState({
+ resources: () => props.resources,
+ initialStatus: 'all' as PlatformResourceStatusFilter,
+ filter: filterPlatformResources,
+ });
+
+ return (
+ <Show
+ when={props.resources.length > 0}
+ fallback={
+ <PlatformTableEmptyState
+ icon={props.emptyIcon}
+ title={props.emptyTitle}
+ description={props.emptyDescription}
+ />
+ }
+ >
+ <div class="space-y-3">
+ <Show when={props.showToolbar !== false}>
+ <PlatformTableToolbar
+ search={tableState.search}
+ onSearchChange={tableState.setSearch}
+ searchPlaceholder="Search volumes"
+ status={tableState.status()}
+ onStatusChange={tableState.setStatus}
+ statusOptions={PLATFORM_HEALTH_FILTER_OPTIONS}
+ visible={tableState.visible()}
+ total={tableState.total()}
+ rowNoun="volumes"
+ />
+ </Show>
+
+ <Show
+ when={tableState.filtered().length > 0}
+ fallback={
+ <PlatformTableEmptyState
+ icon={props.emptyIcon}
+ title="No volumes match current filters"
+ description="Adjust the search or status filter to see more Docker volumes."
+ />
+ }
+ >
+ <TableCard class={PLATFORM_TABLE_CARD_CLASS}>
+ <TableCardHeader title={props.title ?? 'Volumes'} />
+ <Table class="min-w-full table-fixed text-xs md:min-w-[1120px]">
+ <TableHeader>
+ <TableRow class={PLATFORM_TABLE_HEADER_ROW_CLASS}>
+ <TableHead class={`${getPlatformTableHeadClassForKind('name')} md:w-[22%]`}>
+ Volume
+ </TableHead>
+ <TableHead class={`${getPlatformTableHeadClassForKind('text')} md:w-[12%]`}>
+ Driver
+ </TableHead>
+ <TableHead
+ class={`${getPlatformTableHeadClassForKind('text')} hidden md:table-cell md:w-[10%]`}
+ >
+ Scope
+ </TableHead>
+ <TableHead
+ class={`${getPlatformTableHeadClassForKind('numeric-value')} md:w-[10%]`}
+ >
+ Size
+ </TableHead>
+ <TableHead
+ class={`${getPlatformTableHeadClassForKind('numeric-value')} hidden md:table-cell md:w-[8%]`}
+ >
+ Refs
+ </TableHead>
+ <TableHead
+ class={`${getPlatformTableHeadClassForKind('text')} hidden md:table-cell md:w-[14%]`}
+ >
+ Created
+ </TableHead>
+ <TableHead
+ class={`${getPlatformTableHeadClassForKind('text')} hidden md:table-cell md:w-[24%]`}
+ >
+ Mountpoint
+ </TableHead>
+ </TableRow>
+ </TableHeader>
+ <TableBody class={PLATFORM_TABLE_BODY_CLASS}>
+ <For each={tableState.filtered()}>
+ {(resource) => (
+ <TableRow class="text-[11px] sm:text-xs" data-docker-volume-row={resource.id}>
+ <DockerResourceNameCell resource={resource} />
+ <TableCell
+ class={`${getPlatformTableCellClassForKind('text')} text-base-content`}
+ >
+ {dockerTextValue(resource.docker?.driver)}
+ </TableCell>
+ <TableCell
+ class={`${getPlatformTableCellClassForKind('text')} hidden text-base-content md:table-cell`}
+ >
+ {dockerTextValue(resource.docker?.scope)}
+ </TableCell>
+ <TableCell
+ class={`${getPlatformTableCellClassForKind('numeric-value')} text-base-content`}
+ >
+ {dockerByteValue(resource.docker?.sizeBytes)}
+ </TableCell>
+ <TableCell
+ class={`${getPlatformTableCellClassForKind('numeric-value')} hidden text-base-content md:table-cell`}
+ >
+ {dockerNumberValue(resource.docker?.refCount)}
+ </TableCell>
+ <TableCell
+ class={`${getPlatformTableCellClassForKind('text')} hidden text-base-content md:table-cell`}
+ >
+ <span
+ class="inline-block max-w-[12rem] truncate"
+ title={dockerTextValue(resource.docker?.createdAt)}
+ >
+ {dockerTextValue(resource.docker?.createdAt)}
+ </span>
+ </TableCell>
+ <TableCell
+ class={`${getPlatformTableCellClassForKind('text')} hidden text-base-content md:table-cell`}
+ >
+ <span
+ class="inline-block max-w-[22rem] truncate"
+ title={dockerTextValue(resource.docker?.mountpoint)}
+ >
+ {dockerTextValue(resource.docker?.mountpoint)}
+ </span>
+ </TableCell>
+ </TableRow>
+ )}
+ </For>
+ </TableBody>
+ </Table>
+ </TableCard>
+ </Show>
+ </div>
+ </Show>
+ );
+};
+
+export default DockerVolumesTable;
diff --git a/frontend-modern/src/features/docker/__tests__/DockerNativeTables.test.tsx b/frontend-modern/src/features/docker/__tests__/DockerNativeTables.test.tsx
new file mode 100644
index 0000000000..a49e28c17a
--- /dev/null
+++ b/frontend-modern/src/features/docker/__tests__/DockerNativeTables.test.tsx
@@ -0,0 +1,271 @@
+import { cleanup, render, screen } from '@solidjs/testing-library';
+import { afterEach, describe, expect, it } from 'vitest';
+
+import type { Resource } from '@/types/resource';
+import { DockerConfigsTable } from '../DockerConfigsTable';
+import { DockerImagesTable } from '../DockerImagesTable';
+import { DockerNetworksTable } from '../DockerNetworksTable';
+import { DockerSecretsTable } from '../DockerSecretsTable';
+import { DockerSwarmNodesTable } from '../DockerSwarmNodesTable';
+import { DockerTasksTable } from '../DockerTasksTable';
+import { DockerVolumesTable } from '../DockerVolumesTable';
+
+const makeResource = ({
+ id,
+ type,
+ ...overrides
+}: Partial<Resource> & Pick<Resource, 'id' | 'type'>): Resource => ({
+ id,
+ name: id,
+ displayName: id,
+ platformId: 'docker-1',
+ platformType: 'docker',
+ sourceType: 'agent',
+ sources: ['docker'],
+ status: 'online',
+ type,
+ lastSeen: 1_700_000_000_000,
+ ...overrides,
+});
+
+afterEach(() => {
+ cleanup();
+});
+
+describe('Docker native tables', () => {
+ it('renders Docker image API fields', () => {
+ render(() => (
+ <DockerImagesTable
+ resources={[
+ makeResource({
+ id: 'image-1',
+ type: 'docker-image',
+ name: 'nginx:latest',
+ docker: {
+ hostname: 'edge-01',
+ repoTags: ['nginx:latest', 'nginx:stable'],
+ repoDigests: ['nginx@sha256:manifest'],
+ sizeBytes: 805306368,
+ imageContainers: 2,
+ },
+ }),
+ ]}
+ emptyIcon={<span />}
+ emptyTitle="No images"
+ emptyDescription="No images"
+ showToolbar={false}
+ />
+ ));
+
+ expect(screen.getByText('Tags')).toBeInTheDocument();
+ expect(screen.getByText('Digests')).toBeInTheDocument();
+ expect(screen.getByText('nginx:latest')).toBeInTheDocument();
+ expect(screen.getByText('nginx:latest, nginx:stable')).toBeInTheDocument();
+ expect(screen.getByText('nginx@sha256:manifest')).toBeInTheDocument();
+ expect(screen.getByText('2')).toBeInTheDocument();
+ expect(screen.getByText('edge-01')).toBeInTheDocument();
+ });
+
+ it('renders Docker volume API fields', () => {
+ render(() => (
+ <DockerVolumesTable
+ resources={[
+ makeResource({
+ id: 'volume-1',
+ type: 'docker-volume',
+ name: 'app-data',
+ docker: {
+ driver: 'local',
+ scope: 'global',
+ sizeBytes: 2048,
+ refCount: 3,
+ createdAt: '2026-05-24T13:00:00Z',
+ mountpoint: '/var/lib/docker/volumes/app-data/_data',
+ },
+ }),
+ ]}
+ emptyIcon={<span />}
+ emptyTitle="No volumes"
+ emptyDescription="No volumes"
+ showToolbar={false}
+ />
+ ));
+
+ expect(screen.getByText('Created')).toBeInTheDocument();
+ expect(screen.getByText('Refs')).toBeInTheDocument();
+ expect(screen.getByText('app-data')).toBeInTheDocument();
+ expect(screen.getByText('local')).toBeInTheDocument();
+ expect(screen.getByText('3')).toBeInTheDocument();
+ expect(screen.getByText('2026-05-24T13:00:00Z')).toBeInTheDocument();
+ expect(screen.getByText('/var/lib/docker/volumes/app-data/_data')).toBeInTheDocument();
+ });
+
+ it('renders Docker network API fields', () => {
+ render(() => (
+ <DockerNetworksTable
+ resources={[
+ makeResource({
+ id: 'network-1',
+ type: 'docker-network',
+ name: 'frontend',
+ docker: {
+ hostname: 'edge-01',
+ driver: 'overlay',
+ scope: 'swarm',
+ enableIpv4: true,
+ attachable: true,
+ ingress: true,
+ subnets: [{ subnet: '10.88.0.0/24', gateway: '10.88.0.1' }],
+ },
+ }),
+ ]}
+ emptyIcon={<span />}
+ emptyTitle="No networks"
+ emptyDescription="No networks"
+ showToolbar={false}
+ />
+ ));
+
+ expect(screen.getByText('Addressing')).toBeInTheDocument();
+ expect(screen.getByText('Flags')).toBeInTheDocument();
+ expect(screen.getByText('frontend')).toBeInTheDocument();
+ expect(screen.getByText('overlay')).toBeInTheDocument();
+ expect(screen.getByText('IPv4')).toBeInTheDocument();
+ expect(screen.getByText('attachable, ingress')).toBeInTheDocument();
+ expect(screen.getByText('10.88.0.0/24 via 10.88.0.1')).toBeInTheDocument();
+ });
+
+ it('renders Docker Swarm node API fields', () => {
+ render(() => (
+ <DockerSwarmNodesTable
+ resources={[
+ makeResource({
+ id: 'node-1',
+ type: 'docker-swarm-node',
+ name: 'worker-1',
+ docker: {
+ nodeRole: 'manager',
+ availability: 'active',
+ managerReachability: 'reachable',
+ leader: true,
+ engineVersion: '26.1.4',
+ nanoCpus: 4_000_000_000,
+ memoryBytes: 17179869184,
+ address: '10.0.0.11',
+ },
+ }),
+ ]}
+ emptyIcon={<span />}
+ emptyTitle="No nodes"
+ emptyDescription="No nodes"
+ showToolbar={false}
+ />
+ ));
+
+ expect(screen.getByText('Reachability')).toBeInTheDocument();
+ expect(screen.getByText('worker-1')).toBeInTheDocument();
+ expect(screen.getByText('manager')).toBeInTheDocument();
+ expect(screen.getByText('leader')).toBeInTheDocument();
+ expect(screen.getByText('26.1.4')).toBeInTheDocument();
+ expect(screen.getByText('4')).toBeInTheDocument();
+ expect(screen.getByText('10.0.0.11')).toBeInTheDocument();
+ });
+
+ it('renders Docker Swarm task API fields', () => {
+ render(() => (
+ <DockerTasksTable
+ resources={[
+ makeResource({
+ id: 'task-1',
+ type: 'docker-task',
+ name: 'web.2',
+ docker: {
+ serviceName: 'web',
+ slot: 2,
+ desiredState: 'running',
+ currentState: 'running 2 minutes',
+ nodeName: 'worker-1',
+ startedAt: '2026-05-24T13:05:00Z',
+ },
+ }),
+ ]}
+ emptyIcon={<span />}
+ emptyTitle="No tasks"
+ emptyDescription="No tasks"
+ showToolbar={false}
+ />
+ ));
+
+ expect(screen.getByText('Slot')).toBeInTheDocument();
+ expect(screen.getByText('Desired')).toBeInTheDocument();
+ expect(screen.getByText('Current')).toBeInTheDocument();
+ expect(screen.getByText('web.2')).toBeInTheDocument();
+ expect(screen.getByText('web')).toBeInTheDocument();
+ expect(screen.getByText('running 2 minutes')).toBeInTheDocument();
+ expect(screen.getByText('2026-05-24T13:05:00Z')).toBeInTheDocument();
+ });
+
+ it('renders Docker Swarm secret API metadata without secret data', () => {
+ render(() => (
+ <DockerSecretsTable
+ resources={[
+ makeResource({
+ id: 'secret-1',
+ type: 'docker-secret',
+ name: 'api-token',
+ docker: {
+ hostname: 'manager-1',
+ driver: 'vault',
+ templatingDriver: 'golang',
+ objectCreatedAt: '2026-05-24T13:10:00Z',
+ labels: { stack: 'ops' },
+ },
+ }),
+ ]}
+ emptyIcon={<span />}
+ emptyTitle="No secrets"
+ emptyDescription="No secrets"
+ showToolbar={false}
+ />
+ ));
+
+ expect(screen.getByText('Secret')).toBeInTheDocument();
+ expect(screen.getByText('Template')).toBeInTheDocument();
+ expect(screen.getByText('api-token')).toBeInTheDocument();
+ expect(screen.getByText('vault')).toBeInTheDocument();
+ expect(screen.getByText('golang')).toBeInTheDocument();
+ expect(screen.getByText('stack=ops')).toBeInTheDocument();
+ expect(screen.getByText('manager-1')).toBeInTheDocument();
+ });
+
+ it('renders Docker Swarm config API metadata', () => {
+ render(() => (
+ <DockerConfigsTable
+ resources={[
+ makeResource({
+ id: 'config-1',
+ type: 'docker-config',
+ name: 'nginx-conf',
+ docker: {
+ hostname: 'manager-1',
+ templatingDriver: 'golang',
+ objectCreatedAt: '2026-05-24T13:15:00Z',
+ labels: { stack: 'edge' },
+ },
+ }),
+ ]}
+ emptyIcon={<span />}
+ emptyTitle="No configs"
+ emptyDescription="No configs"
+ showToolbar={false}
+ />
+ ));
+
+ expect(screen.getByText('Config')).toBeInTheDocument();
+ expect(screen.getByText('Template')).toBeInTheDocument();
+ expect(screen.getByText('nginx-conf')).toBeInTheDocument();
+ expect(screen.getByText('golang')).toBeInTheDocument();
+ expect(screen.getByText('stack=edge')).toBeInTheDocument();
+ expect(screen.getByText('manager-1')).toBeInTheDocument();
+ });
+});
diff --git a/frontend-modern/src/features/platformPage/__tests__/platformOverviewLayout.guardrails.test.ts b/frontend-modern/src/features/platformPage/__tests__/platformOverviewLayout.guardrails.test.ts
index 1a6696dd74..4b53555875 100644
--- a/frontend-modern/src/features/platformPage/__tests__/platformOverviewLayout.guardrails.test.ts
+++ b/frontend-modern/src/features/platformPage/__tests__/platformOverviewLayout.guardrails.test.ts
@@ -2,9 +2,16 @@ import { describe, expect, it } from 'vitest';
import agentsMachinesTableSource from '@/features/agents/AgentsMachinesTable.tsx?raw';
import agentsPageModelSource from '@/features/agents/agentsPageModel.ts?raw';
import agentsPageSurfaceSource from '@/features/agents/AgentsPageSurface.tsx?raw';
+import dockerConfigsTableSource from '@/features/docker/DockerConfigsTable.tsx?raw';
import dockerHostsTableSource from '@/features/docker/DockerHostsTable.tsx?raw';
+import dockerImagesTableSource from '@/features/docker/DockerImagesTable.tsx?raw';
+import dockerNetworksTableSource from '@/features/docker/DockerNetworksTable.tsx?raw';
import dockerPageSurfaceSource from '@/features/docker/DockerPageSurface.tsx?raw';
+import dockerSecretsTableSource from '@/features/docker/DockerSecretsTable.tsx?raw';
import dockerServicesTableSource from '@/features/docker/DockerServicesTable.tsx?raw';
+import dockerSwarmNodesTableSource from '@/features/docker/DockerSwarmNodesTable.tsx?raw';
+import dockerTasksTableSource from '@/features/docker/DockerTasksTable.tsx?raw';
+import dockerVolumesTableSource from '@/features/docker/DockerVolumesTable.tsx?raw';
import kubernetesAutoscalingTableSource from '@/features/kubernetes/KubernetesAutoscalingTable.tsx?raw';
import kubernetesClustersTableSource from '@/features/kubernetes/KubernetesClustersTable.tsx?raw';
import kubernetesConfigTableSource from '@/features/kubernetes/KubernetesConfigTable.tsx?raw';
@@ -43,7 +50,14 @@ const platformTableSources = [
agentsMachinesTableSource,
proxmoxNodesTableSource,
dockerHostsTableSource,
+ dockerImagesTableSource,
+ dockerVolumesTableSource,
+ dockerNetworksTableSource,
+ dockerSwarmNodesTableSource,
dockerServicesTableSource,
+ dockerTasksTableSource,
+ dockerSecretsTableSource,
+ dockerConfigsTableSource,
kubernetesAutoscalingTableSource,
kubernetesClustersTableSource,
kubernetesConfigTableSource,
@@ -70,7 +84,14 @@ const platformTableSources = [
const platformToolbarTableSources = [
agentsMachinesTableSource,
dockerHostsTableSource,
+ dockerImagesTableSource,
+ dockerVolumesTableSource,
+ dockerNetworksTableSource,
+ dockerSwarmNodesTableSource,
dockerServicesTableSource,
+ dockerTasksTableSource,
+ dockerSecretsTableSource,
+ dockerConfigsTableSource,
kubernetesAutoscalingTableSource,
kubernetesClustersTableSource,
kubernetesConfigTableSource,
@@ -194,8 +215,15 @@ describe('platform overview layout guardrails', () => {
expect(proxmoxPageSurfaceSource).toContain('<ProxmoxNodesTable');
expect(proxmoxPageSurfaceSource).toContain('<WorkloadsSurface');
expect(dockerPageSurfaceSource).toContain('<DockerHostsTable');
+ expect(dockerPageSurfaceSource).toContain('<DockerImagesTable');
+ expect(dockerPageSurfaceSource).toContain('<DockerVolumesTable');
+ expect(dockerPageSurfaceSource).toContain('<DockerNetworksTable');
expect(dockerPageSurfaceSource).toContain('<WorkloadsSurface');
+ expect(dockerPageSurfaceSource).toContain('<DockerSwarmNodesTable');
expect(dockerPageSurfaceSource).toContain('<DockerServicesTable');
+ expect(dockerPageSurfaceSource).toContain('<DockerTasksTable');
+ expect(dockerPageSurfaceSource).toContain('<DockerSecretsTable');
+ expect(dockerPageSurfaceSource).toContain('<DockerConfigsTable');
expect(kubernetesPageSurfaceSource).toContain('<KubernetesClustersTable');
expect(kubernetesPageSurfaceSource).toContain('<KubernetesNodesTable');
expect(kubernetesPageSurfaceSource).toContain('<KubernetesDeploymentsTable');
diff --git a/scripts/release_control/canonical_completion_guard_test.py b/scripts/release_control/canonical_completion_guard_test.py
index d2fdb2f19e..18bcc476ed 100644
--- a/scripts/release_control/canonical_completion_guard_test.py
+++ b/scripts/release_control/canonical_completion_guard_test.py
@@ -768,6 +768,7 @@ class CanonicalCompletionGuardTest(unittest.TestCase):
"frontend-modern/src/components/Infrastructure/__tests__/resourceDetailMappers.test.ts",
"frontend-modern/src/components/Infrastructure/__tests__/unifiedResourceTableStateModel.test.ts",
"frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.ts",
+ "frontend-modern/src/features/docker/__tests__/DockerNativeTables.test.tsx",
"frontend-modern/src/features/docker/__tests__/DockerPageSurface.test.tsx",
"frontend-modern/src/features/docker/__tests__/dockerPageModel.test.ts",
"frontend-modern/src/features/infrastructure/__tests__/InfrastructurePageSurface.guardrails.test.ts",
diff --git a/scripts/release_control/subsystem_lookup_test.py b/scripts/release_control/subsystem_lookup_test.py
index e0b848a565..ad2a3e3941 100644
--- a/scripts/release_control/subsystem_lookup_test.py
+++ b/scripts/release_control/subsystem_lookup_test.py
@@ -4806,6 +4806,7 @@ class SubsystemLookupTest(unittest.TestCase):
"frontend-modern/src/components/Infrastructure/__tests__/resourceDetailMappers.test.ts",
"frontend-modern/src/components/Infrastructure/__tests__/unifiedResourceTableStateModel.test.ts",
"frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.ts",
+ "frontend-modern/src/features/docker/__tests__/DockerNativeTables.test.tsx",
"frontend-modern/src/features/docker/__tests__/DockerPageSurface.test.tsx",
"frontend-modern/src/features/docker/__tests__/dockerPageModel.test.ts",
"frontend-modern/src/features/infrastructure/__tests__/InfrastructurePageSurface.guardrails.test.ts",