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 unavailable container update badges readable

rcourtman71359ee58b89
diff --git a/docs/release-control/v6/internal/subsystems/frontend-primitives.md b/docs/release-control/v6/internal/subsystems/frontend-primitives.md
index 935255d69d..7f7d3485e4 100644
--- a/docs/release-control/v6/internal/subsystems/frontend-primitives.md
+++ b/docs/release-control/v6/internal/subsystems/frontend-primitives.md
@@ -2182,8 +2182,8 @@ not a replacement status card, CTA band, or page-local nested card.
1. Add shared primitives in `frontend-modern/src/components/shared/`
Container update availability and executability are separate facts. When
canonical action readiness refuses an update, the shared update control
- renders a passive `Update available` status with `Apply on host` guidance,
- never an Update command button. Its hover and keyboard-focus explanation
+ renders a passive amber `Update available` badge with a lock indicator,
+ never an Update command button. Its hover, tap and keyboard-focus explanation
preserves the server refusal and directs the operator to their container
manager. In-flight actions retain their audited progress/review state.
Filterable table surfaces that separate high-frequency narrowing from
diff --git a/frontend-modern/browser-verification/43f4519a580f1cce.json b/frontend-modern/browser-verification/43f4519a580f1cce.json
new file mode 100644
index 0000000000..70f0252bf7
--- /dev/null
+++ b/frontend-modern/browser-verification/43f4519a580f1cce.json
@@ -0,0 +1,38 @@
+{
+ "version": 1,
+ "base_sha": "197f9bac5e5e782457729a3b33690bccee0d7447",
+ "verified_at": "2026-10-08T10:53:05.973Z",
+ "result": "passed",
+ "changed_paths": [
+ "frontend-modern/src/components/shared/ContainerUpdateBadge.tsx"
+ ],
+ "content_sha256": {
+ "frontend-modern/src/components/shared/ContainerUpdateBadge.tsx": "0d11efe55c62b5dae8b169e6322473fa5b40d9df200c1ae8c7e88a7050e79559"
+ },
+ "routes": [
+ "/docker/overview"
+ ],
+ "viewports": [
+ {
+ "width": 1440,
+ "height": 1000
+ },
+ {
+ "width": 900,
+ "height": 900
+ },
+ {
+ "width": 390,
+ "height": 844
+ }
+ ],
+ "states": [
+ "Four single-line amber unavailable-update badges with lock indicators; current byparr and sonarr; PBS failed check",
+ "Passive update badge in light and dark themes",
+ "Refusal removed on reload restores enabled Update for one host"
+ ],
+ "interactions": [
+ "Hover, keyboard focus, Escape, status click without planning or row expansion, Tab blur at all three widths",
+ "Reload with changed canonical readiness; enabled Update opens review and Escape closes without approval or execution"
+ ]
+}
diff --git a/frontend-modern/src/components/shared/ContainerUpdateBadge.tsx b/frontend-modern/src/components/shared/ContainerUpdateBadge.tsx
index 8e5019054c..84ef026639 100644
--- a/frontend-modern/src/components/shared/ContainerUpdateBadge.tsx
+++ b/frontend-modern/src/components/shared/ContainerUpdateBadge.tsx
@@ -1,4 +1,5 @@
import { Component, Match, Show, Switch } from 'solid-js';
+import LockIcon from 'lucide-solid/icons/lock';
import { showTooltip, hideTooltip } from '@/components/shared/Tooltip';
import { ActionReviewDialog } from '@/features/actions/ActionReviewDialog';
import {
@@ -308,7 +309,7 @@ export const UpdateButton: Component<UpdateButtonProps> = (props) => {
}
>
<span
- class="inline-flex flex-col items-center gap-0.5 text-[11px] text-muted cursor-help focus-visible:outline focus-visible:outline-2 focus-visible:outline-primary"
+ class="inline-flex items-center gap-1 whitespace-nowrap rounded-full bg-amber-100 px-2 py-0.5 text-xs font-medium text-amber-800 dark:bg-amber-900/25 dark:text-amber-200 cursor-help focus-visible:outline focus-visible:outline-2 focus-visible:outline-primary"
tabindex="0"
aria-label={readOnlyUpdateExplanation()}
data-prevent-toggle
@@ -324,11 +325,8 @@ export const UpdateButton: Component<UpdateButtonProps> = (props) => {
if (event.key === 'Escape') hideTooltip();
}}
>
- <span class="inline-flex items-center gap-1 whitespace-nowrap rounded-full bg-surface-alt px-1.5 py-0.5 font-medium">
- <ErrorIndicatorIcon class="h-3 w-3" />
- <span>Update available</span>
- </span>
- <span>Apply on host</span>
+ <LockIcon class="h-3 w-3 shrink-0" aria-hidden="true" />
+ <span>Update available</span>
</span>
</Show>
</Show>
diff --git a/frontend-modern/src/components/shared/__tests__/ContainerUpdateBadge.test.tsx b/frontend-modern/src/components/shared/__tests__/ContainerUpdateBadge.test.tsx
index 0761a16a20..ae2c584814 100644
--- a/frontend-modern/src/components/shared/__tests__/ContainerUpdateBadge.test.tsx
+++ b/frontend-modern/src/components/shared/__tests__/ContainerUpdateBadge.test.tsx
@@ -163,11 +163,11 @@ describe('ContainerUpdateBadge', () => {
expect(screen.queryByRole('button')).not.toBeInTheDocument();
expect(screen.getByText('Update available')).toBeInTheDocument();
- expect(screen.getByText('Apply on host')).toBeInTheDocument();
const status = screen.getByLabelText(/Pulse cannot apply it/);
expect(status.getAttribute('aria-label')).toContain(
'The Pulse agent on this host is still on an older version.',
);
+ expect(status.getAttribute('aria-label')).toContain('container manager on the host');
fireEvent.click(status);
expect(ResourceActionsAPI.planAction).not.toHaveBeenCalled();
});