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.

Clarify Docker host inventory navigation

rcourtman113d8b03a5dc
diff --git a/docs/release-control/v6/internal/subsystems/frontend-primitives.md b/docs/release-control/v6/internal/subsystems/frontend-primitives.md
index 17ebae2b4d..ee6a45fff3 100644
--- a/docs/release-control/v6/internal/subsystems/frontend-primitives.md
+++ b/docs/release-control/v6/internal/subsystems/frontend-primitives.md
@@ -1853,6 +1853,11 @@ default` instead of fusing provider and badge text such as
first/default positions only when the current estate has standalone Pulse
Agent machines or agentless availability endpoints and no
provider/runtime platform evidence.
+ Provider/runtime pages must make narrower inventory scope explicit rather
+ than presenting it as the complete machine estate: the Docker overview
+ labels its runtime-specific table `Docker hosts`, and when those rows are
+ backed by canonical Pulse Agent machines it exposes a `View all machines`
+ action through `buildStandalonePath()`.
Patrol workflow components under
`frontend-modern/src/features/patrol/` may compose shared `Button` and
`ButtonLink` chrome for issue actions, but the workflow state, route
diff --git a/frontend-modern/browser-verification.json b/frontend-modern/browser-verification.json
index c5ecd518a7..c51dd7ca13 100644
--- a/frontend-modern/browser-verification.json
+++ b/frontend-modern/browser-verification.json
@@ -1,24 +1,21 @@
{
"version": 1,
- "base_sha": "32d373395cee894628757f49cde858a66093531f",
- "verified_at": "2026-08-03T21:06:07Z",
+ "base_sha": "de5a1b20df6e825dfc590dee334b8877569a74a2",
+ "verified_at": "2026-08-03T22:40:33Z",
"result": "passed",
"changed_paths": [
- "frontend-modern/src/components/shared/Table.tsx",
- "frontend-modern/src/index.css"
+ "frontend-modern/src/features/docker/DockerHostsTable.tsx",
+ "frontend-modern/src/features/docker/DockerPageSurface.tsx"
],
"content_sha256": {
- "frontend-modern/src/components/shared/Table.tsx": "d4c1fdc6bf387a2d37bb143e414c4b2dfc188769884d7738e109a6061852305d",
- "frontend-modern/src/index.css": "061b892fa8260365adfdaa9f58d4b00d2e67b1b072ac109a75e958f14a36332a"
+ "frontend-modern/src/features/docker/DockerHostsTable.tsx": "c4042eb72e027b97761f5cd02ba7021e0d7b3669e05e9db9f52af46ecb5bdbbf",
+ "frontend-modern/src/features/docker/DockerPageSurface.tsx": "f4fe3a202d92efaedf61409a4602340f82411ff01252cc399cff758eff23857f"
},
- "routes": [
- "/standalone/machines",
- "/docker/overview"
- ],
+ "routes": ["/standalone/machines", "/docker/overview"],
"viewports": [
{
- "width": 1280,
- "height": 720
+ "width": 1440,
+ "height": 900
},
{
"width": 390,
@@ -26,15 +23,15 @@
}
],
"states": [
- "Desktop Machines table fully loaded with its standard toolbar and all visible columns",
- "Phone-width Machines table loaded at the left edge with the document contained to 390 pixels",
- "Phone-width Machines table after a 300-pixel table-local horizontal scroll",
- "Phone-width Docker Overview with both shared table shells contained to the viewport"
+ "Desktop Docker Overview fully loaded with the scoped Docker hosts title and View all machines action",
+ "Desktop Machines inventory after following the View all machines action, showing all five current machines",
+ "Phone-width Docker Overview fully loaded with the scoped title and action aligned without clipping",
+ "Phone-width Machines inventory after following the View all machines action"
],
"interactions": [
- "Applied a 300-pixel horizontal gesture outside the Machines table and confirmed document scrollX remained 0",
- "Applied a 300-pixel horizontal gesture inside the Machines table and confirmed its scrollLeft changed while document scrollX remained 0",
- "Repeated the outside-page and inside-table horizontal gestures on Docker Overview and confirmed only the targeted table shell scrolled",
- "Resized Machines to 1280 by 720 and confirmed the table filled its container without document overflow or an unnecessary local scroll range"
+ "Followed View all machines from Docker Overview at desktop width and confirmed navigation to /standalone/machines with all five rows",
+ "Repeated the View all machines handoff at phone width and confirmed the complete machine table rendered",
+ "Inspected the Docker hosts title, action placement, table containment, mobile navigation, and footer at both widths",
+ "Confirmed the browser console reported no warnings or errors during either responsive journey"
]
}
diff --git a/frontend-modern/src/features/docker/DockerHostsTable.tsx b/frontend-modern/src/features/docker/DockerHostsTable.tsx
index 6bd82369f9..7d2b8143cc 100644
--- a/frontend-modern/src/features/docker/DockerHostsTable.tsx
+++ b/frontend-modern/src/features/docker/DockerHostsTable.tsx
@@ -162,7 +162,8 @@ export const DockerHostsTable: Component<{
emptyIcon: JSX.Element;
emptyTitle: string;
emptyDescription: string;
- title?: string;
+ title?: JSX.Element;
+ actions?: JSX.Element;
showToolbar?: boolean;
}> = (props) => {
const { activeAlerts } = useWebSocket();
@@ -228,7 +229,8 @@ export const DockerHostsTable: Component<{
}
>
<PlatformTableShell
- title={props.title ?? 'Hosts'}
+ title={props.title ?? 'Docker hosts'}
+ actions={props.actions}
tableClass="min-w-full table-fixed text-xs md:min-w-[1240px]"
header={
<>
diff --git a/frontend-modern/src/features/docker/DockerPageSurface.tsx b/frontend-modern/src/features/docker/DockerPageSurface.tsx
index ff8ef2952f..dce0c58186 100644
--- a/frontend-modern/src/features/docker/DockerPageSurface.tsx
+++ b/frontend-modern/src/features/docker/DockerPageSurface.tsx
@@ -48,8 +48,9 @@ import {
buildInfrastructureAgentUpdatesPath,
buildInfrastructureOnboardingPath,
} from '@/components/Settings/infrastructureWorkspaceModel';
-import { DOCKER_QUERY_PARAMS } from '@/routing/resourceLinks';
+import { DOCKER_QUERY_PARAMS, buildStandalonePath } from '@/routing/resourceLinks';
import { asTrimmedString } from '@/utils/stringUtils';
+import { isPulseAgentPlatformResource } from '@/utils/agentResources';
import type { Resource } from '@/types/resource';
const DOCKER_RESOURCE_QUERY =
@@ -349,6 +350,7 @@ function DockerOverview(props: {
const scopedHosts = createMemo(() =>
props.hosts.filter((host) => hostMatchesFilter(host, props.hostFilter)),
);
+ const hasMachineInventory = createMemo(() => props.hosts.some(isPulseAgentPlatformResource));
return (
<div class="space-y-4">
@@ -358,6 +360,13 @@ function DockerOverview(props: {
emptyIcon={dockerIcon()}
emptyTitle="No Docker or Podman hosts"
emptyDescription="Container hosts appear here once a Pulse agent registers them."
+ actions={
+ <Show when={hasMachineInventory()}>
+ <ButtonLink href={buildStandalonePath()} variant="secondary" size="sm">
+ View all machines
+ </ButtonLink>
+ </Show>
+ }
showToolbar={false}
/>
<DockerContainersTable
diff --git a/frontend-modern/src/features/docker/__tests__/DockerHostsTable.test.tsx b/frontend-modern/src/features/docker/__tests__/DockerHostsTable.test.tsx
index f76f8a85d7..b52c996cd5 100644
--- a/frontend-modern/src/features/docker/__tests__/DockerHostsTable.test.tsx
+++ b/frontend-modern/src/features/docker/__tests__/DockerHostsTable.test.tsx
@@ -138,6 +138,7 @@ describe('DockerHostsTable', () => {
/>
));
+ expect(screen.getByText('Docker hosts')).toBeInTheDocument();
expect(screen.getByRole('columnheader', { name: 'Version' })).toBeInTheDocument();
expect(screen.getByRole('columnheader', { name: 'System' })).toBeInTheDocument();
expect(screen.queryByRole('columnheader', { name: 'Swarm role' })).not.toBeInTheDocument();
diff --git a/frontend-modern/src/features/docker/__tests__/DockerPageSurface.test.tsx b/frontend-modern/src/features/docker/__tests__/DockerPageSurface.test.tsx
index 3daca1413d..940b034ea8 100644
--- a/frontend-modern/src/features/docker/__tests__/DockerPageSurface.test.tsx
+++ b/frontend-modern/src/features/docker/__tests__/DockerPageSurface.test.tsx
@@ -9,13 +9,19 @@ const mocks = vi.hoisted(() => ({
searchParams: {} as Record<string, string>,
useUnifiedResources: vi.fn(),
DockerHostsTable: vi.fn(
- (props: { resources: Resource[]; showToolbar?: boolean; emptyTitle: string }) => (
+ (props: {
+ resources: Resource[];
+ showToolbar?: boolean;
+ emptyTitle: string;
+ actions?: unknown;
+ }) => (
<div
data-testid="docker-hosts-table"
data-resource-count={props.resources.length}
data-show-toolbar={String(props.showToolbar)}
>
{props.emptyTitle}
+ {props.actions as never}
</div>
),
),
@@ -273,6 +279,10 @@ describe('DockerPageSurface', () => {
);
expect(screen.getByTestId('docker-hosts-table')).toHaveAttribute('data-resource-count', '1');
expect(screen.getByTestId('docker-hosts-table')).toHaveAttribute('data-show-toolbar', 'false');
+ expect(screen.getByRole('link', { name: 'View all machines' })).toHaveAttribute(
+ 'href',
+ '/standalone/machines',
+ );
expect(screen.getByTestId('docker-section-tabs')).toHaveAttribute('data-tabs', 'overview');
expect(screen.getByTestId('docker-containers-table')).toHaveAttribute(
'data-resource-count',
@@ -333,6 +343,24 @@ describe('DockerPageSurface', () => {
);
});
+ it('does not link to Machines for provider-owned guest Docker inventory', () => {
+ mocks.useUnifiedResources.mockReturnValue({
+ error: () => null,
+ loading: () => false,
+ refetch: vi.fn(),
+ resources: () => [
+ makeDockerHost({
+ sourceType: 'api',
+ platformScopes: ['proxmox-pve', 'docker'],
+ }),
+ ],
+ });
+
+ render(() => <DockerPageSurface />);
+
+ expect(screen.queryByRole('link', { name: 'View all machines' })).not.toBeInTheDocument();
+ });
+
it('routes stale agent notices to the agent install commands', () => {
mocks.useUnifiedResources.mockReturnValue({
error: () => null,