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.

Rename Standalone default tab to Machines

rcourtmanf2e3169b1251
diff --git a/docs/release-control/v6/internal/subsystems/frontend-primitives.md b/docs/release-control/v6/internal/subsystems/frontend-primitives.md
index 9a9e184fc6..3e9fc2b135 100644
--- a/docs/release-control/v6/internal/subsystems/frontend-primitives.md
+++ b/docs/release-control/v6/internal/subsystems/frontend-primitives.md
@@ -3586,7 +3586,8 @@ frontend-primitives-owned Standalone surface rather than a new primary nav item.
The page may show availability checks beside standalone Pulse Agent machines and
provide a focused availability tab, but Settings remains the add/edit owner and
the app shell must not add a separate top-level Availability destination.
-The Standalone overview must not duplicate the focused availability table:
-overview may show standalone Pulse Agent machines and a compact handoff when an
-estate only has agentless checks, while the full availability-check row list
-belongs to the Availability checks tab.
+The Standalone page must not pretend its machine list is a generic overview:
+the default tab is `Machines`, and the full availability-check row list belongs
+to the `Availability checks` tab. The Machines tab may show a compact handoff
+when an estate only has agentless checks, but it must not duplicate the focused
+availability table.
diff --git a/docs/release-control/v6/internal/subsystems/storage-recovery.md b/docs/release-control/v6/internal/subsystems/storage-recovery.md
index 620967c265..2ee93afeda 100644
--- a/docs/release-control/v6/internal/subsystems/storage-recovery.md
+++ b/docs/release-control/v6/internal/subsystems/storage-recovery.md
@@ -995,7 +995,7 @@ recovery scope, or a storage/recovery-owned secret source.
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-state changes in shared `frontend-modern/src/routing/resourceLinks.ts` perturb recovery parse/build semantics; expanding canonical workload 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 route-state 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 `/standalone` 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
+ 11e. Letting adjacent platform-route additions in shared `frontend-modern/src/routing/resourceLinks.ts` perturb storage or recovery route semantics; adding canonical `/standalone/machines`, `/standalone/availability`, 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 c2a36f0a4b..9ea72c05a9 100644
--- a/docs/release-control/v6/internal/subsystems/unified-resources.md
+++ b/docs/release-control/v6/internal/subsystems/unified-resources.md
@@ -688,6 +688,10 @@ AI-only summary payloads, or page-local heuristics.
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.
+ Standalone's default resource route is the machines projection
+ (`/standalone/machines`); agentless endpoint rows use the
+ `/standalone/availability` projection and must not be collapsed into a
+ generic overview URL.
The frontend-primitives-owned Standalone IA contract consumes the
unified-resource projection for Pulse-managed standalone agent rows and
agentless availability endpoint rows; this subsystem owns only the
diff --git a/frontend-modern/src/components/shared/__tests__/CommandPaletteModal.test.tsx b/frontend-modern/src/components/shared/__tests__/CommandPaletteModal.test.tsx
index dacf716b77..051ea5e60b 100644
--- a/frontend-modern/src/components/shared/__tests__/CommandPaletteModal.test.tsx
+++ b/frontend-modern/src/components/shared/__tests__/CommandPaletteModal.test.tsx
@@ -95,7 +95,7 @@ describe('CommandPaletteModal', () => {
));
expect(screen.getByText('Go to Standalone')).toBeInTheDocument();
- expect(screen.getByText('/standalone/overview')).toBeInTheDocument();
+ expect(screen.getByText('/standalone/machines')).toBeInTheDocument();
expect(screen.getByText('Go to Proxmox')).toBeInTheDocument();
expect(screen.getByText('Go to Containers')).toBeInTheDocument();
expect(screen.getByText('Go to Kubernetes Workloads')).toBeInTheDocument();
diff --git a/frontend-modern/src/components/shared/__tests__/MobileNavBar.test.tsx b/frontend-modern/src/components/shared/__tests__/MobileNavBar.test.tsx
index f226f5ee9a..20e61c9b36 100644
--- a/frontend-modern/src/components/shared/__tests__/MobileNavBar.test.tsx
+++ b/frontend-modern/src/components/shared/__tests__/MobileNavBar.test.tsx
@@ -91,7 +91,7 @@ describe('MobileNavBar', () => {
{
id: 'standalone',
label: 'Standalone',
- route: '/standalone/overview',
+ route: '/standalone/machines',
settingsRoute: '/settings/infrastructure',
tooltip: 'Standalone',
enabled: true,
@@ -136,7 +136,7 @@ describe('MobileNavBar', () => {
{
id: 'standalone',
label: 'Standalone',
- route: '/standalone/overview',
+ route: '/standalone/machines',
settingsRoute: '/settings/infrastructure',
tooltip: 'Standalone',
enabled: true,
diff --git a/frontend-modern/src/features/platformPage/__tests__/sharedPlatformPage.navigation.test.tsx b/frontend-modern/src/features/platformPage/__tests__/sharedPlatformPage.navigation.test.tsx
index 6e1dd09090..28b7b07136 100644
--- a/frontend-modern/src/features/platformPage/__tests__/sharedPlatformPage.navigation.test.tsx
+++ b/frontend-modern/src/features/platformPage/__tests__/sharedPlatformPage.navigation.test.tsx
@@ -16,18 +16,16 @@ describe('PlatformSectionTabs', () => {
path="/"
component={() => (
<PlatformSectionTabs
- tabs={
- [{ id: 'overview', label: 'Overview', path: '/standalone/overview' }] as const
- }
+ tabs={[{ id: 'overview', label: 'Overview', path: '/example/overview' }] as const}
active="overview"
- ariaLabel="Standalone sections"
+ ariaLabel="Example sections"
/>
)}
/>
</Router>
));
- expect(screen.queryByRole('navigation', { name: 'Standalone sections' })).toBeNull();
+ expect(screen.queryByRole('navigation', { name: 'Example sections' })).toBeNull();
expect(screen.queryByRole('link', { name: 'Overview' })).toBeNull();
});
diff --git a/frontend-modern/src/features/standalone/StandalonePageSurface.tsx b/frontend-modern/src/features/standalone/StandalonePageSurface.tsx
index beeaeb3e79..52630a1a3f 100644
--- a/frontend-modern/src/features/standalone/StandalonePageSurface.tsx
+++ b/frontend-modern/src/features/standalone/StandalonePageSurface.tsx
@@ -13,14 +13,14 @@ import {
PlatformTableLoadingState,
} from '@/features/platformPage/sharedPlatformPage';
import { useUnifiedResources } from '@/hooks/useUnifiedResources';
-import { buildStandalonePath } from '@/routing/resourceLinks';
+import { STANDALONE_PATH, buildStandalonePath } from '@/routing/resourceLinks';
import { AvailabilityChecksTable } from './AvailabilityChecksTable';
import { AgentsMachinesTable } from './AgentsMachinesTable';
import { buildStandalonePageModel } from './standalonePageModel';
const STANDALONE_RESOURCE_QUERY = 'type=agent,network-endpoint';
const STANDALONE_TAB_SPECS = [
- { id: 'overview', label: 'Overview', path: buildStandalonePath('overview') },
+ { id: 'machines', label: 'Machines', path: buildStandalonePath('machines') },
{ id: 'availability', label: 'Availability checks', path: buildStandalonePath('availability') },
] as const;
type StandaloneTabId = (typeof STANDALONE_TAB_SPECS)[number]['id'];
@@ -33,7 +33,7 @@ const overviewActionClass =
const resolveStandaloneTab = (pathname: string): StandaloneTabId =>
pathname.replace(/\/+$/, '') === buildStandalonePath('availability')
? 'availability'
- : 'overview';
+ : 'machines';
export function StandalonePageSurface() {
const location = useLocation();
@@ -69,6 +69,13 @@ export function StandalonePageSurface() {
}
});
+ createEffect(() => {
+ const normalizedPath = location.pathname.replace(/\/+$/, '');
+ if (normalizedPath === STANDALONE_PATH || normalizedPath === `${STANDALONE_PATH}/overview`) {
+ navigate(buildStandalonePath('machines'), { replace: true });
+ }
+ });
+
return (
<div data-testid="standalone-page" class="space-y-4">
<PlatformSectionTabs
@@ -105,7 +112,7 @@ export function StandalonePageSurface() {
/>
</Show>
- <Show when={activeTab() === 'overview'}>
+ <Show when={activeTab() === 'machines'}>
<Show
when={!showOverviewEmpty()}
fallback={
diff --git a/frontend-modern/src/features/standalone/__tests__/StandalonePageSurface.test.tsx b/frontend-modern/src/features/standalone/__tests__/StandalonePageSurface.test.tsx
index 27897860fa..4da5ad8e98 100644
--- a/frontend-modern/src/features/standalone/__tests__/StandalonePageSurface.test.tsx
+++ b/frontend-modern/src/features/standalone/__tests__/StandalonePageSurface.test.tsx
@@ -5,7 +5,8 @@ import type { Resource } from '@/types/resource';
import { StandalonePageSurface } from '../StandalonePageSurface';
const mocks = vi.hoisted(() => ({
- pathname: '/standalone/overview',
+ pathname: '/standalone/machines',
+ navigate: vi.fn(),
useUnifiedResources: vi.fn(),
AgentsMachinesTable: vi.fn((props: { resources: Resource[] }) => (
<div data-testid="agents-machines-table" data-resource-count={props.resources.length} />
@@ -28,7 +29,7 @@ vi.mock('@solidjs/router', async () => {
return mocks.pathname;
},
}),
- useNavigate: () => vi.fn(),
+ useNavigate: () => mocks.navigate,
A: (props: { href: string; children: JSX.Element }) => (
<a href={props.href}>{props.children}</a>
),
@@ -79,7 +80,8 @@ const resource = (overrides: Partial<Resource>): Resource =>
}) as Resource;
beforeEach(() => {
- mocks.pathname = '/standalone/overview';
+ mocks.pathname = '/standalone/machines';
+ mocks.navigate.mockClear();
mocks.useUnifiedResources.mockReturnValue({
resources: () => [
resource({ id: 'mac-mini', type: 'agent', platformType: 'agent', sources: ['agent'] }),
@@ -112,7 +114,7 @@ describe('StandalonePageSurface', () => {
);
expect(screen.getByTestId('standalone-section-tabs')).toHaveAttribute(
'data-tabs',
- 'overview,availability',
+ 'machines,availability',
);
expect(screen.getByTestId('agents-machines-table')).toHaveAttribute(
'data-resource-count',
@@ -121,6 +123,18 @@ describe('StandalonePageSurface', () => {
expect(screen.queryByTestId('availability-checks-table')).not.toBeInTheDocument();
});
+ it('redirects retired Standalone overview links to the machines tab', () => {
+ mocks.pathname = '/standalone/overview';
+
+ render(() => <StandalonePageSurface />);
+
+ expect(mocks.navigate).toHaveBeenCalledWith('/standalone/machines', { replace: true });
+ expect(screen.getByTestId('standalone-section-tabs')).toHaveAttribute(
+ 'data-active',
+ 'machines',
+ );
+ });
+
it('uses the availability tab as a focused check monitor', () => {
mocks.pathname = '/standalone/availability';
diff --git a/frontend-modern/src/routing/__tests__/navigation.test.ts b/frontend-modern/src/routing/__tests__/navigation.test.ts
index 82f153c1ce..39f2612640 100644
--- a/frontend-modern/src/routing/__tests__/navigation.test.ts
+++ b/frontend-modern/src/routing/__tests__/navigation.test.ts
@@ -6,7 +6,7 @@ describe('navigation routing helpers', () => {
expect(getActiveTabForPath('/unknown')).toBeNull();
expect(getActiveTabForPath('/dashboard')).toBeNull();
expect(getActiveTabForPath('/standalone')).toBe('standalone');
- expect(getActiveTabForPath('/standalone/overview')).toBe('standalone');
+ expect(getActiveTabForPath('/standalone/machines')).toBe('standalone');
expect(getActiveTabForPath('/agents')).toBeNull();
expect(getActiveTabForPath('/proxmox')).toBe('proxmox');
expect(getActiveTabForPath('/proxmox/storage')).toBe('proxmox');
diff --git a/frontend-modern/src/routing/__tests__/resourceLinks.test.ts b/frontend-modern/src/routing/__tests__/resourceLinks.test.ts
index 626f1f4b31..964f160714 100644
--- a/frontend-modern/src/routing/__tests__/resourceLinks.test.ts
+++ b/frontend-modern/src/routing/__tests__/resourceLinks.test.ts
@@ -42,8 +42,8 @@ describe('resource link routing contract', () => {
it('builds canonical Standalone, container runtime, Kubernetes, TrueNAS, and vSphere tab paths', () => {
expect(STANDALONE_PATH).toBe('/standalone');
- expect(STANDALONE_DEFAULT_TAB).toBe('overview');
- expect(buildStandalonePath()).toBe('/standalone/overview');
+ expect(STANDALONE_DEFAULT_TAB).toBe('machines');
+ expect(buildStandalonePath()).toBe('/standalone/machines');
expect(buildStandalonePath('')).toBe('/standalone');
expect(DOCKER_PATH).toBe('/docker');
diff --git a/frontend-modern/src/routing/resourceLinks.ts b/frontend-modern/src/routing/resourceLinks.ts
index 87b0af6da4..132a3ea59b 100644
--- a/frontend-modern/src/routing/resourceLinks.ts
+++ b/frontend-modern/src/routing/resourceLinks.ts
@@ -16,7 +16,7 @@ export const WORKLOADS_QUERY_PARAMS = {
} as const;
export const STANDALONE_PATH = '/standalone';
-export const STANDALONE_DEFAULT_TAB = 'overview';
+export const STANDALONE_DEFAULT_TAB = 'machines';
export const PROXMOX_PATH = '/proxmox';
export const PROXMOX_DEFAULT_TAB = 'overview';
export const DOCKER_PATH = '/docker';