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(frontend): repair mobile storage drawer states

rcourtman51d49474e461
diff --git a/docs/release-control/v6/internal/subsystems/storage-recovery.md b/docs/release-control/v6/internal/subsystems/storage-recovery.md
index 976e02cac1..f038397bad 100644
--- a/docs/release-control/v6/internal/subsystems/storage-recovery.md
+++ b/docs/release-control/v6/internal/subsystems/storage-recovery.md
@@ -3231,7 +3231,10 @@ chart must route through the shared `HistoryChart` API contract using the disk
resource's canonical history target. Storage must not keep a drawer-local live
metrics collector, agent-id/device fallback stream, or separate real-time
history store once monitoring and `/api/metrics-store/history` already own the
-disk timeline.
+disk timeline. A disk Overview panel must never collapse into unexplained empty
+space: when neither detailed SMART attributes nor a typed collection message
+exists, it renders an explicit unavailable-details state while retaining the
+bounded model, device, host, source, and serial header facts.
Storage pool and disk detail range selectors must mirror the shared history
chart entitlement sequence. They must expose `14d` between `7d` and `30d` and
pass the selected range through to `HistoryChart` unchanged, rather than
@@ -3249,6 +3252,11 @@ the record's `details.zfsPool`, which
`frontend-modern/src/components/Storage/StoragePoolDetail.tsx` renders that
report inside the row expansion so degraded pools name the failing device and
running scrub/resilver without re-promoting per-device noise into table rows.
+The pool detail key/value rows span the full Configuration card below the
+small-screen breakpoint, then return to the two-column desktop grid. Labels
+stay fixed while long node, content, and provider values wrap inside a
+right-aligned value region, so narrow row expansions never concatenate one
+field with the next or overflow the drawer.
The pools table must not double-list Ceph-backed storage. Cluster-internal
pool rows synthesized from Ceph cluster telemetry (`models.StorageFromCephPool`:
type `ceph` homed on the `cluster` pseudo-node) are consolidated into the PVE
diff --git a/frontend-modern/browser-verification.json b/frontend-modern/browser-verification.json
index 7fec7237f9..e480f0f3cb 100644
--- a/frontend-modern/browser-verification.json
+++ b/frontend-modern/browser-verification.json
@@ -1,54 +1,41 @@
{
"version": 1,
- "base_sha": "b3d9984f7e3a92b9b8f13ecd71efcd8a7babc923",
- "verified_at": "2026-08-25T19:34:45Z",
+ "base_sha": "af03903a734f6741360748fbe661cccb45c880ca",
+ "verified_at": "2026-08-25T19:48:51Z",
"result": "passed",
"changed_paths": [
- "frontend-modern/src/components/Settings/AuditLogPanel.tsx",
- "frontend-modern/src/components/Settings/BillingAdminOrganizationsTable.tsx",
- "frontend-modern/src/components/Settings/OrganizationAccessMembersSection.tsx",
- "frontend-modern/src/components/Settings/OrganizationIncomingSharesSection.tsx",
- "frontend-modern/src/components/Settings/OrganizationOutgoingSharesSection.tsx",
- "frontend-modern/src/components/Settings/OrganizationOverviewMembersSection.tsx",
- "frontend-modern/src/components/Settings/ReportingPanel.tsx",
- "frontend-modern/src/components/Settings/RolesPanel.tsx",
- "frontend-modern/src/components/Settings/UserAssignmentsPanel.tsx"
+ "frontend-modern/src/components/Storage/DiskDetail.tsx",
+ "frontend-modern/src/components/Storage/StorageDetailKeyValueRow.tsx"
],
"content_sha256": {
- "frontend-modern/src/components/Settings/AuditLogPanel.tsx": "8dc3a831609e02c69bc497be2c91daea5ced4c59f79cbf554fa3fc41b05b1f65",
- "frontend-modern/src/components/Settings/BillingAdminOrganizationsTable.tsx": "47f94e29a76f9f545029c7ae8f4ee7e7b66e5c5b32fb4458608d24e57bd70b50",
- "frontend-modern/src/components/Settings/OrganizationAccessMembersSection.tsx": "d2dbc0bbd350b7871a6591c146079972be520769987d91dd101c2aa840a552aa",
- "frontend-modern/src/components/Settings/OrganizationIncomingSharesSection.tsx": "f22e4a8c7fc2898561d1039d1c9885e84c2246a788ef086e4868a74e93502b67",
- "frontend-modern/src/components/Settings/OrganizationOutgoingSharesSection.tsx": "a4764da645e44ade198a438091b092c89d2a90021dbea85004ed0e911997f42f",
- "frontend-modern/src/components/Settings/OrganizationOverviewMembersSection.tsx": "8f0a16bdd5523e54520f66fab68fde9571d682ba088cc75e111b6949d4a5c471",
- "frontend-modern/src/components/Settings/ReportingPanel.tsx": "004e78cc0b32263fa05555d43b6fbc3a61b8b0d6aa5dda4b3a16dbee01a42547",
- "frontend-modern/src/components/Settings/RolesPanel.tsx": "293d21bf65340202581b314ae6c402b19a9f29dbcc4dbebc841c20989e205b53",
- "frontend-modern/src/components/Settings/UserAssignmentsPanel.tsx": "4651822c6467732b182eb5a888beeee5b976f1819fab12cc357d69095659ce20"
+ "frontend-modern/src/components/Storage/DiskDetail.tsx": "19487ce71ef93ed4db8c8a36bb76790298408a449313bcb19e7266b1b41e0afc",
+ "frontend-modern/src/components/Storage/StorageDetailKeyValueRow.tsx": "bc045c2a053c395154c9a4d0ff5bac32bd1c129ab579032ce282e81acd623426"
},
"routes": [
- "/settings/security-audit",
- "/settings/support/reporting",
- "/settings/security-roles",
- "/settings/security-users",
- "/settings/organization/access",
- "/settings/organization/sharing",
- "/settings/organization/billing-admin"
+ "/proxmox/storage"
],
"viewports": [
- { "width": 1440, "height": 900 },
- { "width": 390, "height": 844 }
+ {
+ "width": 1280,
+ "height": 800
+ },
+ {
+ "width": 390,
+ "height": 844
+ }
],
"states": [
- "audit log, reporting, roles, and user access paid-feature fallbacks in the local self-hosted session",
- "organization access and billing-admin capability redirects",
- "organization sharing unavailable-capability route state",
- "populated mobile column priorities and row-action names exercised by the targeted component tests"
+ "degraded ZFS pool Overview with long node and content values",
+ "degraded ZFS pool History with collection availability messaging",
+ "critical NVMe disk Overview without detailed SMART attributes",
+ "physical disk History with live I/O and SMART history"
],
"interactions": [
- "navigated every affected settings route at 390px and 1440px",
- "confirmed zero document-level horizontal overflow on every rendered route state",
- "confirmed the phone projections retain primary identity, current state, and actions while desktop detail remains available",
- "confirmed report schedule phone actions collapse behind one 44px accessible actions trigger",
+ "opened the Storage and Physical Disks tabs",
+ "expanded standalone1-service-pool and switched between Overview and History",
+ "expanded the WD Blue disk and switched between Overview and History",
+ "confirmed mobile key-value stacking and wrapping without clipping",
+ "confirmed the two-column desktop configuration grid remains intact",
"restored the browser viewport after responsive verification"
]
}
diff --git a/frontend-modern/src/components/Storage/DiskDetail.tsx b/frontend-modern/src/components/Storage/DiskDetail.tsx
index e829564f5b..707b706567 100644
--- a/frontend-modern/src/components/Storage/DiskDetail.tsx
+++ b/frontend-modern/src/components/Storage/DiskDetail.tsx
@@ -67,6 +67,9 @@ export const DiskDetail: Component<DiskDetailProps> = (props) => {
const hasHistory = createMemo(
() => Boolean(historyResourceId()) || Boolean(metricResourceId() && liveIOAvailable()),
);
+ const hasOverviewDetails = createMemo(
+ () => collectionMessages().length > 0 || attributeCards().length > 0,
+ );
createEffect(() => {
const nextRange = resolveHistoryRangeWithinLimit(
@@ -138,7 +141,7 @@ export const DiskDetail: Component<DiskDetailProps> = (props) => {
</div>
</Show>
- <Show when={diskData().smartAttributes}>
+ <Show when={attributeCards().length > 0}>
<div class={STORAGE_DISK_DETAIL_ATTRIBUTE_GRID_CLASS}>
<For each={attributeCards()}>
{(card) => (
@@ -151,6 +154,12 @@ export const DiskDetail: Component<DiskDetailProps> = (props) => {
</For>
</div>
</Show>
+
+ <Show when={!hasOverviewDetails()}>
+ <div class={STORAGE_DETAIL_EMPTY_CLASS} role="status">
+ Detailed SMART attributes are not available for this disk.
+ </div>
+ </Show>
</div>
<div
diff --git a/frontend-modern/src/components/Storage/StorageDetailKeyValueRow.tsx b/frontend-modern/src/components/Storage/StorageDetailKeyValueRow.tsx
index d45bacbfd5..ee7fcbc82f 100644
--- a/frontend-modern/src/components/Storage/StorageDetailKeyValueRow.tsx
+++ b/frontend-modern/src/components/Storage/StorageDetailKeyValueRow.tsx
@@ -11,9 +11,13 @@ type StorageDetailKeyValueRowProps = {
};
export const StorageDetailKeyValueRow: Component<StorageDetailKeyValueRowProps> = (props) => (
- <div class={STORAGE_DETAIL_KEY_VALUE_ROW_CLASS}>
- <span class={STORAGE_DETAIL_KEY_CLASS}>{props.label}</span>
- <span class={STORAGE_DETAIL_VALUE_CLASS}>{props.value}</span>
+ <div
+ class={`${STORAGE_DETAIL_KEY_VALUE_ROW_CLASS} col-span-2 min-w-0 items-start gap-3 sm:col-span-1`}
+ >
+ <span class={`${STORAGE_DETAIL_KEY_CLASS} shrink-0`}>{props.label}</span>
+ <span class={`${STORAGE_DETAIL_VALUE_CLASS} min-w-0 break-words text-right`}>
+ {props.value}
+ </span>
</div>
);
diff --git a/frontend-modern/src/components/Storage/__tests__/DiskDetail.test.tsx b/frontend-modern/src/components/Storage/__tests__/DiskDetail.test.tsx
index 2e6ec6361d..247e93e55c 100644
--- a/frontend-modern/src/components/Storage/__tests__/DiskDetail.test.tsx
+++ b/frontend-modern/src/components/Storage/__tests__/DiskDetail.test.tsx
@@ -101,4 +101,15 @@ describe('DiskDetail', () => {
expect(screen.queryByText(/:diskread:/)).not.toBeInTheDocument();
expect(screen.queryByText(/:diskwrite:/)).not.toBeInTheDocument();
});
+
+ it('shows an explicit overview fallback when SMART details are unavailable', () => {
+ const disk = buildDisk();
+ delete disk.physicalDisk!.smart;
+
+ render(() => <DiskDetail disk={disk} nodes={[]} />);
+
+ expect(
+ screen.getByText('Detailed SMART attributes are not available for this disk.'),
+ ).toHaveAttribute('role', 'status');
+ });
});
diff --git a/frontend-modern/src/components/Storage/__tests__/StoragePoolDetail.test.tsx b/frontend-modern/src/components/Storage/__tests__/StoragePoolDetail.test.tsx
index b31785ac7b..545637b067 100644
--- a/frontend-modern/src/components/Storage/__tests__/StoragePoolDetail.test.tsx
+++ b/frontend-modern/src/components/Storage/__tests__/StoragePoolDetail.test.tsx
@@ -138,6 +138,30 @@ describe('StoragePoolDetail', () => {
);
});
+ it('stacks key-value rows on narrow drawers and wraps long values', () => {
+ render(() => (
+ <table>
+ <tbody>
+ <StoragePoolDetail
+ record={makeRecord({
+ location: { label: 'London Edge Standalone', scope: 'host' },
+ })}
+ physicalDisks={[]}
+ summarySeriesId="pool:tank"
+ />
+ </tbody>
+ </table>
+ ));
+
+ const nodeLabel = screen.getByText('Node');
+ expect(nodeLabel.parentElement).toHaveClass('col-span-2', 'sm:col-span-1', 'min-w-0', 'gap-3');
+ expect(screen.getByText('London Edge Standalone')).toHaveClass(
+ 'min-w-0',
+ 'break-words',
+ 'text-right',
+ );
+ });
+
it('renders UnRAID topology and linked disk facts plainly', () => {
historyChartSpy.mockClear();