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 read-only update indicators inert even with a retained callback

pulse-triage[bot]487455045c84
diff --git a/docs/release-control/v6/internal/subsystems/frontend-primitives.md b/docs/release-control/v6/internal/subsystems/frontend-primitives.md
index 166de986ed..06d72e7207 100644
--- a/docs/release-control/v6/internal/subsystems/frontend-primitives.md
+++ b/docs/release-control/v6/internal/subsystems/frontend-primitives.md
@@ -25,7 +25,8 @@
Infrastructure section shortcuts include their visible Add action and group
identity in the accessible name. Update chips include the visible singular or
counted update label, the affected system and Agent Doctor destination, at both
-responsive layouts. Read-only inventories expose no add/update action. Patrol
+responsive layouts. Read-only inventories expose no add/update action, including when a caller
+retains an Agent Doctor callback. Patrol
attention rows derive their name from their visible severity, title, summary,
decision/resource context and observation time rather than a title-only override.
Native buttons, pressed state, focus and touch selection remain unchanged.
diff --git a/frontend-modern/src/components/Settings/InfrastructureSourceManager.tsx b/frontend-modern/src/components/Settings/InfrastructureSourceManager.tsx
index 277a3d31a6..0ff1833d43 100644
--- a/frontend-modern/src/components/Settings/InfrastructureSourceManager.tsx
+++ b/frontend-modern/src/components/Settings/InfrastructureSourceManager.tsx
@@ -1060,7 +1060,7 @@ export const InfrastructureSourceManager: Component<InfrastructureSourceManagerP
</span>
<Show when={row.agentUpdateCount > 0}>
<Show
- when={props.onOpenAgentDoctor}
+ when={!props.readOnly && props.onOpenAgentDoctor}
fallback={
<span class="inline-flex items-center rounded-full bg-amber-100 px-2 py-0.5 text-[11px] font-medium whitespace-nowrap text-amber-800 dark:bg-amber-900/25 dark:text-amber-200">
{row.agentUpdateCount === 1
@@ -1680,7 +1680,7 @@ export const InfrastructureSourceManager: Component<InfrastructureSourceManagerP
</span>
<Show when={row.agentUpdateCount > 0}>
<Show
- when={props.onOpenAgentDoctor}
+ when={!props.readOnly && props.onOpenAgentDoctor}
fallback={
<span class="inline-flex items-center rounded-full bg-amber-100 px-2 py-0.5 text-[11px] font-medium text-amber-800 dark:bg-amber-900/25 dark:text-amber-200">
{row.agentUpdateCount === 1
diff --git a/frontend-modern/src/features/patrol/__tests__/PatrolAttentionWorkbench.test.tsx b/frontend-modern/src/features/patrol/__tests__/PatrolAttentionWorkbench.test.tsx
index 6b60d58022..d13fff5ccc 100644
--- a/frontend-modern/src/features/patrol/__tests__/PatrolAttentionWorkbench.test.tsx
+++ b/frontend-modern/src/features/patrol/__tests__/PatrolAttentionWorkbench.test.tsx
@@ -591,7 +591,7 @@ describe('PatrolAttentionWorkbench', () => {
apiMocks.getDetail.mockResolvedValue(detail(active));
renderWorkbench();
- fireEvent.click(await screen.findByRole('button', { name: /Database VM · Disk pressure/ }));
+ fireEvent.click(await screen.findByRole('button', { name: /Disk pressure on Database VM/ }));
const link = await screen.findByRole('link', { name: 'Open resource' });
await waitFor(() => expect(link).toHaveAttribute('href', '/vmware/overview'));
expect(getResource).toHaveBeenCalledWith('agent-b602', expect.anything());