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.
Go aialertsdashboarddockerdocker-monitoringgohomelabinfrastructure-monitoringkubernetesmonitoringmspproxmoxproxmox-backup-serverproxmox-mail-gatewayproxmox-veself-hostedtruenastypescriptvspherewebhooks
fix(frontend): remove group row scope button chrome
rcourtman6a38b9ed36a6
diff --git a/docs/release-control/v6/internal/subsystems/frontend-primitives.md b/docs/release-control/v6/internal/subsystems/frontend-primitives.mdindex b7a87b7d79..4207e1f0bc 100644--- a/docs/release-control/v6/internal/subsystems/frontend-primitives.md+++ b/docs/release-control/v6/internal/subsystems/frontend-primitives.md@@ -156,15 +156,18 @@ work extends shared components instead of creating new local variants.11. Keep summary-to-table coordination deliberate, explicit, and reversible. Shared summary hover may highlight the matching table row when it is already visible, but transient chart hover must not auto-filter tables, auto-scroll the page, or reshuffle table ordering. When a page/group/entity scope is active on workloads, infrastructure, or storage, the page shell must surface that state through the shared `frontend-modern/src/components/shared/SummaryScopeBar.tsx` plus `frontend-modern/src/components/shared/summaryScopePresentation.ts` contract instead of inventing page-local chips, breadcrumbs, or hidden route-only focus. That shared scope presenter must read like native page context, not a pill/badge widget: it should distinguish transient preview from pinned focus with quiet inline language, keep the current scope visible even when the sticky summary is collapsed or off-screen, and expose a clear reset path for pinned scope so touch-only operators do not depend on hover or “click the same row again” discovery. When the active row is off-screen, page owners must still route through `frontend-modern/src/components/shared/summaryTableFocus.ts` and surface a lightweight `Jump to row` affordance that reveals and scrolls only on explicit user action. Deliberate row focus may reveal inline detail automatically, but that reveal must be drawer-aware: preserve already-good positions, avoid hard centering, and scroll only enough to keep the row header plus the top of the inline detail visible.Shared summary-linked rows and group headers must also route their previewsemantics through- `frontend-modern/src/components/shared/summaryInteractionA11y.ts` and- route deliberate pin/open ownership through- `frontend-modern/src/components/shared/SummaryRowActionButton.tsx`.- Fine pointers may preview from the row, but `aria-expanded`,- `aria-controls`, `aria-pressed`, focus treatment, and `Escape` preview- clearing belong to the shared leading action control rather than- focusable-table-row shims. Workloads, infrastructure, and storage must not- rebuild row-as-button keyboard handling or trailing one-off expand columns- once the shared action primitive exists.+ `frontend-modern/src/components/shared/summaryInteractionA11y.ts`.+ Leaf rows and any explicit row-level control chrome must route deliberate+ pin/open ownership through+ `frontend-modern/src/components/shared/SummaryRowActionButton.tsx`, so+ `aria-expanded`, `aria-controls`, `aria-pressed`, focus treatment, and+ `Escape` preview clearing stay on the shared control instead of focusable-+ table-row shims. Group headers are different: they may use the header row+ itself as the deliberate pin target when that keeps the table chrome+ native, but they must not grow separate scope/pinned pill buttons beyond+ the shared `SummaryScopeBar.tsx` reset path. Workloads, infrastructure,+ and storage must not rebuild row-as-button keyboard handling or trailing+ one-off expand columns once the shared action primitive exists.12. 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.13. Keep retained-value data loading honest at the ownership boundary. Helpersthat prevent a feature surface from falling through the app-level Suspensediff --git a/docs/release-control/v6/internal/subsystems/performance-and-scalability.md b/docs/release-control/v6/internal/subsystems/performance-and-scalability.mdindex 8db4c374b9..15ed75bee9 100644--- a/docs/release-control/v6/internal/subsystems/performance-and-scalability.md+++ b/docs/release-control/v6/internal/subsystems/performance-and-scalability.md@@ -171,10 +171,13 @@ regression protection.`frontend-modern/src/components/shared/summaryInteractionA11y.ts` ownsfine-pointer preview and focus-preview continuity, while`frontend-modern/src/components/shared/SummaryRowActionButton.tsx` owns- deliberate open/pin controls for summary-linked rows and group headers, so- workloads, infrastructure, and storage do not rebuild mouse-only hover- branches, focusable-row toggles, or touch-hostile synthetic hover behavior- inside individual row renderers.+ deliberate open/pin controls for summary-linked leaf rows and explicit row+ chrome. Group headers may pin through the header row itself when that+ keeps the hot path visually native, but they must not reintroduce local+ scope/pinned pill buttons that compete with the summary shell. Workloads,+ infrastructure, and storage do not rebuild mouse-only hover branches,+ focusable-row toggles, or touch-hostile synthetic hover behavior inside+ individual row renderers.28. Keep summary-card hover emphasis on one bounded rendering budget: when a summary row is active, shared sparkline and density-map primitives must promote the selected series and demote background series through the same active-series ID rather than layering a second page-local highlight pass, so zoom-range and hover scrubbing stay visually coherent without reintroducing multi-series overdraw on the hot summary cards. Density maps on that hot path must stay overview-first under focus: preserve the multi-entity heatmap rows, layer focused-entity detail inside the card, and avoid swapping transient hover into a separate single-series chart path.## Forbidden Pathsdiff --git a/docs/release-control/v6/internal/subsystems/storage-recovery.md b/docs/release-control/v6/internal/subsystems/storage-recovery.mdindex c0ebd62c31..412317616a 100644--- a/docs/release-control/v6/internal/subsystems/storage-recovery.md+++ b/docs/release-control/v6/internal/subsystems/storage-recovery.md@@ -220,11 +220,13 @@ querying, and the operator-facing storage health presentation layer.rest of the product or obscure inline capacity bars. Storage pool rows,physical-disk rows, and storage group headers must also route pointer,and focus preview through- `frontend-modern/src/components/shared/summaryInteractionA11y.ts`, while- deliberate expand/pin ownership must route through- `frontend-modern/src/components/shared/SummaryRowActionButton.tsx`, so- touch users do not inherit synthetic hover branches and storage does not- keep a special trailing expand column once the shared leading action+ `frontend-modern/src/components/shared/summaryInteractionA11y.ts`. Pool+ rows and physical-disk rows may keep deliberate expand/pin ownership on+ `frontend-modern/src/components/shared/SummaryRowActionButton.tsx`, but+ storage group headers should pin through the row itself and must not add a+ separate scope/pinned pill button beside the disclosure chevron. Touch+ users still must not inherit synthetic hover branches, and storage must+ not keep a special trailing expand column once the shared leading actioncontract exists.17. Keep recovery transport refreshes inside the recovery-owned feature state.`frontend-modern/src/features/recovery/useRecoverySurfaceState.ts` and thediff --git a/docs/release-control/v6/internal/subsystems/unified-resources.md b/docs/release-control/v6/internal/subsystems/unified-resources.mdindex 5e9cfb9135..5aa41eddde 100644--- a/docs/release-control/v6/internal/subsystems/unified-resources.md+++ b/docs/release-control/v6/internal/subsystems/unified-resources.md@@ -216,7 +216,9 @@ assembly branch.`frontend-modern/src/components/shared/SummaryScopeBar.tsx` plus`frontend-modern/src/components/shared/summaryScopePresentation.ts`contract so infrastructure does not hide active scope in route params or- hover-only table affordances.+ hover-only table affordances. Cluster headers themselves should stay+ header-like: use the row as the deliberate pin target and do not add a+ second scope/pinned pill button inside the cluster row chrome.14. Keep infrastructure row emphasis on the shared frontend presentationcontract. Host, PBS, and PMG table sections may decide whether a resourceis contextually active, but they must expose that state throughdiff --git a/frontend-modern/src/components/Dashboard/WorkloadPanel.tsx b/frontend-modern/src/components/Dashboard/WorkloadPanel.tsxindex a9b0b6c966..5e3ac9970f 100644--- a/frontend-modern/src/components/Dashboard/WorkloadPanel.tsx+++ b/frontend-modern/src/components/Dashboard/WorkloadPanel.tsx@@ -5,7 +5,6 @@ import { NodeGroupHeader } from '@/components/shared/NodeGroupHeader';import {createSummaryInteractiveRowPreviewHandlers,} from '@/components/shared/summaryInteractionA11y';-import { SummaryRowActionButton } from '@/components/shared/SummaryRowActionButton';import { buildSummaryDisclosureControlsId } from '@/components/shared/summaryInteractionA11y';import { TableBody, TableCell, TableRow } from '@/components/shared/Table';import { getAlertStyles } from '@/utils/alerts';@@ -100,7 +99,7 @@ export function WorkloadPanel(props: WorkloadPanelProps) {when={node()}fallback={<TableRow- class="bg-surface-alt transition-colors duration-150 hover:bg-surface-hover"+ class="cursor-pointer bg-surface-alt transition-colors duration-150 hover:bg-surface-hover"data-summary-group-id={groupKey()}data-summary-group-series-count={String(groupSummaryScope()?.seriesIds.length ?? 0)}data-summary-row-active={isSummaryGroupHighlighted() ? 'true' : 'false'}@@ -115,13 +114,6 @@ export function WorkloadPanel(props: WorkloadPanelProps) {const label = props.getGroupLabel(groupKey(), fullGroupGuests());return (<div class="flex items-center gap-3">- <SummaryRowActionButton- kind="scope"- subjectLabel={label.name}- pressed={props.focusedSummaryWorkloadGroupId() === groupSummaryScope()?.id}- onAction={handleGroupFocusToggle}- onPreviewClear={() => handleGroupHoverChange(null)}- /><span>{label.name}</span><Show when={label.type}><span class="inline-flex items-center rounded px-2 py-0.5 text-[10px] font-medium whitespace-nowrap bg-blue-100 text-blue-700 dark:bg-blue-900 dark:text-blue-300">@@ -139,16 +131,7 @@ export function WorkloadPanel(props: WorkloadPanelProps) {node={node()!}renderAs="tr"colspan={props.totalColumns()}- leadingAction={- <SummaryRowActionButton- kind="scope"- subjectLabel={props.getGroupLabel(groupKey(), fullGroupGuests()).name}- pressed={props.focusedSummaryWorkloadGroupId() === groupSummaryScope()?.id}- onAction={handleGroupFocusToggle}- onPreviewClear={() => handleGroupHoverChange(null)}- />- }- trClass="transition-colors duration-150 hover:bg-surface-hover"+ trClass="cursor-pointer transition-colors duration-150 hover:bg-surface-hover"trProps={{'data-summary-group-id': groupKey(),'data-summary-group-series-count': String(diff --git a/frontend-modern/src/components/Dashboard/__tests__/Dashboard.performance.contract.test.tsx b/frontend-modern/src/components/Dashboard/__tests__/Dashboard.performance.contract.test.tsxindex 9d08188ee0..e38bc9091f 100644--- a/frontend-modern/src/components/Dashboard/__tests__/Dashboard.performance.contract.test.tsx+++ b/frontend-modern/src/components/Dashboard/__tests__/Dashboard.performance.contract.test.tsx@@ -872,6 +872,9 @@ describe('Dashboard performance contract', () => {expect(workloadPanelSource).toContain('NodeGroupHeader');expect(workloadPanelSource).toContain('GuestDrawer');expect(workloadPanelSource).toContain('createMemo(() => getCanonicalWorkloadId(guest()))');+ expect(workloadPanelSource).toContain('createSummaryInteractiveRowPreviewHandlers');+ expect(workloadPanelSource).not.toContain('kind="scope"');+ expect(workloadPanelSource).not.toContain('leadingAction={');expect(dashboardSelectionStateSource).toContain('activeSummaryWorkloadGroupScope');expect(dashboardSelectionStateSource).toContain('focusedSummaryWorkloadGroupScope');expect(dashboardSelectionStateSource).toContain('setHoveredWorkloadGroupScope');diff --git a/frontend-modern/src/components/Infrastructure/UnifiedResourceHostTableCard.tsx b/frontend-modern/src/components/Infrastructure/UnifiedResourceHostTableCard.tsxindex 4408560898..57ca12c251 100644--- a/frontend-modern/src/components/Infrastructure/UnifiedResourceHostTableCard.tsx+++ b/frontend-modern/src/components/Infrastructure/UnifiedResourceHostTableCard.tsx@@ -172,7 +172,7 @@ export const UnifiedResourceHostTableCard: Component<UnifiedResourceHostTableCar});return (<TableRow- class="bg-surface-alt transition-colors duration-150 hover:bg-surface-hover"+ class="cursor-pointer bg-surface-alt transition-colors duration-150 hover:bg-surface-hover"data-summary-group-id={groupSummaryScope()?.id ?? undefined}data-summary-group-series-count={String(groupSummaryScope()?.seriesIds.length ?? 0,@@ -186,15 +186,6 @@ export const UnifiedResourceHostTableCard: Component<UnifiedResourceHostTableCarclass="py-1 pr-2 pl-4 text-[12px] sm:text-sm font-semibold text-base-content"><div class="flex items-center gap-2">- <SummaryRowActionButton- kind="scope"- subjectLabel={group.cluster || 'Standalone'}- pressed={- tableProps.focusedSummaryGroupId === groupSummaryScope()?.id- }- onAction={handleGroupFocusToggle}- onPreviewClear={() => handleGroupHoverChange(null)}- /><Showwhen={group.cluster}fallback={<span class="text-muted">Standalone</span>}diff --git a/frontend-modern/src/components/Infrastructure/__tests__/UnifiedResourceTable.performance.contract.test.tsx b/frontend-modern/src/components/Infrastructure/__tests__/UnifiedResourceTable.performance.contract.test.tsxindex 4272ba1fb8..90914a2ca2 100644--- a/frontend-modern/src/components/Infrastructure/__tests__/UnifiedResourceTable.performance.contract.test.tsx+++ b/frontend-modern/src/components/Infrastructure/__tests__/UnifiedResourceTable.performance.contract.test.tsx@@ -292,6 +292,8 @@ describe('UnifiedResourceTable performance contract', () => {expect(source).not.toContain('bg-blue-50 dark:bg-blue-900 ring-1 ring-blue-300');expect(source).not.toContain('bg-blue-100 dark:bg-blue-800');}++ expect(unifiedResourceHostTableCardSource).not.toContain('kind="scope"');});it('keeps source filtering on the shared canonical source-platform helper', () => {diff --git a/frontend-modern/src/components/Storage/StorageGroupRow.tsx b/frontend-modern/src/components/Storage/StorageGroupRow.tsxindex c47961b09e..d4655d2e3b 100644--- a/frontend-modern/src/components/Storage/StorageGroupRow.tsx+++ b/frontend-modern/src/components/Storage/StorageGroupRow.tsx@@ -63,15 +63,6 @@ export const StorageGroupRow: Component<StorageGroupRowProps> = (props) => {onPreviewClear={() => props.onHoverChange?.(null)}class="inline-flex items-center justify-center"/>- <SummaryRowActionButton- kind="scope"- subjectLabel={row().label}- pressed={props.summaryFocused}- onAction={() =>- props.onFocusChange?.(props.summaryFocused ? null : props.summaryGroupScope)- }- onPreviewClear={() => props.onHoverChange?.(null)}- />{/* Group label */}<span class={STORAGE_GROUP_ROW_LABEL_CLASS}>diff --git a/frontend-modern/src/components/Storage/__tests__/Storage.test.tsx b/frontend-modern/src/components/Storage/__tests__/Storage.test.tsxindex 8e35e9a219..bd68c12646 100644--- a/frontend-modern/src/components/Storage/__tests__/Storage.test.tsx+++ b/frontend-modern/src/components/Storage/__tests__/Storage.test.tsx@@ -766,9 +766,7 @@ describe('Storage', () => {return;}- fireEvent.click(- screen.getByRole('button', { name: 'Pin summary scope for pve1' }),- );+ fireEvent.click(groupRow);await waitFor(() => {expect(navigateSpy).toHaveBeenCalledWith(@@ -779,10 +777,9 @@ describe('Storage', () => {expect(screen.getByTestId('storage-summary-scope')).toHaveTextContent('Pinned');expect(screen.getByRole('button', { name: 'Reset pinned scope' })).toBeInTheDocument();- expect(screen.getByRole('button', { name: 'Unpin summary scope for pve1' })).toHaveAttribute(- 'aria-pressed',- 'true',- );+ expect(+ screen.queryByRole('button', { name: 'Unpin summary scope for pve1' }),+ ).not.toBeInTheDocument();});it('shows ceph summary card and pool expand chevron', async () => {diff --git a/frontend-modern/src/components/Storage/__tests__/StorageGroupRow.test.tsx b/frontend-modern/src/components/Storage/__tests__/StorageGroupRow.test.tsxindex 7cfe45b770..73c33421eb 100644--- a/frontend-modern/src/components/Storage/__tests__/StorageGroupRow.test.tsx+++ b/frontend-modern/src/components/Storage/__tests__/StorageGroupRow.test.tsx@@ -57,7 +57,7 @@ describe('StorageGroupRow', () => {expect(container.querySelector('.bg-slate-300')).toBeInTheDocument();});- it('separates summary focus from expand-collapse controls on group rows', () => {+ it('keeps group-row scope on the row itself while disclosure stays separate', () => {const onToggle = vi.fn();const onFocusChange = vi.fn();const onHoverChange = vi.fn();@@ -94,14 +94,11 @@ describe('StorageGroupRow', () => {fireEvent.pointerEnter(row, { pointerType: 'mouse' });expect(onHoverChange).toHaveBeenCalledWith(scope);- const scopeButton = screen.getByRole('button', {- name: 'Pin summary scope for tower',- });- fireEvent.focusIn(scopeButton);- expect(onHoverChange).toHaveBeenLastCalledWith(scope);-- fireEvent.click(scopeButton);- expect(onFocusChange).toHaveBeenCalledWith(scope);+ expect(+ screen.queryByRole('button', {+ name: 'Pin summary scope for tower',+ }),+ ).not.toBeInTheDocument();fireEvent.click(row);expect(onFocusChange).toHaveBeenCalledWith(scope);diff --git a/frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.ts b/frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.tsindex 2ace8f4031..ec6a468f49 100644--- a/frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.ts+++ b/frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.ts@@ -421,7 +421,6 @@ describe('shared primitive guardrails', () => {expect(summaryRowActionButtonSource).toContain('data-row-action="true"');for (const source of [- workloadPanelSource,guestRowSource,storageGroupRowSource,storagePoolRowSource,@@ -434,6 +433,11 @@ describe('shared primitive guardrails', () => {expect(source).toContain('SummaryRowActionButton');}+ expect(workloadPanelSource).toContain('createSummaryInteractiveRowPreviewHandlers');+ expect(workloadPanelSource).not.toContain('kind="scope"');+ expect(storageGroupRowSource).not.toContain('kind="scope"');+ expect(unifiedResourceHostTableCardSource).not.toContain('kind="scope"');+expect(nodeGroupHeaderSource).toContain('event.stopPropagation()');});diff --git a/tests/integration/tests/48-summary-hover-selection.spec.ts b/tests/integration/tests/48-summary-hover-selection.spec.tsindex b4d093dd54..4ea5574357 100644--- a/tests/integration/tests/48-summary-hover-selection.spec.ts+++ b/tests/integration/tests/48-summary-hover-selection.spec.ts@@ -1051,21 +1051,15 @@ test.describe.serial("Summary hover selection", () => {return;}- const scopeButton = matchedGroupRow.getByRole("button", {- name: /pin summary scope for/i,- });- await scopeButton.focus();+ await matchedGroupRow.hover();await expect(scopeBar).toContainText("Preview");- await page.keyboard.press("Escape");+ await page.mouse.move(1, 1);await expect(scopeBar).toContainText("All");- await scopeButton.focus();- await expect(scopeBar).toContainText("Preview");- await page.keyboard.press("Enter");+ await matchedGroupRow.click();await expect.poll(() => new URL(page.url()).searchParams.get("summaryGroup")).toBe(matchedGroupId);- await expect(scopeButton).toHaveAttribute("aria-pressed", "true");await expect(scopeBar).toContainText("Pinned");await expect(scopeBar.getByRole("button", { name: "Reset pinned scope" }),@@ -1150,21 +1144,15 @@ test.describe.serial("Summary hover selection", () => {return;}- const scopeButton = matchedGroupRow.getByRole("button", {- name: /pin summary scope for/i,- });- await scopeButton.focus();+ await matchedGroupRow.hover();await expect(storageScopeBar).toContainText("Preview");- await page.keyboard.press("Escape");+ await page.mouse.move(1, 1);await expect(storageScopeBar).toContainText("All");- await scopeButton.focus();- await expect(storageScopeBar).toContainText("Preview");- await scopeButton.press("Space");+ await matchedGroupRow.click();await expect.poll(() => new URL(page.url()).searchParams.get("summaryGroup")).toBe(matchedGroupId);- await expect(scopeButton).toHaveAttribute("aria-pressed", "true");await expect(storageScopeBar).toContainText("Pinned");await expect(page.locator("tr[data-row-id]")).toHaveCount(baselineVisibleRows);