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.
Go aialertsdashboarddockerdocker-monitoringgohomelabinfrastructure-monitoringkubernetesmonitoringmspproxmoxproxmox-backup-serverproxmox-mail-gatewayproxmox-veself-hostedtruenastypescriptvspherewebhooks
Keep toast feedback readable and in view
pulse-triage[bot]3222920a4d21
diff --git a/frontend-modern/browser-verification.json b/frontend-modern/browser-verification.jsonindex 3584cd846f..afc092b152 100644--- a/frontend-modern/browser-verification.json+++ b/frontend-modern/browser-verification.json@@ -1,42 +1,34 @@{"version": 1,- "base_sha": "8f877bee14263289e6f18b501221f579214b89f9",- "verified_at": "2026-08-31T16:50:09Z",+ "base_sha": "1e8d4ea92b2d721b6148a2f07f876f4264ea70d5",+ "verified_at": "2026-08-31T20:31:17Z","result": "passed",- "changed_paths": [- "frontend-modern/src/components/shared/TagBadges.tsx"- ],+ "changed_paths": ["frontend-modern/src/components/Toast/Toast.tsx"],"content_sha256": {- "frontend-modern/src/components/shared/TagBadges.tsx": "ce3f8112a72a8f1c772f3cf78ebb21e7de0abf858df6b7a922762c49f6933f53"+ "frontend-modern/src/components/Toast/Toast.tsx": "8dbabcd3c92884b8edb9320b465b48d7256bffa7bbb30bee2b275d5b023d1ecb"},- "routes": [- "/proxmox?cols=name:280,tags:160",- "/proxmox"- ],+ "routes": ["/"],"viewports": [{- "width": 1440,- "height": 900+ "width": 1280,+ "height": 800},{- "width": 390,- "height": 844+ "width": 320,+ "height": 720}],"states": [- "unselected workload tag filters rendered as named native buttons",- "focused tag tooltip visible with a visible focus ring and no clipping",- "tag filter selected and then cleared through keyboard activation",- "tooltip dismissed by pointer leave and Escape while focus remained on the tag button",- "multiple adjacent tag targets remained compact at 20px with 4px spacing",- "390px responsive workload layout omitted wide-only tag controls and remained within the viewport"+ "expanded error detail remained fully visible inside a 296px-wide narrow notification card",+ "pointer hover kept a timed informational notification visible past its original deadline",+ "keyboard focus kept a timed error notification visible past its original deadline",+ "desktop success notification settled at the 500px width cap with its right viewport inset"],"interactions": [- "opened the Proxmox workload table with a supported shareable Name-and-Tags column layout",- "hovered and left a tag target to show and dismiss its tooltip",- "focused a tag target, dismissed its tooltip with Escape, and confirmed focus remained",- "pressed Enter twice to select and clear the same tag filter through aria-pressed state",- "inspected tag target geometry and tooltip placement in current-build Chromium",- "inspected the responsive Proxmox workload table at 390px and confirmed the existing wide-only tag omission without clipping"+ "opened expandable error details and visually inspected wrapping at 320px",+ "dismissed an expanded notification with its named close action",+ "hovered a timed notification, moved away, and observed dismissal continue from remaining time",+ "focused a timed notification action, moved focus away, and observed dismissal continue from remaining time",+ "resized current-build Chromium from 320x720 to 1280x800 and measured notification geometry"]}diff --git a/frontend-modern/src/components/Toast/Toast.tsx b/frontend-modern/src/components/Toast/Toast.tsxindex 9c2687eaf1..1bea03a0d7 100644--- a/frontend-modern/src/components/Toast/Toast.tsx+++ b/frontend-modern/src/components/Toast/Toast.tsx@@ -29,6 +29,10 @@ export const Toast: Component<ToastProps> = (props) => {const [show, setShow] = createSignal(true);let autoRemoveTimer: number | undefined;let closeAnimationTimer: number | undefined;+ let autoRemoveStartedAt = 0;+ let autoRemoveRemaining = props.toast.duration || POLLING_INTERVALS.TOAST_DURATION;+ let pointerIsInside = false;+ let focusIsInside = false;const icon = () => {const iconClass = 'h-5 w-5';@@ -47,15 +51,35 @@ export const Toast: Component<ToastProps> = (props) => {const iconTone = () => getSemanticTonePresentation(props.toast.type);+ const clearAutoRemoveTimer = (preserveRemaining: boolean) => {+ if (autoRemoveTimer === undefined) return;+ window.clearTimeout(autoRemoveTimer);+ autoRemoveTimer = undefined;+ if (preserveRemaining) {+ autoRemoveRemaining = Math.max(0, autoRemoveRemaining - (Date.now() - autoRemoveStartedAt));+ }+ };++ const startAutoRemoveTimer = () => {+ if (!show() || autoRemoveTimer !== undefined || autoRemoveRemaining <= 0) return;+ autoRemoveStartedAt = Date.now();+ autoRemoveTimer = window.setTimeout(() => handleClose(), autoRemoveRemaining);+ };++ // Keep timed feedback available while a user is reading or operating it,+ // then continue from the remaining duration instead of restarting the clock.+ const pauseAutoRemove = () => clearAutoRemoveTimer(true);++ const resumeAutoRemove = () => {+ if (!pointerIsInside && !focusIsInside) startAutoRemoveTimer();+ };+const handleClose = () => {if (!show()) {return;}setShow(false);- if (autoRemoveTimer !== undefined) {- window.clearTimeout(autoRemoveTimer);- autoRemoveTimer = undefined;- }+ clearAutoRemoveTimer(false);if (closeAnimationTimer !== undefined) {window.clearTimeout(closeAnimationTimer);}@@ -63,11 +87,7 @@ export const Toast: Component<ToastProps> = (props) => {};onMount(() => {- // Auto-remove after duration.- autoRemoveTimer = window.setTimeout(- () => handleClose(),- props.toast.duration || POLLING_INTERVALS.TOAST_DURATION,- );+ startAutoRemoveTimer();});onCleanup(() => {@@ -86,6 +106,28 @@ export const Toast: Component<ToastProps> = (props) => {role={isAlert() ? 'alert' : 'status'}aria-live={isAlert() ? 'assertive' : 'polite'}aria-atomic="true"+ onPointerEnter={() => {+ pointerIsInside = true;+ pauseAutoRemove();+ }}+ onPointerLeave={() => {+ pointerIsInside = false;+ resumeAutoRemove();+ }}+ onFocusIn={() => {+ focusIsInside = true;+ pauseAutoRemove();+ }}+ onFocusOut={(event) => {+ if (+ event.relatedTarget instanceof Node &&+ event.currentTarget.contains(event.relatedTarget)+ ) {+ return;+ }+ focusIsInside = false;+ resumeAutoRemove();+ }}class={`transform transition-all duration-500 ease-out ${show() ? 'translate-x-0 opacity-100 scale-100' : 'translate-x-full opacity-0 scale-95'} animate-slide-in-card`}@@ -95,8 +137,7 @@ export const Toast: Component<ToastProps> = (props) => {bg-surfaceborder border-borderpx-4 py-3 sm:px-5 sm:py-4 rounded-md shadow-sm- flex items-center gap-3 sm:gap-4- min-w-[300px] max-w-[400px] sm:min-w-[320px] sm:max-w-[500px]+ flex w-full min-w-0 items-start gap-3 sm:gap-4`}><div@@ -104,7 +145,7 @@ export const Toast: Component<ToastProps> = (props) => {>{icon()}</div>- <div class="flex-1">+ <div class="min-w-0 flex-1"><h3 class="text-sm font-medium text-base-content">{props.toast.title}</h3><Show when={props.toast.message}><p class="mt-1 text-xs text-base-content opacity-90">{props.toast.message}</p>@@ -176,7 +217,7 @@ export const ToastContainer: Component = () => {<divrole="region"aria-label="Notifications"- class="fixed bottom-4 right-4 z-[9999] space-y-2 max-w-sm"+ class="fixed inset-x-3 bottom-3 z-[9999] space-y-2 sm:left-auto sm:right-4 sm:bottom-4 sm:w-full sm:max-w-[500px]"><For each={toasts()}>{(toast) => <Toast toast={toast} onRemove={removeToast} />}</For></div>diff --git a/frontend-modern/src/components/Toast/__tests__/Toast.test.tsx b/frontend-modern/src/components/Toast/__tests__/Toast.test.tsxindex f96f11bf8e..047da5a100 100644--- a/frontend-modern/src/components/Toast/__tests__/Toast.test.tsx+++ b/frontend-modern/src/components/Toast/__tests__/Toast.test.tsx@@ -43,6 +43,64 @@ describe('Toast', () => {expect(onRemove).toHaveBeenCalledTimes(1);});+ it('pauses auto-dismiss while the pointer is over the notification', () => {+ vi.useFakeTimers();+ const onRemove = vi.fn();++ render(() => (+ <Toast+ toast={{ id: 'toast-hover', type: 'info', title: 'Hover toast', duration: 1000 }}+ onRemove={onRemove}+ />+ ));++ vi.advanceTimersByTime(600);+ const toast = screen.getByRole('status');+ fireEvent.pointerEnter(toast);+ vi.advanceTimersByTime(5000);+ expect(onRemove).not.toHaveBeenCalled();++ fireEvent.pointerLeave(toast);+ vi.advanceTimersByTime(699);+ expect(onRemove).not.toHaveBeenCalled();+ vi.advanceTimersByTime(1);+ expect(onRemove).toHaveBeenCalledTimes(1);+ });++ it('pauses auto-dismiss while keyboard focus remains in the notification', () => {+ vi.useFakeTimers();+ const onRemove = vi.fn();++ render(() => (+ <Toast+ toast={{ id: 'toast-focus', type: 'error', title: 'Focus toast', duration: 1000 }}+ onRemove={onRemove}+ />+ ));++ vi.advanceTimersByTime(600);+ const dismissButton = screen.getByRole('button', { name: 'Dismiss notification' });+ dismissButton.focus();+ vi.advanceTimersByTime(5000);+ expect(onRemove).not.toHaveBeenCalled();++ dismissButton.blur();+ vi.advanceTimersByTime(700);+ expect(onRemove).toHaveBeenCalledTimes(1);+ });++ it('fits the notification stack and cards inside a 320px viewport', () => {+ render(() => <ToastContainer />);+ window.showToast('info', 'Narrow viewport toast');++ const region = screen.getByRole('region', { name: 'Notifications' });+ expect(region).toHaveClass('inset-x-3', 'sm:left-auto', 'sm:max-w-[500px]');++ const card = screen.getByText('Narrow viewport toast').closest('.flex');+ expect(card).toHaveClass('w-full', 'min-w-0');+ expect(card).not.toHaveClass('min-w-[300px]');+ });+it('renders detail field in a collapsible details element', () => {const onRemove = vi.fn();render(() => (