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.

Promote agent platform navigation

rcourtman5900a0f782d4
diff --git a/docs/release-control/v6/internal/PLATFORM_SUPPORT_MODEL.md b/docs/release-control/v6/internal/PLATFORM_SUPPORT_MODEL.md
index c929b3cce0..61dd415a0b 100644
--- a/docs/release-control/v6/internal/PLATFORM_SUPPORT_MODEL.md
+++ b/docs/release-control/v6/internal/PLATFORM_SUPPORT_MODEL.md
@@ -160,6 +160,13 @@ Current agent-backed primary platforms:
1. `agent` for unified-agent hosts
2. `kubernetes`
+The authenticated shell may label the `agent` destination as `Agents`. That
+surface is the Pulse-managed host platform, not a generic mixed-systems bucket:
+navigation and rows must be gated to canonical `platformType="agent"` host
+resources, while Proxmox, VMware, TrueNAS, Kubernetes, and runtime-lens
+resources remain owned by their respective platform contracts and may cross-link
+to related agent facets.
+
Current agent-backed runtime lenses:
1. `docker` for the Docker / Podman container-runtime lens
diff --git a/docs/release-control/v6/internal/SOURCE_OF_TRUTH.md b/docs/release-control/v6/internal/SOURCE_OF_TRUTH.md
index eaff7d160b..7bffb4bfd4 100644
--- a/docs/release-control/v6/internal/SOURCE_OF_TRUTH.md
+++ b/docs/release-control/v6/internal/SOURCE_OF_TRUTH.md
@@ -140,6 +140,11 @@ Under that governed platform model, `kubernetes` is a first-class top-level
orchestrator platform, while `docker` is the first-class Docker / Podman
container-runtime lens and `podman` stays a runtime variant inside that lens
rather than becoming its own top-level platform.
+The `agent` platform is the first-class Pulse-managed host surface and may be
+presented in the authenticated shell as `Agents`; it is not a generic
+mixed-systems page, and membership must stay gated to canonical
+`platformType="agent"` host resources rather than provider-owned nodes,
+workloads, or unknown resources.
The same model also sets the current posture for platform breadth: `truenas`
is at the declared support floor summarized below, and `vmware-vsphere` is the
current admitted strategic next-platform direction while its support claim
diff --git a/docs/release-control/v6/internal/subsystems/ai-runtime.md b/docs/release-control/v6/internal/subsystems/ai-runtime.md
index 1c8f7d9e35..498d8ffa90 100644
--- a/docs/release-control/v6/internal/subsystems/ai-runtime.md
+++ b/docs/release-control/v6/internal/subsystems/ai-runtime.md
@@ -145,6 +145,12 @@ runtime cost control, and shared AI transport surfaces.
the VMware page must not introduce VMware-local AI prompts, a provider
model picker, or a vSphere-specific chat/runtime route just because
networks are now rendered as a first-class API-native table.
+ The `Agents` top-level platform page follows the same AI runtime boundary:
+ route registration and primary-tab chrome may expose the support-manifest
+ `agent` platform, but the page must not add an agent-specific Assistant
+ prompt surface, AI launcher, model picker, or browser-owned model context.
+ Agent rows may seed Assistant or Patrol only through the shared unified
+ resource handoff contracts.
## Forbidden Paths
diff --git a/docs/release-control/v6/internal/subsystems/cloud-paid.md b/docs/release-control/v6/internal/subsystems/cloud-paid.md
index 0f2d29343d..8895b82b39 100644
--- a/docs/release-control/v6/internal/subsystems/cloud-paid.md
+++ b/docs/release-control/v6/internal/subsystems/cloud-paid.md
@@ -499,8 +499,9 @@ or other self-hosted uncapped continuity plans.
directly replyable by customers.
`App.tsx` and `AppLayout.tsx` own the governed platform/runtime primary
navigation. `App.tsx` registers one top-level route per supported platform
- or runtime family (Proxmox, the Docker / Podman container-runtime lens,
- Kubernetes, TrueNAS, vSphere) using the canonical path constants from
+ or runtime family (Agents for the support-manifest `agent` platform,
+ Proxmox, the Docker / Podman container-runtime lens, Kubernetes, TrueNAS,
+ vSphere) using the canonical path constants from
`frontend-modern/src/routing/resourceLinks.ts`. The `PrimaryTab` list in
`AppLayout.tsx` must enumerate exactly those supported platform/runtime
destinations, but product navigation is support-and-evidence gated:
@@ -517,10 +518,13 @@ or other self-hosted uncapped continuity plans.
`WorkloadsSurface`, `StorageSurface`, `RecoverySurface`, or
`UnifiedResourceTable` in `embedded tableOnly` mode with a forced
platform/source filter. The shell must not introduce dashboard cards,
- bespoke per-family tables, or synthetic placeholder data, and must not
- reintroduce Infrastructure / Workloads / Storage / Recovery as equal
+ bespoke per-family tables, synthetic placeholder data, or reintroduce
+ Infrastructure / Workloads / Storage / Recovery as equal
primary navigation entries without a governed contract decision recorded
here.
+ The presence of an `Agents` tab is not a new commercial usage unit:
+ hosted and paid surfaces continue to meter the governed monitored-system
+ grouping result rather than counting primary navigation destinations.
## Forbidden Paths
diff --git a/docs/release-control/v6/internal/subsystems/frontend-primitives.md b/docs/release-control/v6/internal/subsystems/frontend-primitives.md
index 9e02d73e54..53a93e14bb 100644
--- a/docs/release-control/v6/internal/subsystems/frontend-primitives.md
+++ b/docs/release-control/v6/internal/subsystems/frontend-primitives.md
@@ -1018,6 +1018,12 @@ not a replacement status card, CTA band, or page-local nested card.
that platform-first set so mobile and desktop primary navigation stay
aligned; legacy Infrastructure / Workloads / Storage / Recovery entries
are intentionally absent from that priority list.
+ The support-manifest `agent` platform may be presented as `Agents` in the
+ same shell. Its primary tab, mobile priority, command-palette destination,
+ and keyboard shortcut must all route through `buildAgentsPath()` and the
+ `PrimaryInfrastructureNavId` evidence gate; they must not create a generic
+ Hosts, Nodes, Other, or mixed-systems bucket, and they must not include
+ provider-owned platform nodes that are not canonical agent resources.
## Forbidden Paths
diff --git a/docs/release-control/v6/internal/subsystems/performance-and-scalability.md b/docs/release-control/v6/internal/subsystems/performance-and-scalability.md
index bce2f60c74..d71bfd48f0 100644
--- a/docs/release-control/v6/internal/subsystems/performance-and-scalability.md
+++ b/docs/release-control/v6/internal/subsystems/performance-and-scalability.md
@@ -614,12 +614,15 @@ shell clickable behind another overlay.
dashboard hot path.
Platform-first top-level pages must remain in the app-shell route
preload registry. `frontend-modern/src/routing/routePreload.ts` carries
- a `ROUTE_PRELOADERS` entry per supported platform (Proxmox plus the
- Docker, Kubernetes, TrueNAS, and vSphere families) so first-paint
+ a `ROUTE_PRELOADERS` entry per supported platform (Agents, Proxmox plus
+ the Docker, Kubernetes, TrueNAS, and vSphere families) so first-paint
navigation between platform tabs stays warm and does not depend on a
cold dynamic import after the user clicks. New supported platform
families must extend that registry rather than skipping the preload
- hot path; presentation-only platforms must not be registered.
+ hot path; presentation-only platforms must not be registered. Preload
+ entries may warm route modules, but they must not trigger additional
+ unfiltered resource fetches, metrics-history fan-out, or provider scans
+ before the destination page owns its normal data query.
Platform pages that embed `WorkloadsSurface` reuse the canonical
workloads filter toolbar through the `showFilterToolbar` +
`suppressPlatformFilter` props in `WorkloadsSurfaceProps`. The page
diff --git a/docs/release-control/v6/internal/subsystems/storage-recovery.md b/docs/release-control/v6/internal/subsystems/storage-recovery.md
index eeb0913e4c..8a708f0bff 100644
--- a/docs/release-control/v6/internal/subsystems/storage-recovery.md
+++ b/docs/release-control/v6/internal/subsystems/storage-recovery.md
@@ -965,6 +965,7 @@ a separate Docker-only or TrueNAS-local inventory path.
11d. Letting recovery filter default labels drift between protected inventory and recovery events; both recovery filter surfaces must consume the shared `recoveryTablePresentation` labels (`All item types`, `All platforms`, and `Any item`) instead of hard-coding title-case local variants.
11a. Letting adjacent workload-route changes in shared `frontend-modern/src/routing/resourceLinks.ts` perturb recovery parse/build semantics; expanding canonical `/workloads` platform scoping must not alter the owned `/recovery` `platform` and `itemType` vocabulary, legacy alias rewrites, or recovery drill-down workspace selection
11b. Letting adjacent storage-link additions in shared `frontend-modern/src/routing/resourceLinks.ts` perturb recovery route semantics; expanding canonical `/storage` deep links for unified resources must not reuse recovery-owned query names or alter the owned `/recovery` parse/build contract while those surfaces continue sharing the same route-helper module
+ 11e. Letting adjacent platform-route additions in shared `frontend-modern/src/routing/resourceLinks.ts` perturb storage or recovery route semantics; adding canonical `/agents` paths or other platform paths must not reuse storage/recovery query names, alter `/storage` or `/recovery` parse/build behavior, or convert agent-platform membership into storage/recovery ownership
12. Letting protected-inventory protection posture overload recovery-event outcome filtering; the protected inventory protection-state control must drive the route-backed `state` field and local rollup posture filtering, while the recovery events `status` field remains the canonical outcome filter for points, series, and facets transport filters
13. Letting visible protected-item filters fall out of shared recovery links; protected inventory state such as stale, failed, warning, running, unknown, healthy, and never-succeeded must restore from the canonical recovery URL and rewrite to the owned `state=<value>` route form, with legacy `stale=1` accepted only as compatibility input
14. Reintroducing stacked full-width recovery tables as the primary desktop layout; the governed recovery surface must expose one primary data region at a time with recovery events as the default workspace and protection coverage as an explicit secondary review so Pulse does not collapse back into a single-platform backup screen
diff --git a/docs/release-control/v6/internal/subsystems/unified-resources.md b/docs/release-control/v6/internal/subsystems/unified-resources.md
index 515554fa91..08c112818c 100644
--- a/docs/release-control/v6/internal/subsystems/unified-resources.md
+++ b/docs/release-control/v6/internal/subsystems/unified-resources.md
@@ -116,6 +116,8 @@ cross-source deduplication.
92. `internal/unifiedresources/clone.go`
93. `frontend-modern/src/components/Infrastructure/resourceDetailDrawerPresentation.ts`
94. `internal/unifiedresources/storage_consumers.go`
+95. `frontend-modern/src/features/agents/agentsPageModel.ts`
+96. `frontend-modern/src/features/agents/AgentsPageSurface.tsx`
## Shared Boundaries
@@ -510,12 +512,19 @@ AI-only summary payloads, or page-local heuristics.
rather than spawning page-local policy summary shells.
16. Keep platform/runtime top-level route paths on the canonical resource-link
helper. `frontend-modern/src/routing/resourceLinks.ts` owns the
- `DOCKER_PATH`, `KUBERNETES_PATH`, `TRUENAS_PATH`, `VMWARE_PATH` constants
- and the `buildDockerPath`, `buildKubernetesPath`, `buildTrueNASPath`,
- `buildVmwarePath` builders. Per-platform surfaces and tab specs must
+ `AGENTS_PATH`, `DOCKER_PATH`, `KUBERNETES_PATH`, `TRUENAS_PATH`,
+ `VMWARE_PATH` constants and the `buildAgentsPath`, `buildDockerPath`,
+ `buildKubernetesPath`, `buildTrueNASPath`, `buildVmwarePath` builders.
+ Per-platform surfaces and tab specs must
derive every internal link from those builders so the canonical resource
URL vocabulary stays single-sourced; ad hoc string concatenation of
platform routes inside feature directories is not permitted.
+ The `Agents` route is the canonical browser projection of unified-resource
+ agent rows: membership must require `resource.type === "agent"` and a
+ normalized `platformType === "agent"`. Provider-owned nodes from Proxmox,
+ VMware, TrueNAS, Kubernetes, or runtime lenses may link to related agent
+ facets, but they must not become Agents-page members through hostname,
+ source, or incidental agent metadata alone.
The default tab for each platform path must point at a sub-tab whose
canonical unified-resource projection actually populates. The
canonical TrueNAS adapter (`internal/truenas/provider.go::
diff --git a/frontend-modern/src/App.tsx b/frontend-modern/src/App.tsx
index 4d5249b5ca..6c4082b32d 100644
--- a/frontend-modern/src/App.tsx
+++ b/frontend-modern/src/App.tsx
@@ -39,6 +39,7 @@ import { aiChatStore } from './stores/aiChat';
import { useKeyboardShortcuts } from './hooks/useKeyboardShortcuts';
import { useKioskMode } from '@/hooks/useKioskMode';
import {
+ AGENTS_PATH,
DOCKER_PATH,
INFRASTRUCTURE_PATH,
KUBERNETES_PATH,
@@ -48,6 +49,7 @@ import {
TRUENAS_PATH,
VMWARE_PATH,
WORKLOADS_PATH,
+ buildAgentsPath,
buildDockerPath,
buildKubernetesPath,
buildProxmoxPath,
@@ -81,7 +83,9 @@ const AlertsPage = lazy(() =>
import('./pages/Alerts').then((module) => ({ default: module.Alerts })),
);
const SettingsPage = lazy(() => import('./components/Settings/Settings'));
-const InfrastructurePage = lazy(() => import('./features/infrastructure/InfrastructurePageSurface'));
+const InfrastructurePage = lazy(
+ () => import('./features/infrastructure/InfrastructurePageSurface'),
+);
const WorkloadsPage = lazy(() =>
import('./components/Workloads/WorkloadsSurface').then((module) => ({
default: () => <module.WorkloadsSurface vms={[]} containers={[]} nodes={[]} useWorkloads />,
@@ -98,6 +102,7 @@ const RecoveryPage = lazy(() =>
})),
);
const ProxmoxPage = lazy(() => import('./pages/Proxmox'));
+const AgentsPage = lazy(() => import('./pages/Agents'));
const DockerPage = lazy(() => import('./pages/Docker'));
const KubernetesPage = lazy(() => import('./pages/Kubernetes'));
const TrueNASPage = lazy(() => import('./pages/TrueNAS'));
@@ -117,6 +122,7 @@ const ROOT_PATROL_PATH = PATROL_PATH;
const STORAGE_PATH = buildStoragePath();
const PRIMARY_INFRASTRUCTURE_ROUTE_BY_ID: Record<PrimaryInfrastructureNavId, string> = {
+ agents: buildAgentsPath(),
proxmox: buildProxmoxPath(),
docker: buildDockerPath(),
kubernetes: buildKubernetesPath(),
@@ -559,6 +565,8 @@ function App() {
<Route path={`${RECOVERY_PATH}/*`} component={RecoveryPage} />
<Route path="/ceph" component={() => <Navigate href="/proxmox/ceph" />} />
<Route path="/ceph/*" component={() => <Navigate href="/proxmox/ceph" />} />
+ <Route path={AGENTS_PATH} component={AgentsPage} />
+ <Route path={`${AGENTS_PATH}/*`} component={AgentsPage} />
<Route path={PROXMOX_PATH} component={ProxmoxPage} />
<Route path={`${PROXMOX_PATH}/*`} component={ProxmoxPage} />
<Route path={DOCKER_PATH} component={DockerPage} />
diff --git a/frontend-modern/src/AppLayout.tsx b/frontend-modern/src/AppLayout.tsx
index 19b5fa9846..e2fbb1d907 100644
--- a/frontend-modern/src/AppLayout.tsx
+++ b/frontend-modern/src/AppLayout.tsx
@@ -7,6 +7,7 @@ import Maximize2Icon from 'lucide-solid/icons/maximize-2';
import Minimize2Icon from 'lucide-solid/icons/minimize-2';
import SparklesIcon from 'lucide-solid/icons/sparkles';
import ContainerIcon from 'lucide-solid/icons/container';
+import ServerIcon from 'lucide-solid/icons/server';
import ShipWheelIcon from 'lucide-solid/icons/ship-wheel';
import DatabaseIcon from 'lucide-solid/icons/database';
import CpuIcon from 'lucide-solid/icons/cpu';
@@ -35,6 +36,7 @@ import { logger } from '@/utils/logger';
import { getActiveTabForPath } from '@/routing/navigation';
import { preloadRouteModule } from '@/routing/routePreload';
import {
+ buildAgentsPath,
buildDockerPath,
buildKubernetesPath,
buildProxmoxPath,
@@ -49,6 +51,7 @@ import { presentationPolicyHidesUpgradePrompts } from '@/stores/sessionPresentat
import { AI_CHAT_LAUNCHER_ARIA_LABEL, getAIChatLauncherTitle } from '@/utils/aiChatPresentation';
import type { AppConnectionStatus } from '@/useAppRuntimeState';
+const ROOT_AGENTS_PATH = buildAgentsPath();
const ROOT_PROXMOX_PATH = buildProxmoxPath();
const ROOT_DOCKER_PATH = buildDockerPath();
const ROOT_KUBERNETES_PATH = buildKubernetesPath();
@@ -203,6 +206,7 @@ export function AppLayout(props: AppLayoutProps) {
// identify the current Pulse surface instead of every page reading
// as the bare app name.
const tabTitleByActive: Record<NonNullable<ReturnType<typeof getActiveTabForPath>>, string> = {
+ agents: 'Agents',
proxmox: 'Proxmox',
docker: 'Containers',
kubernetes: 'Kubernetes',
@@ -225,6 +229,7 @@ export function AppLayout(props: AppLayoutProps) {
buildPrimaryInfrastructureNavigationVisibility(props.state().resources || []),
);
const primaryInfrastructureRouteById: Record<PrimaryInfrastructureNavId, string> = {
+ agents: ROOT_AGENTS_PATH,
proxmox: ROOT_PROXMOX_PATH,
docker: ROOT_DOCKER_PATH,
kubernetes: ROOT_KUBERNETES_PATH,
@@ -327,6 +332,17 @@ export function AppLayout(props: AppLayoutProps) {
const isVisible = (id: PrimaryTab['id']) =>
primaryInfrastructureNavigationIsVisible(visible, id as PrimaryInfrastructureNavId);
const allPrimaryTabs: PrimaryTab[] = [
+ {
+ id: 'agents',
+ label: 'Agents',
+ route: ROOT_AGENTS_PATH,
+ settingsRoute: '/settings/infrastructure',
+ tooltip: 'Pulse Agent managed machines, OS telemetry, storage, and command eligibility',
+ enabled: isVisible('agents'),
+ live: isVisible('agents'),
+ icon: ServerIcon,
+ alwaysShow: false,
+ },
{
id: 'proxmox',
label: 'Proxmox',
diff --git a/frontend-modern/src/__tests__/App.architecture.test.ts b/frontend-modern/src/__tests__/App.architecture.test.ts
index 4cb1189981..03cca87e71 100644
--- a/frontend-modern/src/__tests__/App.architecture.test.ts
+++ b/frontend-modern/src/__tests__/App.architecture.test.ts
@@ -45,9 +45,8 @@ describe('App architecture', () => {
expect(routePreloadSource).not.toContain('ROOT_WORKLOADS_PATH');
expect(routePreloadSource).not.toContain('RECOVERY_ROUTE_PATH');
expect(routePreloadSource).not.toContain('STORAGE_PATH');
- expect(appSource).toContain(
- "const InfrastructurePage = lazy(() => import('./features/infrastructure/InfrastructurePageSurface'));",
- );
+ expect(appSource).toContain('const InfrastructurePage = lazy(');
+ expect(appSource).toContain("import('./features/infrastructure/InfrastructurePageSurface')");
expect(appSource).toContain("import('./components/Workloads/WorkloadsSurface')");
expect(appSource).toContain("import('./components/Storage/Storage')");
expect(appSource).toContain("import('./components/Recovery/Recovery')");
@@ -66,6 +65,9 @@ describe('App architecture', () => {
expect(appRuntimeStateSource).not.toContain("import('@/components/Settings/Settings')");
expect(appSource).toContain('const timeoutId = window.setTimeout(() => {');
expect(appSource).toContain('void preloadAppShellRoutes();');
+ expect(appSource).toContain("const AgentsPage = lazy(() => import('./pages/Agents'));");
+ expect(appSource).toContain('<Route path={AGENTS_PATH} component={AgentsPage} />');
+ expect(appSource).toContain('<Route path={`${AGENTS_PATH}/*`} component={AgentsPage} />');
expect(appSource).toContain('<Route path={PROXMOX_PATH} component={ProxmoxPage} />');
expect(appSource).toContain('<Route path={`${PROXMOX_PATH}/*`} component={ProxmoxPage} />');
expect(appSource).toContain("const DockerPage = lazy(() => import('./pages/Docker'));");
@@ -76,10 +78,12 @@ describe('App architecture', () => {
expect(appSource).toContain('<Route path={KUBERNETES_PATH} component={KubernetesPage} />');
expect(appSource).toContain('<Route path={TRUENAS_PATH} component={TrueNASPage} />');
expect(appSource).toContain('<Route path={VMWARE_PATH} component={VmwarePage} />');
+ expect(routePreloadSource).toContain("id: 'agents',");
expect(routePreloadSource).toContain("id: 'docker',");
expect(routePreloadSource).toContain("id: 'kubernetes',");
expect(routePreloadSource).toContain("id: 'truenas',");
expect(routePreloadSource).toContain("id: 'vmware',");
+ expect(appLayoutSource).toContain("id: 'agents',");
expect(appLayoutSource).toContain("id: 'docker',");
expect(appLayoutSource).toContain("id: 'kubernetes',");
expect(appLayoutSource).toContain("id: 'truenas',");
@@ -87,6 +91,9 @@ describe('App architecture', () => {
expect(appLayoutSource).toContain(
"tooltip: 'VMware vSphere hosts, virtual machines, datastores, and networks'",
);
+ expect(appLayoutSource).toContain(
+ "tooltip: 'Pulse Agent managed machines, OS telemetry, storage, and command eligibility'",
+ );
// Governed platform/runtime primary nav: Infrastructure / Workloads /
// Storage / Recovery are not duplicated as equal primary tab
// entries, and the Docker / Podman route is presented as the Containers
@@ -331,11 +338,13 @@ describe('App architecture', () => {
expect(appRuntimeStateSource).not.toContain('function AppLayout(');
expect(routePreloadSource).toContain('const ROUTE_PRELOADERS: readonly RoutePreloader[] = [');
expect(routePreloadSource).toContain('export const APP_SHELL_ROUTE_PRELOAD_PATHS = [');
+ expect(routePreloadSource).toContain("id: 'agents',");
expect(routePreloadSource).toContain("id: 'proxmox',");
expect(routePreloadSource).toContain("id: 'patrol',");
expect(routePreloadSource).toContain(
'const routePreloadCache = new Map<string, Promise<void>>();',
);
+ expect(routePreloadSource).toContain("import('@/pages/Agents')");
expect(routePreloadSource).toContain("import('@/pages/Proxmox')");
expect(routePreloadSource).not.toContain("import('@/pages/Infrastructure')");
expect(routePreloadSource).not.toContain("import('@/pages/Workloads')");
diff --git a/frontend-modern/src/__tests__/AppLayout.test.tsx b/frontend-modern/src/__tests__/AppLayout.test.tsx
index 0deb1a00c2..8f2df89ac2 100644
--- a/frontend-modern/src/__tests__/AppLayout.test.tsx
+++ b/frontend-modern/src/__tests__/AppLayout.test.tsx
@@ -117,6 +117,7 @@ describe('AppLayout navigation icons', () => {
it('shows platform and runtime lens tabs with supported infrastructure evidence', () => {
renderLayout([
+ makeResource({ id: 'agent-1', type: 'agent', platformType: 'agent' }),
makeResource({ id: 'pve-1', type: 'agent', platformType: 'proxmox-pve' }),
makeResource({ id: 'docker-1', type: 'docker-host', platformType: 'docker' }),
makeResource({ id: 'vcenter-1', type: 'vm', platformType: 'vmware-vsphere' }),
@@ -126,6 +127,9 @@ describe('AppLayout navigation icons', () => {
const infrastructureGroup = desktopNav.querySelector('[aria-label="Infrastructure"]');
expect(infrastructureGroup).toBeTruthy();
+ expect(
+ within(infrastructureGroup as HTMLElement).getByRole('tab', { name: 'Agents' }),
+ ).toBeTruthy();
expect(
within(infrastructureGroup as HTMLElement).getByRole('tab', { name: 'Proxmox' }),
).toBeTruthy();
diff --git a/frontend-modern/src/components/shared/KeyboardShortcutsModal.tsx b/frontend-modern/src/components/shared/KeyboardShortcutsModal.tsx
index 8f3a34598b..593c014a1e 100644
--- a/frontend-modern/src/components/shared/KeyboardShortcutsModal.tsx
+++ b/frontend-modern/src/components/shared/KeyboardShortcutsModal.tsx
@@ -19,6 +19,7 @@ interface KeyboardShortcutsModalProps {
const UNIFIED_NAV_SHORTCUTS: ShortcutGroup = {
title: 'Navigation',
items: [
+ { keys: 'g then e', description: 'Go to Agents' },
{ keys: 'g then p', description: 'Go to Proxmox' },
{ keys: 'g then d', description: 'Go to Containers' },
{ keys: 'g then k', description: 'Go to Kubernetes' },
@@ -31,6 +32,7 @@ const UNIFIED_NAV_SHORTCUTS: ShortcutGroup = {
};
const NAV_PRIMARY_SHORTCUTS: Record<string, keyof InfrastructureNavigationVisibility> = {
+ 'g then e': 'agents',
'g then p': 'proxmox',
'g then d': 'docker',
'g then k': 'kubernetes',
diff --git a/frontend-modern/src/components/shared/__tests__/CommandPaletteModal.test.tsx b/frontend-modern/src/components/shared/__tests__/CommandPaletteModal.test.tsx
index 5ecb0ff11d..900f8f608e 100644
--- a/frontend-modern/src/components/shared/__tests__/CommandPaletteModal.test.tsx
+++ b/frontend-modern/src/components/shared/__tests__/CommandPaletteModal.test.tsx
@@ -36,6 +36,7 @@ const makeResource = (overrides: Partial<Resource>): Resource =>
const infrastructureVisibility = () =>
buildPrimaryInfrastructureNavigationVisibility([
+ makeResource({ id: 'agent-1', type: 'agent', platformType: 'agent' }),
makeResource({ id: 'pve-1', type: 'agent', platformType: 'proxmox-pve' }),
makeResource({ id: 'docker-1', type: 'docker-host', platformType: 'docker' }),
makeResource({ id: 'k8s-1', type: 'k8s-cluster', platformType: 'kubernetes' }),
@@ -56,6 +57,7 @@ describe('CommandPaletteModal', () => {
expect(commandPaletteStateSource).toContain('useNavigate');
expect(commandPaletteStateSource).toContain('createSignal');
+ expect(commandPaletteStateSource).toContain('buildAgentsPath');
expect(commandPaletteStateSource).toContain('buildProxmoxPath');
expect(commandPaletteStateSource).toContain('export function useCommandPaletteState');
@@ -70,6 +72,7 @@ describe('CommandPaletteModal', () => {
expect(commandPaletteModelSource).toContain('buildCommandPaletteCommands');
expect(commandPaletteModelSource).toContain('normalizeCommandPaletteQuery');
expect(commandPaletteModelSource).toContain('filterCommandPaletteCommands');
+ expect(commandPaletteModelSource).toContain("id: 'nav-agents'");
expect(commandPaletteModelSource).toContain("id: 'nav-proxmox'");
expect(commandPaletteModelSource).toContain("id: 'nav-docker'");
expect(commandPaletteModelSource).toContain("id: 'nav-kubernetes'");
@@ -91,6 +94,7 @@ describe('CommandPaletteModal', () => {
/>
));
+ expect(screen.getByText('Go to Agents')).toBeInTheDocument();
expect(screen.getByText('Go to Proxmox')).toBeInTheDocument();
expect(screen.getByText('Go to Containers')).toBeInTheDocument();
expect(screen.getByText('Go to Kubernetes Pods')).toBeInTheDocument();
@@ -164,6 +168,7 @@ describe('CommandPaletteModal', () => {
));
expect(screen.getByText('Go to Proxmox')).toBeInTheDocument();
+ expect(screen.queryByText('Go to Agents')).not.toBeInTheDocument();
expect(screen.queryByText('Go to Containers')).not.toBeInTheDocument();
expect(screen.queryByText('Go to Kubernetes')).not.toBeInTheDocument();
expect(screen.queryByText('Go to TrueNAS')).not.toBeInTheDocument();
diff --git a/frontend-modern/src/components/shared/commandPaletteModel.ts b/frontend-modern/src/components/shared/commandPaletteModel.ts
index 8fc8620e99..785e4c215d 100644
--- a/frontend-modern/src/components/shared/commandPaletteModel.ts
+++ b/frontend-modern/src/components/shared/commandPaletteModel.ts
@@ -19,6 +19,7 @@ export type CommandPaletteModalCommand = {
};
export type CommandPaletteCommandPaths = {
+ agentsPath: string;
proxmoxPath: string;
dockerPath: string;
kubernetesPath: string;
@@ -35,6 +36,17 @@ export function buildCommandPaletteCommands(options: {
}): CommandPaletteModalCommand[] {
const commands: CommandPaletteModalCommand[] = [];
+ if (primaryInfrastructureNavigationIsVisible(options.infrastructureVisibility, 'agents')) {
+ commands.push({
+ id: 'nav-agents',
+ label: 'Go to Agents',
+ description: options.paths.agentsPath,
+ shortcut: 'g e',
+ keywords: ['agents', 'hosts', 'machines', 'linux', 'macos', 'windows', 'unraid'],
+ action: () => options.navigate(options.paths.agentsPath),
+ });
+ }
+
if (primaryInfrastructureNavigationIsVisible(options.infrastructureVisibility, 'proxmox')) {
commands.push({
id: 'nav-proxmox',
diff --git a/frontend-modern/src/components/shared/mobileNavBarModel.ts b/frontend-modern/src/components/shared/mobileNavBarModel.ts
index 655cbafbe3..2590af4dec 100644
--- a/frontend-modern/src/components/shared/mobileNavBarModel.ts
+++ b/frontend-modern/src/components/shared/mobileNavBarModel.ts
@@ -35,6 +35,7 @@ export type MobileNavBarProps = {
};
const MOBILE_NAV_PRIMARY_PRIORITY = [
+ 'agents',
'proxmox',
'docker',
'kubernetes',
diff --git a/frontend-modern/src/components/shared/useCommandPaletteState.ts b/frontend-modern/src/components/shared/useCommandPaletteState.ts
index 3db532373a..e33f773cf5 100644
--- a/frontend-modern/src/components/shared/useCommandPaletteState.ts
+++ b/frontend-modern/src/components/shared/useCommandPaletteState.ts
@@ -1,6 +1,7 @@
import { useNavigate } from '@solidjs/router';
import { createEffect, createMemo, createSignal } from 'solid-js';
import {
+ buildAgentsPath,
buildDockerPath,
buildKubernetesPath,
buildProxmoxPath,
@@ -24,6 +25,7 @@ export function useCommandPaletteState(props: CommandPaletteModalProps) {
const commands = createMemo(() =>
buildCommandPaletteCommands({
paths: {
+ agentsPath: buildAgentsPath(),
proxmoxPath: buildProxmoxPath(),
dockerPath: buildDockerPath(),
kubernetesPath: buildKubernetesPath(),
diff --git a/frontend-modern/src/features/agents/AgentsPageSurface.tsx b/frontend-modern/src/features/agents/AgentsPageSurface.tsx
new file mode 100644
index 0000000000..653006a9aa
--- /dev/null
+++ b/frontend-modern/src/features/agents/AgentsPageSurface.tsx
@@ -0,0 +1,232 @@
+import { Show, createEffect, createMemo, createSignal } from 'solid-js';
+import { useNavigate } from '@solidjs/router';
+import ServerIcon from 'lucide-solid/icons/server';
+import SettingsIcon from 'lucide-solid/icons/settings';
+import type { TimeRange } from '@/api/charts';
+import { buildInfrastructureOnboardingPath } from '@/components/Settings/infrastructureWorkspaceModel';
+import { UnifiedResourceTable } from '@/components/Infrastructure/UnifiedResourceTable';
+import { InfrastructureSummary } from '@/components/Infrastructure/InfrastructureSummary';
+import { Card } from '@/components/shared/Card';
+import { EmptyState } from '@/components/shared/EmptyState';
+import { FilterBar, type FilterDef } from '@/components/shared/FilterBar';
+import { ChartVisibilityToggleButton } from '@/components/shared/FilterToolbar';
+import { GroupedTableModeSegmentedControl } from '@/components/shared/GroupedTableModeSegmentedControl';
+import { StickySummarySection } from '@/components/shared/StickySummarySection';
+import {
+ PlatformErrorState,
+ PlatformSectionTabs,
+ PlatformTableEmptyState,
+ PlatformTableLoadingState,
+} from '@/features/platformPage/sharedPlatformPage';
+import { useBreakpoint } from '@/hooks/useBreakpoint';
+import { usePersistentSignal } from '@/hooks/usePersistentSignal';
+import { useUnifiedResources } from '@/hooks/useUnifiedResources';
+import { STORAGE_KEYS } from '@/utils/localStorage';
+import type { SummaryChartHoverSync } from '@/components/shared/contextualFocus';
+import { isSummaryTimeRange } from '@/components/shared/summaryTimeRange';
+import { buildAgentsPageFilterModel, buildAgentsPageModel } from './agentsPageModel';
+
+type AgentsGroupingMode = 'grouped' | 'flat';
+
+const AGENTS_RESOURCE_QUERY = 'type=agent';
+const AGENTS_TAB_SPECS = [{ id: 'overview', label: 'Overview', path: '/agents/overview' }] as const;
+
+const agentsIcon = () => <ServerIcon class="h-6 w-6 text-slate-400" />;
+
+export function AgentsPageSurface() {
+ const navigate = useNavigate();
+ const { isMobile } = useBreakpoint();
+ const { resources, loading, error, refetch } = useUnifiedResources({
+ query: AGENTS_RESOURCE_QUERY,
+ cacheKey: 'agents-workspace',
+ initialHydration: 'prefer-ws-then-rest',
+ });
+
+ const [initialLoadComplete, setInitialLoadComplete] = createSignal(false);
+ const [selectedStatus, setSelectedStatus] = createSignal('');
+ const [searchQuery, setSearchQuery] = createSignal('');
+ const [expandedResourceId, setExpandedResourceId] = createSignal<string | null>(null);
+ const [hoveredResourceId, setHoveredResourceId] = createSignal<string | null>(null);
+ const [chartHoverSync, setChartHoverSync] = createSignal<SummaryChartHoverSync | null>(null);
+ const [summaryRange, setSummaryRange] = usePersistentSignal<TimeRange>(
+ STORAGE_KEYS.AGENTS_SUMMARY_RANGE,
+ '1h',
+ {
+ deserialize: (raw) => (isSummaryTimeRange(raw) ? raw : '1h'),
+ },
+ );
+ const [summaryCollapsed, setSummaryCollapsed] = usePersistentSignal<boolean>(
+ STORAGE_KEYS.AGENTS_SUMMARY_COLLAPSED,
+ false,
+ { deserialize: (raw) => raw === 'true' },
+ );
+ const [groupingMode, setGroupingMode] = usePersistentSignal<AgentsGroupingMode>(
+ 'agentsGroupingMode',
+ 'grouped',
+ { deserialize: (raw) => (raw === 'grouped' || raw === 'flat' ? raw : 'grouped') },
+ );
+
+ const model = createMemo(() => buildAgentsPageModel(resources()));
+ const filterModel = createMemo(() =>
+ buildAgentsPageFilterModel(model().resources, selectedStatus(), searchQuery()),
+ );
+ const showLoading = createMemo(
+ () => loading() && !initialLoadComplete() && model().resources.length === 0,
+ );
+ const showEmpty = createMemo(
+ () => initialLoadComplete() && !error() && model().resources.length === 0,
+ );
+
+ const clearFilters = () => {
+ setSelectedStatus('');
+ setSearchQuery('');
+ };
+
+ createEffect(() => {
+ if (!loading() && !initialLoadComplete()) {
+ setInitialLoadComplete(true);
+ }
+ });
+
+ return (
+ <div data-testid="agents-page" class="space-y-3">
+ <PlatformSectionTabs tabs={AGENTS_TAB_SPECS} active="overview" ariaLabel="Agents sections" />
+
+ <Show
+ when={!showLoading()}
+ fallback={
+ <PlatformTableLoadingState
+ title="Loading Pulse Agent resources"
+ description="Pulse is loading the agent-backed machine snapshot."
+ />
+ }
+ >
+ <Show
+ when={!error()}
+ fallback={
+ <PlatformErrorState
+ title="Could not load Pulse Agent resources"
+ description="Refresh the resource snapshot or check the API connection state."
+ onRefresh={() => void refetch()}
+ />
+ }
+ >
+ <Show
+ when={!showEmpty()}
+ fallback={
+ <PlatformTableEmptyState
+ icon={agentsIcon()}
+ title="No Pulse Agent machines"
+ description="Install the Pulse Agent on Linux, macOS, Windows, Unraid, or another host to populate this platform page."
+ actions={
+ <button
+ type="button"
+ onClick={() => navigate(buildInfrastructureOnboardingPath('pick'))}
+ class="inline-flex items-center gap-2 rounded-md border border-border bg-surface px-3 py-1.5 text-xs font-medium text-base-content shadow-sm hover:bg-slate-50"
+ >
+ <SettingsIcon class="h-3.5 w-3.5" />
+ Add agent
+ </button>
+ }
+ />
+ }
+ >
+ <div class="space-y-4">
+ <Show when={!summaryCollapsed()}>
+ <StickySummarySection>
+ <InfrastructureSummary
+ resources={filterModel().filteredResources}
+ timeRange={summaryRange()}
+ onTimeRangeChange={setSummaryRange}
+ hoveredResourceId={hoveredResourceId()}
+ focusedResourceId={expandedResourceId()}
+ chartHoverSync={chartHoverSync()}
+ onChartHoverSyncChange={setChartHoverSync}
+ />
+ </StickySummarySection>
+ </Show>
+
+ <FilterBar
+ isMobile={isMobile}
+ savedViewsKey="agents"
+ search={{
+ value: searchQuery,
+ setValue: setSearchQuery,
+ placeholder: 'Search agents, hostnames, IPs, or tags...',
+ historyKey: STORAGE_KEYS.AGENTS_SEARCH_HISTORY,
+ emptyMessage: 'Recent agent searches appear here.',
+ }}
+ filters={
+ [
+ {
+ id: 'status',
+ label: 'Status',
+ group: 'status',
+ value: selectedStatus,
+ setValue: setSelectedStatus,
+ defaultValue: '',
+ options: () => [
+ { value: '', label: 'All' },
+ ...filterModel().statusOptions.map((status) => ({
+ value: status.key,
+ label: status.label,
+ })),
+ ],
+ },
+ ] as FilterDef[]
+ }
+ viewOptionsTrailing={
+ <>
+ <GroupedTableModeSegmentedControl
+ value={groupingMode()}
+ onChange={(value) => setGroupingMode(value as AgentsGroupingMode)}
+ />
+ <ChartVisibilityToggleButton
+ collapsed={summaryCollapsed()}
+ onToggle={() => setSummaryCollapsed((collapsed) => !collapsed)}
+ />
+ </>
+ }
+ />
+
+ <Show
+ when={filterModel().hasFilteredResources}
+ fallback={
+ <Card class="p-6">
+ <EmptyState
+ icon={agentsIcon()}
+ title="No agents match these filters"
+ description="Adjust the search or status filter to see more Pulse Agent machines."
+ actions={
+ <Show when={filterModel().hasActiveFilters}>
+ <button
+ type="button"
+ onClick={clearFilters}
+ class="inline-flex items-center gap-2 rounded-md border border-border bg-surface px-3 py-1.5 text-xs font-medium text-base-content shadow-sm hover:bg-slate-50"
+ >
+ Clear filters
+ </button>
+ </Show>
+ }
+ />
+ </Card>
+ }
+ >
+ <UnifiedResourceTable
+ resources={filterModel().filteredResources}
+ expandedResourceId={expandedResourceId()}
+ onExpandedResourceChange={setExpandedResourceId}
+ hoveredResourceId={hoveredResourceId()}
+ onHoverChange={setHoveredResourceId}
+ groupingMode={groupingMode()}
+ />
+ </Show>
+ </div>
+ </Show>
+ </Show>
+ </Show>
+ </div>
+ );
+}
+
+export default AgentsPageSurface;
diff --git a/frontend-modern/src/features/agents/__tests__/agentsPageModel.test.ts b/frontend-modern/src/features/agents/__tests__/agentsPageModel.test.ts
new file mode 100644
index 0000000000..d263a918b6
--- /dev/null
+++ b/frontend-modern/src/features/agents/__tests__/agentsPageModel.test.ts
@@ -0,0 +1,54 @@
+import { describe, expect, it } from 'vitest';
+import type { Resource } from '@/types/resource';
+import { buildAgentsPageFilterModel, buildAgentsPageModel } from '../agentsPageModel';
+
+const resource = (overrides: Partial<Resource>): Resource =>
+ ({
+ id: overrides.id ?? 'agent-1',
+ name: overrides.name ?? overrides.id ?? 'agent-1',
+ displayName: overrides.displayName ?? overrides.name ?? overrides.id ?? 'agent-1',
+ type: overrides.type ?? 'agent',
+ platformId: overrides.platformId ?? 'agent-1',
+ platformType: overrides.platformType ?? 'agent',
+ sourceType: overrides.sourceType ?? 'agent',
+ status: overrides.status ?? 'online',
+ lastSeen: overrides.lastSeen ?? 1_700_000_000_000,
+ ...overrides,
+ }) as Resource;
+
+describe('agentsPageModel', () => {
+ it('strictly projects only canonical agent platform resources', () => {
+ const model = buildAgentsPageModel([
+ resource({ id: 'mac-mini', platformType: 'agent', type: 'agent' }),
+ resource({ id: 'pve-node', platformType: 'proxmox-pve', type: 'agent' }),
+ resource({ id: 'k8s-pod', platformType: 'agent', type: 'pod' }),
+ resource({ id: 'docker-host', platformType: 'docker', type: 'docker-host' }),
+ ]);
+
+ expect(model.resources.map((item) => item.id)).toEqual(['mac-mini']);
+ });
+
+ it('filters agent resources by status and local identity search', () => {
+ const resources = [
+ resource({
+ id: 'agent-mac',
+ displayName: 'Studio Mac',
+ status: 'online',
+ identity: { hostname: 'studio-mac.local', ips: ['10.0.0.12'] },
+ }),
+ resource({
+ id: 'agent-win',
+ displayName: 'Windows Bench',
+ status: 'offline',
+ identity: { hostname: 'bench.local', ips: ['10.0.0.20'] },
+ }),
+ ];
+
+ expect(buildAgentsPageFilterModel(resources, 'offline', '').filteredResources).toEqual([
+ resources[1],
+ ]);
+ expect(buildAgentsPageFilterModel(resources, '', 'studio 10.0.0.12').filteredResources).toEqual(
+ [resources[0]],
+ );
+ });
+});
diff --git a/frontend-modern/src/features/agents/agentsPageModel.ts b/frontend-modern/src/features/agents/agentsPageModel.ts
new file mode 100644
index 0000000000..259e2199e5
--- /dev/null
+++ b/frontend-modern/src/features/agents/agentsPageModel.ts
@@ -0,0 +1,52 @@
+import type { Resource } from '@/types/resource';
+import {
+ buildStatusOptions,
+ collectAvailableStatuses,
+ filterResources,
+ tokenizeSearch,
+} from '@/components/Infrastructure/infrastructureSelectors';
+import { normalizeSourcePlatformKey } from '@/utils/sourcePlatforms';
+
+export interface AgentsPageModel {
+ resources: Resource[];
+}
+
+export interface AgentsPageFilterModel {
+ activeFilterCount: number;
+ statusOptions: Array<{ key: string; label: string }>;
+ hasActiveFilters: boolean;
+ filteredResources: Resource[];
+ hasFilteredResources: boolean;
+}
+
+export const isAgentsPageResource = (resource: Resource): boolean =>
+ resource.type === 'agent' && normalizeSourcePlatformKey(resource.platformType) === 'agent';
+
+export function buildAgentsPageModel(resources: readonly Resource[]): AgentsPageModel {
+ return {
+ resources: resources.filter(isAgentsPageResource),
+ };
+}
+
+export function buildAgentsPageFilterModel(
+ resources: Resource[],
+ selectedStatus: string,
+ searchQuery: string,
+): AgentsPageFilterModel {
+ const normalizedStatus = selectedStatus.trim().toLowerCase();
+ const searchTerms = tokenizeSearch(searchQuery);
+ const filteredResources = filterResources(
+ resources,
+ new Set(),
+ normalizedStatus ? new Set([normalizedStatus]) : new Set(),
+ searchTerms,
+ );
+
+ return {
+ activeFilterCount: (normalizedStatus ? 1 : 0) + (searchTerms.length > 0 ? 1 : 0),
+ statusOptions: buildStatusOptions(collectAvailableStatuses(resources)),
+ hasActiveFilters: Boolean(normalizedStatus) || searchTerms.length > 0,
+ filteredResources,
+ hasFilteredResources: filteredResources.length > 0,
+ };
+}
diff --git a/frontend-modern/src/features/infrastructureNavigation/__tests__/infrastructureNavigationModel.test.ts b/frontend-modern/src/features/infrastructureNavigation/__tests__/infrastructureNavigationModel.test.ts
index 202bbde2d7..e5806592a5 100644
--- a/frontend-modern/src/features/infrastructureNavigation/__tests__/infrastructureNavigationModel.test.ts
+++ b/frontend-modern/src/features/infrastructureNavigation/__tests__/infrastructureNavigationModel.test.ts
@@ -23,6 +23,7 @@ const resource = (overrides: Partial<Resource>): Resource =>
describe('infrastructureNavigationModel', () => {
it('shows primary infrastructure destinations only when supported or admitted resource evidence is present', () => {
expect(buildPrimaryInfrastructureNavigationVisibility([])).toEqual({
+ agents: false,
proxmox: false,
docker: false,
kubernetes: false,
@@ -32,6 +33,7 @@ describe('infrastructureNavigationModel', () => {
expect(
buildPrimaryInfrastructureNavigationVisibility([
+ resource({ id: 'agent-1', platformType: 'agent', type: 'agent' }),
resource({ id: 'pve-1', platformType: 'proxmox-pve', type: 'agent' }),
resource({
id: 'pod-1',
@@ -43,6 +45,7 @@ describe('infrastructureNavigationModel', () => {
resource({ id: 'vcenter-1', platformType: 'vmware-vsphere', type: 'vm' }),
]),
).toEqual({
+ agents: true,
proxmox: true,
docker: false,
kubernetes: true,
@@ -92,6 +95,7 @@ describe('infrastructureNavigationModel', () => {
}),
]),
).toEqual({
+ agents: false,
proxmox: false,
docker: false,
kubernetes: false,
@@ -118,9 +122,30 @@ describe('infrastructureNavigationModel', () => {
});
});
+ it('does not show Agents for incidental agent platform hints on non-agent resources', () => {
+ expect(
+ buildPrimaryInfrastructureNavigationVisibility([
+ resource({ id: 'pod-1', type: 'pod', platformType: 'agent' }),
+ resource({ id: 'pve-node-1', type: 'agent', platformType: 'proxmox-pve' }),
+ ]).agents,
+ ).toBe(false);
+ });
+
it('selects the first visible platform using the canonical primary navigation order', () => {
expect(
selectFirstVisiblePrimaryInfrastructureNavigationId({
+ agents: true,
+ proxmox: true,
+ docker: false,
+ kubernetes: false,
+ truenas: false,
+ vmware: false,
+ }),
+ ).toBe('agents');
+
+ expect(
+ selectFirstVisiblePrimaryInfrastructureNavigationId({
+ agents: false,
proxmox: false,
docker: false,
kubernetes: true,
@@ -131,6 +156,7 @@ describe('infrastructureNavigationModel', () => {
expect(
selectFirstVisiblePrimaryInfrastructureNavigationId({
+ agents: false,
proxmox: false,
docker: false,
kubernetes: false,
diff --git a/frontend-modern/src/features/infrastructureNavigation/infrastructureNavigationModel.ts b/frontend-modern/src/features/infrastructureNavigation/infrastructureNavigationModel.ts
index 432dfef5ac..340b402ad0 100644
--- a/frontend-modern/src/features/infrastructureNavigation/infrastructureNavigationModel.ts
+++ b/frontend-modern/src/features/infrastructureNavigation/infrastructureNavigationModel.ts
@@ -8,7 +8,13 @@ import {
} from '@/utils/platformSupportManifest';
import { normalizeSourcePlatformKey, resolveResourcePlatformType } from '@/utils/sourcePlatforms';
-export type PrimaryInfrastructureNavId = 'proxmox' | 'docker' | 'kubernetes' | 'truenas' | 'vmware';
+export type PrimaryInfrastructureNavId =
+ | 'agents'
+ | 'proxmox'
+ | 'docker'
+ | 'kubernetes'
+ | 'truenas'
+ | 'vmware';
export type InfrastructureNavigationVisibility = Record<PrimaryInfrastructureNavId, boolean>;
@@ -18,6 +24,7 @@ export type InfrastructureNavigationShortcut = {
};
export const PRIMARY_INFRASTRUCTURE_NAV_IDS: readonly PrimaryInfrastructureNavId[] = [
+ 'agents',
'proxmox',
'docker',
'kubernetes',
@@ -29,6 +36,7 @@ export const PRIMARY_INFRASTRUCTURE_NAV_SCOPE_IDS: Record<
PrimaryInfrastructureNavId,
readonly string[]
> = {
+ agents: ['agent'],
proxmox: ['proxmox-pve', 'proxmox-pbs', 'proxmox-pmg'],
docker: ['docker'],
kubernetes: ['kubernetes'],
@@ -50,6 +58,9 @@ const KUBERNETES_RESOURCE_TYPES = new Set<ResourceType>([
]);
const DOCKER_RESOURCE_TYPES = new Set<ResourceType>(['docker-host', 'docker-service']);
+const isPrimaryAgentPlatformResource = (resource: Resource): boolean =>
+ resource.type === 'agent' && normalizeSourcePlatformKey(resource.platformType) === 'agent';
+
const asRecord = (value: unknown): Record<string, unknown> | null =>
typeof value === 'object' && value !== null ? (value as Record<string, unknown>) : null;
@@ -152,6 +163,7 @@ export function buildPrimaryInfrastructureNavigationVisibility(
): InfrastructureNavigationVisibility {
const presentNavigableScopes = buildNavigableResourceInfrastructureScopeSet(resources);
return {
+ agents: resources.some(isPrimaryAgentPlatformResource),
proxmox: PRIMARY_INFRASTRUCTURE_NAV_SCOPE_IDS.proxmox.some((id) =>
presentNavigableScopes.has(id),
),
@@ -205,6 +217,7 @@ export function filterInfrastructureNavigationShortcuts(
export function createEmptyInfrastructureNavigationVisibility(): InfrastructureNavigationVisibility {
return {
+ agents: false,
proxmox: false,
docker: false,
kubernetes: false,
diff --git a/frontend-modern/src/features/platformPage/sharedPlatformPage.tsx b/frontend-modern/src/features/platformPage/sharedPlatformPage.tsx
index 309a170eb0..56ea781d80 100644
--- a/frontend-modern/src/features/platformPage/sharedPlatformPage.tsx
+++ b/frontend-modern/src/features/platformPage/sharedPlatformPage.tsx
@@ -54,11 +54,17 @@ export function PlatformTableEmptyState(props: {
icon: JSX.Element;
title: string;
description: string;
+ actions?: JSX.Element;
}) {
return (
<TableCard>
<div class="p-6">
- <EmptyState icon={props.icon} title={props.title} description={props.description} />
+ <EmptyState
+ icon={props.icon}
+ title={props.title}
+ description={props.description}
+ actions={props.actions}
+ />
</div>
</TableCard>
);
diff --git a/frontend-modern/src/hooks/useKeyboardShortcuts.ts b/frontend-modern/src/hooks/useKeyboardShortcuts.ts
index af25c45469..6666b3e668 100644
--- a/frontend-modern/src/hooks/useKeyboardShortcuts.ts
+++ b/frontend-modern/src/hooks/useKeyboardShortcuts.ts
@@ -1,6 +1,7 @@
import { createSignal, onCleanup, type Accessor } from 'solid-js';
import { useNavigate } from '@solidjs/router';
import {
+ buildAgentsPath,
buildDockerPath,
buildKubernetesPath,
buildProxmoxPath,
@@ -86,6 +87,7 @@ export function useKeyboardShortcuts(options: KeyboardShortcutsOptions = {}) {
options.infrastructureVisibility?.() ?? createEmptyInfrastructureNavigationVisibility();
const infrastructureRoutes = filterInfrastructureNavigationShortcuts(
{
+ agents: { key: 'e', route: buildAgentsPath() },
proxmox: { key: 'p', route: buildProxmoxPath() },
docker: { key: 'd', route: buildDockerPath() },
kubernetes: { key: 'k', route: buildKubernetesPath() },
diff --git a/frontend-modern/src/pages/Agents.tsx b/frontend-modern/src/pages/Agents.tsx
new file mode 100644
index 0000000000..da588c1c8f
--- /dev/null
+++ b/frontend-modern/src/pages/Agents.tsx
@@ -0,0 +1,7 @@
+import { AgentsPageSurface } from '@/features/agents/AgentsPageSurface';
+
+export function Agents() {
+ return <AgentsPageSurface />;
+}
+
+export default Agents;
diff --git a/frontend-modern/src/routing/__tests__/navigation.test.ts b/frontend-modern/src/routing/__tests__/navigation.test.ts
index 5f9c7c4fae..847a0a515e 100644
--- a/frontend-modern/src/routing/__tests__/navigation.test.ts
+++ b/frontend-modern/src/routing/__tests__/navigation.test.ts
@@ -5,6 +5,8 @@ describe('navigation routing helpers', () => {
it('maps paths to the correct primary tab', () => {
expect(getActiveTabForPath('/unknown')).toBeNull();
expect(getActiveTabForPath('/dashboard')).toBeNull();
+ expect(getActiveTabForPath('/agents')).toBe('agents');
+ expect(getActiveTabForPath('/agents/overview')).toBe('agents');
expect(getActiveTabForPath('/proxmox')).toBe('proxmox');
expect(getActiveTabForPath('/proxmox/storage')).toBe('proxmox');
// Legacy top-level routes (/infrastructure, /workloads, /storage,
diff --git a/frontend-modern/src/routing/__tests__/resourceLinks.test.ts b/frontend-modern/src/routing/__tests__/resourceLinks.test.ts
index 8f8f503f75..e8adb173e4 100644
--- a/frontend-modern/src/routing/__tests__/resourceLinks.test.ts
+++ b/frontend-modern/src/routing/__tests__/resourceLinks.test.ts
@@ -1,5 +1,7 @@
import { describe, expect, it } from 'vitest';
import {
+ AGENTS_PATH,
+ AGENTS_DEFAULT_TAB,
AI_PATROL_PATH,
DOCKER_PATH,
KUBERNETES_PATH,
@@ -10,6 +12,7 @@ import {
RECOVERY_QUERY_PARAMS,
TRUENAS_PATH,
VMWARE_PATH,
+ buildAgentsPath,
buildDockerPath,
buildKubernetesPath,
buildRecoveryPath,
@@ -42,7 +45,12 @@ describe('resource link routing contract', () => {
expect(buildProxmoxPath('')).toBe('/proxmox');
});
- it('builds canonical container runtime, Kubernetes, TrueNAS, and vSphere tab paths', () => {
+ it('builds canonical Agents, container runtime, Kubernetes, TrueNAS, and vSphere tab paths', () => {
+ expect(AGENTS_PATH).toBe('/agents');
+ expect(AGENTS_DEFAULT_TAB).toBe('overview');
+ expect(buildAgentsPath()).toBe('/agents/overview');
+ expect(buildAgentsPath('')).toBe('/agents');
+
expect(DOCKER_PATH).toBe('/docker');
expect(buildDockerPath()).toBe('/docker/overview');
expect(buildDockerPath('containers')).toBe('/docker/containers');
diff --git a/frontend-modern/src/routing/__tests__/routePreload.test.ts b/frontend-modern/src/routing/__tests__/routePreload.test.ts
index 64ca64dfa3..04516f175d 100644
--- a/frontend-modern/src/routing/__tests__/routePreload.test.ts
+++ b/frontend-modern/src/routing/__tests__/routePreload.test.ts
@@ -1,7 +1,7 @@
import { describe, expect, it } from 'vitest';
import { APP_SHELL_ROUTE_PRELOAD_PATHS } from '../routePreload';
-import { PATROL_PATH, buildProxmoxPath } from '../resourceLinks';
+import { PATROL_PATH, buildAgentsPath, buildProxmoxPath } from '../resourceLinks';
describe('route preloading', () => {
it('keeps Proxmox in the authenticated app-shell preload set', () => {
@@ -10,6 +10,7 @@ describe('route preloading', () => {
it('keeps all cold top-level app shell targets in the shared preload set', () => {
expect([...APP_SHELL_ROUTE_PRELOAD_PATHS]).toEqual([
+ buildAgentsPath(),
buildProxmoxPath(),
PATROL_PATH,
'/alerts',
diff --git a/frontend-modern/src/routing/navigation.ts b/frontend-modern/src/routing/navigation.ts
index c8520b7bc9..9eace15440 100644
--- a/frontend-modern/src/routing/navigation.ts
+++ b/frontend-modern/src/routing/navigation.ts
@@ -1,4 +1,5 @@
import {
+ AGENTS_PATH,
DOCKER_PATH,
KUBERNETES_PATH,
PATROL_PATH,
@@ -8,6 +9,7 @@ import {
} from './resourceLinks';
export type AppTabId =
+ | 'agents'
| 'proxmox'
| 'docker'
| 'kubernetes'
@@ -20,6 +22,7 @@ export type AppTabId =
export type ActiveAppTabId = AppTabId | null;
export function getActiveTabForPath(path: string): ActiveAppTabId {
+ if (path.startsWith(AGENTS_PATH)) return 'agents';
if (path.startsWith(PROXMOX_PATH)) return 'proxmox';
if (path.startsWith(DOCKER_PATH)) return 'docker';
if (path.startsWith(KUBERNETES_PATH)) return 'kubernetes';
diff --git a/frontend-modern/src/routing/resourceLinks.ts b/frontend-modern/src/routing/resourceLinks.ts
index 94ba1d2fa1..4874a257ed 100644
--- a/frontend-modern/src/routing/resourceLinks.ts
+++ b/frontend-modern/src/routing/resourceLinks.ts
@@ -1,6 +1,4 @@
-import {
- normalizeSourcePlatformQueryValue,
-} from '@/utils/sourcePlatforms';
+import { normalizeSourcePlatformQueryValue } from '@/utils/sourcePlatforms';
import { normalizeStorageSourceKey } from '@/utils/storageSources';
import { normalizeRecoveryItemTypeQueryValue } from '@/utils/recoveryItemTypePresentation';
import { canonicalizeWorkloadFilterType } from '@/utils/workloads';
@@ -18,6 +16,8 @@ export const WORKLOADS_QUERY_PARAMS = {
} as const;
export const WORKLOADS_PATH = '/workloads';
+export const AGENTS_PATH = '/agents';
+export const AGENTS_DEFAULT_TAB = 'overview';
export const PROXMOX_PATH = '/proxmox';
export const PROXMOX_DEFAULT_TAB = 'overview';
export const DOCKER_PATH = '/docker';
@@ -194,6 +194,11 @@ export const buildProxmoxPath = (tab: string = PROXMOX_DEFAULT_TAB): string => {
return normalized ? `${PROXMOX_PATH}/${normalized}` : PROXMOX_PATH;
};
+export const buildAgentsPath = (tab: string = AGENTS_DEFAULT_TAB): string => {
+ const normalized = tab.trim().replace(/^\/+|\/+$/g, '');
+ return normalized ? `${AGENTS_PATH}/${normalized}` : AGENTS_PATH;
+};
+
export const buildDockerPath = (tab: string = DOCKER_DEFAULT_TAB): string => {
const normalized = tab.trim().replace(/^\/+|\/+$/g, '');
return normalized ? `${DOCKER_PATH}/${normalized}` : DOCKER_PATH;
diff --git a/frontend-modern/src/routing/routePreload.ts b/frontend-modern/src/routing/routePreload.ts
index da18e3365a..b073b1f621 100644
--- a/frontend-modern/src/routing/routePreload.ts
+++ b/frontend-modern/src/routing/routePreload.ts
@@ -1,4 +1,6 @@
import {
+ AGENTS_PATH,
+ buildAgentsPath,
buildProxmoxPath,
DOCKER_PATH,
KUBERNETES_PATH,
@@ -15,11 +17,13 @@ type RoutePreloader = {
};
const ROOT_PROXMOX_PATH = buildProxmoxPath();
+const ROOT_AGENTS_PATH = buildAgentsPath();
const ALERTS_PATH = '/alerts';
const SETTINGS_PATH = '/settings';
const routePreloadCache = new Map<string, Promise<void>>();
export const APP_SHELL_ROUTE_PRELOAD_PATHS = [
+ ROOT_AGENTS_PATH,
ROOT_PROXMOX_PATH,
PATROL_PATH,
ALERTS_PATH,
@@ -36,53 +40,50 @@ function normalizeRoute(route: string): string {
}
const ROUTE_PRELOADERS: readonly RoutePreloader[] = [
+ {
+ id: 'agents',
+ matches: (route) => route === AGENTS_PATH || route.startsWith(`${AGENTS_PATH}/`),
+ preload: () => import('@/pages/Agents').then(() => undefined),
+ },
{
id: 'proxmox',
matches: (route) => route === PROXMOX_PATH || route.startsWith(`${PROXMOX_PATH}/`),
- preload: () =>
- import('@/pages/Proxmox').then(() => undefined),
+ preload: () => import('@/pages/Proxmox').then(() => undefined),
},
{
id: 'docker',
matches: (route) => route === DOCKER_PATH || route.startsWith(`${DOCKER_PATH}/`),
- preload: () =>
- import('@/pages/Docker').then(() => undefined),
+ preload: () => import('@/pages/Docker').then(() => undefined),
},
{
id: 'kubernetes',
matches: (route) => route === KUBERNETES_PATH || route.startsWith(`${KUBERNETES_PATH}/`),
- preload: () =>
- import('@/pages/Kubernetes').then(() => undefined),
+ preload: () => import('@/pages/Kubernetes').then(() => undefined),
},
{
id: 'truenas',
matches: (route) => route === TRUENAS_PATH || route.startsWith(`${TRUENAS_PATH}/`),
- preload: () =>
- import('@/pages/TrueNAS').then(() => undefined),
+ preload: () => import('@/pages/TrueNAS').then(() => undefined),
},
{
id: 'vmware',
matches: (route) => route === VMWARE_PATH || route.startsWith(`${VMWARE_PATH}/`),
- preload: () =>
- import('@/pages/Vmware').then(() => undefined),
+ preload: () => import('@/pages/Vmware').then(() => undefined),
},
{
id: 'alerts',
matches: (route) => route === ALERTS_PATH || route.startsWith(`${ALERTS_PATH}/`),
- preload: () =>
- import('@/pages/Alerts').then(() => undefined),
+ preload: () => import('@/pages/Alerts').then(() => undefined),
},
{
id: 'patrol',
matches: (route) => route === PATROL_PATH || route.startsWith(`${PATROL_PATH}/`),
- preload: () =>
- import('@/pages/AIIntelligence').then(() => undefined),
+ preload: () => import('@/pages/AIIntelligence').then(() => undefined),
},
{
id: 'settings',
matches: (route) => route === SETTINGS_PATH || route.startsWith(`${SETTINGS_PATH}/`),
- preload: () =>
- import('@/components/Settings/Settings').then(() => undefined),
+ preload: () => import('@/components/Settings/Settings').then(() => undefined),
},
] as const;
diff --git a/frontend-modern/src/utils/localStorage.ts b/frontend-modern/src/utils/localStorage.ts
index b6ee128ed2..7aa768446a 100644
--- a/frontend-modern/src/utils/localStorage.ts
+++ b/frontend-modern/src/utils/localStorage.ts
@@ -190,6 +190,9 @@ export const STORAGE_KEYS = {
WORKLOADS_METRIC_HISTORY_RANGE: 'workloadsMetricHistoryRange',
INFRASTRUCTURE_SUMMARY_RANGE: 'infrastructureSummaryRange',
INFRASTRUCTURE_SUMMARY_COLLAPSED: 'infrastructureSummaryCollapsed',
+ AGENTS_SEARCH_HISTORY: 'agentsSearchHistory',
+ AGENTS_SUMMARY_RANGE: 'agentsSummaryRange',
+ AGENTS_SUMMARY_COLLAPSED: 'agentsSummaryCollapsed',
// Storage search
STORAGE_SEARCH_HISTORY: 'storageSearchHistory',