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 first-run infrastructure setup guidance

rcourtmana31227620d07
diff --git a/docs/release-control/v6/internal/subsystems/agent-lifecycle.md b/docs/release-control/v6/internal/subsystems/agent-lifecycle.md
index 00582f8379..b2b017a256 100644
--- a/docs/release-control/v6/internal/subsystems/agent-lifecycle.md
+++ b/docs/release-control/v6/internal/subsystems/agent-lifecycle.md
@@ -327,6 +327,12 @@ and `frontend-modern/src/utils/proxmoxSettingsPresentation.ts`, so endpoint
reachability state, discovery-prefill defaults, and variant copy stay on the
same governed lifecycle surface instead of drifting into card-local strings or
prefill assembly.
+That same infrastructure workspace boundary now also owns the first-run
+handoff copy for new operators. `InfrastructureWorkspace.tsx` must tell a new
+Pulse user to start with `Install on a host` to add the first monitored
+system, while still presenting `Direct Proxmox` as the explicit alternative
+path instead of leaving first-session install guidance implicit in generic
+settings-shell prose.
When that infrastructure workspace needs to redirect operators to the Pulse Pro
surface for billing, monitored-system limits, or license status, it must
consume the shared referral copy from
diff --git a/docs/release-control/v6/internal/subsystems/frontend-primitives.md b/docs/release-control/v6/internal/subsystems/frontend-primitives.md
index 796e78c321..316aab60ea 100644
--- a/docs/release-control/v6/internal/subsystems/frontend-primitives.md
+++ b/docs/release-control/v6/internal/subsystems/frontend-primitives.md
@@ -161,6 +161,10 @@ work extends shared components instead of creating new local variants.
and keep adjacent settings-shell referrals such as
`InfrastructureWorkspace.tsx` on that same shared owner instead of
reintroducing local “go to Pulse Pro” variants.
+6. Keep first-session dashboard empty-state copy on
+ `frontend-modern/src/utils/dashboardEmptyStatePresentation.ts`, and make
+ infrastructure setup guidance name the canonical destination explicitly
+ instead of falling back to generic settings CTA labels.
## Current State
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 2a257177dc..f75d816c28 100644
--- a/docs/release-control/v6/internal/subsystems/performance-and-scalability.md
+++ b/docs/release-control/v6/internal/subsystems/performance-and-scalability.md
@@ -192,6 +192,12 @@ The dashboard workload selector path and the dashboard runtime that consumes it
are now part of the protected performance surface rather than proof-only
context. Future hot-path filter/group/sort/windowing changes must route through
the explicit dashboard performance proof policy in the subsystem registry.
+That same dashboard shell boundary also owns empty-state action routing in
+`frontend-modern/src/components/Dashboard/DashboardStateCards.tsx`. When the
+dashboard has no connected infrastructure, the CTA must hand operators
+directly to the canonical infrastructure install route via
+`buildInfrastructureWorkspacePath('install')` instead of bouncing through a
+generic settings landing page.
That workload route now also treats readiness as a route-owned contract instead
of a raw websocket proxy signal: `frontend-modern/src/components/Dashboard/Dashboard.tsx`
and `frontend-modern/src/components/Dashboard/useDashboardState.ts` must keep
diff --git a/frontend-modern/src/components/Dashboard/DashboardStateCards.tsx b/frontend-modern/src/components/Dashboard/DashboardStateCards.tsx
index 2e5185e7b3..3dc22ba7e7 100644
--- a/frontend-modern/src/components/Dashboard/DashboardStateCards.tsx
+++ b/frontend-modern/src/components/Dashboard/DashboardStateCards.tsx
@@ -1,5 +1,6 @@
import { Show } from 'solid-js';
+import { buildInfrastructureWorkspacePath } from '@/components/Settings/infrastructureWorkspaceModel';
import { Card } from '@/components/shared/Card';
import { EmptyState } from '@/components/shared/EmptyState';
@@ -88,7 +89,7 @@ export function DashboardStateCards(props: DashboardStateCardsProps) {
!props.kioskMode() ? (
<button
type="button"
- onClick={() => props.navigate('/settings')}
+ onClick={() => props.navigate(buildInfrastructureWorkspacePath('install'))}
class="inline-flex items-center px-3 py-1.5 border border-transparent text-xs font-medium rounded-md text-white bg-blue-600 hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500"
>
{props.dashboardInfrastructureEmptyState().actionLabel}
diff --git a/frontend-modern/src/components/Dashboard/__tests__/Dashboard.performance.contract.test.tsx b/frontend-modern/src/components/Dashboard/__tests__/Dashboard.performance.contract.test.tsx
index c290b2987f..0a5cfcbde6 100644
--- a/frontend-modern/src/components/Dashboard/__tests__/Dashboard.performance.contract.test.tsx
+++ b/frontend-modern/src/components/Dashboard/__tests__/Dashboard.performance.contract.test.tsx
@@ -870,8 +870,10 @@ describe('Dashboard performance contract', () => {
expect(workloadPanelSource).toContain('GuestDrawer');
expect(workloadPanelSource).toContain('createMemo(() => getCanonicalWorkloadId(guest()))');
expect(workloadPanelSource).not.toContain('TableHead');
+ expect(dashboardStateCardsSource).toContain('buildInfrastructureWorkspacePath');
expect(dashboardStateCardsSource).toContain('dashboardInfrastructureEmptyState().title');
expect(dashboardStateCardsSource).toContain('dashboardDisconnectedState().actionLabel');
+ expect(dashboardStateCardsSource).toContain("buildInfrastructureWorkspacePath('install')");
expect(dashboardStatsStripSource).toContain('totalStats().running');
expect(dashboardStatsStripSource).toContain('totalStats().stopped');
});
diff --git a/frontend-modern/src/components/Dashboard/__tests__/DashboardStateCards.test.tsx b/frontend-modern/src/components/Dashboard/__tests__/DashboardStateCards.test.tsx
new file mode 100644
index 0000000000..0bfca14b92
--- /dev/null
+++ b/frontend-modern/src/components/Dashboard/__tests__/DashboardStateCards.test.tsx
@@ -0,0 +1,48 @@
+import { fireEvent, render, screen } from '@solidjs/testing-library';
+import { describe, expect, it, vi } from 'vitest';
+import { DashboardStateCards } from '../DashboardStateCards';
+
+describe('DashboardStateCards', () => {
+ it('routes the empty-state action directly to infrastructure setup', () => {
+ const navigate = vi.fn();
+
+ render(() => (
+ <DashboardStateCards
+ allGuests={() => []}
+ connected={() => true}
+ dashboardDisconnectedState={() => ({
+ title: 'Connection lost',
+ description: 'Unable to connect to the backend server',
+ actionLabel: 'Reconnect now',
+ })}
+ dashboardGuestsEmptyState={() => ({
+ title: 'No guests found',
+ description: 'No guests match your current filters',
+ })}
+ dashboardInfrastructureEmptyState={() => ({
+ title: 'No infrastructure hosts connected',
+ description:
+ 'To start using Pulse, first add your infrastructure in Settings → Infrastructure → Install on a host. If you want to connect Proxmox directly instead, use Settings → Infrastructure → Direct Proxmox.',
+ actionLabel: 'Open infrastructure setup',
+ })}
+ dashboardLoadingState={() => ({
+ title: 'Loading dashboard data...',
+ description: 'Connecting to monitoring service',
+ })}
+ filteredGuests={() => []}
+ initialDataReceived={() => true}
+ kioskMode={() => false}
+ navigate={navigate}
+ nodeCount={0}
+ reconnect={() => undefined}
+ workloads={{
+ loading: () => false,
+ }}
+ />
+ ));
+
+ fireEvent.click(screen.getByRole('button', { name: 'Open infrastructure setup' }));
+
+ expect(navigate).toHaveBeenCalledWith('/settings/infrastructure/install');
+ });
+});
diff --git a/frontend-modern/src/components/Settings/InfrastructureWorkspace.tsx b/frontend-modern/src/components/Settings/InfrastructureWorkspace.tsx
index 4318680bd7..7601b12a00 100644
--- a/frontend-modern/src/components/Settings/InfrastructureWorkspace.tsx
+++ b/frontend-modern/src/components/Settings/InfrastructureWorkspace.tsx
@@ -30,8 +30,8 @@ export const InfrastructureWorkspace: Component<InfrastructureWorkspaceProps> =
<div class="space-y-2">
<h3 class="text-base font-semibold text-base-content">Infrastructure operations</h3>
<p class="text-sm text-muted">
- Use this workspace to install Pulse on hosts, manage fallback direct Proxmox
- connections, and control which infrastructure surfaces are actively reporting.
+ New to Pulse? Start with Install on a host to add your first monitored system.
+ If you prefer a direct integration instead, use Direct Proxmox.
</p>
<p class="text-sm text-muted">
{SELF_HOSTED_PRO_BILLING_PRESENTATION.infrastructureWorkspaceReferral}
diff --git a/frontend-modern/src/components/Settings/__tests__/InfrastructureWorkspace.test.tsx b/frontend-modern/src/components/Settings/__tests__/InfrastructureWorkspace.test.tsx
index adbf11644b..b0f5ff962b 100644
--- a/frontend-modern/src/components/Settings/__tests__/InfrastructureWorkspace.test.tsx
+++ b/frontend-modern/src/components/Settings/__tests__/InfrastructureWorkspace.test.tsx
@@ -57,6 +57,11 @@ describe('InfrastructureWorkspace', () => {
const tablist = screen.getByRole('tablist', { name: 'Infrastructure workspace' });
expect(tablist).toBeInTheDocument();
expect(screen.getByText('Infrastructure operations')).toBeInTheDocument();
+ expect(
+ screen.getByText(
+ 'New to Pulse? Start with Install on a host to add your first monitored system. If you prefer a direct integration instead, use Direct Proxmox.',
+ ),
+ ).toBeInTheDocument();
expect(
screen.getByText(SELF_HOSTED_PRO_BILLING_PRESENTATION.infrastructureWorkspaceReferral),
).toBeInTheDocument();
diff --git a/frontend-modern/src/utils/__tests__/dashboardEmptyStatePresentation.test.ts b/frontend-modern/src/utils/__tests__/dashboardEmptyStatePresentation.test.ts
index 4ff7caefe8..933a8accc9 100644
--- a/frontend-modern/src/utils/__tests__/dashboardEmptyStatePresentation.test.ts
+++ b/frontend-modern/src/utils/__tests__/dashboardEmptyStatePresentation.test.ts
@@ -14,8 +14,8 @@ describe('dashboardEmptyStatePresentation', () => {
expect(getDashboardInfrastructureEmptyState()).toEqual({
title: 'No infrastructure hosts connected',
description:
- 'Install the Pulse agent to connect a host and unlock v6 infrastructure data, or add a Proxmox connection in Settings → Infrastructure → Proxmox.',
- actionLabel: 'Go to Settings',
+ 'To start using Pulse, first add your infrastructure in Settings → Infrastructure → Install on a host. If you want to connect Proxmox directly instead, use Settings → Infrastructure → Direct Proxmox.',
+ actionLabel: 'Open infrastructure setup',
});
});
diff --git a/frontend-modern/src/utils/dashboardEmptyStatePresentation.ts b/frontend-modern/src/utils/dashboardEmptyStatePresentation.ts
index cdfa0ef13e..493182296b 100644
--- a/frontend-modern/src/utils/dashboardEmptyStatePresentation.ts
+++ b/frontend-modern/src/utils/dashboardEmptyStatePresentation.ts
@@ -2,8 +2,8 @@ export function getDashboardInfrastructureEmptyState() {
return {
title: 'No infrastructure hosts connected',
description:
- 'Install the Pulse agent to connect a host and unlock v6 infrastructure data, or add a Proxmox connection in Settings → Infrastructure → Proxmox.',
- actionLabel: 'Go to Settings',
+ 'To start using Pulse, first add your infrastructure in Settings → Infrastructure → Install on a host. If you want to connect Proxmox directly instead, use Settings → Infrastructure → Direct Proxmox.',
+ actionLabel: 'Open infrastructure setup',
} as const;
}