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.

Add setup completion polish guardrails

rcourtman9695ae5fc796
diff --git a/frontend-modern/src/components/SetupWizard/__tests__/SetupCompletionPanel.guardrails.test.ts b/frontend-modern/src/components/SetupWizard/__tests__/SetupCompletionPanel.guardrails.test.ts
index 31f1e21602..2a2c328d76 100644
--- a/frontend-modern/src/components/SetupWizard/__tests__/SetupCompletionPanel.guardrails.test.ts
+++ b/frontend-modern/src/components/SetupWizard/__tests__/SetupCompletionPanel.guardrails.test.ts
@@ -37,6 +37,7 @@ describe('SetupCompletionPanel guardrails', () => {
it('describes setup completion through one compact source-choice next-step surface', () => {
expect(setupCompletionPanelSource).toContain('SOURCE_STRATEGY_OPTIONS');
expect(setupCompletionPanelSource).toContain('Source choices');
+ expect(setupCompletionPanelSource).toContain('<ul class="mt-2 space-y-1.5 text-left">');
expect(setupCompletionPanelSource).toContain("title: 'Platform API'");
expect(setupCompletionPanelSource).toContain("title: 'Pulse Agent'");
expect(setupCompletionPanelSource).toContain("title: 'Use both'");
@@ -59,6 +60,16 @@ describe('SetupCompletionPanel guardrails', () => {
expect(setupCompletionPanelSource).not.toContain('ProxmoxIcon');
});
+ it('does not present setup guidance as extra credentials or clickable-looking source cards', () => {
+ expect(setupCompletionPanelSource).not.toMatch(
+ /<code[^>]*>\s*\{ADD_INFRASTRUCTURE_PATH\}\s*<\/code>/,
+ );
+ expect(setupCompletionPanelSource).not.toContain('grid gap-2 sm:grid-cols-3');
+ expect(setupCompletionPanelSource).not.toContain(
+ 'rounded-md border border-border bg-surface px-3 py-2.5',
+ );
+ });
+
it('keeps connected infrastructure classification on the canonical setup model', () => {
expect(setupCompletionPanelSource).toContain('buildSetupCompletionConnectedSystems');
expect(setupCompletionPanelSource).toContain('buildSetupCompletionViewModel');