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.

fix(ui): prioritize alert history context

rcourtman7f4c85d3a760
diff --git a/frontend-modern/browser-verification.json b/frontend-modern/browser-verification.json
index 3a76189c33..d0c2c5d4d0 100644
--- a/frontend-modern/browser-verification.json
+++ b/frontend-modern/browser-verification.json
@@ -1,35 +1,37 @@
{
"version": 1,
- "base_sha": "ba8da5ab2927b327a915b0793800e4ed1c631221",
- "verified_at": "2026-08-04T18:37:57Z",
+ "base_sha": "1e4791df4bc38be488f597b9e1f67922c850207b",
+ "verified_at": "2026-08-04T19:19:20Z",
"result": "passed",
"changed_paths": [
- "frontend-modern/src/components/Settings/APITokenManager.tsx"
+ "frontend-modern/src/features/alerts/AlertHistoryTableAlertRow.tsx",
+ "frontend-modern/src/features/alerts/AlertHistoryTableSection.tsx",
+ "frontend-modern/src/index.css"
],
"content_sha256": {
- "frontend-modern/src/components/Settings/APITokenManager.tsx": "2e11671670ee8cc23c2ada2f10ba1f5195e066f2873cd52520020756bcf2e02b"
+ "frontend-modern/src/features/alerts/AlertHistoryTableAlertRow.tsx": "478c6e7cb0dbcd3df3cbdfa109a8c9bdaac6a74d79dd10f164effeb04b8c8d59",
+ "frontend-modern/src/features/alerts/AlertHistoryTableSection.tsx": "4ee36f4c32c7a91a18c3e1b6dcbc58772a80d32dcd77e947f99b9ea195e0d9d9",
+ "frontend-modern/src/index.css": "dee4c03b06fcb24cd5642516f11e6dc7c4777a3989a1a2ef30a50354e1625091"
},
- "routes": [
- "/settings/security/api"
- ],
+ "routes": ["/alerts/history"],
"viewports": [
{ "width": 375, "height": 812 },
{ "width": 768, "height": 900 },
+ { "width": 1024, "height": 900 },
{ "width": 1280, "height": 900 },
- { "width": 1536, "height": 960 },
- { "width": 1600, "height": 960 }
+ { "width": 1600, "height": 900 }
],
"states": [
- "Rendered five token inventory cards with name, hint, scopes, usage, created time, last-used time, and management actions at phone width",
- "Rendered the single-column token card inventory at tablet width without document or component overflow",
- "Rendered the token inventory as a two-column card grid at 1280px and 1536px without horizontal scrolling",
- "Rendered the complete seven-column token table at 1600px with equal table-shell client and scroll widths",
- "Rendered the Edit API token scopes and Revoke API token confirmation dialogs at phone width"
+ "Rendered grouped mobile alert cards at 375px with the desktop table fully inactive and no document overflow",
+ "Rendered the six core columns Timestamp, Resource, Severity, Message, Status, and Actions at 768px and 1024px",
+ "Rendered Duration as the seventh context column once the table shell reached 800px at the 1280px viewport",
+ "Rendered the complete nine-column inventory, including Type and Node, once the table shell reached 1024px at the 1600px viewport",
+ "Measured equal table-shell client and scroll widths at every desktop and tablet breakpoint"
],
"interactions": [
- "Opened Edit scopes from a specific compact token card, verified the dialog stayed within the 375px viewport, and cancelled without mutation",
- "Opened Revoke from the same compact token card, verified the confirmation stayed within the 375px viewport, and cancelled without revoking the token",
- "Inspected final phone pixels and confirmed every compact-card field and both management actions remain visible without horizontal scrolling",
- "Measured the compact list and wide table at every recorded breakpoint and confirmed each active presentation has equal client and scroll widths"
+ "Opened the Timeline action for the 10:24 PM pve3 row at 1024px and verified the expanded incident row remained within the table shell",
+ "Closed the expanded timeline using its Hide action without changing the responsive column allocation",
+ "Inspected the accessibility snapshot at compact width and confirmed collapsed Type, Duration, and Node columns are omitted rather than announced with hidden content",
+ "Compared the live column widths at 768px, 1024px, 1280px, and 1600px and confirmed every visible track redistributes across the full card"
]
}
diff --git a/frontend-modern/src/features/alerts/AlertHistoryTableAlertRow.tsx b/frontend-modern/src/features/alerts/AlertHistoryTableAlertRow.tsx
index 2eb2972378..b5b94a2704 100644
--- a/frontend-modern/src/features/alerts/AlertHistoryTableAlertRow.tsx
+++ b/frontend-modern/src/features/alerts/AlertHistoryTableAlertRow.tsx
@@ -29,7 +29,7 @@ export function AlertHistoryTableAlertRow(props: AlertHistoryTableAlertRowProps)
class={`border-b border-border hover:bg-surface-hover ${historyStatusPresentation().rowClassName}`}
>
<TableCell
- class={`${getPlatformTableCellClassForKind('text')} alert-history-context-column font-mono whitespace-nowrap text-muted`}
+ class={`${getPlatformTableCellClassForKind('text')} alert-history-timestamp-column font-mono whitespace-nowrap text-muted`}
>
{new Date(props.alert.startTime).toLocaleTimeString('en-US', {
hour: '2-digit',
@@ -44,7 +44,9 @@ export function AlertHistoryTableAlertRow(props: AlertHistoryTableAlertRowProps)
{props.alert.resourceName}
</TableCell>
- <TableCell class={`${getPlatformTableCellClassForKind('badge')} hidden md:table-cell`}>
+ <TableCell
+ class={`${getPlatformTableCellClassForKind('badge')} alert-history-full-detail-column`}
+ >
<span
class={getAlertHistoryResourceTypeBadgeClass(props.alert.resourceType)}
title={props.alert.resourceType}
@@ -79,10 +81,11 @@ export function AlertHistoryTableAlertRow(props: AlertHistoryTableAlertRowProps)
</TableCell>
<TableCell
- class={`${getPlatformTableCellClassForKind('text')} hidden truncate text-muted md:table-cell`}
- title={props.alert.nodeDisplayName || props.alert.node || ''}
+ class={`${getPlatformTableCellClassForKind('text')} alert-history-full-detail-column truncate text-muted`}
>
- {props.alert.nodeDisplayName || props.alert.node || '—'}
+ <span title={props.alert.nodeDisplayName || props.alert.node || ''}>
+ {props.alert.nodeDisplayName || props.alert.node || '—'}
+ </span>
</TableCell>
<TableCell class={getPlatformTableCellClassForKind('badge')}>
diff --git a/frontend-modern/src/features/alerts/AlertHistoryTableSection.tsx b/frontend-modern/src/features/alerts/AlertHistoryTableSection.tsx
index a08f075dc9..4de7d5a1cf 100644
--- a/frontend-modern/src/features/alerts/AlertHistoryTableSection.tsx
+++ b/frontend-modern/src/features/alerts/AlertHistoryTableSection.tsx
@@ -35,11 +35,22 @@ export function AlertHistoryTableSection(props: AlertHistoryTableSectionProps) {
<>
<AlertHistoryMobileList state={props.state} />
<TableCard class="mb-2 hidden md:block">
- <Table class="table-fixed w-full min-w-0 text-[11px] sm:text-sm">
+ <Table class="alert-history-responsive-table table-fixed min-w-0 text-[11px] sm:text-sm">
+ <colgroup>
+ <col class="alert-history-core-track" />
+ <col class="alert-history-core-track" />
+ <col class="alert-history-full-detail-track" />
+ <col class="alert-history-core-track" />
+ <col class="alert-history-core-track" />
+ <col class="alert-history-context-track" />
+ <col class="alert-history-core-track" />
+ <col class="alert-history-full-detail-track" />
+ <col class="alert-history-core-track" />
+ </colgroup>
<TableHeader>
<TableRow class="border-b border-border bg-surface-hover text-muted">
<TableHead
- class={`${getPlatformTableHeadClassForKind('text')} alert-history-context-column text-[10px] font-medium uppercase tracking-wider sm:text-xs`}
+ class={`${getPlatformTableHeadClassForKind('text')} alert-history-timestamp-column text-[10px] font-medium uppercase tracking-wider sm:text-xs`}
>
Timestamp
</TableHead>
@@ -49,7 +60,7 @@ export function AlertHistoryTableSection(props: AlertHistoryTableSectionProps) {
Resource
</TableHead>
<TableHead
- class={`${getPlatformTableHeadClassForKind('badge')} hidden text-[10px] font-medium uppercase tracking-wider sm:text-xs md:table-cell`}
+ class={`${getPlatformTableHeadClassForKind('badge')} alert-history-full-detail-column text-[10px] font-medium uppercase tracking-wider sm:text-xs`}
>
{getTypeColumnLabel()}
</TableHead>
@@ -74,7 +85,7 @@ export function AlertHistoryTableSection(props: AlertHistoryTableSectionProps) {
Status
</TableHead>
<TableHead
- class={`${getPlatformTableHeadClassForKind('text')} hidden text-[10px] font-medium uppercase tracking-wider sm:text-xs md:table-cell`}
+ class={`${getPlatformTableHeadClassForKind('text')} alert-history-full-detail-column text-[10px] font-medium uppercase tracking-wider sm:text-xs`}
>
Node
</TableHead>
diff --git a/frontend-modern/src/index.css b/frontend-modern/src/index.css
index 119407d5f7..272ca1ab07 100644
--- a/frontend-modern/src/index.css
+++ b/frontend-modern/src/index.css
@@ -239,12 +239,31 @@
/*
Alert history has a persistent navigation rail, so its useful table width
- can be much narrower than the viewport. Time and duration add helpful
- context once the table owns 800px, while type and node remain reserved for
- the 1024px full-detail layout handled by the canonical md table priority.
+ can be much narrower than the viewport. Exact time stays with the six core
+ fields whenever the desktop table is active. Duration is secondary context
+ at 800px, while type and node remain reserved for a 1024px table shell.
+ Fixed-layout tables calculate all nine tracks before collapsed columns are
+ removed, so the table width compensates at each density to let the six,
+ seven, or nine visible tracks fill the card without creating a scrollbar.
*/
- .table-scroll-shell :is(th, td).alert-history-context-column {
- display: none;
+ .table-scroll-shell col.alert-history-context-track,
+ .table-scroll-shell col.alert-history-full-detail-track {
+ visibility: collapse;
+ }
+
+ .table-scroll-shell :is(th, td).alert-history-context-column,
+ .table-scroll-shell :is(th, td).alert-history-full-detail-column {
+ visibility: collapse;
+ }
+
+ .table-scroll-shell col.alert-history-core-track,
+ .table-scroll-shell col.alert-history-context-track,
+ .table-scroll-shell col.alert-history-full-detail-track {
+ width: 16.6667%;
+ }
+
+ .table-scroll-shell table.alert-history-responsive-table {
+ width: 150%;
}
/*
@@ -288,8 +307,22 @@
}
@container (min-width: 50rem) {
+ .table-scroll-shell col.alert-history-context-track {
+ visibility: visible;
+ }
+
.table-scroll-shell :is(th, td).alert-history-context-column {
- display: table-cell;
+ visibility: visible;
+ }
+
+ .table-scroll-shell col.alert-history-core-track,
+ .table-scroll-shell col.alert-history-context-track,
+ .table-scroll-shell col.alert-history-full-detail-track {
+ width: 14.2857%;
+ }
+
+ .table-scroll-shell table.alert-history-responsive-table {
+ width: 128.5714%;
}
.table-scroll-shell :is(th, td).agent-doctor-target-column {
@@ -318,6 +351,26 @@
}
}
+ @container (min-width: 64rem) {
+ .table-scroll-shell col.alert-history-full-detail-track {
+ visibility: visible;
+ }
+
+ .table-scroll-shell :is(th, td).alert-history-full-detail-column {
+ visibility: visible;
+ }
+
+ .table-scroll-shell col.alert-history-core-track,
+ .table-scroll-shell col.alert-history-context-track,
+ .table-scroll-shell col.alert-history-full-detail-track {
+ width: 11.1111%;
+ }
+
+ .table-scroll-shell table.alert-history-responsive-table {
+ width: 100%;
+ }
+ }
+
@container (min-width: 80rem) {
.table-scroll-shell :is(th, td).hidden.xl\:table-cell.agent-machine-address-column {
display: table-cell;
diff --git a/frontend-modern/src/pages/__tests__/Alerts.helpers.test.ts b/frontend-modern/src/pages/__tests__/Alerts.helpers.test.ts
index 926faaba17..2c62804cc6 100644
--- a/frontend-modern/src/pages/__tests__/Alerts.helpers.test.ts
+++ b/frontend-modern/src/pages/__tests__/Alerts.helpers.test.ts
@@ -505,6 +505,11 @@ describe('tab path helpers', () => {
expect(alertHistoryTableSectionSource).toContain('AlertHistoryTableAlertRow');
expect(alertHistoryTableSectionSource).toContain('<TableCard');
expect(alertHistoryTableSectionSource).toMatch(/<Table(?:\s|>)/);
+ expect(alertHistoryTableSectionSource).toContain('alert-history-responsive-table');
+ expect(alertHistoryTableSectionSource).toContain('<colgroup>');
+ expect(alertHistoryTableSectionSource).toContain('alert-history-timestamp-column');
+ expect(alertHistoryTableSectionSource).toContain('alert-history-full-detail-column');
+ expect(alertHistoryTableAlertRowSource).toContain('alert-history-timestamp-column');
expect(alertHistoryTableSectionSource).not.toContain(
'overflow-hidden rounded border border-border',
);