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.

Canonicalize object detail history navigation

rcourtmane140ee207130
diff --git a/docs/release-control/v6/internal/status.json b/docs/release-control/v6/internal/status.json
index f86e20d9ba..437920c78f 100644
--- a/docs/release-control/v6/internal/status.json
+++ b/docs/release-control/v6/internal/status.json
@@ -9761,7 +9761,21 @@
}
],
"candidate_lanes": [],
- "work_claims": [],
+ "work_claims": [
+ {
+ "id": "codex-table-sort-indicators-lane-l8",
+ "agent_id": "codex-table-sort-indicators",
+ "summary": "Canonicalize active-only sortable table header indicators across shared platform surfaces",
+ "target_id": "v6-product-lane-expansion",
+ "claimed_at": "2026-08-24T15:51:40Z",
+ "heartbeat_at": "2026-08-24T15:51:40Z",
+ "expires_at": "2026-08-24T17:51:40Z",
+ "work_item": {
+ "kind": "lane",
+ "id": "L8"
+ }
+ }
+ ],
"open_decisions": [],
"source_of_truth_file": "docs/release-control/v6/internal/SOURCE_OF_TRUTH.md",
"resolved_decisions": [
diff --git a/docs/release-control/v6/internal/subsystems/frontend-primitives.md b/docs/release-control/v6/internal/subsystems/frontend-primitives.md
index 65a305d689..312995727d 100644
--- a/docs/release-control/v6/internal/subsystems/frontend-primitives.md
+++ b/docs/release-control/v6/internal/subsystems/frontend-primitives.md
@@ -96,6 +96,16 @@ populate the legend while history is still being collected, but it must never
be expanded into synthetic timestamps or chart geometry. An empty stored
series renders the shared collecting-history state; zero remains a valid
reported reading, while an absent metric remains unavailable.
+Object-detail navigation follows that same canonical split across platform and
+feature owners. `Overview` is the stable landing tab for current operational
+facts, while stored metric charts appear only after selecting an evidence-gated
+`History` tab rendered through `frontend-modern/src/components/shared/Subtabs.tsx`.
+The active History range belongs in the shared subtab row's trailing slot, and
+uses the shared filter-select presentation; storage pools, physical disks,
+guests, nodes, and unified resources must not render historical charts inline
+on Overview or reintroduce object-local tab or range-selector chrome. The
+metrics and chart groups may remain object-specific without changing this
+navigation contract.
Presentation helpers that mirror a server-side classification must name the
diff --git a/docs/release-control/v6/internal/subsystems/storage-recovery.md b/docs/release-control/v6/internal/subsystems/storage-recovery.md
index 00e214334b..e058cf9a23 100644
--- a/docs/release-control/v6/internal/subsystems/storage-recovery.md
+++ b/docs/release-control/v6/internal/subsystems/storage-recovery.md
@@ -2100,6 +2100,14 @@ files.
storage detail charts must all address history through the canonical
unified-resource metrics-target IDs, and the storage page must reuse the
shared sticky summary primitive instead of a storage-local scroll wrapper.
+ Expanded pool and physical-disk details must also follow the canonical
+ object-detail information architecture: current configuration, topology,
+ health, and SMART facts land on `Overview`; stored capacity and I/O charts
+ land behind the shared `Subtabs` `History` tab; and the active range uses
+ the shared filter-select presentation in that tab row. Storage must not
+ place historical charts directly into the default detail view or restore
+ the retired storage-local range-selector classes and inline SVG select
+ decoration.
Storage-page pool growth readouts belong to that same contract: the table
may derive per-pool used-capacity deltas from the shared
`/api/storage-charts` summary payload, but it must not fan out row-local
diff --git a/docs/release-control/v6/internal/subsystems/unified-resources.md b/docs/release-control/v6/internal/subsystems/unified-resources.md
index fb506a4d0f..ce6fcfb222 100644
--- a/docs/release-control/v6/internal/subsystems/unified-resources.md
+++ b/docs/release-control/v6/internal/subsystems/unified-resources.md
@@ -3111,6 +3111,13 @@ canonical header badges while only surfacing a `Sources` row when source
health is degraded or unhealthy,
and it no longer repeats that same provenance as a separate `Mode` row because
the drawer header badges already own canonical source display,
+and that composition preserves the frontend-primitives-owned object-detail
+navigation contract without resource-local spacing variants: `Overview`
+remains the landing tab, stored metrics remain behind the evidence-gated
+`History` tab, and both use the default shared `Subtabs` shell and trailing
+History range position. Unified-resource drawers may add evidence-gated
+resource-specific sections, but they must not create a second tab density or
+place stored metric charts inline on Overview,
and the drawer header no longer carries the technical primary identity line;
that canonical identifier now lives in the `Identity` card as `Primary ID`,
and the drawer header interaction is a frontend-primitives dependency:
diff --git a/frontend-modern/browser-verification.json b/frontend-modern/browser-verification.json
index 9a3d2ffa38..aec12c73f9 100644
--- a/frontend-modern/browser-verification.json
+++ b/frontend-modern/browser-verification.json
@@ -1,34 +1,23 @@
{
"version": 1,
- "base_sha": "b67ac28f25434cb9e6e393a0787e72d915ba479a",
- "verified_at": "2026-08-24T15:34:13Z",
+ "base_sha": "32b721503cc1bf75592baed55599c98e1c2aa896",
+ "verified_at": "2026-08-24T15:58:26Z",
"result": "passed",
"changed_paths": [
- "frontend-modern/src/components/Infrastructure/UnifiedResourceHostTableCard.tsx",
- "frontend-modern/src/components/Infrastructure/UnifiedResourcePBSTableSection.tsx",
- "frontend-modern/src/components/Infrastructure/UnifiedResourcePMGTableSection.tsx",
- "frontend-modern/src/components/Storage/DiskList.tsx",
- "frontend-modern/src/components/Storage/StorageGroupRow.tsx",
- "frontend-modern/src/components/Storage/StoragePoolRow.tsx",
- "frontend-modern/src/components/shared/SummaryRowActionButton.tsx"
+ "frontend-modern/src/components/Infrastructure/ResourceDetailDrawer.tsx",
+ "frontend-modern/src/components/Storage/DiskDetail.tsx",
+ "frontend-modern/src/components/Storage/StoragePoolDetail.tsx",
+ "frontend-modern/src/features/storageBackups/detailPresentation.ts"
],
"content_sha256": {
- "frontend-modern/src/components/Infrastructure/UnifiedResourceHostTableCard.tsx": "78588725f625e58325c2ddca6133d3e0b0d46a18f9d19e8946f7c0181c094442",
- "frontend-modern/src/components/Infrastructure/UnifiedResourcePBSTableSection.tsx": "15031095e5910c02bd47038213974de4b3d2aef53b1ff6cd030fee381a98fe91",
- "frontend-modern/src/components/Infrastructure/UnifiedResourcePMGTableSection.tsx": "d9a5a6f209b97a02dfa40100f783d91e8202b0efc33af73415e05689251f6ec6",
- "frontend-modern/src/components/Storage/DiskList.tsx": "5d600b9bfa8e34ee9ed13037cdbe87b931c10e6378440d41bf1d1ba68cab9526",
- "frontend-modern/src/components/Storage/StorageGroupRow.tsx": "5ce92da0c45b4146c51eb52786adb245978b5f6b4adc95b40d2294d949720e99",
- "frontend-modern/src/components/Storage/StoragePoolRow.tsx": "f389fef94c53a74cf69d6f165ae01f71f02a1e0143dc68c1318033aebe0001a4",
- "frontend-modern/src/components/shared/SummaryRowActionButton.tsx": "dbd6a62b6dbf11cabfaf01bc7240ab3ba3a8230cef1ee20bc2f0bd8c19e4bb14"
+ "frontend-modern/src/components/Infrastructure/ResourceDetailDrawer.tsx": "5eb9c0f3293e10771e1c68c91e61030046c1999a12d007ffcd45a1e345306fc2",
+ "frontend-modern/src/components/Storage/DiskDetail.tsx": "f9c0574b3437b4dfe81585aecdbfed441dbeef32f066022a0fc3dd5aa5719991",
+ "frontend-modern/src/components/Storage/StoragePoolDetail.tsx": "f678e7339627759d82cd78e50c3afad8857203ff5f8f196c4676277c5b613d29",
+ "frontend-modern/src/features/storageBackups/detailPresentation.ts": "5a179856f2f0fe148034abc8c3360b598eab89084871a923e8d8918754dc3187"
},
"routes": [
"/proxmox/overview",
- "/proxmox/storage",
- "/docker/overview",
- "/kubernetes/overview",
- "/truenas/overview",
- "/vmware/health",
- "/standalone/machines"
+ "/proxmox/storage"
],
"viewports": [
{
@@ -41,15 +30,16 @@
}
],
"states": [
- "collapsed storage-pool and physical-disk rows at narrow width without visible disclosure chevrons",
- "expanded and collapsed storage detail rows activated from the whole summary row",
- "provider overview rows across Proxmox, Docker, Kubernetes, TrueNAS, vSphere, and standalone machines with accessible but visually suppressed mobile disclosure buttons",
- "desktop storage rows retaining their explicit disclosure affordance"
+ "Proxmox node detail opening on Overview with History inactive at 1280px",
+ "storage-pool detail opening on Overview with configuration and ZFS facts visible at 390px",
+ "storage-pool History selected with its capacity chart and trailing range control at desktop and 390px",
+ "physical-disk detail opening on Overview and switching to History with live and stored I/O charts at 390px"
],
"interactions": [
- "opened and closed a Proxmox storage-pool detail from the whole row at 390px",
- "switched from Storage to Physical Disks and confirmed its whole-row disclosure buttons are visually clipped at 390px",
- "audited seven loaded platform routes and found zero visible Expand or Collapse disclosure buttons at 390px while retaining 232 accessible controls",
- "inspected the Proxmox storage table at 1280px and confirmed desktop disclosure layout and row density remain intact"
+ "opened a storage pool and confirmed historical content and range controls are absent from the default Overview tab",
+ "selected storage-pool History and confirmed the range control and Capacity Trend appear together without clipping",
+ "switched to Physical Disks, opened a disk, and confirmed the same Overview-to-History interaction and trailing range placement",
+ "compared the storage detail tab framing with an expanded Proxmox node drawer at 1280px",
+ "reset the temporary responsive viewport override after completing the phone-width checks"
]
}
diff --git a/frontend-modern/src/components/Infrastructure/ResourceDetailDrawer.tsx b/frontend-modern/src/components/Infrastructure/ResourceDetailDrawer.tsx
index 63356cab97..e85259a965 100644
--- a/frontend-modern/src/components/Infrastructure/ResourceDetailDrawer.tsx
+++ b/frontend-modern/src/components/Infrastructure/ResourceDetailDrawer.tsx
@@ -150,8 +150,6 @@ const DrawerContent: Component<ResourceDetailDrawerProps> = (props) => {
<Subtabs
class="mb-1"
- listClass="!gap-2 sm:!gap-6"
- tabClass="!px-0.5 !text-xs sm:!px-1 sm:!text-sm"
ariaLabel="Resource detail sections"
value={drawer.activeTab()}
onChange={(value) =>
diff --git a/frontend-modern/src/components/Storage/DiskDetail.tsx b/frontend-modern/src/components/Storage/DiskDetail.tsx
index 2f9e3c3171..e829564f5b 100644
--- a/frontend-modern/src/components/Storage/DiskDetail.tsx
+++ b/frontend-modern/src/components/Storage/DiskDetail.tsx
@@ -1,7 +1,9 @@
-import { Component, For, Show, createEffect, createMemo } from 'solid-js';
+import { Component, For, Show, createEffect, createMemo, createSignal } from 'solid-js';
import type { Resource } from '@/types/resource';
import { FormSelect } from '@/components/shared/FormSelect';
+import { filterSelectClass } from '@/components/shared/FilterToolbar';
import { HistoryChart } from '@/components/shared/HistoryChart';
+import { Subtabs, type SubtabOption } from '@/components/shared/Subtabs';
import type { HistoryTimeRange } from '@/api/charts';
import { maxHistoryDays } from '@/stores/license';
import {
@@ -21,8 +23,6 @@ import {
STORAGE_DETAIL_EMPTY_CLASS,
STORAGE_DISK_DETAIL_ATTRIBUTE_GRID_CLASS,
STORAGE_DISK_DETAIL_HEADER_CLASS,
- STORAGE_DISK_DETAIL_HISTORY_CONTROL_CLASS,
- STORAGE_DISK_DETAIL_HISTORY_SELECT_WRAP_CLASS,
STORAGE_DISK_DETAIL_HISTORY_GRID_CLASS,
STORAGE_DISK_DETAIL_LIVE_GRID_CLASS,
STORAGE_DISK_DETAIL_MODEL_CLASS,
@@ -31,9 +31,6 @@ import {
STORAGE_DISK_DETAIL_SECTION_CLASS,
STORAGE_DISK_DETAIL_SECTION_HEADING_CLASS,
STORAGE_DISK_DETAIL_SERIAL_CLASS,
- STORAGE_DETAIL_HEADER_SELECT_CLASS,
- STORAGE_DETAIL_HEADER_SELECT_STYLE,
- STORAGE_DETAIL_INLINE_LABEL_CLASS,
STORAGE_DETAIL_META_ROW_CLASS,
STORAGE_DETAIL_MONO_CHIP_CLASS,
STORAGE_DETAIL_SECTION_TITLE_CLASS,
@@ -47,7 +44,10 @@ interface DiskDetailProps {
nodes: Resource[];
}
+type DiskDetailTab = 'overview' | 'history';
+
export const DiskDetail: Component<DiskDetailProps> = (props) => {
+ const [activeTab, setActiveTab] = createSignal<DiskDetailTab>('overview');
const {
chartRange,
setChartRange,
@@ -64,6 +64,9 @@ export const DiskDetail: Component<DiskDetailProps> = (props) => {
const rangeOptions = createMemo(() =>
getUnlockedHistoryRangeOptions(DISK_DETAIL_HISTORY_RANGE_OPTIONS, maxHistoryDays()),
);
+ const hasHistory = createMemo(
+ () => Boolean(historyResourceId()) || Boolean(metricResourceId() && liveIOAvailable()),
+ );
createEffect(() => {
const nextRange = resolveHistoryRangeWithinLimit(
@@ -76,10 +79,14 @@ export const DiskDetail: Component<DiskDetailProps> = (props) => {
}
});
+ createEffect(() => {
+ if (activeTab() === 'history' && !hasHistory()) {
+ setActiveTab('overview');
+ }
+ });
+
return (
<div class={STORAGE_DISK_DETAIL_ROOT_CLASS}>
- {/* Disk info */}
- {/* Header: Info & Selector */}
<div class={STORAGE_DISK_DETAIL_HEADER_CLASS}>
<div class={STORAGE_DETAIL_META_ROW_CLASS}>
<span class={STORAGE_DISK_DETAIL_MODEL_CLASS}>{diskData().model || 'Unknown Disk'}</span>
@@ -95,119 +102,131 @@ export const DiskDetail: Component<DiskDetailProps> = (props) => {
<span class={STORAGE_DISK_DETAIL_SERIAL_CLASS}>S/N: {diskData().serial}</span>
</Show>
</div>
+ </div>
- {/* Global Time Range Selector */}
- <div class={STORAGE_DISK_DETAIL_HISTORY_CONTROL_CLASS}>
- <span class={STORAGE_DETAIL_INLINE_LABEL_CLASS}>History:</span>
- <div class={STORAGE_DISK_DETAIL_HISTORY_SELECT_WRAP_CLASS}>
+ <Subtabs
+ class="mb-1"
+ ariaLabel="Physical disk detail sections"
+ value={activeTab()}
+ onChange={(value) => setActiveTab(value as DiskDetailTab)}
+ tabs={[
+ { value: 'overview', label: 'Overview' },
+ ...(hasHistory() ? [{ value: 'history', label: 'History' } satisfies SubtabOption] : []),
+ ]}
+ trailing={
+ <Show when={activeTab() === 'history'}>
<FormSelect
label="Disk history range"
labelClass="sr-only"
fieldBaseClass="contents"
value={chartRange()}
- onChange={(e) => setChartRange(e.currentTarget.value as HistoryTimeRange)}
- selectBaseClass={STORAGE_DETAIL_HEADER_SELECT_CLASS}
- style={STORAGE_DETAIL_HEADER_SELECT_STYLE}
+ onChange={(event) => setChartRange(event.currentTarget.value as HistoryTimeRange)}
+ selectBaseClass={`${filterSelectClass} h-7 min-h-11 py-0 text-[11px] sm:min-h-0`}
>
<For each={rangeOptions()}>
{(option) => <option value={option.value}>{option.label}</option>}
</For>
</FormSelect>
- </div>
- </div>
- </div>
-
- <Show when={collectionMessages().length > 0}>
- <div class={STORAGE_DETAIL_EMPTY_CLASS} role="status">
- <For each={collectionMessages()}>{(message) => <p>{message}</p>}</For>
- </div>
- </Show>
+ </Show>
+ }
+ />
- {/* SMART attribute cards */}
- <Show when={diskData().smartAttributes}>
- <div class={STORAGE_DISK_DETAIL_ATTRIBUTE_GRID_CLASS}>
- <For each={attributeCards()}>
- {(card) => (
- <StorageDetailMetricCard
- label={card.label}
- value={card.value}
- valueClass={getDiskAttributeValueTextClass(card.ok)}
- />
- )}
- </For>
- </div>
- </Show>
+ <div class={activeTab() === 'overview' ? 'space-y-3' : 'hidden'}>
+ <Show when={collectionMessages().length > 0}>
+ <div class={STORAGE_DETAIL_EMPTY_CLASS} role="status">
+ <For each={collectionMessages()}>{(message) => <p>{message}</p>}</For>
+ </div>
+ </Show>
- {/* Live Performance Sparklines */}
- <Show when={metricResourceId() && liveIOAvailable()}>
- <div class={STORAGE_DISK_DETAIL_SECTION_CLASS}>
- <h4
- class={`${STORAGE_DETAIL_SECTION_TITLE_CLASS} ${STORAGE_DISK_DETAIL_SECTION_HEADING_CLASS}`}
- >
- Live I/O (30m)
- <span class={STORAGE_DETAIL_BADGE_CLASS}>{getDiskDetailLiveBadgeLabel()}</span>
- </h4>
- <div class={STORAGE_DISK_DETAIL_LIVE_GRID_CLASS}>
- <For each={DISK_DETAIL_LIVE_CHARTS}>
- {(chart) => (
- <div class={STORAGE_DETAIL_CARD_CLASS}>
- <HistoryChart
- resourceType="disk"
- resourceId={metricResourceId()!}
- metric={
- chart.series === 'read'
- ? 'diskread'
- : chart.series === 'write'
- ? 'diskwrite'
- : 'disk'
- }
- label={chart.label}
- unit={chart.unit}
- range="30m"
- hideSelector
- hideLock
- height={120}
- compact={true}
- />
- </div>
+ <Show when={diskData().smartAttributes}>
+ <div class={STORAGE_DISK_DETAIL_ATTRIBUTE_GRID_CLASS}>
+ <For each={attributeCards()}>
+ {(card) => (
+ <StorageDetailMetricCard
+ label={card.label}
+ value={card.value}
+ valueClass={getDiskAttributeValueTextClass(card.ok)}
+ />
)}
</For>
</div>
- </div>
- </Show>
+ </Show>
+ </div>
- {/* Historical charts */}
- <Show
- when={historyResourceId()}
- fallback={
- <div class={STORAGE_DETAIL_EMPTY_CLASS}>{getDiskDetailHistoryFallbackMessage()}</div>
- }
+ <div
+ class={activeTab() === 'history' ? 'space-y-3' : 'hidden'}
+ style={{ 'overflow-anchor': 'none' }}
>
- <div class={STORAGE_DISK_DETAIL_SECTION_CLASS}>
- {/* Charts grid */}
- <div class={STORAGE_DISK_DETAIL_HISTORY_GRID_CLASS}>
- <For each={historyCharts()}>
- {(chart) => (
- <div class={STORAGE_DETAIL_CARD_CLASS}>
- <HistoryChart
- resourceType="disk"
- resourceId={historyResourceId()!}
- metric={chart.metric}
- label={chart.label}
- unit={chart.unit}
- height={120}
- color={chart.color}
- range={chartRange()}
- hideSelector={true}
- compact={true}
- hideLock={true}
- />
- </div>
- )}
- </For>
- </div>
- </div>
- </Show>
+ <Show when={activeTab() === 'history'}>
+ <Show when={metricResourceId() && liveIOAvailable()}>
+ <div class={STORAGE_DISK_DETAIL_SECTION_CLASS}>
+ <h4
+ class={`${STORAGE_DETAIL_SECTION_TITLE_CLASS} ${STORAGE_DISK_DETAIL_SECTION_HEADING_CLASS}`}
+ >
+ Live I/O (30m)
+ <span class={STORAGE_DETAIL_BADGE_CLASS}>{getDiskDetailLiveBadgeLabel()}</span>
+ </h4>
+ <div class={STORAGE_DISK_DETAIL_LIVE_GRID_CLASS}>
+ <For each={DISK_DETAIL_LIVE_CHARTS}>
+ {(chart) => (
+ <div class={STORAGE_DETAIL_CARD_CLASS}>
+ <HistoryChart
+ resourceType="disk"
+ resourceId={metricResourceId()!}
+ metric={
+ chart.series === 'read'
+ ? 'diskread'
+ : chart.series === 'write'
+ ? 'diskwrite'
+ : 'disk'
+ }
+ label={chart.label}
+ unit={chart.unit}
+ range="30m"
+ hideSelector
+ hideLock
+ height={120}
+ compact={true}
+ />
+ </div>
+ )}
+ </For>
+ </div>
+ </div>
+ </Show>
+
+ <Show
+ when={historyResourceId()}
+ fallback={
+ <div class={STORAGE_DETAIL_EMPTY_CLASS}>{getDiskDetailHistoryFallbackMessage()}</div>
+ }
+ >
+ <div class={STORAGE_DISK_DETAIL_SECTION_CLASS}>
+ <div class={STORAGE_DISK_DETAIL_HISTORY_GRID_CLASS}>
+ <For each={historyCharts()}>
+ {(chart) => (
+ <div class={STORAGE_DETAIL_CARD_CLASS}>
+ <HistoryChart
+ resourceType="disk"
+ resourceId={historyResourceId()!}
+ metric={chart.metric}
+ label={chart.label}
+ unit={chart.unit}
+ height={120}
+ color={chart.color}
+ range={chartRange()}
+ hideSelector={true}
+ compact={true}
+ hideLock={true}
+ />
+ </div>
+ )}
+ </For>
+ </div>
+ </div>
+ </Show>
+ </Show>
+ </div>
</div>
);
};
diff --git a/frontend-modern/src/components/Storage/StoragePoolDetail.tsx b/frontend-modern/src/components/Storage/StoragePoolDetail.tsx
index 0e9dbd72d8..72df9c020a 100644
--- a/frontend-modern/src/components/Storage/StoragePoolDetail.tsx
+++ b/frontend-modern/src/components/Storage/StoragePoolDetail.tsx
@@ -1,7 +1,9 @@
-import { Component, For, Show, createEffect, createMemo } from 'solid-js';
+import { Component, For, Show, createEffect, createMemo, createSignal } from 'solid-js';
import { FormSelect } from '@/components/shared/FormSelect';
+import { filterSelectClass } from '@/components/shared/FilterToolbar';
import { HistoryChart } from '@/components/shared/HistoryChart';
import { StatusDot } from '@/components/shared/StatusDot';
+import { Subtabs } from '@/components/shared/Subtabs';
import type { HistoryTimeRange } from '@/api/charts';
import { maxHistoryDays } from '@/stores/license';
import {
@@ -34,9 +36,6 @@ import {
STORAGE_DETAIL_ROW_CLASS,
STORAGE_DETAIL_SECTION_TITLE_CLASS,
STORAGE_DETAIL_SECTION_TITLE_SPACED_CLASS,
- STORAGE_DETAIL_SPACED_STACK_CLASS,
- STORAGE_DETAIL_SELECT_CLASS,
- STORAGE_DETAIL_SELECT_STYLE,
} from '@/features/storageBackups/detailPresentation';
import type { StorageRecord } from '@/features/storageBackups/models';
import type { Resource } from '@/types/resource';
@@ -50,7 +49,10 @@ interface StoragePoolDetailProps {
controlsId?: string;
}
+type StoragePoolDetailTab = 'overview' | 'history';
+
export const StoragePoolDetail: Component<StoragePoolDetailProps> = (props) => {
+ const [activeTab, setActiveTab] = createSignal<StoragePoolDetailTab>('overview');
const { getDiskTemperatureThresholds } = useAlertsActivation();
const {
chartRange,
@@ -82,41 +84,38 @@ export const StoragePoolDetail: Component<StoragePoolDetailProps> = (props) => {
return (
<tr class={STORAGE_DETAIL_ROW_CLASS} data-inline-detail-for={props.summarySeriesId}>
<td id={props.controlsId} colSpan={99} class={STORAGE_DETAIL_CELL_CLASS}>
- <div class={STORAGE_DETAIL_ROOT_GRID_CLASS}>
- {/* Left: Capacity trend chart */}
- <div class={STORAGE_DETAIL_CARD_CLASS}>
- <div class={STORAGE_DETAIL_HEADER_ROW_CLASS}>
- <h4 class={STORAGE_DETAIL_SECTION_TITLE_CLASS}>Capacity Trend</h4>
- <FormSelect
- label="Capacity trend range"
- labelClass="sr-only"
- fieldBaseClass="contents"
- value={chartRange()}
- onChange={(e) => setChartRange(e.currentTarget.value as HistoryTimeRange)}
- selectBaseClass={STORAGE_DETAIL_SELECT_CLASS}
- style={STORAGE_DETAIL_SELECT_STYLE}
- >
- <For each={rangeOptions()}>
- {(option) => <option value={option.value}>{option.label}</option>}
- </For>
- </FormSelect>
- </div>
- <HistoryChart
- resourceType={chartTarget().resourceType}
- resourceId={chartTarget().resourceId || props.record.id}
- metric="usage"
- label="Usage"
- unit="%"
- height={140}
- range={chartRange()}
- hideSelector
- compact
- hideLock
- />
- </div>
+ <div class="space-y-3">
+ <Subtabs
+ class="mb-1"
+ ariaLabel="Storage pool detail sections"
+ value={activeTab()}
+ onChange={(value) => setActiveTab(value as StoragePoolDetailTab)}
+ tabs={[
+ { value: 'overview', label: 'Overview' },
+ { value: 'history', label: 'History' },
+ ]}
+ trailing={
+ <Show when={activeTab() === 'history'}>
+ <FormSelect
+ label="Capacity history range"
+ labelClass="sr-only"
+ fieldBaseClass="contents"
+ value={chartRange()}
+ onChange={(event) => setChartRange(event.currentTarget.value as HistoryTimeRange)}
+ selectBaseClass={`${filterSelectClass} h-7 min-h-11 py-0 text-[11px] sm:min-h-0`}
+ >
+ <For each={rangeOptions()}>
+ {(option) => <option value={option.value}>{option.label}</option>}
+ </For>
+ </FormSelect>
+ </Show>
+ }
+ />
- {/* Right: Configuration & details */}
- <div class={STORAGE_DETAIL_SPACED_STACK_CLASS}>
+ <div
+ class={activeTab() === 'overview' ? STORAGE_DETAIL_ROOT_GRID_CLASS : 'hidden'}
+ style={{ 'overflow-anchor': 'none' }}
+ >
<Show when={topologyRows().length > 0}>
<div class={STORAGE_DETAIL_CARD_CLASS}>
<h4 class={STORAGE_DETAIL_SECTION_TITLE_SPACED_CLASS}>Topology</h4>
@@ -128,7 +127,6 @@ export const StoragePoolDetail: Component<StoragePoolDetailProps> = (props) => {
</div>
</Show>
- {/* Config card */}
<div class={STORAGE_DETAIL_CARD_CLASS}>
<h4 class={STORAGE_DETAIL_SECTION_TITLE_SPACED_CLASS}>Configuration</h4>
<div class={STORAGE_DETAIL_CONFIG_GRID_CLASS}>
@@ -138,7 +136,6 @@ export const StoragePoolDetail: Component<StoragePoolDetailProps> = (props) => {
</div>
</div>
- {/* ZFS details */}
<Show when={zfsSummary()}>
<div class={STORAGE_DETAIL_CARD_CLASS}>
<h4 class={STORAGE_DETAIL_SECTION_TITLE_SPACED_CLASS}>ZFS Pool</h4>
@@ -240,7 +237,6 @@ export const StoragePoolDetail: Component<StoragePoolDetailProps> = (props) => {
</div>
</Show>
- {/* Physical disks linked to this pool */}
<Show when={linkedDisks().length > 0}>
<div class={STORAGE_DETAIL_CARD_CLASS}>
<h4 class={STORAGE_DETAIL_SECTION_TITLE_SPACED_CLASS}>
@@ -298,6 +294,31 @@ export const StoragePoolDetail: Component<StoragePoolDetailProps> = (props) => {
</div>
</Show>
</div>
+
+ <div
+ class={activeTab() === 'history' ? '' : 'hidden'}
+ style={{ 'overflow-anchor': 'none' }}
+ >
+ <Show when={activeTab() === 'history'}>
+ <div class={STORAGE_DETAIL_CARD_CLASS}>
+ <div class={STORAGE_DETAIL_HEADER_ROW_CLASS}>
+ <h4 class={STORAGE_DETAIL_SECTION_TITLE_CLASS}>Capacity Trend</h4>
+ </div>
+ <HistoryChart
+ resourceType={chartTarget().resourceType}
+ resourceId={chartTarget().resourceId || props.record.id}
+ metric="usage"
+ label="Usage"
+ unit="%"
+ height={140}
+ range={chartRange()}
+ hideSelector
+ compact
+ hideLock
+ />
+ </div>
+ </Show>
+ </div>
</div>
</td>
</tr>
diff --git a/frontend-modern/src/components/Storage/__tests__/DiskDetail.test.tsx b/frontend-modern/src/components/Storage/__tests__/DiskDetail.test.tsx
index 2e5f018b3a..2e6ec6361d 100644
--- a/frontend-modern/src/components/Storage/__tests__/DiskDetail.test.tsx
+++ b/frontend-modern/src/components/Storage/__tests__/DiskDetail.test.tsx
@@ -1,4 +1,4 @@
-import { render, screen } from '@solidjs/testing-library';
+import { fireEvent, render, screen } from '@solidjs/testing-library';
import { describe, expect, it, vi } from 'vitest';
import { DiskDetail } from '@/components/Storage/DiskDetail';
import type { Resource } from '@/types/resource';
@@ -50,6 +50,11 @@ describe('DiskDetail', () => {
it('keeps disk detail range choices inside the current history entitlement', () => {
render(() => <DiskDetail disk={buildDisk()} nodes={[]} />);
+ expect(screen.getByRole('tab', { name: 'Overview' })).toHaveAttribute('aria-selected', 'true');
+ expect(screen.queryByRole('combobox', { name: 'Disk history range' })).not.toBeInTheDocument();
+
+ fireEvent.click(screen.getByRole('tab', { name: 'History' }));
+
const rangeSelector = screen.getByRole('combobox', {
name: 'Disk history range',
}) as HTMLSelectElement;
@@ -63,6 +68,7 @@ describe('DiskDetail', () => {
]);
expect(Array.from(rangeSelector.options).map((option) => option.value)).not.toContain('14d');
expect(Array.from(rangeSelector.options).map((option) => option.value)).not.toContain('90d');
+ expect(screen.getByRole('tab', { name: 'History' })).toHaveAttribute('aria-selected', 'true');
});
it('shows explicit collection status and does not render misleading live I/O', () => {
diff --git a/frontend-modern/src/components/Storage/__tests__/StoragePoolDetail.test.tsx b/frontend-modern/src/components/Storage/__tests__/StoragePoolDetail.test.tsx
index d992f59019..b31785ac7b 100644
--- a/frontend-modern/src/components/Storage/__tests__/StoragePoolDetail.test.tsx
+++ b/frontend-modern/src/components/Storage/__tests__/StoragePoolDetail.test.tsx
@@ -59,6 +59,9 @@ describe('StoragePoolDetail', () => {
</table>
));
+ expect(screen.queryByTestId('history-chart')).not.toBeInTheDocument();
+ fireEvent.click(screen.getByRole('tab', { name: 'History' }));
+
expect(screen.getByTestId('history-chart')).toHaveTextContent('storage:pool:tank:usage');
expect(historyChartSpy).toHaveBeenCalledWith(
expect.objectContaining({
@@ -87,8 +90,10 @@ describe('StoragePoolDetail', () => {
</table>
));
+ fireEvent.click(screen.getByRole('tab', { name: 'History' }));
+
const rangeSelector = screen.getByRole('combobox', {
- name: 'Capacity trend range',
+ name: 'Capacity history range',
}) as HTMLSelectElement;
expect(Array.from(rangeSelector.options).map((option) => option.value)).toEqual(['24h', '7d']);
@@ -121,6 +126,8 @@ describe('StoragePoolDetail', () => {
</table>
));
+ fireEvent.click(screen.getByRole('tab', { name: 'History' }));
+
expect(screen.getByTestId('history-chart')).toHaveTextContent('storage:pve1:local-zfs:usage');
expect(historyChartSpy).toHaveBeenCalledWith(
expect.objectContaining({
@@ -199,6 +206,27 @@ describe('StoragePoolDetail', () => {
expect(screen.getByText('16 errors')).toBeInTheDocument();
});
+ it('uses the canonical overview and history detail navigation', () => {
+ render(() => (
+ <table>
+ <tbody>
+ <StoragePoolDetail record={makeRecord()} physicalDisks={[]} summarySeriesId="tank" />
+ </tbody>
+ </table>
+ ));
+
+ expect(screen.getByRole('tab', { name: 'Overview' })).toHaveAttribute('aria-selected', 'true');
+ expect(screen.getByRole('tab', { name: 'History' })).toHaveAttribute('aria-selected', 'false');
+ expect(screen.getByText('Configuration')).toBeVisible();
+ expect(screen.queryByText('Capacity Trend')).not.toBeInTheDocument();
+
+ fireEvent.click(screen.getByRole('tab', { name: 'History' }));
+
+ expect(screen.getByRole('tab', { name: 'History' })).toHaveAttribute('aria-selected', 'true');
+ expect(screen.getByText('Capacity Trend')).toBeVisible();
+ expect(screen.getByText('Configuration').closest('.hidden')).not.toBeNull();
+ });
+
it('renders linked host-agent ZFS datasets inside the expanded pool detail', () => {
render(() => (
<table>
diff --git a/frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.ts b/frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.ts
index 4b531494b1..3628fbdcc0 100644
--- a/frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.ts
+++ b/frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.ts
@@ -225,6 +225,7 @@ import storagePoolRowSource from '@/components/Storage/StoragePoolRow.tsx?raw';
import storageContentCardSource from '@/components/Storage/StorageContentCard.tsx?raw';
import storagePoolsTableSource from '@/components/Storage/StoragePoolsTable.tsx?raw';
import storagePoolDetailSource from '@/components/Storage/StoragePoolDetail.tsx?raw';
+import diskDetailSource from '@/components/Storage/DiskDetail.tsx?raw';
import diskListSource from '@/components/Storage/DiskList.tsx?raw';
import alertOverviewStatsCardsSource from '@/features/alerts/AlertOverviewStatsCards.tsx?raw';
import alertHistoryTableSectionSource from '@/features/alerts/AlertHistoryTableSection.tsx?raw';
@@ -1201,6 +1202,34 @@ describe('shared primitive guardrails', () => {
expect(subtabsSource).toContain('subtabButtonClass');
});
+ it('keeps object detail history behind the canonical Overview and History subtabs', () => {
+ for (const source of [
+ diskDetailSource,
+ guestDrawerSource,
+ nodeDrawerSource,
+ storagePoolDetailSource,
+ ]) {
+ expect(source).toContain('@/components/shared/Subtabs');
+ expect(source).toContain("value: 'overview', label: 'Overview'");
+ expect(source).toContain("value: 'history', label: 'History'");
+ }
+
+ expect(resourceDetailDrawerSource).toContain('@/components/shared/Subtabs');
+ expect(resourceDetailDrawerSource).toContain('tabs={drawer.tabs().map');
+
+ for (const storageDetailSource of [diskDetailSource, storagePoolDetailSource]) {
+ expect(storageDetailSource).toContain('filterSelectClass');
+ expect(storageDetailSource).toContain("activeTab() === 'history'");
+ expect(storageDetailSource).not.toContain('STORAGE_DETAIL_SELECT_CLASS');
+ expect(storageDetailSource).not.toContain('STORAGE_DETAIL_HEADER_SELECT_CLASS');
+ }
+
+ expect(resourceDetailDrawerSource).not.toContain('listClass="!gap-2 sm:!gap-6"');
+ expect(resourceDetailDrawerSource).not.toContain(
+ 'tabClass="!px-0.5 !text-xs sm:!px-1 sm:!text-sm"',
+ );
+ });
+
it('keeps the Actions inbox on the canonical in-page subtab primitive', () => {
expect(actionsSource).toContain('<Subtabs');
expect(actionsSource).not.toContain('role="tablist"');
diff --git a/frontend-modern/src/features/storageBackups/__tests__/detailPresentation.test.ts b/frontend-modern/src/features/storageBackups/__tests__/detailPresentation.test.ts
index 650d29776a..7e76d75560 100644
--- a/frontend-modern/src/features/storageBackups/__tests__/detailPresentation.test.ts
+++ b/frontend-modern/src/features/storageBackups/__tests__/detailPresentation.test.ts
@@ -11,7 +11,6 @@ import {
STORAGE_DISK_DETAIL_ATTRIBUTE_GRID_CLASS,
STORAGE_DISK_DETAIL_HEADER_CLASS,
STORAGE_DISK_DETAIL_HISTORY_GRID_CLASS,
- STORAGE_DISK_DETAIL_HISTORY_SELECT_WRAP_CLASS,
STORAGE_DISK_DETAIL_LIVE_GRID_CLASS,
STORAGE_DISK_DETAIL_MODEL_CLASS,
STORAGE_DISK_DETAIL_NODE_CLASS,
@@ -31,7 +30,6 @@ describe('detailPresentation', () => {
expect(STORAGE_DISK_DETAIL_HEADER_CLASS).toContain('border-b');
expect(STORAGE_DISK_DETAIL_MODEL_CLASS).toContain('font-semibold');
expect(STORAGE_DISK_DETAIL_NODE_CLASS).toBe('text-muted');
- expect(STORAGE_DISK_DETAIL_HISTORY_SELECT_WRAP_CLASS).toBe('relative');
expect(STORAGE_DISK_DETAIL_ATTRIBUTE_GRID_CLASS).toContain('min-w-[120px]');
expect(STORAGE_DISK_DETAIL_LIVE_GRID_CLASS).toContain('sm:grid-cols-3');
expect(STORAGE_DISK_DETAIL_HISTORY_GRID_CLASS).toContain('min-w-[250px]');
diff --git a/frontend-modern/src/features/storageBackups/detailPresentation.ts b/frontend-modern/src/features/storageBackups/detailPresentation.ts
index 53274a47da..ccf113a7c9 100644
--- a/frontend-modern/src/features/storageBackups/detailPresentation.ts
+++ b/frontend-modern/src/features/storageBackups/detailPresentation.ts
@@ -19,26 +19,6 @@ export const STORAGE_DETAIL_META_ROW_CLASS =
export const STORAGE_DETAIL_MONO_CHIP_CLASS =
'text-muted font-mono bg-surface-alt px-1.5 py-0.5 rounded border border-border';
-export const STORAGE_DETAIL_SELECT_CLASS =
- 'text-[11px] font-medium pl-2 pr-5 py-0.5 rounded border border-border bg-surface text-base-content cursor-pointer appearance-none';
-
-export const STORAGE_DETAIL_HEADER_SELECT_CLASS =
- 'text-[11px] font-medium pl-2 pr-6 py-1 rounded-md border border-border bg-surface text-base-content cursor-pointer focus:ring-1 focus:ring-blue-500 focus:border-blue-500 appearance-none shadow-sm hover:border-border transition-colors';
-
-export const STORAGE_DETAIL_SELECT_STYLE = {
- 'background-image':
- "url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E\")",
- 'background-repeat': 'no-repeat',
- 'background-position': 'right 4px center',
-} as const;
-
-export const STORAGE_DETAIL_HEADER_SELECT_STYLE = {
- 'background-image':
- "url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E\")",
- 'background-repeat': 'no-repeat',
- 'background-position': 'right 6px center',
-} as const;
-
export const STORAGE_DETAIL_CONFIG_GRID_CLASS = 'grid grid-cols-2 gap-x-4 gap-y-1.5 text-[11px]';
export const STORAGE_DETAIL_ROW_CLASS = 'border-t border-border';
export const STORAGE_DETAIL_CELL_CLASS = 'bg-surface-alt px-4 py-4';
@@ -67,8 +47,6 @@ export const STORAGE_DISK_DETAIL_HEADER_CLASS =
export const STORAGE_DISK_DETAIL_MODEL_CLASS = 'font-semibold text-base-content text-sm';
export const STORAGE_DISK_DETAIL_SERIAL_CLASS = 'font-mono';
export const STORAGE_DISK_DETAIL_NODE_CLASS = 'text-muted';
-export const STORAGE_DISK_DETAIL_HISTORY_CONTROL_CLASS = 'flex items-center gap-2';
-export const STORAGE_DISK_DETAIL_HISTORY_SELECT_WRAP_CLASS = 'relative';
export const STORAGE_DISK_DETAIL_ATTRIBUTE_GRID_CLASS =
'flex flex-wrap gap-3 [&>*]:flex-1 [&>*]:basis-[calc(16.666%-0.5rem)] [&>*]:min-w-[120px]';
export const STORAGE_DISK_DETAIL_SECTION_CLASS = 'space-y-2';
diff --git a/frontend-modern/src/utils/__tests__/frontendResourceTypeBoundaries.test.ts b/frontend-modern/src/utils/__tests__/frontendResourceTypeBoundaries.test.ts
index be64f887f5..05ab2ab079 100644
--- a/frontend-modern/src/utils/__tests__/frontendResourceTypeBoundaries.test.ts
+++ b/frontend-modern/src/utils/__tests__/frontendResourceTypeBoundaries.test.ts
@@ -904,8 +904,10 @@ describe('frontend resource type boundaries', () => {
expect(guestDrawerStateSource).toContain('guestOsSummary');
expect(guestDrawerSource).not.toContain('const guestId = () => {');
expect(guestDrawerSource).not.toContain('WebInterfaceUrlField');
- expect(guestDrawerOverviewSource).toContain('WebInterfaceUrlField');
- expect(guestDrawerOverviewSource).toContain('DiskList');
+ expect(guestDrawerOverviewSource).toContain('TechnicalDetailsSection');
+ expect(guestDrawerOverviewSource).toContain('DrawerAttentionSection');
+ expect(guestDrawerOverviewSource).not.toContain('WebInterfaceUrlField');
+ expect(guestDrawerOverviewSource).not.toContain('DiskList');
expect(workloadsWorkloadTableSource).toContain('WorkloadTableHeader');
expect(workloadsWorkloadTableSource).toContain('WorkloadPanel');
expect(workloadsWorkloadTableSource).not.toContain('<TableHead');
@@ -1281,7 +1283,7 @@ describe('frontend resource type boundaries', () => {
expect(storagePoolDetailSource).toContain('useStoragePoolDetailModel');
expect(storagePoolDetailSource).toContain('STORAGE_POOL_DETAIL_HISTORY_RANGE_OPTIONS');
expect(storagePoolDetailSource).toContain('FormSelect');
- expect(storagePoolDetailSource).toContain('label="Capacity trend range"');
+ expect(storagePoolDetailSource).toContain('label="Capacity history range"');
expect(storagePoolDetailSource).not.toContain('<select');
expect(storagePoolDetailSource).not.toContain('const ConfigRow: Component');
expect(storagePoolDetailSource).not.toContain('const chartResourceType = createMemo');
@@ -1604,7 +1606,8 @@ describe('frontend resource type boundaries', () => {
);
expect(diskDetailPresentationSource).toContain('export const DISK_DETAIL_LIVE_CHARTS');
expect(storageDetailPresentationSource).toContain('export const STORAGE_DETAIL_CARD_CLASS');
- expect(storageDetailPresentationSource).toContain('export const STORAGE_DETAIL_SELECT_CLASS');
+ expect(storageDetailPresentationSource).not.toContain('STORAGE_DETAIL_SELECT_CLASS');
+ expect(storagePoolDetailSource).toContain('filterSelectClass');
expect(storageDetailPresentationSource).toContain('export const STORAGE_DETAIL_EMPTY_CLASS');
expect(storageDetailPresentationSource).toContain('export const STORAGE_DETAIL_ROW_CLASS');
expect(storageDetailPresentationSource).toContain(
@@ -2563,7 +2566,9 @@ describe('frontend resource type boundaries', () => {
expect(discoveryProvenanceMarkerSource).toContain('getDiscoveryProvenanceBadgeClass');
expect(discoveryTabSource).toContain('DiscoveryProvenanceMarker');
expect(webInterfaceUrlFieldSource).toContain('DiscoveryProvenanceMarker');
- expect(guestDrawerOverviewSource).toContain('DiscoveryProvenanceMarker');
+ expect(guestDrawerOverviewSource).toContain('discovery.sourceLabel');
+ expect(guestDrawerOverviewSource).toContain('formatDiscoveryAge');
+ expect(guestDrawerOverviewSource).not.toContain('DiscoveryProvenanceMarker');
expect(discoveryPresentationSource).toContain(
'export function getDiscoverySuggestedURLCardClass',
);