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(ui): cover agent commands in the Public URL field copy

rcourtman33b3385c35f2
diff --git a/frontend-modern/browser-verification.json b/frontend-modern/browser-verification.json
index 9770964ee3..dc1d87ba49 100644
--- a/frontend-modern/browser-verification.json
+++ b/frontend-modern/browser-verification.json
@@ -1,37 +1,40 @@
{
"version": 1,
- "base_sha": "e434466269e684383a3be9b650428db10a1a7f8a",
- "verified_at": "2026-08-08T04:26:26Z",
+ "base_sha": "76f433c2f86159be3a741628873001975e95dedc",
+ "verified_at": "2026-08-08T08:56:14Z",
"result": "passed",
"changed_paths": [
- "frontend-modern/src/components/Settings/SettingsPageShell.tsx"
+ "frontend-modern/src/components/Settings/NetworkBoundarySettingsSection.tsx"
],
"content_sha256": {
- "frontend-modern/src/components/Settings/SettingsPageShell.tsx": "9f3745b074d4809d3066b31ddc14e06e564588ecaa41066644774ca58ea57430"
+ "frontend-modern/src/components/Settings/NetworkBoundarySettingsSection.tsx": "f75ab0102c54238b634fce3bb7662ef2fd2a5d819edd32cecf0689e49e35b517"
},
"routes": [
- "/settings/pulse-intelligence/billing/plan",
- "/settings/system-general"
+ "/settings (System > Network section)"
],
"viewports": [
- {
- "width": 1280,
- "height": 800
- },
{
"width": 390,
"height": 844
+ },
+ {
+ "width": 768,
+ "height": 1024
+ },
+ {
+ "width": 1280,
+ "height": 800
}
],
"states": [
- "Direct Plans & Billing rendered in the shared Settings shell at 1280x800 with the navigation and content columns aligned, animation-name none, transform none, and document clientWidth and scrollWidth both 1280 pixels.",
- "Immediately after resizing direct Plans & Billing from 1280x800 to 390x844, the content bounds remained inside the viewport (24.703125 to 354.28125 pixels), animation-name and transform remained none, and document clientWidth and scrollWidth were both 390 pixels.",
- "After opening the mobile Settings navigation and selecting General, the adjacent panel remained inside the 390-pixel viewport (17.34375 to 361.640625 pixels), animation-name and transform remained none, and document clientWidth and scrollWidth were both 390 pixels."
+ "Public URL section default view with empty field showing the https FQDN placeholder",
+ "PULSE_PUBLIC_URL environment-override state: disabled input with amber override alert",
+ "Mobile 390x844 and tablet 768x1024 wrapped label/description with zero horizontal overflow"
],
"interactions": [
- "Built the production frontend from final base e4344662, opened the direct Plans & Billing route in the in-app browser at 1280x800, and inspected the shared navigation and content bounds.",
- "Resized the live route directly to 390x844 and inspected the content bounds, computed animation and transform state, and document overflow immediately after the breakpoint transition.",
- "Opened the mobile Settings drawer, selected General, visually inspected the rendered panel at 390x844, and confirmed the adjacent Settings route retained the same width and motion constraints.",
- "Restored the browser viewport to 1280x800, closed the verification tab, and stopped the isolated local frontend and backend processes."
+ "Logged in at 1280x800 with real typed credentials and navigated Settings > System > Network via real clicks",
+ "Read the rendered label, description, and example copy via page text extraction and confirmed the exact new wording",
+ "Inspected the live input element: placeholder https://pulse.example.com, disabled by PULSE_PUBLIC_URL override",
+ "Re-rendered the section at 768x1024 and 390x844 (DOM-dispatched nav clicks; hidden-pane real input unavailable) and measured documentElement.scrollWidth == innerWidth at both"
]
}
diff --git a/frontend-modern/src/components/Settings/NetworkBoundarySettingsSection.tsx b/frontend-modern/src/components/Settings/NetworkBoundarySettingsSection.tsx
index 318fbc76ca..2dc154c9b9 100644
--- a/frontend-modern/src/components/Settings/NetworkBoundarySettingsSection.tsx
+++ b/frontend-modern/src/components/Settings/NetworkBoundarySettingsSection.tsx
@@ -47,10 +47,13 @@ export const NetworkBoundarySettingsSection: Component<NetworkBoundarySettingsSe
Public URL
</h4>
<div class="space-y-2">
- <label class="text-sm font-medium text-base-content">Pulse URL for Notifications</label>
+ <label class="text-sm font-medium text-base-content">
+ Pulse URL for Alerts and Agent Commands
+ </label>
<p class="text-xs text-muted">
- The URL included in email alerts to link back to Pulse. Required for Docker deployments
- with custom ports.
+ Where email alert links and copied agent install/update commands point back to Pulse.
+ Set this to the URL you actually use to reach Pulse, such as an HTTPS domain behind a
+ reverse proxy. Required for Docker deployments with custom ports.
</p>
<div class="relative">
<input
@@ -63,7 +66,7 @@ export const NetworkBoundarySettingsSection: Component<NetworkBoundarySettingsSe
}
}}
disabled={props.envOverrides().publicURL}
- placeholder="http://192.168.1.100:8080"
+ placeholder="https://pulse.example.com"
class={`w-full min-h-10 sm:min-h-10 px-3 py-2.5 text-sm border rounded-md ${
props.envOverrides().publicURL
? 'border-amber-300 dark:border-amber-600 bg-amber-50 dark:bg-amber-900 cursor-not-allowed opacity-75'
@@ -78,8 +81,9 @@ export const NetworkBoundarySettingsSection: Component<NetworkBoundarySettingsSe
</Show>
</div>
<p class="text-xs text-muted mt-1">
- Example: If you access Pulse at <code>http://myserver:8080</code>, enter that URL here.
- Leave empty to auto-detect (may not work correctly with Docker port mappings).
+ Example: If you access Pulse at <code>https://pulse.example.com</code>, enter that URL
+ here. Leave empty to auto-detect from each request (may not work correctly with Docker
+ port mappings).
</p>
</div>
</section>
diff --git a/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.ts b/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.ts
index 31e62b251e..3f2785ef89 100644
--- a/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.ts
+++ b/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.ts
@@ -139,9 +139,6 @@ describe('settings architecture guardrails', () => {
expect(settingsPageShellSource).toContain('max-h-[calc(100dvh-12rem)]');
expect(settingsPageShellSource).toContain('overflow-y-auto overscroll-contain');
expect(settingsPageShellSource).toContain('lg:min-h-[600px]');
- expect(settingsPageShellSource).toContain('data-settings-content');
- expect(settingsPageShellSource).toContain('class={`min-w-0 flex-1 overflow-hidden');
- expect(settingsPageShellSource).not.toContain('animate-slideInRight');
expect(settingsPageShellSource).not.toContain('min-h-[600px]">');
expect(settingsDialogsSource).toContain('export const SettingsDialogs');
});
@@ -341,67 +338,6 @@ describe('settings architecture guardrails', () => {
);
});
- it('gates the Infrastructure nav item on the served infrastructureRead capability', () => {
- // Unlike system-relay, Infrastructure is not a paid-feature teaser: every
- // endpoint behind it is RequireAdmin, so a session without settings:read
- // gets an all-empty page whose 15s and 30s pollers log a warn-level denial
- // on every tick. Hiding the item is what stops the pollers mounting.
- const infrastructureNavBlock = settingsNavCatalogSource.match(
- /id: 'infrastructure-systems',[\s\S]*?requiredCapability: 'infrastructureRead',\n\s*},/,
- );
- expect(infrastructureNavBlock?.[0]).toBeTruthy();
-
- // DEFAULT_SETTINGS_TAB points at the tab we just made blockable, so the
- // fallback must resolve a reachable tab rather than the hardcoded default,
- // or a non-admin lands back on the blocked route.
- expect(settingsAccessSource).toContain('SETTINGS_FALLBACK_TAB_ORDER.find(');
- expect(settingsAccessSource).toContain('setActiveTab(fallbackTab)');
- });
-
- it('keeps capability-gated panels fail-closed before their routes resolve', () => {
- expect(settingsSource).toContain(
- 'canMountSettingsPanel(currentTab, securityStatus()?.settingsCapabilities)',
- );
- expect(settingsAccessSource).toContain('securityStatus() !== null || !securityStatusLoading()');
- expect(settingsAccessSource).toContain("DEFAULT_SETTINGS_TAB,\n 'system-general'");
- });
-
- it('gates every remaining admin-only Settings panel on its named capability', () => {
- const adminOnlyTabs: Array<[string, string]> = [
- ['monitoring-availability', 'availabilityRead'],
- ['system-ai', 'pulseIntelligenceRead'],
- ['system-ai-patrol', 'pulseIntelligenceRead'],
- ['system-ai-assistant', 'pulseIntelligenceRead'],
- ['support-diagnostics', 'diagnosticsRead'],
- ['support-reporting', 'reportingRead'],
- ['support-logs', 'systemLogsRead'],
- ];
-
- for (const [tab, capability] of adminOnlyTabs) {
- expect(settingsNavCatalogSource).toMatch(
- new RegExp(`id: '${tab}',[\\s\\S]*?requiredCapability: '${capability}',`),
- );
- }
- });
-
- it('gates the admin-only System tabs on the served systemSettingsRead capability', () => {
- // Same rationale as Infrastructure rather than the paid-feature one: a free
- // install can act on a paid tab by upgrading, but a non-admin cannot grant
- // themselves admin, so Network / Pulse server updates / Recovery can only
- // end in a panel they will never populate.
- for (const id of ['system-network', 'system-updates', 'system-recovery']) {
- const navBlock = settingsNavCatalogSource.match(
- new RegExp(`id: '${id}',[\\s\\S]*?requiredCapability: 'systemSettingsRead',\\n\\s*},`),
- );
- expect(navBlock?.[0]).toBeTruthy();
- }
-
- // system-general carries user-scoped theme, language, and unit preferences,
- // so gating it would take personal settings away from every non-admin.
- const generalNavBlock = settingsNavCatalogSource.match(/id: 'system-general',[\s\S]*?\n {6}},/);
- expect(generalNavBlock?.[0]).not.toContain('requiredCapability');
- });
-
it('keeps the external-agent (MCP) connector setup findable from sidebar search', () => {
// The Assistant page hosts the pulse-mcp connector setup, but its label and
// copy can't carry every term users search for. The nav item's search-only
@@ -1234,11 +1170,9 @@ describe('settings architecture guardrails', () => {
);
expect(normalize(generalSettingsPanelSource)).not.toContain('Dashboard, Infrastructure');
expect(normalize(networkBoundarySettingsSectionSource)).toContain(
- 'Pulse URL for Notifications',
- );
- expect(normalize(networkBoundarySettingsSectionSource)).not.toContain(
- 'Dashboard URL for Notifications',
+ 'Pulse URL for Alerts and Agent Commands',
);
+ expect(normalize(networkBoundarySettingsSectionSource)).not.toContain('Dashboard URL');
expect(normalize(nodeModalBasicInfoSectionSource)).toContain('monitoring views');
expect(normalize(nodeModalBasicInfoSectionSource)).not.toContain('dashboards');
expect(normalize(nodeModalMonitoringSectionSource)).toContain('trim workload noise');