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 inline detail table rows

rcourtman97bb7035d900
diff --git a/docs/release-control/v6/internal/subsystems/frontend-primitives.md b/docs/release-control/v6/internal/subsystems/frontend-primitives.md
index f9fc9d67f8..02fdd2a964 100644
--- a/docs/release-control/v6/internal/subsystems/frontend-primitives.md
+++ b/docs/release-control/v6/internal/subsystems/frontend-primitives.md
@@ -874,7 +874,7 @@ not a replacement status card, CTA band, or page-local nested card.
10. Keep summary chart interaction identity on one shared helper. Summary surfaces that expose row-hover, group-hover, chart-hover, or route-focus-driven chart emphasis must derive page/group/entity scope through `frontend-modern/src/components/shared/summaryCardInteraction.ts` and pass that same resolved scope into card-state, sparkline, and density-map primitives, rather than letting cards read `hovered || focused` while charts listen to a different page-local ID source. Hovering one summary chart must promote that series into the shared active entity so sibling cards highlight the same object instead of keeping chart-local hover islands, and hovering or pinning a workload group header, infrastructure cluster header, or storage pool-group header must scope the matching summary cards through that same shared contract instead of forking a page-local summary filter path. Sibling cards should surface that synchronized hover as one compact header readout through the shared summary-card contract, while the chart under the pointer keeps the only floating tooltip. Recovery is explicitly outside this interaction dialect: its retired posture-card strip must not return with row/group/chart hover behavior without a separate governed product decision.
11. Keep page summaries page-scoped when table rows enter contextual focus. Route-backed row selection may add a focused label and shared series emphasis, but infrastructure, workloads, and storage summary cards must continue to render the page-level series set instead of collapsing the summary down to the selected row or replacing the global trend view with row-local empty states.
12. Keep contextual row focus on the shared summary primitive. Summary surfaces and same-route table drill-ins must reuse `frontend-modern/src/components/shared/contextualFocus.ts` for interactive-series filtering, focused-name lookup, active-series derivation, local scroll preservation, and deliberate inline-detail reveal instead of rebuilding page-local `Set` filters, focused-label scans, drawer-aware scroll math, or ad hoc scroll restoration in each surface.
-13. Keep summary-linked table row emphasis on the shared primitive contract. Workloads, infrastructure, and storage rows that mirror the active summary entity must expose that state through `data-summary-row-active` and let the shared presentation in `frontend-modern/src/index.css` render the row emphasis, rather than carrying page-local sky or blue fill classes inside each row renderer. Group-scoped preview and pin must use that same shared presentation boundary: child rows that belong to a hovered or pinned summary group should expose `data-summary-group-member-active="preview|pinned"` so the block-level emphasis stays subtle, consistent, and reversible instead of each table inventing its own outline, badge, or full-strength fill treatment. Static grouped row headers on workloads, infrastructure, storage, recovery, and future grouped tables must use `frontend-modern/src/components/shared/groupedTableRowPresentation.ts` plus the `.grouped-table-row` CSS contract in `frontend-modern/src/index.css`, rather than rebuilding local `bg-surface-alt` variants with subtly different light/dark behavior or page-local left-accent markers. That shared grouped-table primitive owns the subgroup cell padding, typography, small metadata, and badge treatment as well as the row background token, so a future adjustment to the subgroup visual language changes every grouped product table from one owner. Storage-backed reusable row presenters under `frontend-modern/src/features/storageBackups/` must also keep row height and alert accents on class/data-attribute presentation instead of runtime inline style maps, so the shared table contract stays CSP-safe on both steady-state and alert-highlighted routes.
+13. Keep summary-linked table row emphasis on the shared primitive contract. Workloads, infrastructure, and storage rows that mirror the active summary entity must expose that state through `data-summary-row-active` and let the shared presentation in `frontend-modern/src/index.css` render the row emphasis, rather than carrying page-local sky or blue fill classes inside each row renderer. Group-scoped preview and pin must use that same shared presentation boundary: child rows that belong to a hovered or pinned summary group should expose `data-summary-group-member-active="preview|pinned"` so the block-level emphasis stays subtle, consistent, and reversible instead of each table inventing its own outline, badge, or full-strength fill treatment. Static grouped row headers on workloads, infrastructure, storage, recovery, and future grouped tables must use `frontend-modern/src/components/shared/groupedTableRowPresentation.ts` plus the `.grouped-table-row` CSS contract in `frontend-modern/src/index.css`, rather than rebuilding local `bg-surface-alt` variants with subtly different light/dark behavior or page-local left-accent markers. That shared grouped-table primitive owns the subgroup cell padding, typography, small metadata, and badge treatment as well as the row background token, so a future adjustment to the subgroup visual language changes every grouped product table from one owner. Inline table detail rows on platform, workload, and infrastructure tables must compose `frontend-modern/src/components/shared/InlineDetailTableRow.tsx` for the full-width row, surface-alt cell, detail padding, and row-click containment instead of rebuilding page-local `TableRow` / `TableCell` / `div` shells around each drawer. Storage-backed reusable row presenters under `frontend-modern/src/features/storageBackups/` must also keep row height and alert accents on class/data-attribute presentation instead of runtime inline style maps, so the shared table contract stays CSP-safe on both steady-state and alert-highlighted routes.
14. Keep retained-value data loading honest at the ownership boundary. Helpers
that prevent a feature surface from falling through the app-level Suspense
boundary during in-flight refresh should stay feature-local until multiple
@@ -2386,6 +2386,11 @@ divide frame locally. Platform table consumers must preserve the owner split:
frontend-primitives owns the repeated `PlatformTableShell` frame and guardrail
registry, while platform and unified-resource consumers own the source-specific
row fields, drawers, and resource semantics.
+Inline detail table rows are also registry-backed. `InlineDetailTableRow`
+owns the row/cell/content shell and row-click containment for platform,
+workload, and infrastructure inline drawers; callers may pass row-specific
+`data-*` attributes, colspan, and content classes, but they must not recreate
+the surface-alt detail row shell locally.
Platform row-detail disclosure controls are also registry-backed templates.
`frontend-modern/src/features/platformPage/PlatformResourceDetailTableRow.tsx`
owns `PlatformResourceDetailToggleButton`, which composes
diff --git a/docs/release-control/v6/internal/subsystems/performance-and-scalability.md b/docs/release-control/v6/internal/subsystems/performance-and-scalability.md
index 46094030f7..3835b1bfc0 100644
--- a/docs/release-control/v6/internal/subsystems/performance-and-scalability.md
+++ b/docs/release-control/v6/internal/subsystems/performance-and-scalability.md
@@ -416,6 +416,12 @@ regression protection.
the column label must remain present through an `sr-only` label so the
header row exposes names such as Uptime, Image, Context, and Node instead
of collapsing to only the visible text columns.
+ Inline detail table rows rendered from workload or infrastructure hot
+ paths must compose the frontend-primitives-owned
+ `InlineDetailTableRow` shell. Performance ownership remains on expansion
+ state, mounted-row budgets, viewport sync, and reveal timing; it must not
+ fork the repeated `TableRow` / `TableCell` / surface-alt / click-containment
+ shell inside workload, infrastructure, or platform table render paths.
Pod-mode workload filters must use the workload-owned
`K8s cluster` / `All K8s clusters` labels for Kubernetes context selection,
rather than a generic `Cluster` label that can be confused with Proxmox
diff --git a/docs/release-control/v6/internal/subsystems/unified-resources.md b/docs/release-control/v6/internal/subsystems/unified-resources.md
index ef9e71693d..d1d988b48a 100644
--- a/docs/release-control/v6/internal/subsystems/unified-resources.md
+++ b/docs/release-control/v6/internal/subsystems/unified-resources.md
@@ -215,6 +215,13 @@ filter semantics, drawer handoffs, and resource projections, while
Future platform tables must keep that split: row data and platform semantics
stay in the unified-resource consumer, and the repeated table shell stays in the
shared frontend primitive.
+The same split applies to inline detail row shells on platform, native-resource,
+workload, and infrastructure tables. Unified-resource consumers own row
+identity, source-specific drawer content, expansion state, and resource
+semantics, but the repeated surface-alt table row, single-cell colspan wrapper,
+detail padding, and row-click containment must compose the
+frontend-primitives-owned `InlineDetailTableRow` primitive instead of
+rebuilding a local `TableRow` / `TableCell` detail shell.
That same split applies to platform row-detail disclosure controls. Platform
tables own which row opens, which resource label is exposed, and which
source-specific detail payload or drawer is rendered, but the disclosure
diff --git a/frontend-modern/scripts/shared-template-audit.mjs b/frontend-modern/scripts/shared-template-audit.mjs
index aa83f5705d..dc5d4ed592 100644
--- a/frontend-modern/scripts/shared-template-audit.mjs
+++ b/frontend-modern/scripts/shared-template-audit.mjs
@@ -124,10 +124,13 @@ for (const guard of patternGuards) {
const extensions = guard.extensions ?? ['.ts', '.tsx'];
const allowedEntries = guard.allowedPaths ?? [];
const allowedPaths = new Set(allowedEntries.map(getAllowedPath).filter(Boolean));
+ const ignoredEntries = guard.ignoredPaths ?? [];
+ const ignoredPaths = new Set(ignoredEntries.map(getAllowedPath).filter(Boolean));
const files = [...new Set(scopes.flatMap((scope) => collectFiles(scope, extensions)))].sort();
for (const file of files) {
if (file === guard.canonical.path) continue;
+ if (ignoredPaths.has(file)) continue;
const source = read(file);
const matches = patterns.every((pattern) => source.includes(pattern));
@@ -157,6 +160,12 @@ for (const guard of patternGuards) {
failures.push(`${guard.id}: allowed path ${allowedPath} is stale; remove it from the guard`);
}
}
+
+ for (const ignoredPath of ignoredPaths) {
+ if (!fileExists(ignoredPath)) {
+ failures.push(`${guard.id}: ignored path ${ignoredPath} does not exist`);
+ }
+ }
}
for (const guard of requiredPatternGuards) {
@@ -190,10 +199,13 @@ for (const guard of requiredPatternGuards) {
const extensions = guard.extensions ?? ['.ts', '.tsx'];
const allowedEntries = guard.allowedPaths ?? [];
const allowedPaths = new Set(allowedEntries.map(getAllowedPath).filter(Boolean));
+ const ignoredEntries = guard.ignoredPaths ?? [];
+ const ignoredPaths = new Set(ignoredEntries.map(getAllowedPath).filter(Boolean));
const files = [...new Set(scopes.flatMap((scope) => collectFiles(scope, extensions)))].sort();
for (const file of files) {
if (file === guard.canonical.path) continue;
+ if (ignoredPaths.has(file)) continue;
const source = read(file);
const triggered = triggerPatterns.every((pattern) => source.includes(pattern));
@@ -230,6 +242,12 @@ for (const guard of requiredPatternGuards) {
failures.push(`${guard.id}: allowed path ${allowedPath} is stale; remove it from the guard`);
}
}
+
+ for (const ignoredPath of ignoredPaths) {
+ if (!fileExists(ignoredPath)) {
+ failures.push(`${guard.id}: ignored path ${ignoredPath} does not exist`);
+ }
+ }
}
if (failures.length > 0) {
diff --git a/frontend-modern/scripts/shared-template-registry.json b/frontend-modern/scripts/shared-template-registry.json
index 52cc3bcce5..49ca578e17 100644
--- a/frontend-modern/scripts/shared-template-registry.json
+++ b/frontend-modern/scripts/shared-template-registry.json
@@ -66,6 +66,53 @@
"src/features/proxmox/__tests__/ProxmoxNodesTable.test.tsx",
"src/features/proxmox/__tests__/proxmoxHostTableModel.test.ts"
]
+ },
+ {
+ "id": "inline-detail-table-row-shell",
+ "category": "row-detail",
+ "summary": "Platform, workload, and infrastructure inline detail rows must compose the shared row/cell/content shell instead of recreating page-local surface-alt drawer rows.",
+ "canonical": {
+ "path": "src/components/shared/InlineDetailTableRow.tsx",
+ "export": "InlineDetailTableRow"
+ },
+ "requiredConsumers": [
+ { "path": "src/components/Infrastructure/UnifiedResourceHostTableCard.tsx" },
+ { "path": "src/components/Infrastructure/UnifiedResourcePBSTableSection.tsx" },
+ { "path": "src/components/Infrastructure/UnifiedResourcePMGTableSection.tsx" },
+ { "path": "src/components/Workloads/WorkloadPanel.tsx" },
+ { "path": "src/features/docker/DockerAlertsTable.tsx" },
+ { "path": "src/features/docker/DockerHostsTable.tsx" },
+ { "path": "src/features/docker/DockerNetworksTable.tsx" },
+ { "path": "src/features/kubernetes/KubernetesAlertsTable.tsx" },
+ { "path": "src/features/platformPage/PlatformResourceDetailTableRow.tsx" },
+ { "path": "src/features/proxmox/ProxmoxCephTable.tsx" },
+ { "path": "src/features/proxmox/ProxmoxCoverageTable.tsx" },
+ { "path": "src/features/proxmox/ProxmoxMailGatewayTable.tsx" },
+ { "path": "src/features/proxmox/ProxmoxNodesTable.tsx" },
+ { "path": "src/features/truenas/TrueNASAlertsTable.tsx" },
+ { "path": "src/features/truenas/TrueNASProtectionTable.tsx" },
+ { "path": "src/features/truenas/TrueNASServicesTable.tsx" },
+ { "path": "src/features/vmware/VsphereActivityTable.tsx" },
+ { "path": "src/features/vmware/VsphereAlertsTable.tsx" }
+ ],
+ "forbiddenPatterns": [
+ {
+ "path": "src/components/Workloads/WorkloadPanel.tsx",
+ "patterns": [
+ "p-0 border-b border-border bg-surface-alt",
+ "border-b border-border bg-surface-alt p-0"
+ ]
+ },
+ {
+ "path": "src/features/platformPage/PlatformResourceDetailTableRow.tsx",
+ "patterns": ["border-b border-border bg-surface-alt p-0"]
+ }
+ ],
+ "proof": [
+ "src/components/shared/SharedPrimitives.guardrails.test.ts",
+ "src/components/shared/__tests__/InlineDetailTableRow.test.tsx",
+ "scripts/shared-template-audit.mjs"
+ ]
}
],
"patternGuards": [
@@ -142,6 +189,63 @@
"src/components/shared/SharedPrimitives.guardrails.test.ts",
"scripts/shared-template-audit.mjs"
]
+ },
+ {
+ "id": "inline-detail-table-row-shared-shell",
+ "category": "row-detail",
+ "summary": "Files that render inline/detail table rows in platform, workload, or infrastructure surfaces must use InlineDetailTableRow for the shared row/cell/content shell.",
+ "canonical": {
+ "path": "src/components/shared/InlineDetailTableRow.tsx",
+ "export": "InlineDetailTableRow"
+ },
+ "scopes": [
+ "src/components/Infrastructure",
+ "src/components/Workloads",
+ "src/features/docker",
+ "src/features/kubernetes",
+ "src/features/platformPage",
+ "src/features/proxmox",
+ "src/features/truenas",
+ "src/features/vmware"
+ ],
+ "extensions": [".tsx"],
+ "triggerPatterns": ["data-inline", "TableRow"],
+ "requiredPatterns": ["InlineDetailTableRow"],
+ "allowedPaths": [],
+ "ignoredPaths": [
+ "src/components/Workloads/__tests__/WorkloadsSurface.performance.contract.test.tsx"
+ ],
+ "proof": [
+ "src/components/shared/SharedPrimitives.guardrails.test.ts",
+ "scripts/shared-template-audit.mjs"
+ ]
+ },
+ {
+ "id": "named-detail-table-row-shared-shell",
+ "category": "row-detail",
+ "summary": "Named platform detail rows such as Docker network detail rows must use InlineDetailTableRow even when their row attribute is not data-inline-*.",
+ "canonical": {
+ "path": "src/components/shared/InlineDetailTableRow.tsx",
+ "export": "InlineDetailTableRow"
+ },
+ "scopes": [
+ "src/components/Infrastructure",
+ "src/components/Workloads",
+ "src/features/docker",
+ "src/features/kubernetes",
+ "src/features/platformPage",
+ "src/features/proxmox",
+ "src/features/truenas",
+ "src/features/vmware"
+ ],
+ "extensions": [".tsx"],
+ "triggerPatterns": ["detail-row", "TableRow"],
+ "requiredPatterns": ["InlineDetailTableRow"],
+ "allowedPaths": [],
+ "proof": [
+ "src/components/shared/SharedPrimitives.guardrails.test.ts",
+ "scripts/shared-template-audit.mjs"
+ ]
}
]
}
diff --git a/frontend-modern/src/components/Infrastructure/UnifiedResourceHostTableCard.tsx b/frontend-modern/src/components/Infrastructure/UnifiedResourceHostTableCard.tsx
index d109c2af95..f15b1eb4c5 100644
--- a/frontend-modern/src/components/Infrastructure/UnifiedResourceHostTableCard.tsx
+++ b/frontend-modern/src/components/Infrastructure/UnifiedResourceHostTableCard.tsx
@@ -9,6 +9,7 @@ import {
getGroupedTableRowCellClass,
getInteractiveGroupedTableRowClass,
} from '@/components/shared/groupedTableRowPresentation';
+import { InlineDetailTableRow } from '@/components/shared/InlineDetailTableRow';
import { TableCardHeader } from '@/components/shared/TableCardHeader';
import { TableCard } from '@/components/shared/TableCard';
import { hostOverrideIdCandidates } from '@/features/alerts/alertOverridesModel';
@@ -424,7 +425,9 @@ export const UnifiedResourceHostTableCard: Component<UnifiedResourceHostTableCar
when={cpuPercentValue() !== null}
fallback={
<div class="flex justify-center">
- <span class="text-xs" aria-hidden="true">—</span>
+ <span class="text-xs" aria-hidden="true">
+ —
+ </span>
</div>
}
>
@@ -445,7 +448,9 @@ export const UnifiedResourceHostTableCard: Component<UnifiedResourceHostTableCar
when={memoryPercentValue() !== null}
fallback={
<div class="flex justify-center">
- <span class="text-xs" aria-hidden="true">—</span>
+ <span class="text-xs" aria-hidden="true">
+ —
+ </span>
</div>
}
>
@@ -471,7 +476,9 @@ export const UnifiedResourceHostTableCard: Component<UnifiedResourceHostTableCar
when={diskPercentValue() !== null}
fallback={
<div class="flex justify-center">
- <span class="text-xs" aria-hidden="true">—</span>
+ <span class="text-xs" aria-hidden="true">
+ —
+ </span>
</div>
}
>
@@ -504,7 +511,9 @@ export const UnifiedResourceHostTableCard: Component<UnifiedResourceHostTableCar
when={availabilityProbe()}
fallback={
<div class="text-center">
- <span class="text-xs text-slate-400" aria-hidden="true">—</span>
+ <span class="text-xs text-slate-400" aria-hidden="true">
+ —
+ </span>
</div>
}
>
@@ -583,7 +592,9 @@ export const UnifiedResourceHostTableCard: Component<UnifiedResourceHostTableCar
when={resource.diskIO}
fallback={
<div class="text-center">
- <span class="text-xs text-slate-400" aria-hidden="true">—</span>
+ <span class="text-xs text-slate-400" aria-hidden="true">
+ —
+ </span>
</div>
}
>
@@ -644,7 +655,11 @@ export const UnifiedResourceHostTableCard: Component<UnifiedResourceHostTableCar
<div class="flex justify-center">
<Show
when={resource.uptime}
- fallback={<span class="text-xs text-slate-400" aria-hidden="true">—</span>}
+ fallback={
+ <span class="text-xs text-slate-400" aria-hidden="true">
+ —
+ </span>
+ }
>
<span class="text-xs text-base-content whitespace-nowrap">
{formatUptime(resource.uptime ?? 0)}
@@ -661,7 +676,11 @@ export const UnifiedResourceHostTableCard: Component<UnifiedResourceHostTableCar
<div class="flex justify-center">
<Show
when={resource.temperature != null}
- fallback={<span class="text-xs text-slate-400" aria-hidden="true">—</span>}
+ fallback={
+ <span class="text-xs text-slate-400" aria-hidden="true">
+ —
+ </span>
+ }
>
<span
class={`text-xs whitespace-nowrap font-medium ${
@@ -679,19 +698,19 @@ export const UnifiedResourceHostTableCard: Component<UnifiedResourceHostTableCar
</TableCell>
</TableRow>
<Show when={isExpanded()}>
- <TableRow data-inline-detail-for={resource.id}>
- <TableCell
- id={detailControlsId()}
- colspan={9}
- class="bg-surface-alt px-4 py-4 border-b border-border-subtle shadow-inner"
- >
- <ResourceDetailDrawer
- resource={resource}
- resolveResourceLabel={table.resolveResourceLabel}
- onClose={() => tableProps.onExpandedResourceChange(null)}
- />
- </TableCell>
- </TableRow>
+ <InlineDetailTableRow
+ cellId={detailControlsId()}
+ cellClass="border-border-subtle shadow-inner"
+ colspan={9}
+ contentClass="px-4 py-4"
+ data-inline-detail-for={resource.id}
+ >
+ <ResourceDetailDrawer
+ resource={resource}
+ resolveResourceLabel={table.resolveResourceLabel}
+ onClose={() => tableProps.onExpandedResourceChange(null)}
+ />
+ </InlineDetailTableRow>
</Show>
</>
);
diff --git a/frontend-modern/src/components/Infrastructure/UnifiedResourcePBSTableSection.tsx b/frontend-modern/src/components/Infrastructure/UnifiedResourcePBSTableSection.tsx
index 79158e0da8..e0496dc702 100644
--- a/frontend-modern/src/components/Infrastructure/UnifiedResourcePBSTableSection.tsx
+++ b/frontend-modern/src/components/Infrastructure/UnifiedResourcePBSTableSection.tsx
@@ -1,6 +1,7 @@
import { For, Show, createMemo } from 'solid-js';
import type { Component } from 'solid-js';
import { formatUptime } from '@/utils/format';
+import { InlineDetailTableRow } from '@/components/shared/InlineDetailTableRow';
import { StatusDot } from '@/components/shared/StatusDot';
import {
buildSummaryDisclosureControlsId,
@@ -212,7 +213,11 @@ export const UnifiedResourcePBSTableSection: Component<UnifiedResourcePBSTableSe
<div class="flex justify-center">
<Show
when={pbsRow()?.datastores != null}
- fallback={<span class="text-xs text-slate-400" aria-hidden="true">—</span>}
+ fallback={
+ <span class="text-xs text-slate-400" aria-hidden="true">
+ —
+ </span>
+ }
>
<span class="text-xs text-base-content">{pbsRow()!.datastores}</span>
</Show>
@@ -223,7 +228,11 @@ export const UnifiedResourcePBSTableSection: Component<UnifiedResourcePBSTableSe
<div class="flex justify-center">
<Show
when={pbsRow()?.activity}
- fallback={<span class="text-xs text-slate-400" aria-hidden="true">—</span>}
+ fallback={
+ <span class="text-xs text-slate-400" aria-hidden="true">
+ —
+ </span>
+ }
>
<div
class="flex flex-col items-center leading-tight"
@@ -244,7 +253,11 @@ export const UnifiedResourcePBSTableSection: Component<UnifiedResourcePBSTableSe
<div class="flex justify-center">
<Show
when={pbsRow()?.health}
- fallback={<span class="text-xs text-slate-400" aria-hidden="true">—</span>}
+ fallback={
+ <span class="text-xs text-slate-400" aria-hidden="true">
+ —
+ </span>
+ }
>
<span class={`text-xs font-medium ${healthClass()}`}>
{pbsRow()!.health}
@@ -271,7 +284,11 @@ export const UnifiedResourcePBSTableSection: Component<UnifiedResourcePBSTableSe
<div class="flex justify-center">
<Show
when={resource.uptime}
- fallback={<span class="text-xs text-slate-400" aria-hidden="true">—</span>}
+ fallback={
+ <span class="text-xs text-slate-400" aria-hidden="true">
+ —
+ </span>
+ }
>
<span class="text-xs text-base-content whitespace-nowrap">
{formatUptime(resource.uptime ?? 0)}
@@ -284,7 +301,11 @@ export const UnifiedResourcePBSTableSection: Component<UnifiedResourcePBSTableSe
<div class="flex justify-center">
<Show
when={serviceLink()}
- fallback={<span class="text-xs text-slate-400" aria-hidden="true">—</span>}
+ fallback={
+ <span class="text-xs text-slate-400" aria-hidden="true">
+ —
+ </span>
+ }
>
{(link) => (
<a
@@ -302,19 +323,19 @@ export const UnifiedResourcePBSTableSection: Component<UnifiedResourcePBSTableSe
</TableCell>
</TableRow>
<Show when={isExpanded()}>
- <TableRow data-inline-detail-for={resource.id}>
- <TableCell
- id={detailControlsId()}
- colspan={7}
- class="bg-surface-alt px-4 py-4 border-b border-border-subtle shadow-inner"
- >
- <ResourceDetailDrawer
- resource={resource}
- resolveResourceLabel={table.resolveResourceLabel}
- onClose={() => tableProps.onExpandedResourceChange(null)}
- />
- </TableCell>
- </TableRow>
+ <InlineDetailTableRow
+ cellId={detailControlsId()}
+ cellClass="border-border-subtle shadow-inner"
+ colspan={7}
+ contentClass="px-4 py-4"
+ data-inline-detail-for={resource.id}
+ >
+ <ResourceDetailDrawer
+ resource={resource}
+ resolveResourceLabel={table.resolveResourceLabel}
+ onClose={() => tableProps.onExpandedResourceChange(null)}
+ />
+ </InlineDetailTableRow>
</Show>
</>
);
diff --git a/frontend-modern/src/components/Infrastructure/UnifiedResourcePMGTableSection.tsx b/frontend-modern/src/components/Infrastructure/UnifiedResourcePMGTableSection.tsx
index d1fa195d18..6f4ae3d6f1 100644
--- a/frontend-modern/src/components/Infrastructure/UnifiedResourcePMGTableSection.tsx
+++ b/frontend-modern/src/components/Infrastructure/UnifiedResourcePMGTableSection.tsx
@@ -1,6 +1,7 @@
import { For, Show, createMemo } from 'solid-js';
import type { Component } from 'solid-js';
import { formatUptime } from '@/utils/format';
+import { InlineDetailTableRow } from '@/components/shared/InlineDetailTableRow';
import { StatusDot } from '@/components/shared/StatusDot';
import {
buildSummaryDisclosureControlsId,
@@ -226,7 +227,11 @@ export const UnifiedResourcePMGTableSection: Component<UnifiedResourcePMGTableSe
<div class="flex justify-center">
<Show
when={pmgRow()?.queue != null}
- fallback={<span class="text-xs text-slate-400" aria-hidden="true">—</span>}
+ fallback={
+ <span class="text-xs text-slate-400" aria-hidden="true">
+ —
+ </span>
+ }
>
<span class={`text-xs font-medium ${queueClass()}`}>
{pmgRow()!.queue}
@@ -239,7 +244,11 @@ export const UnifiedResourcePMGTableSection: Component<UnifiedResourcePMGTableSe
<div class="flex justify-center">
<Show
when={pmgRow()?.deferred != null}
- fallback={<span class="text-xs text-slate-400" aria-hidden="true">—</span>}
+ fallback={
+ <span class="text-xs text-slate-400" aria-hidden="true">
+ —
+ </span>
+ }
>
<span class="text-xs text-base-content">{pmgRow()!.deferred}</span>
</Show>
@@ -254,7 +263,11 @@ export const UnifiedResourcePMGTableSection: Component<UnifiedResourcePMGTableSe
<div class="flex justify-center">
<Show
when={pmgRow()?.hold != null}
- fallback={<span class="text-xs text-slate-400" aria-hidden="true">—</span>}
+ fallback={
+ <span class="text-xs text-slate-400" aria-hidden="true">
+ —
+ </span>
+ }
>
<span class="text-xs text-base-content">{pmgRow()!.hold}</span>
</Show>
@@ -265,7 +278,11 @@ export const UnifiedResourcePMGTableSection: Component<UnifiedResourcePMGTableSe
<div class="flex justify-center">
<Show
when={pmgRow()?.nodes != null}
- fallback={<span class="text-xs text-slate-400" aria-hidden="true">—</span>}
+ fallback={
+ <span class="text-xs text-slate-400" aria-hidden="true">
+ —
+ </span>
+ }
>
<span class="text-xs text-base-content">{pmgRow()!.nodes}</span>
</Show>
@@ -276,7 +293,11 @@ export const UnifiedResourcePMGTableSection: Component<UnifiedResourcePMGTableSe
<div class="flex justify-center">
<Show
when={pmgRow()?.health}
- fallback={<span class="text-xs text-slate-400" aria-hidden="true">—</span>}
+ fallback={
+ <span class="text-xs text-slate-400" aria-hidden="true">
+ —
+ </span>
+ }
>
<span class={`text-xs font-medium ${healthClass()}`}>
{pmgRow()!.health}
@@ -303,7 +324,11 @@ export const UnifiedResourcePMGTableSection: Component<UnifiedResourcePMGTableSe
<div class="flex justify-center">
<Show
when={resource.uptime}
- fallback={<span class="text-xs text-slate-400" aria-hidden="true">—</span>}
+ fallback={
+ <span class="text-xs text-slate-400" aria-hidden="true">
+ —
+ </span>
+ }
>
<span class="text-xs text-base-content whitespace-nowrap">
{formatUptime(resource.uptime ?? 0)}
@@ -316,7 +341,11 @@ export const UnifiedResourcePMGTableSection: Component<UnifiedResourcePMGTableSe
<div class="flex justify-center">
<Show
when={serviceLink()}
- fallback={<span class="text-xs text-slate-400" aria-hidden="true">—</span>}
+ fallback={
+ <span class="text-xs text-slate-400" aria-hidden="true">
+ —
+ </span>
+ }
>
{(link) => (
<a
@@ -334,19 +363,19 @@ export const UnifiedResourcePMGTableSection: Component<UnifiedResourcePMGTableSe
</TableCell>
</TableRow>
<Show when={isExpanded()}>
- <TableRow data-inline-detail-for={resource.id}>
- <TableCell
- id={detailControlsId()}
- colspan={9}
- class="bg-surface-alt px-4 py-4 border-b border-border-subtle shadow-inner"
- >
- <ResourceDetailDrawer
- resource={resource}
- resolveResourceLabel={table.resolveResourceLabel}
- onClose={() => tableProps.onExpandedResourceChange(null)}
- />
- </TableCell>
- </TableRow>
+ <InlineDetailTableRow
+ cellId={detailControlsId()}
+ cellClass="border-border-subtle shadow-inner"
+ colspan={9}
+ contentClass="px-4 py-4"
+ data-inline-detail-for={resource.id}
+ >
+ <ResourceDetailDrawer
+ resource={resource}
+ resolveResourceLabel={table.resolveResourceLabel}
+ onClose={() => tableProps.onExpandedResourceChange(null)}
+ />
+ </InlineDetailTableRow>
</Show>
</>
);
diff --git a/frontend-modern/src/components/Workloads/WorkloadPanel.tsx b/frontend-modern/src/components/Workloads/WorkloadPanel.tsx
index 636d928a5a..df0f44a1a9 100644
--- a/frontend-modern/src/components/Workloads/WorkloadPanel.tsx
+++ b/frontend-modern/src/components/Workloads/WorkloadPanel.tsx
@@ -11,6 +11,7 @@ import {
getGroupedTableRowClass,
getInteractiveGroupedTableRowClass,
} from '@/components/shared/groupedTableRowPresentation';
+import { InlineDetailTableRow } from '@/components/shared/InlineDetailTableRow';
import { NodeGroupHeader } from '@/components/shared/NodeGroupHeader';
import { createSummaryInteractiveRowPreviewHandlers } from '@/components/shared/summaryInteractionA11y';
import { buildSummaryDisclosureControlsId } from '@/components/shared/summaryInteractionA11y';
@@ -496,19 +497,12 @@ export function WorkloadPanel(props: WorkloadPanelProps) {
/>
</Show>
<Show when={shouldShowNodeDrawer()}>
- <TableRow data-inline-node-detail-for={groupKey()}>
- <TableCell
- colspan={props.totalColumns()}
- class="p-0 border-b border-border bg-surface-alt"
- >
- <div
- class="px-2 sm:px-4 py-3 sm:py-4"
- onClick={(event) => event.stopPropagation()}
- >
- <NodeDrawer node={node()!} />
- </div>
- </TableCell>
- </TableRow>
+ <InlineDetailTableRow
+ colspan={props.totalColumns()}
+ data-inline-node-detail-for={groupKey()}
+ >
+ <NodeDrawer node={node()!} />
+ </InlineDetailTableRow>
</Show>
</Show>
<Index each={groupGuests()} fallback={<></>}>
@@ -561,26 +555,19 @@ export function WorkloadPanel(props: WorkloadPanelProps) {
onHoverChange={props.setHoveredWorkloadId}
/>
<Show when={props.selectedGuestId() === guestId()}>
- <TableRow data-inline-detail-for={guestId()}>
- <TableCell
- id={detailControlsId()}
- colspan={props.totalColumns()}
- class="p-0 border-b border-border bg-surface-alt"
- >
- <div
- class="px-2 sm:px-4 py-3 sm:py-4"
- onClick={(event) => event.stopPropagation()}
- >
- <GuestDrawer
- guest={guest()}
- onClose={() => props.setSelectedGuestId(null)}
- customUrl={metadata()?.customUrl}
- onCustomUrlChange={props.handleCustomUrlUpdate}
- parentNodeOnline={parentNodeOnline()}
- />
- </div>
- </TableCell>
- </TableRow>
+ <InlineDetailTableRow
+ cellId={detailControlsId()}
+ colspan={props.totalColumns()}
+ data-inline-detail-for={guestId()}
+ >
+ <GuestDrawer
+ guest={guest()}
+ onClose={() => props.setSelectedGuestId(null)}
+ customUrl={metadata()?.customUrl}
+ onCustomUrlChange={props.handleCustomUrlUpdate}
+ parentNodeOnline={parentNodeOnline()}
+ />
+ </InlineDetailTableRow>
</Show>
</ComponentErrorBoundary>
);
diff --git a/frontend-modern/src/components/Workloads/__tests__/WorkloadsSurface.performance.contract.test.tsx b/frontend-modern/src/components/Workloads/__tests__/WorkloadsSurface.performance.contract.test.tsx
index fbc9da620b..f79209e4b6 100644
--- a/frontend-modern/src/components/Workloads/__tests__/WorkloadsSurface.performance.contract.test.tsx
+++ b/frontend-modern/src/components/Workloads/__tests__/WorkloadsSurface.performance.contract.test.tsx
@@ -398,10 +398,14 @@ describe('Workloads platform-page embed contract', () => {
expect(proxmoxSource).toContain('STORAGE_KEYS.WORKLOADS_METRIC_DISPLAY_MODE');
expect(proxmoxSource).toContain('STORAGE_KEYS.WORKLOADS_METRIC_HISTORY_RANGE');
expect(proxmoxSource).toContain('metricDisplayMode={metricDisplayMode}');
- expect(proxmoxSource).toContain('setMetricDisplayMode={workloadsState.setWorkloadMetricDisplayMode}');
+ expect(proxmoxSource).toContain(
+ 'setMetricDisplayMode={workloadsState.setWorkloadMetricDisplayMode}',
+ );
expect(proxmoxSource).toContain('onMetricDisplayModeChange: props.setMetricDisplayMode,');
expect(proxmoxSource).toContain('metricHistoryRange={metricHistoryRange}');
- expect(proxmoxSource).toContain('setMetricHistoryRange={workloadsState.setWorkloadMetricHistoryRange}');
+ expect(proxmoxSource).toContain(
+ 'setMetricHistoryRange={workloadsState.setWorkloadMetricHistoryRange}',
+ );
expect(proxmoxSource).toContain('onMetricHistoryRangeChange: props.setMetricHistoryRange,');
const nodesTableSource = (await import('../../../features/proxmox/ProxmoxNodesTable.tsx?raw'))
@@ -1004,7 +1008,9 @@ describe('Workloads performance contract', () => {
expect(workloadsSelectionStateSource).toContain("from './workloadSelectionModel'");
expect(workloadsSelectionStateSource).not.toContain('useNavigate');
expect(workloadsSelectionStateSource).not.toContain('createRouteStateNavigateScheduler');
- expect(workloadsSelectionStateSource).not.toContain('resolveWorkloadsSelectionNavigateTarget');
+ expect(workloadsSelectionStateSource).not.toContain(
+ 'resolveWorkloadsSelectionNavigateTarget',
+ );
expect(workloadsSelectionStateSource).not.toContain('parseWorkloadsLinkSearch');
expect(workloadsSelectionStateSource).not.toContain('getCanonicalWorkloadId');
expect(workloadSelectionModelSource).toContain('parseWorkloadsLinkSearch(search)');
@@ -1194,8 +1200,8 @@ describe('Workloads performance contract', () => {
expect(guestRowSource).toContain('style={getGuestColumnStyle(');
expect(guestRowSource).toContain('props.workloadTableLayoutMode');
expect(guestRowSource).toContain('props.visibleColumnIds');
- expect(guestRowSource).toContain('when={customUrl()}');
- expect(guestRowSource).toContain('target="_blank"');
+ expect(guestRowSource).toContain('WebInterfaceNameLink');
+ expect(guestRowSource).not.toContain('target="_blank"');
expect(guestRowSource).not.toContain('data-workload-col="link"');
expect(guestRowSource).not.toContain('Open related infrastructure');
expect(guestRowSource).not.toContain('export const GUEST_COLUMNS');
@@ -1263,7 +1269,9 @@ describe('Workloads performance contract', () => {
expect(guestDrawerStateSource).not.toContain('buildInfrastructureHrefForWorkload');
expect(guestDrawerStateSource).not.toContain("from '@/routing/resourceLinks'");
expect(guestDrawerStateSource).toContain("from '@/hooks/createNonSuspendingQuery'");
- expect(guestDrawerStateSource).toMatch(/createNonSuspendingQuery<\s*ResourceDiscovery \| null/);
+ expect(guestDrawerStateSource).toMatch(
+ /createNonSuspendingQuery<\s*ResourceDiscovery \| null/,
+ );
expect(guestDrawerStateSource).not.toContain('createResource');
expect(guestDrawerStateSource).toContain("from './workloadTopology'");
expect(guestDrawerStateSource).not.toContain('./infrastructureLink');
diff --git a/frontend-modern/src/components/shared/InlineDetailTableRow.tsx b/frontend-modern/src/components/shared/InlineDetailTableRow.tsx
new file mode 100644
index 0000000000..5105723858
--- /dev/null
+++ b/frontend-modern/src/components/shared/InlineDetailTableRow.tsx
@@ -0,0 +1,57 @@
+import { splitProps, type JSX } from 'solid-js';
+
+import { TableCell, TableRow, type TableRowProps } from './Table';
+
+export const INLINE_DETAIL_TABLE_CELL_CLASS = 'p-0 border-b border-border bg-surface-alt';
+export const INLINE_DETAIL_TABLE_CONTENT_CLASS = 'px-2 py-3 sm:px-4 sm:py-4';
+
+export interface InlineDetailTableRowProps extends TableRowProps {
+ cellId?: string;
+ cellClass?: string;
+ colSpan?: number;
+ colspan?: number;
+ contentClass?: string;
+ containClicks?: boolean;
+ children?: JSX.Element;
+}
+
+const joinClasses = (...classes: Array<string | undefined>): string =>
+ classes.filter(Boolean).join(' ');
+
+export function InlineDetailTableRow(props: InlineDetailTableRowProps) {
+ const [local, rest] = splitProps(props, [
+ 'cellId',
+ 'cellClass',
+ 'children',
+ 'class',
+ 'colSpan',
+ 'colspan',
+ 'containClicks',
+ 'contentClass',
+ ]);
+ const containClicks = () => local.containClicks ?? true;
+ const contentClass = () => local.contentClass ?? INLINE_DETAIL_TABLE_CONTENT_CLASS;
+
+ return (
+ <TableRow class={local.class} {...rest}>
+ <TableCell
+ id={local.cellId}
+ colspan={local.colspan ?? local.colSpan}
+ class={joinClasses(INLINE_DETAIL_TABLE_CELL_CLASS, local.cellClass)}
+ >
+ <div
+ class={contentClass()}
+ onClick={(event) => {
+ if (containClicks()) {
+ event.stopPropagation();
+ }
+ }}
+ >
+ {local.children}
+ </div>
+ </TableCell>
+ </TableRow>
+ );
+}
+
+export default InlineDetailTableRow;
diff --git a/frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.ts b/frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.ts
index 1adce6d942..45df08393f 100644
--- a/frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.ts
+++ b/frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.ts
@@ -90,6 +90,7 @@ import webInterfaceUrlFieldSource from '@/components/shared/WebInterfaceUrlField
import webInterfaceUrlFieldModelSource from '@/components/shared/webInterfaceUrlFieldModel.ts?raw';
import webInterfaceUrlFieldStateSource from '@/components/shared/useWebInterfaceUrlFieldState.ts?raw';
import webInterfaceNameLinkSource from '@/components/shared/WebInterfaceNameLink.tsx?raw';
+import inlineDetailTableRowSource from '@/components/shared/InlineDetailTableRow.tsx?raw';
import sharedTemplateRegistrySource from '../../../scripts/shared-template-registry.json?raw';
import sharedPlatformPageSource from '@/features/platformPage/sharedPlatformPage.tsx?raw';
import platformResourceDetailTableRowSource from '@/features/platformPage/PlatformResourceDetailTableRow.tsx?raw';
@@ -1012,6 +1013,7 @@ describe('shared primitive guardrails', () => {
triggerPatterns?: string[];
requiredPatterns?: string[];
allowedPaths?: string[];
+ ignoredPaths?: string[];
}>;
};
const requiredGuards = registry.requiredPatternGuards ?? [];
@@ -1052,6 +1054,84 @@ describe('shared primitive guardrails', () => {
expect(agentsMachinesTableSource).not.toContain('data-agent-machine-expand-icon');
});
+ it('keeps inline detail table rows on the shared row shell primitive', () => {
+ const registry = JSON.parse(sharedTemplateRegistrySource) as {
+ rules?: Array<{
+ id: string;
+ canonical?: { path?: string; export?: string };
+ requiredConsumers?: Array<{ path?: string }>;
+ }>;
+ requiredPatternGuards?: Array<{
+ id: string;
+ canonical?: { path?: string; export?: string };
+ triggerPatterns?: string[];
+ requiredPatterns?: string[];
+ allowedPaths?: string[];
+ ignoredPaths?: string[];
+ }>;
+ };
+ const registeredRule = registry.rules?.find(
+ (rule) => rule.id === 'inline-detail-table-row-shell',
+ );
+ const requiredGuards = registry.requiredPatternGuards ?? [];
+ const inlineGuard = requiredGuards.find(
+ (guard) => guard.id === 'inline-detail-table-row-shared-shell',
+ );
+ const namedGuard = requiredGuards.find(
+ (guard) => guard.id === 'named-detail-table-row-shared-shell',
+ );
+
+ expect(registeredRule?.canonical?.path).toBe('src/components/shared/InlineDetailTableRow.tsx');
+ expect(registeredRule?.canonical?.export).toBe('InlineDetailTableRow');
+ expect(inlineDetailTableRowSource).toContain('INLINE_DETAIL_TABLE_CELL_CLASS');
+ expect(inlineDetailTableRowSource).toContain('INLINE_DETAIL_TABLE_CONTENT_CLASS');
+ expect(inlineDetailTableRowSource).toContain('event.stopPropagation()');
+ expect(registeredRule?.requiredConsumers?.map((consumer) => consumer.path)).toEqual(
+ expect.arrayContaining([
+ 'src/components/Infrastructure/UnifiedResourceHostTableCard.tsx',
+ 'src/components/Infrastructure/UnifiedResourcePBSTableSection.tsx',
+ 'src/components/Infrastructure/UnifiedResourcePMGTableSection.tsx',
+ 'src/components/Workloads/WorkloadPanel.tsx',
+ 'src/features/docker/DockerHostsTable.tsx',
+ 'src/features/docker/DockerNetworksTable.tsx',
+ 'src/features/platformPage/PlatformResourceDetailTableRow.tsx',
+ 'src/features/proxmox/ProxmoxCoverageTable.tsx',
+ 'src/features/proxmox/ProxmoxNodesTable.tsx',
+ ]),
+ );
+
+ for (const guard of [inlineGuard, namedGuard]) {
+ expect(guard?.canonical?.path).toBe('src/components/shared/InlineDetailTableRow.tsx');
+ expect(guard?.canonical?.export).toBe('InlineDetailTableRow');
+ expect(guard?.requiredPatterns).toEqual(['InlineDetailTableRow']);
+ expect(guard?.allowedPaths ?? []).toHaveLength(0);
+ }
+ expect(inlineGuard?.triggerPatterns).toEqual(['data-inline', 'TableRow']);
+ expect(inlineGuard?.ignoredPaths).toEqual([
+ 'src/components/Workloads/__tests__/WorkloadsSurface.performance.contract.test.tsx',
+ ]);
+ expect(namedGuard?.triggerPatterns).toEqual(['detail-row', 'TableRow']);
+ expect(namedGuard?.ignoredPaths ?? []).toHaveLength(0);
+
+ for (const source of [
+ platformResourceDetailTableRowSource,
+ dockerHostsTableSource,
+ proxmoxCoverageTableSource,
+ proxmoxNodesTableSource,
+ unifiedResourceHostTableCardSource,
+ unifiedResourcePBSTableSectionSource,
+ unifiedResourcePMGTableSectionSource,
+ workloadPanelSource,
+ ]) {
+ expect(source).toContain('InlineDetailTableRow');
+ expect(source).not.toContain('p-0 border-b border-border bg-surface-alt');
+ expect(source).not.toContain('border-b border-border bg-surface-alt p-0');
+ expect(source).not.toContain(
+ 'bg-surface-alt px-4 py-4 border-b border-border-subtle shadow-inner',
+ );
+ }
+ });
+
it('keeps help icon on shell, runtime, and model owners', () => {
expect(helpIconSource).toContain('useHelpIconState');
expect(helpIconSource).not.toContain('getHelpContent(');
diff --git a/frontend-modern/src/components/shared/__tests__/InlineDetailTableRow.test.tsx b/frontend-modern/src/components/shared/__tests__/InlineDetailTableRow.test.tsx
new file mode 100644
index 0000000000..63a21a051f
--- /dev/null
+++ b/frontend-modern/src/components/shared/__tests__/InlineDetailTableRow.test.tsx
@@ -0,0 +1,56 @@
+import { render, screen } from '@solidjs/testing-library';
+import { describe, expect, it, vi } from 'vitest';
+
+import { InlineDetailTableRow } from '@/components/shared/InlineDetailTableRow';
+import { Table, TableBody } from '@/components/shared/Table';
+
+describe('InlineDetailTableRow', () => {
+ it('renders the canonical inline detail shell with caller row attributes', () => {
+ render(() => (
+ <Table>
+ <TableBody>
+ <InlineDetailTableRow
+ cellId="detail-row-a"
+ colspan={4}
+ data-inline-detail-for="row-a"
+ data-platform-detail-row="row-a"
+ >
+ <div>Detail content</div>
+ </InlineDetailTableRow>
+ </TableBody>
+ </Table>
+ ));
+
+ const detail = screen.getByText('Detail content');
+ const row = detail.closest('tr');
+ const cell = detail.closest('td');
+
+ expect(row).toHaveAttribute('data-inline-detail-for', 'row-a');
+ expect(row).toHaveAttribute('data-platform-detail-row', 'row-a');
+ expect(cell).toHaveAttribute('id', 'detail-row-a');
+ expect(cell).toHaveAttribute('colspan', '4');
+ expect(cell).toHaveClass('p-0');
+ expect(cell).toHaveClass('border-b');
+ expect(cell).toHaveClass('bg-surface-alt');
+ expect(detail.parentElement).toHaveClass('px-2');
+ expect(detail.parentElement).toHaveClass('sm:px-4');
+ });
+
+ it('contains clicks inside the detail content by default', () => {
+ const onRowClick = vi.fn();
+
+ render(() => (
+ <Table>
+ <TableBody>
+ <InlineDetailTableRow colspan={1} onClick={onRowClick}>
+ <button type="button">Nested action</button>
+ </InlineDetailTableRow>
+ </TableBody>
+ </Table>
+ ));
+
+ screen.getByRole('button', { name: 'Nested action' }).click();
+
+ expect(onRowClick).not.toHaveBeenCalled();
+ });
+});
diff --git a/frontend-modern/src/features/docker/DockerAlertsTable.tsx b/frontend-modern/src/features/docker/DockerAlertsTable.tsx
index 2134dba432..5ac26ed079 100644
--- a/frontend-modern/src/features/docker/DockerAlertsTable.tsx
+++ b/frontend-modern/src/features/docker/DockerAlertsTable.tsx
@@ -1,5 +1,6 @@
import { For, Show, type Component, type JSX } from 'solid-js';
import XIcon from 'lucide-solid/icons/x';
+import { InlineDetailTableRow } from '@/components/shared/InlineDetailTableRow';
import { StatusDot } from '@/components/shared/StatusDot';
import { TableCell, TableHead, TableRow } from '@/components/shared/Table';
import {
@@ -360,26 +361,17 @@ export const DockerAlertsTable: Component<{
</TableCell>
</TableRow>
<Show when={isExpanded()}>
- <TableRow
+ <InlineDetailTableRow
+ cellId={detailRowId()}
+ colspan={6}
data-inline-detail-for={incident.id}
data-docker-alert-detail-row={incident.id}
>
- <TableCell
- id={detailRowId()}
- colspan={6}
- class="border-b border-border bg-surface-alt p-0"
- >
- <div
- class="px-2 py-3 sm:px-4 sm:py-4"
- onClick={(event) => event.stopPropagation()}
- >
- <AlertDetail
- incident={incident}
- onClose={() => drawer.close(incident)}
- />
- </div>
- </TableCell>
- </TableRow>
+ <AlertDetail
+ incident={incident}
+ onClose={() => drawer.close(incident)}
+ />
+ </InlineDetailTableRow>
</Show>
</>
);
diff --git a/frontend-modern/src/features/docker/DockerHostsTable.tsx b/frontend-modern/src/features/docker/DockerHostsTable.tsx
index 5d05fcd675..ceaef9c254 100644
--- a/frontend-modern/src/features/docker/DockerHostsTable.tsx
+++ b/frontend-modern/src/features/docker/DockerHostsTable.tsx
@@ -1,4 +1,5 @@
import { For, Show, createMemo, createSignal, type Component, type JSX } from 'solid-js';
+import { InlineDetailTableRow } from '@/components/shared/InlineDetailTableRow';
import { StatusDot } from '@/components/shared/StatusDot';
import { DockerHostDrawer } from './DockerHostDrawer';
import { ResponsiveMetricCell } from '@/components/shared/responsive';
@@ -388,20 +389,13 @@ export const DockerHostsTable: Component<{
</Show>
</TableRow>
<Show when={isSelected()}>
- <TableRow data-inline-docker-host-detail-for={host.id}>
- <TableCell
- id={detailRowId()}
- colspan={drawerColspan()}
- class="p-0 border-b border-border bg-surface-alt"
- >
- <div
- class="px-2 py-3 sm:px-4 sm:py-4"
- onClick={(event) => event.stopPropagation()}
- >
- <DockerHostDrawer host={host} />
- </div>
- </TableCell>
- </TableRow>
+ <InlineDetailTableRow
+ cellId={detailRowId()}
+ colspan={drawerColspan()}
+ data-inline-docker-host-detail-for={host.id}
+ >
+ <DockerHostDrawer host={host} />
+ </InlineDetailTableRow>
</Show>
</>
);
diff --git a/frontend-modern/src/features/docker/DockerNetworksTable.tsx b/frontend-modern/src/features/docker/DockerNetworksTable.tsx
index c3aa004471..832d423df5 100644
--- a/frontend-modern/src/features/docker/DockerNetworksTable.tsx
+++ b/frontend-modern/src/features/docker/DockerNetworksTable.tsx
@@ -1,4 +1,5 @@
import { For, Show, createMemo, createSignal, type Component } from 'solid-js';
+import { InlineDetailTableRow } from '@/components/shared/InlineDetailTableRow';
import { StatusDot } from '@/components/shared/StatusDot';
import { TableCell, TableHead, TableRow } from '@/components/shared/Table';
import {
@@ -502,21 +503,15 @@ export const DockerNetworksTable: Component<DockerNetworksTableProps> = (props)
</TableCell>
</TableRow>
<Show when={isExpanded()}>
- <TableRow data-docker-network-detail-row={resource.id}>
- <TableCell
- id={detailRowId()}
- colspan={6}
- class="border-b border-border bg-surface-alt p-0"
- >
- <div
- class="grid gap-4 px-2 py-3 sm:px-4 sm:py-4 lg:grid-cols-[minmax(0,1fr)_minmax(16rem,24rem)]"
- onClick={(event) => event.stopPropagation()}
- >
- <AttachmentDetail rows={attachments()} />
- <NetworkConfigDetail resource={resource} />
- </div>
- </TableCell>
- </TableRow>
+ <InlineDetailTableRow
+ cellId={detailRowId()}
+ colspan={6}
+ contentClass="grid gap-4 px-2 py-3 sm:px-4 sm:py-4 lg:grid-cols-[minmax(0,1fr)_minmax(16rem,24rem)]"
+ data-docker-network-detail-row={resource.id}
+ >
+ <AttachmentDetail rows={attachments()} />
+ <NetworkConfigDetail resource={resource} />
+ </InlineDetailTableRow>
</Show>
</>
);
diff --git a/frontend-modern/src/features/kubernetes/KubernetesAlertsTable.tsx b/frontend-modern/src/features/kubernetes/KubernetesAlertsTable.tsx
index 9cda04daad..976e3dcee7 100644
--- a/frontend-modern/src/features/kubernetes/KubernetesAlertsTable.tsx
+++ b/frontend-modern/src/features/kubernetes/KubernetesAlertsTable.tsx
@@ -1,5 +1,6 @@
import { For, Show, type Component, type JSX } from 'solid-js';
import XIcon from 'lucide-solid/icons/x';
+import { InlineDetailTableRow } from '@/components/shared/InlineDetailTableRow';
import { StatusDot } from '@/components/shared/StatusDot';
import { TableCell, TableHead, TableRow } from '@/components/shared/Table';
import {
@@ -386,26 +387,17 @@ export const KubernetesAlertsTable: Component<{
</TableCell>
</TableRow>
<Show when={isExpanded()}>
- <TableRow
+ <InlineDetailTableRow
+ cellId={detailRowId()}
+ colspan={6}
data-inline-detail-for={incident.id}
data-kubernetes-alert-detail-row={incident.id}
>
- <TableCell
- id={detailRowId()}
- colspan={6}
- class="border-b border-border bg-surface-alt p-0"
- >
- <div
- class="px-2 py-3 sm:px-4 sm:py-4"
- onClick={(event) => event.stopPropagation()}
- >
- <AlertDetail
- incident={incident}
- onClose={() => drawer.close(incident)}
- />
- </div>
- </TableCell>
- </TableRow>
+ <AlertDetail
+ incident={incident}
+ onClose={() => drawer.close(incident)}
+ />
+ </InlineDetailTableRow>
</Show>
</>
);
diff --git a/frontend-modern/src/features/platformPage/PlatformResourceDetailTableRow.tsx b/frontend-modern/src/features/platformPage/PlatformResourceDetailTableRow.tsx
index be4726bde6..f52dcf446f 100644
--- a/frontend-modern/src/features/platformPage/PlatformResourceDetailTableRow.tsx
+++ b/frontend-modern/src/features/platformPage/PlatformResourceDetailTableRow.tsx
@@ -1,8 +1,8 @@
import { Show, createSignal, type Component, type JSX } from 'solid-js';
import { ResourceDetailDrawer } from '@/components/Infrastructure/ResourceDetailDrawer';
import { hasTrueNASDetailSections } from '@/components/Infrastructure/resourceDetailDrawerTrueNASModel';
+import { InlineDetailTableRow } from '@/components/shared/InlineDetailTableRow';
import { SummaryRowActionButton } from '@/components/shared/SummaryRowActionButton';
-import { TableCell, TableRow } from '@/components/shared/Table';
import type { Resource } from '@/types/resource';
import { getPreferredInfrastructureDisplayName } from '@/utils/resourceIdentity';
@@ -102,27 +102,21 @@ export const PlatformResourceDetailTableRow: Component<{
return (
<Show when={props.open}>
- <TableRow
+ <InlineDetailTableRow
+ cellId={props.detailRowId}
+ colspan={props.colSpan}
data-inline-detail-for={props.resource.id}
data-inline-platform-resource-detail-for={props.resource.id}
>
- <TableCell
- id={props.detailRowId}
- colspan={props.colSpan}
- class="border-b border-border bg-surface-alt p-0"
- >
- <div class="px-2 py-3 sm:px-4 sm:py-4" onClick={(event) => event.stopPropagation()}>
- <ResourceDetailDrawer
- resource={props.resource}
- presentation="table-row"
- resolveResourceLabel={props.resolveResourceLabel}
- initialShowAccessContext={props.initialShowAccessContext}
- initialShowTrueNASDetails={initialShowTrueNASDetails()}
- onClose={props.onClose}
- />
- </div>
- </TableCell>
- </TableRow>
+ <ResourceDetailDrawer
+ resource={props.resource}
+ presentation="table-row"
+ resolveResourceLabel={props.resolveResourceLabel}
+ initialShowAccessContext={props.initialShowAccessContext}
+ initialShowTrueNASDetails={initialShowTrueNASDetails()}
+ onClose={props.onClose}
+ />
+ </InlineDetailTableRow>
</Show>
);
};
diff --git a/frontend-modern/src/features/proxmox/ProxmoxCephTable.tsx b/frontend-modern/src/features/proxmox/ProxmoxCephTable.tsx
index 86f9460d35..0a6ea947a6 100644
--- a/frontend-modern/src/features/proxmox/ProxmoxCephTable.tsx
+++ b/frontend-modern/src/features/proxmox/ProxmoxCephTable.tsx
@@ -9,6 +9,7 @@ import {
} from 'solid-js';
import { Card } from '@/components/shared/Card';
import { EmptyState } from '@/components/shared/EmptyState';
+import { InlineDetailTableRow } from '@/components/shared/InlineDetailTableRow';
import { StatusDot } from '@/components/shared/StatusDot';
import type { StatusIndicatorVariant } from '@/utils/status';
import { TableCell, TableHead, TableRow } from '@/components/shared/Table';
@@ -369,20 +370,14 @@ export const ProxmoxCephTable: Component<{
</TableCell>
</TableRow>
<Show when={isOpen()}>
- <TableRow data-inline-detail-for={cluster.id}>
- <TableCell
- id={detailRowId()}
- colspan={10}
- class="p-0 border-b border-border bg-surface-alt"
- >
- <div class="px-4 py-4" onClick={(event) => event.stopPropagation()}>
- <ProxmoxCephClusterDrawer
- cluster={cluster}
- onClose={closeSelected}
- />
- </div>
- </TableCell>
- </TableRow>
+ <InlineDetailTableRow
+ cellId={detailRowId()}
+ colspan={10}
+ contentClass="px-4 py-4"
+ data-inline-detail-for={cluster.id}
+ >
+ <ProxmoxCephClusterDrawer cluster={cluster} onClose={closeSelected} />
+ </InlineDetailTableRow>
</Show>
</>
);
diff --git a/frontend-modern/src/features/proxmox/ProxmoxCoverageTable.tsx b/frontend-modern/src/features/proxmox/ProxmoxCoverageTable.tsx
index 2c810d92a4..6efb54eb12 100644
--- a/frontend-modern/src/features/proxmox/ProxmoxCoverageTable.tsx
+++ b/frontend-modern/src/features/proxmox/ProxmoxCoverageTable.tsx
@@ -2,6 +2,7 @@ import { For, Show, type Accessor, type JSX } from 'solid-js';
import { Card } from '@/components/shared/Card';
import { EmptyState } from '@/components/shared/EmptyState';
+import { InlineDetailTableRow } from '@/components/shared/InlineDetailTableRow';
import { StatusDot } from '@/components/shared/StatusDot';
import { TableCell, TableRow } from '@/components/shared/Table';
import { formatBytes } from '@/utils/format';
@@ -354,89 +355,94 @@ export function ProxmoxCoverageTable(props: {
</Show>
</TableRow>
<Show when={isExpanded()}>
- <TableRow class="bg-surface-alt/40" data-inline-detail-for={row.key}>
- <TableCell id={detailRowId()} class="px-3 py-2" colspan={columnCount()}>
- <Show
- when={evidence().length > 0}
- fallback={
- <div class="text-xs text-muted">
- No restore evidence has been discovered for this workload.
- </div>
- }
- >
- <div class="overflow-hidden">
- <div class="mb-1 flex items-center justify-between gap-2 text-[11px]">
- <span class="font-medium text-base-content">Restore evidence</span>
- <Show when={row.artifacts.length > evidence().length}>
- <span class="text-muted">
- Showing {evidence().length} of {row.artifacts.length}
- </span>
- </Show>
- </div>
- <table class="w-full text-[11px]">
- <thead>
- <tr class="bg-surface-alt text-muted">
- <th class="px-2 py-0.5 text-left font-medium">Source</th>
- <th class="px-2 py-0.5 text-left font-medium">Location</th>
- <th class="px-2 py-0.5 text-right font-medium">
- {PROXMOX_BACKUP_COLUMN_LABELS.created}
- </th>
- <th class="px-2 py-0.5 text-right font-medium">Size</th>
- <th class="px-2 py-0.5 text-left font-medium">State</th>
- <th class="px-2 py-0.5 text-left font-medium">
- {PROXMOX_BACKUP_COLUMN_LABELS.details}
- </th>
- </tr>
- </thead>
- <tbody class="divide-y divide-border-subtle">
- <For each={evidence()}>
- {(artifact) => (
- <tr class="hover:bg-surface-hover">
- <td class="px-2 py-1">
- <ArtifactSourceBadge artifact={artifact} />
- </td>
- <td class="px-2 py-1 text-base-content">
- <span
- class="inline-block max-w-[18rem] truncate"
- title={artifact.location}
- >
- {artifact.location}
- </span>
- </td>
- <td class="px-2 py-1 text-right text-base-content">
- <ProxmoxBackupAgeText artifact={artifact} />
- </td>
- <td class="px-2 py-1 text-right tabular-nums text-base-content">
- <Show
- when={artifact.size && artifact.size > 0}
- fallback={<span class="text-muted">No size</span>}
- >
- {formatBytes(artifact.size ?? 0)}
- </Show>
- </td>
- <td class="px-2 py-1">
- <ArtifactStateBadge
- artifact={artifact}
- label={artifactStateLabel(artifact)}
- />
- </td>
- <td class="px-2 py-1 text-base-content">
- <span
- class="inline-block max-w-[24rem] truncate"
- title={artifact.detail}
- >
- {artifact.detail || '—'}
- </span>
- </td>
- </tr>
- )}
- </For>
- </tbody>
- </table>
+ <InlineDetailTableRow
+ cellId={detailRowId()}
+ class="bg-surface-alt/40"
+ cellClass="px-3 py-2"
+ contentClass=""
+ colspan={columnCount()}
+ data-inline-detail-for={row.key}
+ >
+ <Show
+ when={evidence().length > 0}
+ fallback={
+ <div class="text-xs text-muted">
+ No restore evidence has been discovered for this workload.
</div>
- </Show>
- </TableCell>
- </TableRow>
+ }
+ >
+ <div class="overflow-hidden">
+ <div class="mb-1 flex items-center justify-between gap-2 text-[11px]">
+ <span class="font-medium text-base-content">Restore evidence</span>
+ <Show when={row.artifacts.length > evidence().length}>
+ <span class="text-muted">
+ Showing {evidence().length} of {row.artifacts.length}
+ </span>
+ </Show>
+ </div>
+ <table class="w-full text-[11px]">
+ <thead>
+ <tr class="bg-surface-alt text-muted">
+ <th class="px-2 py-0.5 text-left font-medium">Source</th>
+ <th class="px-2 py-0.5 text-left font-medium">Location</th>
+ <th class="px-2 py-0.5 text-right font-medium">
+ {PROXMOX_BACKUP_COLUMN_LABELS.created}
+ </th>
+ <th class="px-2 py-0.5 text-right font-medium">Size</th>
+ <th class="px-2 py-0.5 text-left font-medium">State</th>
+ <th class="px-2 py-0.5 text-left font-medium">
+ {PROXMOX_BACKUP_COLUMN_LABELS.details}
+ </th>
+ </tr>
+ </thead>
+ <tbody class="divide-y divide-border-subtle">
+ <For each={evidence()}>
+ {(artifact) => (
+ <tr class="hover:bg-surface-hover">
+ <td class="px-2 py-1">
+ <ArtifactSourceBadge artifact={artifact} />
+ </td>
+ <td class="px-2 py-1 text-base-content">
+ <span
+ class="inline-block max-w-[18rem] truncate"
+ title={artifact.location}
+ >
+ {artifact.location}
+ </span>
+ </td>
+ <td class="px-2 py-1 text-right text-base-content">
+ <ProxmoxBackupAgeText artifact={artifact} />
+ </td>
+ <td class="px-2 py-1 text-right tabular-nums text-base-content">
+ <Show
+ when={artifact.size && artifact.size > 0}
+ fallback={<span class="text-muted">No size</span>}
+ >
+ {formatBytes(artifact.size ?? 0)}
+ </Show>
+ </td>
+ <td class="px-2 py-1">
+ <ArtifactStateBadge
+ artifact={artifact}
+ label={artifactStateLabel(artifact)}
+ />
+ </td>
+ <td class="px-2 py-1 text-base-content">
+ <span
+ class="inline-block max-w-[24rem] truncate"
+ title={artifact.detail}
+ >
+ {artifact.detail || '—'}
+ </span>
+ </td>
+ </tr>
+ )}
+ </For>
+ </tbody>
+ </table>
+ </div>
+ </Show>
+ </InlineDetailTableRow>
</Show>
</>
);
diff --git a/frontend-modern/src/features/proxmox/ProxmoxMailGatewayTable.tsx b/frontend-modern/src/features/proxmox/ProxmoxMailGatewayTable.tsx
index 339f8e3b9d..133d4c916a 100644
--- a/frontend-modern/src/features/proxmox/ProxmoxMailGatewayTable.tsx
+++ b/frontend-modern/src/features/proxmox/ProxmoxMailGatewayTable.tsx
@@ -1,6 +1,7 @@
import { For, Show, createSignal, type Component, type JSX } from 'solid-js';
import { Card } from '@/components/shared/Card';
import { EmptyState } from '@/components/shared/EmptyState';
+import { InlineDetailTableRow } from '@/components/shared/InlineDetailTableRow';
import { StatusDot } from '@/components/shared/StatusDot';
import { TableCell, TableHead, TableRow } from '@/components/shared/Table';
import { getSimpleStatusIndicator } from '@/utils/status';
@@ -204,20 +205,17 @@ export const ProxmoxMailGatewayTable: Component<{
</TableCell>
</TableRow>
<Show when={isOpen()}>
- <TableRow data-inline-detail-for={instance.id}>
- <TableCell
- id={detailRowId()}
- colspan={10}
- class="p-0 border-b border-border bg-surface-alt"
- >
- <div class="px-4 py-4" onClick={(event) => event.stopPropagation()}>
- <ProxmoxMailGatewayDrawer
- instanceRow={instance}
- onClose={() => setSelectedId(null)}
- />
- </div>
- </TableCell>
- </TableRow>
+ <InlineDetailTableRow
+ cellId={detailRowId()}
+ colspan={10}
+ contentClass="px-4 py-4"
+ data-inline-detail-for={instance.id}
+ >
+ <ProxmoxMailGatewayDrawer
+ instanceRow={instance}
+ onClose={() => setSelectedId(null)}
+ />
+ </InlineDetailTableRow>
</Show>
</>
);
diff --git a/frontend-modern/src/features/proxmox/ProxmoxNodesTable.tsx b/frontend-modern/src/features/proxmox/ProxmoxNodesTable.tsx
index 013913ca34..112333528e 100644
--- a/frontend-modern/src/features/proxmox/ProxmoxNodesTable.tsx
+++ b/frontend-modern/src/features/proxmox/ProxmoxNodesTable.tsx
@@ -12,6 +12,7 @@ import { useAlertsActivation } from '@/stores/alertsActivation';
import { getAlertStyles } from '@/utils/alerts';
import { StatusDot } from '@/components/shared/StatusDot';
import { WebInterfaceNameLink } from '@/components/shared/WebInterfaceNameLink';
+import { InlineDetailTableRow } from '@/components/shared/InlineDetailTableRow';
import { ResponsiveMetricCell } from '@/components/shared/responsive';
import { NodeDrawer } from '@/components/Workloads/NodeDrawer';
import { toDiscoveryConfig } from '@/components/Infrastructure/resourceDetailDiscoveryModel';
@@ -576,29 +577,22 @@ export const ProxmoxNodesTable: Component<{
</TableRow>
<Show when={isSelected() && drawerNode()}>
{(selectedNode) => (
- <TableRow data-inline-node-detail-for={node.id}>
- <TableCell
- id={detailRowId()}
- colspan={visibleColumns().length}
- class="p-0 border-b border-border bg-surface-alt"
- >
- <div
- class="px-2 py-3 sm:px-4 sm:py-4"
- onClick={(event) => event.stopPropagation()}
- >
- <NodeDrawer
- node={selectedNode()}
- disks={normalizeDiskArray(node.agent?.disks)}
- discoveryTarget={(() => {
- const config = toDiscoveryConfig(node);
- return config
- ? { agentId: config.agentId, hostname: config.hostname }
- : undefined;
- })()}
- />
- </div>
- </TableCell>
- </TableRow>
+ <InlineDetailTableRow
+ cellId={detailRowId()}
+ colspan={visibleColumns().length}
+ data-inline-node-detail-for={node.id}
+ >
+ <NodeDrawer
+ node={selectedNode()}
+ disks={normalizeDiskArray(node.agent?.disks)}
+ discoveryTarget={(() => {
+ const config = toDiscoveryConfig(node);
+ return config
+ ? { agentId: config.agentId, hostname: config.hostname }
+ : undefined;
+ })()}
+ />
+ </InlineDetailTableRow>
)}
</Show>
</>
diff --git a/frontend-modern/src/features/truenas/TrueNASAlertsTable.tsx b/frontend-modern/src/features/truenas/TrueNASAlertsTable.tsx
index 4b77589147..adda689a2e 100644
--- a/frontend-modern/src/features/truenas/TrueNASAlertsTable.tsx
+++ b/frontend-modern/src/features/truenas/TrueNASAlertsTable.tsx
@@ -1,4 +1,5 @@
import { For, Show, type Component, type JSX } from 'solid-js';
+import { InlineDetailTableRow } from '@/components/shared/InlineDetailTableRow';
import { StatusDot } from '@/components/shared/StatusDot';
import { TableCell, TableHead, TableRow } from '@/components/shared/Table';
import {
@@ -362,26 +363,17 @@ export const TrueNASAlertsTable: Component<{
</TableCell>
</TableRow>
<Show when={isExpanded()}>
- <TableRow
+ <InlineDetailTableRow
+ cellId={detailRowId()}
+ colspan={6}
data-inline-detail-for={incident.id}
data-truenas-alert-detail-row={incident.id}
>
- <TableCell
- id={detailRowId()}
- colspan={6}
- class="border-b border-border bg-surface-alt p-0"
- >
- <div
- class="px-2 py-3 sm:px-4 sm:py-4"
- onClick={(event) => event.stopPropagation()}
- >
- <AlertDetailTable
- incident={incident}
- onClose={() => drawer.close(incident)}
- />
- </div>
- </TableCell>
- </TableRow>
+ <AlertDetailTable
+ incident={incident}
+ onClose={() => drawer.close(incident)}
+ />
+ </InlineDetailTableRow>
</Show>
</>
);
diff --git a/frontend-modern/src/features/truenas/TrueNASProtectionTable.tsx b/frontend-modern/src/features/truenas/TrueNASProtectionTable.tsx
index 89666c1ca8..5ccbde60ca 100644
--- a/frontend-modern/src/features/truenas/TrueNASProtectionTable.tsx
+++ b/frontend-modern/src/features/truenas/TrueNASProtectionTable.tsx
@@ -1,4 +1,5 @@
import { For, Show, createMemo, type Component, type JSX } from 'solid-js';
+import { InlineDetailTableRow } from '@/components/shared/InlineDetailTableRow';
import { StatusDot } from '@/components/shared/StatusDot';
import { TableCell, TableHead, TableRow } from '@/components/shared/Table';
import { formatBytes } from '@/utils/format';
@@ -495,26 +496,17 @@ export const TrueNASProtectionTable: Component<{
</TableCell>
</TableRow>
<Show when={isExpanded()}>
- <TableRow
+ <InlineDetailTableRow
+ cellId={detailRowId()}
+ colspan={6}
data-inline-detail-for={point.id}
data-truenas-protection-detail-row={point.id}
>
- <TableCell
- id={detailRowId()}
- colspan={6}
- class="border-b border-border bg-surface-alt p-0"
- >
- <div
- class="px-2 py-3 sm:px-4 sm:py-4"
- onClick={(event) => event.stopPropagation()}
- >
- <ProtectionDetailTable
- point={point}
- onClose={() => detail.close(point)}
- />
- </div>
- </TableCell>
- </TableRow>
+ <ProtectionDetailTable
+ point={point}
+ onClose={() => detail.close(point)}
+ />
+ </InlineDetailTableRow>
</Show>
</>
);
diff --git a/frontend-modern/src/features/truenas/TrueNASServicesTable.tsx b/frontend-modern/src/features/truenas/TrueNASServicesTable.tsx
index 533a32cb9d..a29f6671bd 100644
--- a/frontend-modern/src/features/truenas/TrueNASServicesTable.tsx
+++ b/frontend-modern/src/features/truenas/TrueNASServicesTable.tsx
@@ -1,4 +1,5 @@
import { For, Show, createMemo, type Component, type JSX } from 'solid-js';
+import { InlineDetailTableRow } from '@/components/shared/InlineDetailTableRow';
import { StatusDot } from '@/components/shared/StatusDot';
import { TableCell, TableHead, TableRow } from '@/components/shared/Table';
import { asTrimmedString } from '@/utils/stringUtils';
@@ -296,23 +297,14 @@ export const TrueNASServicesTable: Component<{
</TableCell>
</TableRow>
<Show when={isExpanded()}>
- <TableRow
+ <InlineDetailTableRow
+ cellId={detailRowId()}
+ colspan={5}
data-inline-detail-for={row.id}
data-truenas-service-detail-row={row.id}
>
- <TableCell
- id={detailRowId()}
- colspan={5}
- class="border-b border-border bg-surface-alt p-0"
- >
- <div
- class="px-2 py-3 sm:px-4 sm:py-4"
- onClick={(event) => event.stopPropagation()}
- >
- <ServiceDetailTable row={row} onClose={() => detail.close(row)} />
- </div>
- </TableCell>
- </TableRow>
+ <ServiceDetailTable row={row} onClose={() => detail.close(row)} />
+ </InlineDetailTableRow>
</Show>
</>
);
diff --git a/frontend-modern/src/features/vmware/VsphereActivityTable.tsx b/frontend-modern/src/features/vmware/VsphereActivityTable.tsx
index 3aed433b69..2b8450034d 100644
--- a/frontend-modern/src/features/vmware/VsphereActivityTable.tsx
+++ b/frontend-modern/src/features/vmware/VsphereActivityTable.tsx
@@ -1,5 +1,6 @@
import { For, Show, type Component, type JSX } from 'solid-js';
import XIcon from 'lucide-solid/icons/x';
+import { InlineDetailTableRow } from '@/components/shared/InlineDetailTableRow';
import { StatusDot } from '@/components/shared/StatusDot';
import { TableCell, TableHead, TableRow } from '@/components/shared/Table';
import {
@@ -360,26 +361,17 @@ export const VsphereActivityTable: Component<{
</TableCell>
</TableRow>
<Show when={isExpanded()}>
- <TableRow
+ <InlineDetailTableRow
+ cellId={detailRowId()}
+ colspan={7}
data-inline-detail-for={activity.id}
data-vsphere-activity-detail-row={activity.id}
>
- <TableCell
- id={detailRowId()}
- colspan={7}
- class="border-b border-border bg-surface-alt p-0"
- >
- <div
- class="px-2 py-3 sm:px-4 sm:py-4"
- onClick={(event) => event.stopPropagation()}
- >
- <ActivityDetail
- activity={activity}
- onClose={() => drawer.close(activity)}
- />
- </div>
- </TableCell>
- </TableRow>
+ <ActivityDetail
+ activity={activity}
+ onClose={() => drawer.close(activity)}
+ />
+ </InlineDetailTableRow>
</Show>
</>
);
diff --git a/frontend-modern/src/features/vmware/VsphereAlertsTable.tsx b/frontend-modern/src/features/vmware/VsphereAlertsTable.tsx
index 73af62ef33..1041c879d9 100644
--- a/frontend-modern/src/features/vmware/VsphereAlertsTable.tsx
+++ b/frontend-modern/src/features/vmware/VsphereAlertsTable.tsx
@@ -1,5 +1,6 @@
import { For, Show, type Component, type JSX } from 'solid-js';
import XIcon from 'lucide-solid/icons/x';
+import { InlineDetailTableRow } from '@/components/shared/InlineDetailTableRow';
import { StatusDot } from '@/components/shared/StatusDot';
import { TableCell, TableHead, TableRow } from '@/components/shared/Table';
import {
@@ -358,26 +359,17 @@ export const VsphereAlertsTable: Component<{
</TableCell>
</TableRow>
<Show when={isExpanded()}>
- <TableRow
+ <InlineDetailTableRow
+ cellId={detailRowId()}
+ colspan={6}
data-inline-detail-for={incident.id}
data-vsphere-alert-detail-row={incident.id}
>
- <TableCell
- id={detailRowId()}
- colspan={6}
- class="border-b border-border bg-surface-alt p-0"
- >
- <div
- class="px-2 py-3 sm:px-4 sm:py-4"
- onClick={(event) => event.stopPropagation()}
- >
- <AlertDetail
- incident={incident}
- onClose={() => drawer.close(incident)}
- />
- </div>
- </TableCell>
- </TableRow>
+ <AlertDetail
+ incident={incident}
+ onClose={() => drawer.close(incident)}
+ />
+ </InlineDetailTableRow>
</Show>
</>
);