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.

Keep recovery guidance compatible with the shipped copy audit

pulse-triage[bot]dc97175e46ad
diff --git a/frontend-modern/browser-tests/build-publication-reconciliation.mjs b/frontend-modern/browser-tests/build-publication-reconciliation.mjs
new file mode 100644
index 0000000000..efd4be3fc4
--- /dev/null
+++ b/frontend-modern/browser-tests/build-publication-reconciliation.mjs
@@ -0,0 +1,57 @@
+import { build } from 'vite';
+import solid from 'vite-plugin-solid';
+import tailwindcss from '@tailwindcss/vite';
+import { stop } from 'esbuild';
+import fs from 'node:fs';
+import path from 'node:path';
+import crypto from 'node:crypto';
+import { fileURLToPath } from 'node:url';
+const root = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..');
+const outDir = path.resolve(root, '../tmp/publication-reconciliation-static');
+const hash = (b) => crypto.createHash('sha256').update(b).digest('hex');
+const binding = { sources: {}, artifacts: {} };
+try {
+ await build({
+ root,
+ base: '/',
+ configFile: false,
+ publicDir: false,
+ plugins: [
+ solid(),
+ tailwindcss(),
+ {
+ name: 'bind-compiled-source',
+ generateBundle() {
+ for (const id of this.getModuleIds()) {
+ const f = id.split('?')[0];
+ if (
+ f.startsWith(root + '/') &&
+ !f.includes('/node_modules/') &&
+ fs.existsSync(f) &&
+ fs.statSync(f).isFile()
+ )
+ binding.sources[path.relative(root, f)] = hash(fs.readFileSync(f));
+ }
+ },
+ },
+ ],
+ resolve: { alias: { '@': path.join(root, 'src') } },
+ build: {
+ target: 'esnext',
+ outDir,
+ emptyOutDir: true,
+ rollupOptions: { input: path.join(root, 'browser-tests/publication-reconciliation.html') },
+ },
+ });
+ const walk = (d) => {
+ for (const f of fs.readdirSync(d)) {
+ const p = path.join(d, f);
+ if (fs.statSync(p).isDirectory()) walk(p);
+ else binding.artifacts[path.relative(outDir, p)] = hash(fs.readFileSync(p));
+ }
+ };
+ walk(outDir);
+ fs.writeFileSync(path.join(outDir, 'binding.json'), JSON.stringify(binding, null, 2) + '\n');
+} finally {
+ stop();
+}
diff --git a/frontend-modern/browser-tests/publication-reconciliation.html b/frontend-modern/browser-tests/publication-reconciliation.html
new file mode 100644
index 0000000000..2a4a031031
--- /dev/null
+++ b/frontend-modern/browser-tests/publication-reconciliation.html
@@ -0,0 +1,12 @@
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="UTF-8" />
+ <meta name="viewport" content="width=device-width,initial-scale=1" />
+ <title>Publication reconciliation fixture</title>
+ </head>
+ <body>
+ <div id="root"></div>
+ <script type="module" src="./publication-reconciliation.tsx"></script>
+ </body>
+</html>
diff --git a/frontend-modern/browser-tests/publication-reconciliation.tsx b/frontend-modern/browser-tests/publication-reconciliation.tsx
new file mode 100644
index 0000000000..a637066953
--- /dev/null
+++ b/frontend-modern/browser-tests/publication-reconciliation.tsx
@@ -0,0 +1,41 @@
+// Real presentation consumers with synthetic, offline observations only.
+import { render } from 'solid-js/web';
+import { Router, Route } from '@solidjs/router';
+import { BackupStatusCell } from '../src/components/Workloads/GuestRowCells';
+import { AddressProbeStep } from '../src/components/Settings/ConnectionEditor/AddressProbeStep';
+import type { ConnectionEditorState } from '../src/components/Settings/ConnectionEditor/useConnectionEditor';
+import '../src/index.css';
+const state = {
+ address: () => 'intended.example.invalid',
+ setAddress: () => {},
+ phase: () => 'error',
+ errorMessage: () => 'HTTP 403 Forbidden',
+ candidates: () => [],
+ probedMs: () => 0,
+} as unknown as ConnectionEditorState;
+function Fixture() {
+ return (
+ <main class="mx-auto max-w-xl space-y-6 p-4 text-base-content">
+ <h1 class="text-xl font-semibold">Backup evidence and connection guidance</h1>
+ <BackupStatusCell
+ lastBackup={Date.parse('2026-10-12T00:30:00Z')}
+ guestName="synthetic-guest"
+ guestReadEvidence={{
+ type: 'qemu',
+ platformType: 'proxmox-pve',
+ diskStatusReason: 'agent-redirect',
+ guestAgentStatus: 'unavailable',
+ }}
+ />
+ <AddressProbeStep state={state} onSelectCandidate={() => {}} />
+ </main>
+ );
+}
+render(
+ () => (
+ <Router>
+ <Route path="/*" component={Fixture} />
+ </Router>
+ ),
+ document.getElementById('root')!,
+);
diff --git a/frontend-modern/src/components/Workloads/GuestRowCells.tsx b/frontend-modern/src/components/Workloads/GuestRowCells.tsx
index 1cebc3ed3f..501f0c225b 100644
--- a/frontend-modern/src/components/Workloads/GuestRowCells.tsx
+++ b/frontend-modern/src/components/Workloads/GuestRowCells.tsx
@@ -416,22 +416,22 @@ function BackupStatusCell(props: {
{completion().dateLabel}
</time>
<div class="text-base-content">{info().ageFormatted}</div>
- <Show when={ageRule()}>
- {(rule) => (
- <p class="text-muted" data-backup-age-rule>
- {rule()}
- </p>
- )}
- </Show>
- <Show when={evidenceProps.ruleLink && ageRule()}>
- <a
- href={ALERT_BACKUP_THRESHOLDS_PATH}
- class={`${EXTERNAL_TEXT_LINK_BASE_CLASS} ${EXTERNAL_TEXT_LINK_VARIANT_CLASSES.compactAction} -mx-1`}
- onClick={() => setDetailsOpen(false)}
- >
- Change when backups count as old
- </a>
- </Show>
+ <Show when={ageRule()}>
+ {(rule) => (
+ <p class="text-muted" data-backup-age-rule>
+ {rule()}
+ </p>
+ )}
+ </Show>
+ <Show when={evidenceProps.ruleLink && ageRule()}>
+ <a
+ href={ALERT_BACKUP_THRESHOLDS_PATH}
+ class={`${EXTERNAL_TEXT_LINK_BASE_CLASS} ${EXTERNAL_TEXT_LINK_VARIANT_CLASSES.compactAction} -mx-1`}
+ onClick={() => setDetailsOpen(false)}
+ >
+ Change when backups count as old
+ </a>
+ </Show>
</div>
)}
</Show>
diff --git a/frontend-modern/src/components/Workloads/__fixtures__/guestDiskDeferrals.ts b/frontend-modern/src/components/Workloads/__fixtures__/guestDiskDeferrals.ts
index cba773105a..87babcbe53 100644
--- a/frontend-modern/src/components/Workloads/__fixtures__/guestDiskDeferrals.ts
+++ b/frontend-modern/src/components/Workloads/__fixtures__/guestDiskDeferrals.ts
@@ -26,7 +26,7 @@ export const guestDiskDeferrals = [
],
[
'agent-redirect',
- 'Guest reads paused because the endpoint returned a redirect. Pulse did not follow it; completion of the original guest request is uncertain. Defer live diagnostics and guest-agent restarts during backups or a guest incident.',
+ 'Guest reads paused because the endpoint returned a redirect. Pulse did not follow it. Completion of the original guest request is uncertain. Defer live diagnostics and guest-agent restarts during backups or a guest incident.',
],
[
'agent-transport-unverified',
diff --git a/frontend-modern/src/utils/connectionErrorPresentation.ts b/frontend-modern/src/utils/connectionErrorPresentation.ts
index 60ebd918f1..5746cb78b6 100644
--- a/frontend-modern/src/utils/connectionErrorPresentation.ts
+++ b/frontend-modern/src/utils/connectionErrorPresentation.ts
@@ -32,7 +32,7 @@ const TLS_HINT =
const AUTH_HINT =
'Check the configured user, realm and token ID, and whether the credential has expired or been revoked. Replace it only if invalidity is confirmed.';
const DENIED_HINT =
- 'Check read permissions for the intended resource and any proxy policy. Keep intentional access limits; do not replace credentials or broaden access just to test.';
+ 'Check read permissions for the intended resource and any proxy policy. Keep intentional access limits. Do not replace credentials or broaden access just to test.';
const HTTP_STATUS_PRESENTATIONS: Record<number, HumanizedConnectionError> = {
401: { headline: 'Authentication failed', hint: AUTH_HINT },
diff --git a/frontend-modern/src/utils/workloadGuestPresentation.ts b/frontend-modern/src/utils/workloadGuestPresentation.ts
index 3ae80689a2..6192d52a8f 100644
--- a/frontend-modern/src/utils/workloadGuestPresentation.ts
+++ b/frontend-modern/src/utils/workloadGuestPresentation.ts
@@ -152,7 +152,7 @@ export function getWorkloadGuestDiskStatusMessage(reason?: string): string {
case 'agent-completion-unverified':
return 'Guest reads paused because completion of the earlier request could not be verified. Pulse will check again after the cooldown. Defer live diagnostics and guest-agent restarts during backups or a guest incident.';
case 'agent-redirect':
- return 'Guest reads paused because the endpoint returned a redirect. Pulse did not follow it; completion of the original guest request is uncertain. Defer live diagnostics and guest-agent restarts during backups or a guest incident.';
+ return 'Guest reads paused because the endpoint returned a redirect. Pulse did not follow it. Completion of the original guest request is uncertain. Defer live diagnostics and guest-agent restarts during backups or a guest incident.';
case 'agent-transport-unverified':
return 'Guest reads deferred because Pulse cannot verify that the configured connection avoids resending guest requests. This guest request was not sent. Defer connection changes and live probes during backups or a guest incident.';
case 'agent-capacity':