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.

Restore change reasons in recent feed

rcourtman2f36d52e5816
diff --git a/frontend-modern/src/components/Infrastructure/ResourceChangeSummary.tsx b/frontend-modern/src/components/Infrastructure/ResourceChangeSummary.tsx
index cd90617919..b8a7d10ab6 100644
--- a/frontend-modern/src/components/Infrastructure/ResourceChangeSummary.tsx
+++ b/frontend-modern/src/components/Infrastructure/ResourceChangeSummary.tsx
@@ -112,6 +112,9 @@ export const ResourceChangeSummary: Component<ResourceChangeSummaryProps> = (pro
<Show when={change.actor}>
<p class={`mt-1 ${itemText()} text-muted`}>By {change.actor}</p>
</Show>
+ <Show when={change.reason}>
+ <p class={`mt-1 ${itemText()} text-muted`}>{change.reason}</p>
+ </Show>
</div>
<div class="flex flex-wrap items-center gap-1.5">
diff --git a/frontend-modern/src/components/Infrastructure/__tests__/ResourceChangeSummary.test.tsx b/frontend-modern/src/components/Infrastructure/__tests__/ResourceChangeSummary.test.tsx
index 055c91d9a1..9d4b8b391d 100644
--- a/frontend-modern/src/components/Infrastructure/__tests__/ResourceChangeSummary.test.tsx
+++ b/frontend-modern/src/components/Infrastructure/__tests__/ResourceChangeSummary.test.tsx
@@ -28,6 +28,7 @@ describe('ResourceChangeSummary', () => {
kind: 'restart',
from: 'running',
to: 'restarting',
+ reason: 'Restart after maintenance',
observedAt: '2026-03-18T12:00:00Z',
sourceType: 'platform_event',
sourceAdapter: 'docker_adapter',
@@ -51,6 +52,7 @@ describe('ResourceChangeSummary', () => {
screen.getByRole('link', { name: 'Open related resource vm-200 in Infrastructure' }),
).toHaveAttribute('href', '/infrastructure?resource=vm-200');
expect(screen.getByText('By agent:ops-helper')).toBeInTheDocument();
+ expect(screen.getByText('Restart after maintenance')).toBeInTheDocument();
expect(screen.queryByRole('link', { name: 'Open resource storage-1 in Infrastructure' })).toBeNull();
});
diff --git a/frontend-modern/src/components/Infrastructure/__tests__/ResourceDetailDrawer.identity-runtime.test.tsx b/frontend-modern/src/components/Infrastructure/__tests__/ResourceDetailDrawer.identity-runtime.test.tsx
index c7950ae692..8cfba79d4d 100644
--- a/frontend-modern/src/components/Infrastructure/__tests__/ResourceDetailDrawer.identity-runtime.test.tsx
+++ b/frontend-modern/src/components/Infrastructure/__tests__/ResourceDetailDrawer.identity-runtime.test.tsx
@@ -354,6 +354,7 @@ describe('ResourceDetailDrawer runtime and identity cards', () => {
expect(getByText('Latest canonical change')).toBeInTheDocument();
const latestChangeItem = getByText('Config update: Updated canonical config').closest('li');
expect(latestChangeItem).not.toBeNull();
+ expect(getByText('Updated canonical config')).toBeInTheDocument();
expect(latestChangeItem).toHaveTextContent(/just now|m ago|h ago|d ago/);
});
});
diff --git a/frontend-modern/src/pages/__tests__/AIIntelligence.test.tsx b/frontend-modern/src/pages/__tests__/AIIntelligence.test.tsx
index 429f876ba2..eda91f320e 100644
--- a/frontend-modern/src/pages/__tests__/AIIntelligence.test.tsx
+++ b/frontend-modern/src/pages/__tests__/AIIntelligence.test.tsx
@@ -589,6 +589,7 @@ describe('AIIntelligence entitlement gating', () => {
expect(screen.getByText(/Health A · 91\/100/)).toBeInTheDocument();
expect(screen.getByText(/Recent changes 1/)).toBeInTheDocument();
expect(screen.getByText('Config update: Updated guest configuration')).toBeInTheDocument();
+ expect(screen.getByText('Updated guest configuration')).toBeInTheDocument();
expect(
screen.getByRole('link', { name: 'Open resource vm-100 in Infrastructure' }),
).toHaveAttribute('href', '/infrastructure?resource=vm-100');