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.

Record mobile alert investigation contract

pulse-triage[bot]99d4c4e8d44b
diff --git a/docs/release-control/v6/internal/subsystems/alerts.md b/docs/release-control/v6/internal/subsystems/alerts.md
index 93188e7c08..e384836570 100644
--- a/docs/release-control/v6/internal/subsystems/alerts.md
+++ b/docs/release-control/v6/internal/subsystems/alerts.md
@@ -17,6 +17,11 @@
Own alert identity, alert specs, evaluation, persistence semantics, and
operator-facing alert routing behavior for live runtime alerts.
+Alert-history investigations on narrow layouts render in a shared drawer
+outside the virtualized history row. The drawer title comes from the canonical
+alert-incident presentation vocabulary. A resource-incidents panel embedded in
+that drawer suppresses its standalone panel title so the investigation has one
+accessible heading, while the desktop inline panel retains its own title.
Alert schedule delivery routing is one persisted, normalized contract.
`schedule.initialNotify` accepts `all`, `email`, `webhook`, or `apprise`;
missing, legacy, and unknown values preserve the backward-compatible `all`
diff --git a/docs/release-control/v6/internal/subsystems/frontend-primitives.md b/docs/release-control/v6/internal/subsystems/frontend-primitives.md
index dc5e7131d0..6a5023fd0e 100644
--- a/docs/release-control/v6/internal/subsystems/frontend-primitives.md
+++ b/docs/release-control/v6/internal/subsystems/frontend-primitives.md
@@ -26,6 +26,11 @@ Feature-owned warning cards, including notification delivery health, compose
the shared `Button` variants for retry, dismiss, refresh, loading, and disabled
states. Feature code owns the action copy and confirmation consequences, but
must not recreate local button chrome for those controls.
+Feature panels embedded in a shared `Dialog` or drawer must not duplicate the
+overlay's accessible heading. A reusable panel may suppress its standalone
+title when the owning overlay supplies the canonical title, while preserving
+that title in inline and desktop contexts; the overlay remains responsible for
+one visible heading, its accessible label, dismissal, and focus return.
The alert schedule's initial-delivery selector composes `SettingsPanel` and
`FormSelect`, uses the shared alert-configuration presentation vocabulary, and
exposes the same email, webhook, Apprise, and all-destination labels used by
diff --git a/frontend-modern/browser-verification.json b/frontend-modern/browser-verification.json
index a16fc60dec..921bd14a78 100644
--- a/frontend-modern/browser-verification.json
+++ b/frontend-modern/browser-verification.json
@@ -1,30 +1,28 @@
{
"version": 1,
- "base_sha": "79206d340a655d376225779d73e0dae426804804",
- "verified_at": "2026-08-28T08:27:50Z",
+ "base_sha": "11cbc303d6f9d4abc5d33708d5ccafc82ccec306",
+ "verified_at": "2026-08-28T08:44:24Z",
"result": "passed",
"changed_paths": [
- "frontend-modern/src/components/shared/historyChartModel.ts",
- "frontend-modern/src/components/shared/useHistoryChartState.ts"
+ "frontend-modern/src/features/alerts/MobileAlertHistoryInvestigationDialog.tsx",
+ "frontend-modern/src/utils/alertIncidentPresentation.ts"
],
"content_sha256": {
- "frontend-modern/src/components/shared/historyChartModel.ts": "d8742753465cb7d976ab118ef45e0a9e4065fa49789d5d5ec022a60a58df38f1",
- "frontend-modern/src/components/shared/useHistoryChartState.ts": "42f076d388da20b95392188e6bb5246f069547ef5aecf8c74c1140cdc2bd74da"
+ "frontend-modern/src/features/alerts/MobileAlertHistoryInvestigationDialog.tsx": "b88c28b9e00787aa17f8e714d0066fa201925ef3a492339c501e86bb74947594",
+ "frontend-modern/src/utils/alertIncidentPresentation.ts": "4055b32de5e6401dcbb3cd79903d4a8afdb31f3e74645877732bcd416ec2ab45"
},
- "routes": ["/proxmox/storage"],
+ "routes": ["/alerts/history"],
"viewports": [
- { "width": 1440, "height": 900 },
- { "width": 390, "height": 844 }
+ { "width": 1280, "height": 720 },
+ { "width": 390, "height": 664 }
],
"states": [
- "Proxmox Physical Disks filtered to nvme2 with Samsung 980 PRO 2TB expanded",
- "disk History tab with live byte-rate, percent, and temperature charts loaded",
- "read chart hovered with point marker and tooltip visible"
+ "desktop VMware alert-history row with its inline resource-incidents panel loaded",
+ "narrow VMware alert-history card with its resource-incidents drawer loaded"
],
"interactions": [
- "selected Physical Disks, searched for nvme2, expanded Samsung 980 PRO 2TB, and opened History",
- "confirmed desktop byte-rate ticks show numeric MB/s scale values aligned with all three gridlines",
- "confirmed 390px byte-rate labels and the final time tick remain fully visible without clipping while cards retain useful plot width",
- "hovered the narrow Read chart and confirmed cursor, data point, and tooltip remain aligned after the measured axis inset"
+ "opened Resource investigation from the VMware alert-history row and card",
+ "confirmed the incident message, Resource Health label, and canonical Resource incidents heading were visible",
+ "confirmed the narrow drawer exposed exactly one matching accessible Resource incidents heading"
]
}
diff --git a/frontend-modern/src/features/alerts/MobileAlertHistoryInvestigationDialog.tsx b/frontend-modern/src/features/alerts/MobileAlertHistoryInvestigationDialog.tsx
index 2847fc236a..f8c8d7a2e5 100644
--- a/frontend-modern/src/features/alerts/MobileAlertHistoryInvestigationDialog.tsx
+++ b/frontend-modern/src/features/alerts/MobileAlertHistoryInvestigationDialog.tsx
@@ -4,10 +4,7 @@ import { Match, Switch } from 'solid-js';
import { IncidentTimelinePanel } from '@/components/Alerts/IncidentTimelinePanel';
import { ActionIconButton } from '@/components/shared/Button';
import { Dialog } from '@/components/shared/Dialog';
-import {
- getAlertIncidentTimelineDialogTitle,
- getAlertResourceIncidentPanelTitle,
-} from '@/utils/alertIncidentPresentation';
+import { getAlertHistoryInvestigationDialogTitle } from '@/utils/alertIncidentPresentation';
import { AlertResourceIncidentsPanel } from './AlertResourceIncidentsPanel';
import type { AlertHistoryState } from './useAlertHistoryState';
@@ -29,10 +26,7 @@ interface MobileAlertHistoryInvestigationDialogProps {
export function MobileAlertHistoryInvestigationDialog(
props: MobileAlertHistoryInvestigationDialogProps,
) {
- const dialogTitle = () =>
- props.investigation.kind === 'timeline'
- ? getAlertIncidentTimelineDialogTitle()
- : getAlertResourceIncidentPanelTitle();
+ const dialogTitle = () => getAlertHistoryInvestigationDialogTitle(props.investigation.kind);
const dialogLabel = () => `${dialogTitle()} for ${props.investigation.alert.resourceName}`;
const rowKey = () => props.investigation.rowKey;
const alert = () => props.investigation.alert;
diff --git a/frontend-modern/src/pages/__tests__/Alerts.helpers.test.ts b/frontend-modern/src/pages/__tests__/Alerts.helpers.test.ts
index 825e1f35fe..c5a5ce866c 100644
--- a/frontend-modern/src/pages/__tests__/Alerts.helpers.test.ts
+++ b/frontend-modern/src/pages/__tests__/Alerts.helpers.test.ts
@@ -20,6 +20,7 @@ import alertHistoryTableAlertRowSource from '@/features/alerts/AlertHistoryTable
import alertHistoryTableGroupRowSource from '@/features/alerts/AlertHistoryTableGroupRow.tsx?raw';
import alertHistoryTableSectionSource from '@/features/alerts/AlertHistoryTableSection.tsx?raw';
import alertResourceIncidentsPanelSource from '@/features/alerts/AlertResourceIncidentsPanel.tsx?raw';
+import mobileAlertHistoryInvestigationDialogSource from '@/features/alerts/MobileAlertHistoryInvestigationDialog.tsx?raw';
import alertAssistantHandoffModelSource from '@/components/Alerts/alertAssistantHandoffModel.ts?raw';
import incidentAssistantHandoffButtonSource from '@/components/Alerts/IncidentAssistantHandoffButton.tsx?raw';
import incidentAssistantHandoffModelSource from '@/components/Alerts/incidentAssistantHandoffModel.ts?raw';
@@ -486,6 +487,12 @@ describe('tab path helpers', () => {
);
expect(alertResourceIncidentsPanelSource).toContain('IncidentEventFilters');
expect(alertResourceIncidentsPanelSource).toContain('IncidentTimelineEventCard');
+ expect(mobileAlertHistoryInvestigationDialogSource).toContain(
+ 'getAlertHistoryInvestigationDialogTitle',
+ );
+ expect(mobileAlertHistoryInvestigationDialogSource).toContain('showTitle={false}');
+ expect(alertResourceIncidentsPanelSource).toContain('showTitle?: boolean');
+ expect(alertResourceIncidentsPanelSource).toContain('props.showTitle ?? true');
// Broad cross-jump chips into Infrastructure or aggregate workspaces were
// retired with the platform-first migration; the incidents panel no
// longer renders surface-link chips.
diff --git a/frontend-modern/src/utils/__tests__/alertIncidentPresentation.test.ts b/frontend-modern/src/utils/__tests__/alertIncidentPresentation.test.ts
index 0d06a9572b..51b6383e91 100644
--- a/frontend-modern/src/utils/__tests__/alertIncidentPresentation.test.ts
+++ b/frontend-modern/src/utils/__tests__/alertIncidentPresentation.test.ts
@@ -13,6 +13,7 @@ import {
getAlertHistoryStatusPresentation,
getAlertIncidentLevelBadgeClass,
getAlertIncidentTimelineDialogTitle,
+ getAlertHistoryInvestigationDialogTitle,
getAlertResourceIncidentAcknowledgedByLabel,
getAlertResourceIncidentCountLabel,
getAlertResourceIncidentEmptyState,
@@ -120,6 +121,8 @@ describe('alertIncidentPresentation', () => {
expect(ALERT_RESOURCE_INCIDENT_SAVING_NOTE_LABEL).toBe('Saving...');
expect(getAlertResourceIncidentPanelTitle()).toBe('Resource incidents');
expect(getAlertIncidentTimelineDialogTitle()).toBe('Incident timeline');
+ expect(getAlertHistoryInvestigationDialogTitle('resource')).toBe('Resource incidents');
+ expect(getAlertHistoryInvestigationDialogTitle('timeline')).toBe('Incident timeline');
expect(getAlertResourceIncidentLoadingState()).toEqual({
text: 'Loading incidents...',
});
diff --git a/frontend-modern/src/utils/alertIncidentPresentation.ts b/frontend-modern/src/utils/alertIncidentPresentation.ts
index 2ad6cd0458..a87402e7b2 100644
--- a/frontend-modern/src/utils/alertIncidentPresentation.ts
+++ b/frontend-modern/src/utils/alertIncidentPresentation.ts
@@ -126,6 +126,12 @@ export function getAlertIncidentTimelineDialogTitle() {
return ALERT_INCIDENT_TIMELINE_DIALOG_TITLE;
}
+export function getAlertHistoryInvestigationDialogTitle(kind: 'timeline' | 'resource') {
+ return kind === 'timeline'
+ ? getAlertIncidentTimelineDialogTitle()
+ : getAlertResourceIncidentPanelTitle();
+}
+
export function getAlertResourceIncidentCountLabel(count: number) {
return `${count} incident${count === 1 ? '' : 's'}`;
}