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.

Make discovery actions icon-only utility buttons

rcourtmanecc24f76b2e2
diff --git a/frontend-modern/src/components/Settings/InfrastructureSourceManager.tsx b/frontend-modern/src/components/Settings/InfrastructureSourceManager.tsx
index 2fa2acaf5e..2216a95915 100644
--- a/frontend-modern/src/components/Settings/InfrastructureSourceManager.tsx
+++ b/frontend-modern/src/components/Settings/InfrastructureSourceManager.tsx
@@ -524,7 +524,13 @@ export const InfrastructureSourceManager: Component<InfrastructureSourceManagerP
</button>
</Show>
- <div class="ml-auto flex flex-wrap items-center gap-2">
+ {/* Discovery actions are utility-tier: most users never run them.
+ Render as icon-only ghost buttons so they don't compete with
+ the primary '+ Add infrastructure' CTA for visual weight. The
+ full action description lives in title for hover discovery and
+ in aria-label for screen readers; the scanning state still
+ shows a 'Scanning…' label inline so the user gets feedback. */}
+ <div class="ml-auto flex flex-wrap items-center gap-1">
<Show when={props.onRunDiscovery}>
<button
type="button"
@@ -537,7 +543,9 @@ export const InfrastructureSourceManager: Component<InfrastructureSourceManagerP
<RotateCw
class={`h-4 w-4 ${props.discoveryScanStatus().scanning ? 'animate-spin' : ''}`}
/>
- {props.discoveryScanStatus().scanning ? 'Scanning…' : 'Run discovery'}
+ <Show when={props.discoveryScanStatus().scanning}>
+ <span>Scanning…</span>
+ </Show>
</button>
</Show>
@@ -550,7 +558,6 @@ export const InfrastructureSourceManager: Component<InfrastructureSourceManagerP
title="Configure which networks and ports Pulse scans for platform APIs, and how often."
>
<SlidersHorizontal class="h-4 w-4" />
- Discovery settings
</button>
</Show>
</div>
diff --git a/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.ts b/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.ts
index 2009e24fc5..f640e57357 100644
--- a/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.ts
+++ b/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.ts
@@ -466,8 +466,10 @@ describe('settings architecture guardrails', () => {
expect(infrastructureWorkspaceSource).not.toContain('InfrastructureOperationsController');
expect(infrastructureWorkspaceSource).not.toContain('PlatformConnectionsWorkspace');
expect(infrastructureSourceManagerSource).toContain('Infrastructure systems');
+ // Discovery actions are now icon-only ghost buttons; the human copy
+ // still lives in their title and aria-label attributes.
expect(infrastructureSourceManagerSource).toContain('Run discovery');
- expect(infrastructureSourceManagerSource).toContain('Discovery settings');
+ expect(infrastructureSourceManagerSource).toContain('discovery settings');
expect(monitoredSystemImpactPreviewSource).toContain('getMonitoredSystemImpactPreviewTitle');
expect(monitoredSystemImpactPreviewSource).toContain(
'formatMonitoredSystemImpactPreviewSummary',