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.

fix(setup): print a resolvable bootstrap command in the LXC row

rcourtmanf68a040f228b
diff --git a/frontend-modern/browser-verification.json b/frontend-modern/browser-verification.json
index ce494e8e0d..153b80d942 100644
--- a/frontend-modern/browser-verification.json
+++ b/frontend-modern/browser-verification.json
@@ -1,59 +1,35 @@
{
"version": 1,
- "base_sha": "e6e1767b602c8ac7ee7dab3e24ddead6c5ae7afe",
- "verified_at": "2026-08-06T10:57:07Z",
+ "base_sha": "5787cea4eb02ace171363df91d116094899be55f",
+ "verified_at": "2026-08-06T12:10:00Z",
"result": "passed",
"changed_paths": [
- "frontend-modern/src/components/Alerts/InvestigateAlertButton.tsx",
- "frontend-modern/src/components/Settings/APITokenManager.tsx",
- "frontend-modern/src/features/patrol/PatrolAttentionWorkbench.tsx"
+ "frontend-modern/src/components/SetupWizard/steps/WelcomeStep.tsx"
],
"content_sha256": {
- "frontend-modern/src/components/Alerts/InvestigateAlertButton.tsx": "d8f56c6b5efff223133924966ebccc142b383342875ae2c788c22bab2a7b9bd9",
- "frontend-modern/src/components/Settings/APITokenManager.tsx": "2b3d556d02ca367d4e9b76061a3a00fce33fd55308b344b56344864042cff28e",
- "frontend-modern/src/features/patrol/PatrolAttentionWorkbench.tsx": "70c15f235bfa19e087925ebceb82a6d5fd95fde70ef658c3aff69012cac86711"
+ "frontend-modern/src/components/SetupWizard/steps/WelcomeStep.tsx": "bb182a2f8891ae5be677d9ebeed69d55f6528cde35c249e9e42304d6a89ef097"
},
"routes": [
- "/proxmox/overview",
- "/alerts/overview",
- "/alerts/schedule",
- "/actions",
- "/patrol",
- "/settings",
- "/settings/security/overview",
- "/settings/security/api"
+ "/"
],
"viewports": [
{
"width": 1280,
"height": 900
},
- {
- "width": 768,
- "height": 900
- },
{
"width": 390,
"height": 844
- },
- {
- "width": 320,
- "height": 844
}
],
"states": [
- "Patrol active attention queue with the first issue detail open, temporary-suppression form expanded, and older evidence available",
- "Alerts Overview with the first incident timeline expanded and the split alert-actions menu open",
- "Actions Open and History subtabs, including the governed action review dialog",
- "Settings Infrastructure navigation drawer, Security Overview, API token inventory and create form, and edit-scopes dialog",
- "Proxmox, Alerts, Actions, Patrol, and Settings top-level pages used for the final desktop canvas-width comparison"
+ "First-run setup wizard, step 1 Unlock server, served by a Pulse backend built from a clean worktree and started against an empty PULSE_DATA_DIR so /api/security/status genuinely reports hasAuthentication=false; the gate was not stubbed",
+ "All three bootstrap command rows rendered together, direct host install, Docker deployment, and LXC container"
],
"interactions": [
- "Measured every visible Patrol detail action at 390px and 320px; close, lifecycle, suppression, resource, Assistant, and evidence controls are at least 44px on phones with zero page or panel overflow",
- "Confirmed Patrol reverts to the compact 24px close and 30px action controls at 768px, remains contained at 1280px, and restores focus to the exact queue item after closing detail",
- "Expanded an alert timeline, opened the split alert-actions menu, verified the menu remained in-bounds, and measured its phone actions at 44px before confirming the original 26px desktop sizing at 768px",
- "Opened Settings navigation, Security Overview, API Access, the token-create section, and the edit-scopes dialog without saving; confirmed zero overflow and correct focus restoration after Cancel",
- "Verified the API token create header stacks with a full-width 44px Generate action at 320px and returns to the horizontal 40px desktop treatment at 768px",
- "Compared Proxmox, Alerts, Actions, Patrol, and Settings at 1280px; every main canvas rendered from x=29 to x=1240 at 1211px wide with zero document overflow"
+ "Read the rendered LXC row and confirmed it is exactly `pct exec <ctid> -- /usr/local/bin/pulse bootstrap-token`, with no remaining bare-name form anywhere in the DOM",
+ "Clicked the Copy command control for the LXC container row at 1280x900",
+ "Measured the command area at 390x844: all three rows truncate visually, which predates this change because the Docker and sudo rows truncate too, but the command sits in an overflow-x auto container that genuinely scrolls at scrollWidth 492 against clientWidth 238, so the full string stays reachable",
+ "Confirmed the page body does not scroll horizontally at 390px, documentElement scrollWidth 390 equals clientWidth 390"
]
}
diff --git a/frontend-modern/src/components/SetupWizard/__tests__/WelcomeStep.test.tsx b/frontend-modern/src/components/SetupWizard/__tests__/WelcomeStep.test.tsx
index cc8b4e33aa..a7ee1f3e24 100644
--- a/frontend-modern/src/components/SetupWizard/__tests__/WelcomeStep.test.tsx
+++ b/frontend-modern/src/components/SetupWizard/__tests__/WelcomeStep.test.tsx
@@ -116,7 +116,12 @@ describe('WelcomeStep', () => {
expect(
screen.getByText('docker exec <pulse-container> /app/pulse bootstrap-token'),
).toBeInTheDocument();
- expect(screen.getByText('pct exec <ctid> -- pulse bootstrap-token')).toBeInTheDocument();
+ // Absolute path, because pct exec runs with
+ // PATH=/sbin:/bin:/usr/sbin:/usr/bin and cannot resolve /usr/local/bin.
+ expect(
+ screen.getByText('pct exec <ctid> -- /usr/local/bin/pulse bootstrap-token'),
+ ).toBeInTheDocument();
+ expect(screen.queryByText('pct exec <ctid> -- pulse bootstrap-token')).not.toBeInTheDocument();
expect(screen.queryByText(/pulse-main/)).not.toBeInTheDocument();
expect(apiFetchJSONMock).not.toHaveBeenCalled();
});
diff --git a/frontend-modern/src/components/SetupWizard/steps/WelcomeStep.tsx b/frontend-modern/src/components/SetupWizard/steps/WelcomeStep.tsx
index e970851eb2..8d29614ded 100644
--- a/frontend-modern/src/components/SetupWizard/steps/WelcomeStep.tsx
+++ b/frontend-modern/src/components/SetupWizard/steps/WelcomeStep.tsx
@@ -39,7 +39,9 @@ export const WelcomeStep: Component<WelcomeStepProps> = (props) => {
{
id: 'lxc',
label: t('setup.welcome.deploymentLabel.lxc'),
- command: 'pct exec <ctid> -- pulse bootstrap-token',
+ // pct exec runs with PATH=/sbin:/bin:/usr/sbin:/usr/bin, which excludes
+ // /usr/local/bin, so a bare `pulse` here fails with exit 127.
+ command: 'pct exec <ctid> -- /usr/local/bin/pulse bootstrap-token',
},
];