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.

Remove grouped row accent indent

rcourtmane8987e0974d5
diff --git a/docs/release-control/v6/internal/subsystems/frontend-primitives.md b/docs/release-control/v6/internal/subsystems/frontend-primitives.md
index ff691fa71c..1c5921070d 100644
--- a/docs/release-control/v6/internal/subsystems/frontend-primitives.md
+++ b/docs/release-control/v6/internal/subsystems/frontend-primitives.md
@@ -450,7 +450,7 @@ work extends shared components instead of creating new local variants.
reset action stays as one compact header-level `Clear` control with an
accessible `Clear selection` label, not a second page-level scope strip,
search-row accessory, or filter-bar badge.
-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. 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. 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
diff --git a/docs/release-control/v6/internal/subsystems/storage-recovery.md b/docs/release-control/v6/internal/subsystems/storage-recovery.md
index 971f2c1da1..348353190e 100644
--- a/docs/release-control/v6/internal/subsystems/storage-recovery.md
+++ b/docs/release-control/v6/internal/subsystems/storage-recovery.md
@@ -651,7 +651,8 @@ querying, and the operator-facing storage health presentation layer.
day headers must also route through
`frontend-modern/src/components/shared/groupedTableRowPresentation.ts` and
the shared `.grouped-table-row` CSS contract in `frontend-modern/src/index.css`,
- rather than storage- or recovery-local background classes.
+ rather than storage- or recovery-local background classes or left-accent
+ marker variants.
Storage pool rows must also keep sizing and alert accents on canonical
class/data-attribute presentation rather than row-local inline style maps,
so the public storage page stays CSP-safe under both normal and
diff --git a/frontend-modern/src/__tests__/App.architecture.test.ts b/frontend-modern/src/__tests__/App.architecture.test.ts
index 91869943d6..3f31431307 100644
--- a/frontend-modern/src/__tests__/App.architecture.test.ts
+++ b/frontend-modern/src/__tests__/App.architecture.test.ts
@@ -122,7 +122,6 @@ describe('App architecture', () => {
);
expect(appStylesSource).toContain('tr.grouped-table-row > td');
expect(appStylesSource).toContain('--color-grouped-table-row-bg');
- expect(appStylesSource).toContain('--color-grouped-table-row-accent');
expect(appStylesSource).not.toContain('@keyframes pulse-brand-wordmark');
expect(appStylesSource).not.toContain('text-shadow');
expect(appLayoutSource).toContain("props.versionInfo()?.channel === 'rc'");
diff --git a/frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.ts b/frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.ts
index 986a57cb3a..eb42bbf923 100644
--- a/frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.ts
+++ b/frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.ts
@@ -388,6 +388,7 @@ describe('shared primitive guardrails', () => {
expect(frontendIndexCssSource).toContain('tr.grouped-table-row > td');
expect(frontendIndexCssSource).toContain('--color-grouped-table-row-bg');
expect(groupedTableRowPresentationSource).toContain('GROUPED_TABLE_ROW_CLASS');
+ expect(groupedTableRowPresentationSource).not.toContain('GROUPED_TABLE_ROW_DIVIDER_CLASS');
expect(guestRowSource).toContain('data-summary-row-active');
expect(guestRowSource).toContain('data-summary-group-member-active');
diff --git a/frontend-modern/src/index.css b/frontend-modern/src/index.css
index 555f136835..48a4a247ea 100644
--- a/frontend-modern/src/index.css
+++ b/frontend-modern/src/index.css
@@ -88,7 +88,6 @@
--color-grouped-table-row-bg: theme('colors.slate.200');
--color-grouped-table-row-bg-hover: theme('colors.slate.300');
--color-grouped-table-row-border: theme('colors.slate.300');
- --color-grouped-table-row-accent: theme('colors.slate.400');
}
.dark {
@@ -114,7 +113,6 @@
--color-grouped-table-row-bg: theme('colors.slate.900');
--color-grouped-table-row-bg-hover: theme('colors.slate.800');
--color-grouped-table-row-border: theme('colors.slate.700');
- --color-grouped-table-row-accent: theme('colors.slate.500');
}
body {
@@ -228,31 +226,6 @@
background-color: var(--color-grouped-table-row-bg-hover);
}
- tr.grouped-table-row > td:first-child,
- tr.grouped-table-row > th:first-child {
- box-shadow:
- inset 3px 0 0 var(--color-grouped-table-row-accent),
- inset 0 1px 0 var(--color-grouped-table-row-border),
- inset 0 -1px 0 var(--color-grouped-table-row-border);
- }
-
- tr.grouped-table-row > td:last-child,
- tr.grouped-table-row > th:last-child {
- box-shadow:
- inset -1px 0 0 var(--color-grouped-table-row-border),
- inset 0 1px 0 var(--color-grouped-table-row-border),
- inset 0 -1px 0 var(--color-grouped-table-row-border);
- }
-
- tr.grouped-table-row > td:first-child:last-child,
- tr.grouped-table-row > th:first-child:last-child {
- box-shadow:
- inset 3px 0 0 var(--color-grouped-table-row-accent),
- inset -1px 0 0 var(--color-grouped-table-row-border),
- inset 0 1px 0 var(--color-grouped-table-row-border),
- inset 0 -1px 0 var(--color-grouped-table-row-border);
- }
-
tr[data-summary-group-member-active='preview'] > td,
tr[data-summary-group-member-active='preview'] > th {
background-color: var(--color-summary-group-member-preview-bg);