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.
Go aialertsdashboarddockerdocker-monitoringgohomelabinfrastructure-monitoringkubernetesmonitoringmspproxmoxproxmox-backup-serverproxmox-mail-gatewayproxmox-veself-hostedtruenastypescriptvspherewebhooks
Add dashboard Explore boundary guardrails
rcourtman5dbf75013658
diff --git a/frontend-modern/src/__tests__/App.architecture.test.ts b/frontend-modern/src/__tests__/App.architecture.test.tsindex be1091fe08..357a286250 100644--- a/frontend-modern/src/__tests__/App.architecture.test.ts+++ b/frontend-modern/src/__tests__/App.architecture.test.ts@@ -4,6 +4,7 @@ import { describe, expect, it } from 'vitest';import appSource from '@/App.tsx?raw';import appLayoutSource from '@/AppLayout.tsx?raw';import appRuntimeContextSource from '@/contexts/appRuntime.ts?raw';+import runtimeHomeSource from '@/pages/RuntimeHome.tsx?raw';import routePreloadSource from '@/routing/routePreload.ts?raw';import appRuntimeStateSource from '@/useAppRuntimeState.ts?raw';@@ -440,4 +441,32 @@ describe('App architecture', () => {'export const DarkModeContext = createContext<() => boolean>();',);});++ it('keeps dashboard and Explore boundaries out of the runtime home shell', () => {+ const shellEntrySources = [+ { name: 'App.tsx', source: appSource },+ { name: 'AppLayout.tsx', source: appLayoutSource },+ { name: 'RuntimeHome.tsx', source: runtimeHomeSource },+ { name: 'routePreload.ts', source: routePreloadSource },+ ];++ for (const { name, source } of shellEntrySources) {+ expect(source, name).not.toContain('/dashboard');+ expect(source, name).not.toContain("'/explore'");+ expect(source, name).not.toContain('"/explore"');+ expect(source, name).not.toContain('DashboardPage');+ expect(source, name).not.toContain('ExplorePage');+ expect(source, name).not.toContain('getPatrolProtectionPosture');+ expect(source, name).not.toContain('getMonitorContextPatrolProtectionPosture');+ expect(source, name).not.toContain('Patrol protection posture');+ expect(source, name).not.toContain('Proxmox Patrol coverage');+ expect(source, name).not.toContain('Protection current');+ }++ expect(runtimeHomeSource).toContain('runtimeHome.openingWorkspace');+ expect(runtimeHomeSource).not.toContain('aiIntelligenceStore');+ expect(runtimeHomeSource).not.toContain('patrolOpenWork');+ expect(appLayoutSource).toContain("label: 'Patrol'");+ expect(appLayoutSource).toContain('countLabel: patrolOpenWorkCountLabel()');+ });});diff --git a/frontend-modern/src/routing/__tests__/navigation.test.ts b/frontend-modern/src/routing/__tests__/navigation.test.tsindex 39f2612640..e6c4cd66e4 100644--- a/frontend-modern/src/routing/__tests__/navigation.test.ts+++ b/frontend-modern/src/routing/__tests__/navigation.test.ts@@ -5,6 +5,9 @@ describe('navigation routing helpers', () => {it('maps paths to the correct primary tab', () => {expect(getActiveTabForPath('/unknown')).toBeNull();expect(getActiveTabForPath('/dashboard')).toBeNull();+ expect(getActiveTabForPath('/dashboard/explore')).toBeNull();+ expect(getActiveTabForPath('/explore')).toBeNull();+ expect(getActiveTabForPath('/home')).toBeNull();expect(getActiveTabForPath('/standalone')).toBe('standalone');expect(getActiveTabForPath('/standalone/machines')).toBe('standalone');expect(getActiveTabForPath('/agents')).toBeNull();diff --git a/frontend-modern/src/utils/__tests__/assistantPageContext.test.ts b/frontend-modern/src/utils/__tests__/assistantPageContext.test.tsindex 879fafe878..834acc3f45 100644--- a/frontend-modern/src/utils/__tests__/assistantPageContext.test.ts+++ b/frontend-modern/src/utils/__tests__/assistantPageContext.test.ts@@ -53,4 +53,22 @@ describe('assistantPageContext', () => {surface: 'unknown',});});++ it('does not revive retired dashboard or Explore surfaces as Assistant context', () => {+ const retiredRoutes = ['/dashboard', '/dashboard/explore', '/explore', '/home'];++ for (const route of retiredRoutes) {+ const presentation = getAssistantPageContext(route);++ expect(presentation.ariaLabel).toBe('Ask Pulse Assistant about this view');+ expect(presentation.commandLabel).toBe('Ask about this view');+ expect(presentation.context.targetId).toBe(route);+ expect(presentation.context.context).toMatchObject({+ name: 'Current view',+ route,+ surface: 'unknown',+ });+ expect(presentation.context.briefing?.title).toBe('Current view attached');+ }+ });});