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 fleet refresh failures visible
pulse-triage[bot]5375db524408
diff --git a/frontend-modern/src/features/home/HomePageSurface.tsx b/frontend-modern/src/features/home/HomePageSurface.tsxindex 95655c1f53..0a77d2e6f4 100644--- a/frontend-modern/src/features/home/HomePageSurface.tsx+++ b/frontend-modern/src/features/home/HomePageSurface.tsx@@ -118,9 +118,7 @@ function ResourceTile(props: { tile: HomeResourceTile }) {/><span class="min-w-0 break-words text-sm font-semibold leading-5">{props.tile.name}</span></div>- <Show when={props.tile.verdict !== 'ok'}>- <span class="mt-2 pl-[18px] text-xs font-medium opacity-80">{reason()}</span>- </Show>+ <span class="mt-2 pl-[18px] text-xs font-medium opacity-80">{reason()}</span></A>);}@@ -131,7 +129,8 @@ export default function HomePageSurface() {const posture = createMemo(() => buildHomePosture(resources.resources()));const attentionTiles = createMemo(() => buildHomeAttentionTiles(resources.resources()));const groups = createMemo(() => buildHomeResourceGroups(resources.resources(), expandedGroups()));- const lastUpdated = createMemo(() => {+ const refetch = () => resources.refetch().catch(() => undefined);+ const newestTelemetry = createMemo(() => {const timestamp = resources.resources().reduce((latest, resource) => Math.max(latest, resource.lastSeen || 0), 0);@@ -144,7 +143,7 @@ export default function HomePageSurface() {const postureText = createMemo(() => {const value = posture();if (value.total > 0 && value.ok === value.total) {- return t('home.posture.allHealthy', { total: value.total, updated: lastUpdated() });+ return t('home.posture.allHealthy', { total: value.total, updated: newestTelemetry() });}return t(value.needsAttention === 1 ? 'home.posture.summary.singular' : 'home.posture.summary.plural',@@ -154,7 +153,7 @@ export default function HomePageSurface() {total: value.total,stale: value.stale,unknown: value.unknown,- updated: lastUpdated(),+ updated: newestTelemetry(),},);});@@ -179,7 +178,7 @@ export default function HomePageSurface() {size="sm"aria-label={t('home.refresh.ariaLabel')}isLoading={resources.loading()}- onClick={() => void resources.refetch()}+ onClick={() => void refetch()}><RefreshCwIcon class="mr-2 h-4 w-4" aria-hidden="true" />{t('home.refresh.label')}@@ -204,7 +203,27 @@ export default function HomePageSurface() {><p class="font-semibold">{t('home.error.title')}</p><p class="mt-1 text-sm">{t('home.error.description')}</p>- <Button class="mt-3" size="sm" onClick={() => void resources.refetch()}>+ <Button class="mt-3" size="sm" onClick={() => void refetch()}>+ {t('home.error.retry')}+ </Button>+ </div>+ </Show>++ <Show when={resources.error() && resources.resources().length > 0}>+ <div+ class="flex flex-col gap-3 rounded-lg border border-amber-300 bg-amber-50 p-4 text-base-content sm:flex-row sm:items-center sm:justify-between dark:border-amber-800 dark:bg-amber-950/40"+ role="alert"+ >+ <div>+ <p class="font-semibold">{t('home.error.cached.title')}</p>+ <p class="mt-1 text-sm">{t('home.error.cached.description')}</p>+ </div>+ <Button+ class="shrink-0 self-start sm:self-auto"+ size="sm"+ isLoading={resources.loading()}+ onClick={() => void refetch()}+ >{t('home.error.retry')}</Button></div>diff --git a/frontend-modern/src/features/home/__tests__/HomePageSurface.test.tsx b/frontend-modern/src/features/home/__tests__/HomePageSurface.test.tsxindex 86054b8dc6..3148e627e6 100644--- a/frontend-modern/src/features/home/__tests__/HomePageSurface.test.tsx+++ b/frontend-modern/src/features/home/__tests__/HomePageSurface.test.tsx@@ -1,5 +1,6 @@-import { cleanup, render, screen } from '@solidjs/testing-library';+import { cleanup, fireEvent, render, screen, waitFor } from '@solidjs/testing-library';import { Route, Router } from '@solidjs/router';+import { createSignal } from 'solid-js';import { afterEach, describe, expect, it, vi } from 'vitest';import type { Resource } from '@/types/resource';import HomePageSurface from '../HomePageSurface';@@ -65,6 +66,40 @@ describe('HomePageSurface', () => {expect(screen.getByRole('link', { name: 'Healthy Host: Healthy. Healthy' }),).toBeInTheDocument();+ expect(screen.getByRole('link', { name: 'Healthy Host: Healthy. Healthy' })).toHaveTextContent(+ 'Healthy',+ );+ });++ it('warns when a refresh fails while retaining the last loaded resource state', async () => {+ const [error, setError] = createSignal<unknown>();+ const refetch = vi.fn(async () => {+ const failure = new Error('refresh failed');+ setError(failure);+ throw failure;+ });+ resourcesMock.mockReturnValue({+ resources: () => [resource({})],+ loading: () => false,+ error,+ refetch,+ });+ window.history.replaceState({}, '', '/home');+ render(() => (+ <Router>+ <Route path="/home" component={HomePageSurface} />+ </Router>+ ));++ await fireEvent.click(screen.getByRole('button', { name: 'Refresh fleet health' }));++ await waitFor(() => expect(refetch).toHaveBeenCalledOnce());+ expect(screen.getByRole('alert')).toHaveTextContent('Fleet health could not be refreshed');+ expect(screen.getByRole('alert')).toHaveTextContent(+ 'Showing the last loaded data. Resource statuses may be out of date.',+ );+ expect(screen.getByRole('link', { name: 'Host One: Healthy. Healthy' })).toBeInTheDocument();+ expect(screen.getByRole('button', { name: 'Try again' })).toBeInTheDocument();});it('offers infrastructure onboarding rather than an unexplained blank page', () => {diff --git a/frontend-modern/src/i18n/messages.de.ts b/frontend-modern/src/i18n/messages.de.tsindex dc92524f6c..cb7704c37d 100644--- a/frontend-modern/src/i18n/messages.de.ts+++ b/frontend-modern/src/i18n/messages.de.ts@@ -9,6 +9,9 @@ export const DE_MESSAGE_OVERRIDES = {'home.loading': 'Flottenzustand wird geladen...','home.error.title': 'Flottenzustand ist nicht verfuegbar','home.error.description': 'Pulse konnte den aktuellen Ressourcenzustand nicht laden.',+ 'home.error.cached.title': 'Flottenzustand konnte nicht aktualisiert werden',+ 'home.error.cached.description':+ 'Zuletzt geladene Daten werden angezeigt. Ressourcenstatus koennen veraltet sein.','home.error.retry': 'Erneut versuchen','home.empty.title': 'Erstes ueberwachtes System verbinden','home.empty.description':@@ -16,11 +19,11 @@ export const DE_MESSAGE_OVERRIDES = {'home.empty.action': 'Infrastruktur hinzufuegen','home.updated.unknown': 'unbekannt','home.posture.allHealthy':- 'Alle {total} Ressourcen als fehlerfrei bestaetigt · aktualisiert {updated}',+ 'Alle {total} Ressourcen als fehlerfrei bestaetigt · neueste Telemetrie {updated}','home.posture.summary.singular':- '1 Ressource erfordert Aufmerksamkeit · {healthy} von {total} als fehlerfrei bestaetigt · {stale} veraltet · {unknown} unbekannt · aktualisiert {updated}',+ '1 Ressource erfordert Aufmerksamkeit · {healthy} von {total} als fehlerfrei bestaetigt · {stale} veraltet · {unknown} unbekannt · neueste Telemetrie {updated}','home.posture.summary.plural':- '{attention} Ressourcen erfordern Aufmerksamkeit · {healthy} von {total} als fehlerfrei bestaetigt · {stale} veraltet · {unknown} unbekannt · aktualisiert {updated}',+ '{attention} Ressourcen erfordern Aufmerksamkeit · {healthy} von {total} als fehlerfrei bestaetigt · {stale} veraltet · {unknown} unbekannt · neueste Telemetrie {updated}','home.attention.title': 'Aufmerksamkeit erforderlich','home.attention.description':'Kritische Ressourcen stehen zuerst. Oeffnen Sie eine Ressource zur Untersuchung.',diff --git a/frontend-modern/src/i18n/messages.es.ts b/frontend-modern/src/i18n/messages.es.tsindex 9aaa3664e8..161aa85ef6 100644--- a/frontend-modern/src/i18n/messages.es.ts+++ b/frontend-modern/src/i18n/messages.es.ts@@ -9,6 +9,9 @@ export const ES_MESSAGE_OVERRIDES = {'home.loading': 'Cargando estado de la flota...','home.error.title': 'El estado de la flota no esta disponible','home.error.description': 'Pulse no pudo cargar el estado actual de los recursos.',+ 'home.error.cached.title': 'No se pudo actualizar el estado de la flota',+ 'home.error.cached.description':+ 'Se muestran los ultimos datos cargados. Los estados de los recursos pueden estar desactualizados.','home.error.retry': 'Intentar de nuevo','home.empty.title': 'Conecta tu primer sistema monitorizado','home.empty.description':@@ -16,11 +19,11 @@ export const ES_MESSAGE_OVERRIDES = {'home.empty.action': 'Agregar infraestructura','home.updated.unknown': 'desconocido','home.posture.allHealthy':- 'Los {total} recursos tienen un estado saludable verificado · actualizado {updated}',+ 'Los {total} recursos tienen un estado saludable verificado · telemetria mas reciente {updated}','home.posture.summary.singular':- '1 necesita atencion · {healthy} de {total} con estado saludable verificado · {stale} obsoleto · {unknown} desconocido · actualizado {updated}',+ '1 necesita atencion · {healthy} de {total} con estado saludable verificado · {stale} obsoleto · {unknown} desconocido · telemetria mas reciente {updated}','home.posture.summary.plural':- '{attention} necesitan atencion · {healthy} de {total} con estado saludable verificado · {stale} obsoletos · {unknown} desconocidos · actualizado {updated}',+ '{attention} necesitan atencion · {healthy} de {total} con estado saludable verificado · {stale} obsoletos · {unknown} desconocidos · telemetria mas reciente {updated}','home.attention.title': 'Necesita atencion','home.attention.description':'Los recursos criticos aparecen primero. Abre un recurso para investigarlo.',diff --git a/frontend-modern/src/i18n/messages.ts b/frontend-modern/src/i18n/messages.tsindex 9ac8b479cb..a5d6236dc2 100644--- a/frontend-modern/src/i18n/messages.ts+++ b/frontend-modern/src/i18n/messages.ts@@ -9,17 +9,20 @@ export const EN_MESSAGES = {'home.loading': 'Loading fleet health...','home.error.title': 'Fleet health is unavailable','home.error.description': 'Pulse could not load the current resource state.',+ 'home.error.cached.title': 'Fleet health could not be refreshed',+ 'home.error.cached.description':+ 'Showing the last loaded data. Resource statuses may be out of date.','home.error.retry': 'Try again','home.empty.title': 'Connect your first monitored system','home.empty.description':'Add a platform API, Pulse Agent, or availability check to start verifying resource health.','home.empty.action': 'Add infrastructure','home.updated.unknown': 'unknown',- 'home.posture.allHealthy': 'All {total} resources verified healthy · updated {updated}',+ 'home.posture.allHealthy': 'All {total} resources verified healthy · newest telemetry {updated}','home.posture.summary.singular':- '1 needs attention · {healthy} of {total} verified healthy · {stale} stale · {unknown} unknown · updated {updated}',+ '1 needs attention · {healthy} of {total} verified healthy · {stale} stale · {unknown} unknown · newest telemetry {updated}','home.posture.summary.plural':- '{attention} need attention · {healthy} of {total} verified healthy · {stale} stale · {unknown} unknown · updated {updated}',+ '{attention} need attention · {healthy} of {total} verified healthy · {stale} stale · {unknown} unknown · newest telemetry {updated}','home.attention.title': 'Needs attention','home.attention.description': 'Critical resources appear first. Open a resource to investigate.','home.platform.proxmox': 'Proxmox',diff --git a/tests/integration/tests/83-product-trust-accessibility.spec.ts b/tests/integration/tests/83-product-trust-accessibility.spec.tsindex fdb063bac4..dda86e1e5c 100644--- a/tests/integration/tests/83-product-trust-accessibility.spec.ts+++ b/tests/integration/tests/83-product-trust-accessibility.spec.ts@@ -210,8 +210,16 @@ test("Home status wall is readable and motionless across desktop and phone width),),];- await page.route("**/api/resources?*", (route) =>- route.fulfill({+ let resourceRequestsFail = false;+ await page.route("**/api/resources?*", (route) => {+ if (resourceRequestsFail) {+ return route.fulfill({+ status: 503,+ contentType: "application/json",+ body: JSON.stringify({ error: "resource refresh unavailable" }),+ });+ }+ return route.fulfill({status: 200,contentType: "application/json",body: JSON.stringify({@@ -219,8 +227,8 @@ test("Home status wall is readable and motionless across desktop and phone widthmeta: { totalPages: 1 },aggregations: { total: resources.length },}),- }),- );+ });+ });await page.emulateMedia({ reducedMotion: "reduce" });await page.goto("/home", { waitUntil: "domcontentloaded" });await expect(@@ -232,11 +240,26 @@ test("Home status wall is readable and motionless across desktop and phone widthawait expect(page.getByRole("link", { name: /PVE node down: Critical/ }),).toBeVisible();+ await expect(+ page.getByRole("link", {+ name: "Healthy VM 1: Healthy. Healthy",+ exact: true,+ }),+ ).toContainText("Healthy");const showAll = page.getByRole("button", { name: "Show all (5)" });await expect(showAll).toBeVisible();await showAll.click();await expect(page.getByRole("button", { name: "Show less" })).toBeVisible();+ resourceRequestsFail = true;+ await page.getByRole("button", { name: "Refresh fleet health" }).click();+ await expect(page.getByRole("alert")).toContainText(+ "Fleet health could not be refreshed",+ );+ await expect(+ page.getByRole("link", { name: /PVE node down: Critical/ }),+ ).toBeVisible();+expect(await scanForWcagViolations(page)).toEqual([]);expect(await scanForUnexpectedReducedMotion(page)).toEqual([]);await testInfo.attach("home-desktop", {