Skip to content

armgit / Pulse

Public Imported from GitHub
0

Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.

fix(frontend): unify summary-linked row emphasis

rcourtman2707720b2f0f
diff --git a/docs/release-control/v6/internal/subsystems/frontend-primitives.md b/docs/release-control/v6/internal/subsystems/frontend-primitives.md
index 546cff3eff..714f6633b1 100644
--- a/docs/release-control/v6/internal/subsystems/frontend-primitives.md
+++ b/docs/release-control/v6/internal/subsystems/frontend-primitives.md
@@ -128,6 +128,7 @@ work extends shared components instead of creating new local variants.
106. `frontend-modern/src/utils/environmentLockPresentation.ts`
107. `frontend-modern/src/utils/docsLinks.ts`
108. `tests/integration/tests/20-local-doc-links.spec.ts`
+109. `frontend-modern/src/index.css`
## Shared Boundaries
@@ -149,6 +150,7 @@ work extends shared components instead of creating new local variants.
9. 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.
10. 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, and local scroll preservation instead of rebuilding page-local `Set` filters, focused-label scans, or ad hoc scroll restoration in each surface.
11. Keep summary-to-table coordination deliberate 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 the active row is off-screen, page owners must 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.
+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.
## Forbidden Paths
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 c9329f09f1..f0a554c0e9 100644
--- a/docs/release-control/v6/internal/subsystems/performance-and-scalability.md
+++ b/docs/release-control/v6/internal/subsystems/performance-and-scalability.md
@@ -216,6 +216,11 @@ in place if it is already mounted and visible, but the hot path must not
auto-scroll the page or rebuild the table into a one-row filtered view on
transient hover. Off-screen reveal must stay behind an explicit `Jump to row`
action routed through the shared summary-table focus bridge.
+That same hot-path contract also owns the row-emphasis paint. Dashboard guest
+rows and infrastructure resource rows must expose summary-linked activity
+through the shared `data-summary-row-active` marker and let the shared frontend
+primitive render the emphasis, instead of layering lane-local row-fill classes
+that diverge across pages or wash out inline metric bars.
`frontend-modern/src/components/Dashboard/useDashboardSelectionState.ts` must
write workload selection back into the workloads route through the shared
same-path route-state scheduler so opening a focused workload preserves scroll
diff --git a/docs/release-control/v6/internal/subsystems/storage-recovery.md b/docs/release-control/v6/internal/subsystems/storage-recovery.md
index 226fad0159..66a0b30b7c 100644
--- a/docs/release-control/v6/internal/subsystems/storage-recovery.md
+++ b/docs/release-control/v6/internal/subsystems/storage-recovery.md
@@ -190,6 +190,12 @@ querying, and the operator-facing storage health presentation layer.
metrics targets, but infrastructure/workloads/storage/recovery navigation
and focus handoffs must stay on canonical workload IDs instead of
provider-native metric keys.
+15. Keep storage row emphasis on the shared frontend primitive contract. Pool
+ rows and physical-disk rows that mirror the active summary entity must
+ expose that state through `data-summary-row-active` and let the shared row
+ presentation owned by `frontend-modern/src/index.css` render the emphasis,
+ rather than carrying storage-local sky fill classes that drift from the
+ rest of the product or obscure inline capacity bars.
## Current State
diff --git a/docs/release-control/v6/internal/subsystems/unified-resources.md b/docs/release-control/v6/internal/subsystems/unified-resources.md
index e1253ed59b..a4246ee94c 100644
--- a/docs/release-control/v6/internal/subsystems/unified-resources.md
+++ b/docs/release-control/v6/internal/subsystems/unified-resources.md
@@ -197,6 +197,12 @@ assembly branch.
is off-screen, the page must offer an explicit `Jump to row` affordance
rather than auto-scrolling or collapsing the table on hover.
disk or network data is missing in range.
+13. Keep infrastructure row emphasis on the shared frontend presentation
+ contract. Host, PBS, and PMG table sections may decide whether a resource
+ is contextually active, but they must expose that state through
+ `data-summary-row-active` and rely on the shared row presentation owned by
+ `frontend-modern/src/index.css` instead of provider-specific background
+ classes that drift across resource tables or hide inline metric bars.
## Current State
diff --git a/frontend-modern/src/components/Dashboard/GuestRow.tsx b/frontend-modern/src/components/Dashboard/GuestRow.tsx
index c9e4b6c944..c71297c773 100644
--- a/frontend-modern/src/components/Dashboard/GuestRow.tsx
+++ b/frontend-modern/src/components/Dashboard/GuestRow.tsx
@@ -97,7 +97,7 @@ export function GuestRow(props: GuestRowProps) {
style={rowStyle()}
data-guest-id={guestId()}
data-summary-series-id={guestId()}
- data-summary-row-active={props.isSummaryHighlighted ? 'true' : 'false'}
+ data-summary-row-active={props.isSummaryHighlighted && !props.isExpanded ? 'true' : 'false'}
onClick={props.onClick}
onMouseEnter={() => props.onHoverChange?.(guestId())}
onMouseLeave={() => props.onHoverChange?.(null)}
diff --git a/frontend-modern/src/components/Dashboard/__tests__/GuestRow.test.tsx b/frontend-modern/src/components/Dashboard/__tests__/GuestRow.test.tsx
index 1d4dab670b..d69637ed5d 100644
--- a/frontend-modern/src/components/Dashboard/__tests__/GuestRow.test.tsx
+++ b/frontend-modern/src/components/Dashboard/__tests__/GuestRow.test.tsx
@@ -347,6 +347,17 @@ describe('GuestRow', () => {
expect(tr?.className).toContain('bg-blue-50');
});
+ it('routes summary-linked emphasis through the shared active-row marker instead of lane-local fills', () => {
+ const { container } = renderGuestRow({
+ guest: makeGuest(),
+ isSummaryHighlighted: true,
+ });
+ const tr = container.querySelector('tr');
+ expect(tr?.getAttribute('data-summary-row-active')).toBe('true');
+ expect(tr?.className).not.toContain('bg-sky-50');
+ expect(tr?.className).not.toContain('ring-sky-400');
+ });
+
it('applies critical alert background for unacknowledged critical alerts', () => {
const { container } = renderGuestRow({
guest: makeGuest(),
diff --git a/frontend-modern/src/components/Dashboard/useGuestRowState.ts b/frontend-modern/src/components/Dashboard/useGuestRowState.ts
index 6b2295f1a9..8b12b983fa 100644
--- a/frontend-modern/src/components/Dashboard/useGuestRowState.ts
+++ b/frontend-modern/src/components/Dashboard/useGuestRowState.ts
@@ -235,15 +235,10 @@ export function useGuestRowState(props: GuestRowProps) {
? 'bg-red-50 dark:bg-red-950'
: 'bg-yellow-50 dark:bg-yellow-950'
: '';
- const summaryHighlight = props.isSummaryHighlighted
- ? 'bg-sky-50/70 dark:bg-sky-950/40 ring-1 ring-inset ring-sky-400/25'
- : '';
const defaultHover = hasUnacknowledgedAlert() ? '' : 'hover:bg-surface-hover';
const stoppedDimming = !isRunning() ? 'opacity-60' : '';
- return [base, hover, defaultHover, alertBg, summaryHighlight, stoppedDimming]
- .filter(Boolean)
- .join(' ');
+ return [base, hover, defaultHover, alertBg, stoppedDimming].filter(Boolean).join(' ');
});
const rowStyle = createMemo(() => {
diff --git a/frontend-modern/src/components/Infrastructure/UnifiedResourceHostTableCard.tsx b/frontend-modern/src/components/Infrastructure/UnifiedResourceHostTableCard.tsx
index 5271436edf..8acd22d7a3 100644
--- a/frontend-modern/src/components/Infrastructure/UnifiedResourceHostTableCard.tsx
+++ b/frontend-modern/src/components/Infrastructure/UnifiedResourceHostTableCard.tsx
@@ -243,13 +243,6 @@ export const UnifiedResourceHostTableCard: Component<UnifiedResourceHostTableCar
}
let className = baseHover;
- if (isHighlighted()) {
- className +=
- ' bg-blue-50 dark:bg-blue-900 ring-1 ring-blue-300 dark:ring-blue-600';
- }
- if (tableProps.hoveredResourceId === resource.id && !isHighlighted()) {
- className += ' bg-surface-hover';
- }
if (!isResourceOnline(resource)) {
className += ' opacity-60';
}
@@ -274,7 +267,10 @@ export const UnifiedResourceHostTableCard: Component<UnifiedResourceHostTableCar
data-row-id={resource.id}
data-summary-series-id={resource.id}
data-summary-row-active={
- tableProps.hoveredResourceId === resource.id ? 'true' : 'false'
+ (tableProps.hoveredResourceId === resource.id || isHighlighted()) &&
+ !isExpanded()
+ ? 'true'
+ : 'false'
}
class={rowClass()}
style={{ 'min-height': '32px' }}
diff --git a/frontend-modern/src/components/Infrastructure/UnifiedResourcePBSTableSection.tsx b/frontend-modern/src/components/Infrastructure/UnifiedResourcePBSTableSection.tsx
index 46df347560..41ea6b1d99 100644
--- a/frontend-modern/src/components/Infrastructure/UnifiedResourcePBSTableSection.tsx
+++ b/frontend-modern/src/components/Infrastructure/UnifiedResourcePBSTableSection.tsx
@@ -122,13 +122,6 @@ export const UnifiedResourcePBSTableSection: Component<UnifiedResourcePBSTableSe
}
let className = baseHover;
- if (isHighlighted()) {
- className +=
- ' bg-blue-50 dark:bg-blue-900 ring-1 ring-blue-300 dark:ring-blue-600';
- }
- if (tableProps.hoveredResourceId === resource.id) {
- className += ' bg-blue-100 dark:bg-blue-800';
- }
if (!isResourceOnline(resource)) {
className += ' opacity-60';
}
@@ -142,7 +135,10 @@ export const UnifiedResourcePBSTableSection: Component<UnifiedResourcePBSTableSe
ref={(el) => table.registerRowRef(resource.id, el)}
data-summary-series-id={resource.id}
data-summary-row-active={
- tableProps.hoveredResourceId === resource.id ? 'true' : 'false'
+ (tableProps.hoveredResourceId === resource.id || isHighlighted()) &&
+ !isExpanded()
+ ? 'true'
+ : 'false'
}
class={rowClass()}
style={{ 'min-height': '32px' }}
diff --git a/frontend-modern/src/components/Infrastructure/UnifiedResourcePMGTableSection.tsx b/frontend-modern/src/components/Infrastructure/UnifiedResourcePMGTableSection.tsx
index 1e6a667fe0..b57964e144 100644
--- a/frontend-modern/src/components/Infrastructure/UnifiedResourcePMGTableSection.tsx
+++ b/frontend-modern/src/components/Infrastructure/UnifiedResourcePMGTableSection.tsx
@@ -139,13 +139,6 @@ export const UnifiedResourcePMGTableSection: Component<UnifiedResourcePMGTableSe
}
let className = baseHover;
- if (isHighlighted()) {
- className +=
- ' bg-blue-50 dark:bg-blue-900 ring-1 ring-blue-300 dark:ring-blue-600';
- }
- if (tableProps.hoveredResourceId === resource.id) {
- className += ' bg-blue-100 dark:bg-blue-800';
- }
if (!isResourceOnline(resource)) {
className += ' opacity-60';
}
@@ -159,7 +152,10 @@ export const UnifiedResourcePMGTableSection: Component<UnifiedResourcePMGTableSe
ref={(el) => table.registerRowRef(resource.id, el)}
data-summary-series-id={resource.id}
data-summary-row-active={
- tableProps.hoveredResourceId === resource.id ? 'true' : 'false'
+ (tableProps.hoveredResourceId === resource.id || isHighlighted()) &&
+ !isExpanded()
+ ? 'true'
+ : 'false'
}
class={rowClass()}
style={{ 'min-height': '32px' }}
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.tsx
index f61afc5781..d8f68a01e8 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
@@ -1,3 +1,5 @@
+import { readFileSync } from 'node:fs';
+import { join } from 'node:path';
import { beforeEach, describe, expect, it, vi } from 'vitest';
import { render, waitFor, within } from '@solidjs/testing-library';
import type { Resource } from '@/types/resource';
@@ -13,6 +15,9 @@ import unifiedResourceTableStateModelSource from '@/components/Infrastructure/un
import infrastructureSummarySource from '@/components/Infrastructure/InfrastructureSummary.tsx?raw';
import infrastructureSummaryStateSource from '@/components/Infrastructure/useInfrastructureSummaryState.ts?raw';
import infrastructureSummaryModelSource from '@/components/Infrastructure/infrastructureSummaryModel.ts?raw';
+import unifiedResourceHostTableCardSource from '@/components/Infrastructure/UnifiedResourceHostTableCard.tsx?raw';
+import unifiedResourcePBSTableSectionSource from '@/components/Infrastructure/UnifiedResourcePBSTableSection.tsx?raw';
+import unifiedResourcePMGTableSectionSource from '@/components/Infrastructure/UnifiedResourcePMGTableSection.tsx?raw';
import resourceDetailMappersSource from '@/components/Infrastructure/resourceDetailMappers.ts?raw';
import resourceDetailDiscoveryModelSource from '@/components/Infrastructure/resourceDetailDiscoveryModel.ts?raw';
import {
@@ -25,6 +30,7 @@ import {
computeIOScale,
} from '@/components/Infrastructure/infrastructureSelectors';
const resourceDetailDrawerMock = vi.hoisted(() => vi.fn());
+const frontendIndexCssSource = readFileSync(join(process.cwd(), 'src/index.css'), 'utf8');
// Stub ResizeObserver for jsdom
if (typeof globalThis.ResizeObserver === 'undefined') {
globalThis.ResizeObserver = class ResizeObserver {
@@ -262,6 +268,22 @@ describe('UnifiedResourceTable performance contract', () => {
);
});
+ it('keeps contextual resource-row emphasis on the shared active-row presentation contract', () => {
+ expect(frontendIndexCssSource).toContain("tr[data-summary-row-active='true'] > td");
+ expect(frontendIndexCssSource).toContain('--color-summary-row-bg');
+ expect(frontendIndexCssSource).toContain('--color-summary-row-accent');
+
+ for (const source of [
+ unifiedResourceHostTableCardSource,
+ unifiedResourcePBSTableSectionSource,
+ unifiedResourcePMGTableSectionSource,
+ ]) {
+ expect(source).toContain('data-summary-row-active');
+ 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');
+ }
+ });
+
it('keeps source filtering on the shared canonical source-platform helper', () => {
const resources = [
makeResource(0, { platformData: { sources: ['proxmox'] } }),
diff --git a/frontend-modern/src/components/Storage/DiskList.tsx b/frontend-modern/src/components/Storage/DiskList.tsx
index 13a6756bc4..d5f4ce10ba 100644
--- a/frontend-modern/src/components/Storage/DiskList.tsx
+++ b/frontend-modern/src/components/Storage/DiskList.tsx
@@ -178,16 +178,12 @@ export const DiskList: Component<DiskListProps> = (props) => {
data-row-id={disk.id}
data-summary-series-id={summarySeriesId}
data-summary-row-active={
- isSummaryHighlighted() ? 'true' : 'false'
+ isSummaryHighlighted() && !isSelected() ? 'true' : 'false'
}
class={`${PHYSICAL_DISK_TABLE_ROW_CLASS} ${
isSelected()
? PHYSICAL_DISK_TABLE_ROW_SELECTED_CLASS
: PHYSICAL_DISK_TABLE_ROW_HOVER_CLASS
- } ${
- isSummaryHighlighted() && !isSelected()
- ? 'bg-sky-50/70 ring-1 ring-inset ring-sky-400/25 dark:bg-sky-950/40'
- : ''
}`}
style={PHYSICAL_DISK_TABLE_ROW_STYLE}
onMouseEnter={() => props.onHoverChange?.(disk.id)}
diff --git a/frontend-modern/src/components/Storage/StoragePoolRow.tsx b/frontend-modern/src/components/Storage/StoragePoolRow.tsx
index b3cda0a216..756c189ae7 100644
--- a/frontend-modern/src/components/Storage/StoragePoolRow.tsx
+++ b/frontend-modern/src/components/Storage/StoragePoolRow.tsx
@@ -59,17 +59,13 @@ export const StoragePoolRow: Component<StoragePoolRowProps> = (props) => {
return (
<>
<tr
- class={`${STORAGE_POOL_ROW_CLASS} ${props.rowClass} ${props.expanded ? STORAGE_POOL_ROW_EXPANDED_CLASS : ''} ${
- props.summaryHighlighted && !props.expanded
- ? 'bg-sky-50/70 ring-1 ring-inset ring-sky-400/25 dark:bg-sky-950/40'
- : ''
- }`}
+ class={`${STORAGE_POOL_ROW_CLASS} ${props.rowClass} ${props.expanded ? STORAGE_POOL_ROW_EXPANDED_CLASS : ''}`}
style={{ ...props.rowStyle, ...STORAGE_POOL_ROW_STYLE }}
onClick={props.onToggleExpand}
onMouseEnter={() => props.onHoverChange?.(props.summarySeriesId)}
onMouseLeave={() => props.onHoverChange?.(null)}
data-summary-series-id={props.summarySeriesId}
- data-summary-row-active={props.summaryHighlighted ? 'true' : 'false'}
+ data-summary-row-active={props.summaryHighlighted && !props.expanded ? 'true' : 'false'}
{...props.alertDataAttrs}
>
<td class={STORAGE_POOL_ROW_NAME_CELL_CLASS}>
diff --git a/frontend-modern/src/components/Storage/__tests__/Storage.test.tsx b/frontend-modern/src/components/Storage/__tests__/Storage.test.tsx
index 984aaf91f5..8c5c793ed6 100644
--- a/frontend-modern/src/components/Storage/__tests__/Storage.test.tsx
+++ b/frontend-modern/src/components/Storage/__tests__/Storage.test.tsx
@@ -443,10 +443,14 @@ describe('Storage', () => {
const alphaRow = screen.getByText('Alpha-Store').closest('tr')!;
expect(alphaRow).toHaveAttribute('data-summary-series-id', 'pool:alpha');
+ expect(alphaRow).toHaveAttribute('data-summary-row-active', 'false');
fireEvent.mouseEnter(alphaRow);
await waitFor(() => {
+ expect(alphaRow).toHaveAttribute('data-summary-row-active', 'true');
+ expect(alphaRow.className).not.toContain('bg-sky-50');
+ expect(alphaRow.className).not.toContain('ring-sky-400');
expect(
summary.querySelectorAll(
'[data-highlight-series-active="true"][data-highlight-series-id="pool:alpha"]',
@@ -463,6 +467,7 @@ describe('Storage', () => {
fireEvent.mouseLeave(alphaRow);
await waitFor(() => {
+ expect(alphaRow).toHaveAttribute('data-summary-row-active', 'false');
expect(summary.querySelectorAll('[data-highlight-series-active="true"]').length).toBe(0);
expect(summary.querySelectorAll('[data-summary-card-state="inactive"]').length).toBe(0);
});
diff --git a/frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.ts b/frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.ts
index a84f175163..4fa64e9238 100644
--- a/frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.ts
+++ b/frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.ts
@@ -1,3 +1,5 @@
+import { readFileSync } from 'node:fs';
+import { join } from 'node:path';
import { describe, expect, it } from 'vitest';
import calloutCardSource from '@/components/shared/CalloutCard.tsx?raw';
import commandPaletteModalSource from '@/components/shared/CommandPaletteModal.tsx?raw';
@@ -103,8 +105,14 @@ import webInterfaceUrlFieldSource from '@/components/shared/WebInterfaceUrlField
import webInterfaceUrlFieldModelSource from '@/components/shared/webInterfaceUrlFieldModel.ts?raw';
import webInterfaceUrlFieldStateSource from '@/components/shared/useWebInterfaceUrlFieldState.ts?raw';
import guestRowSource from '@/components/Dashboard/GuestRow.tsx?raw';
+import guestRowStateSource from '@/components/Dashboard/useGuestRowState.ts?raw';
import dashboardSelectionStateSource from '@/components/Dashboard/useDashboardSelectionState.ts?raw';
import infrastructureSummaryStateSource from '@/components/Infrastructure/useInfrastructureSummaryState.ts?raw';
+import unifiedResourceHostTableCardSource from '@/components/Infrastructure/UnifiedResourceHostTableCard.tsx?raw';
+import unifiedResourcePBSTableSectionSource from '@/components/Infrastructure/UnifiedResourcePBSTableSection.tsx?raw';
+import unifiedResourcePMGTableSectionSource from '@/components/Infrastructure/UnifiedResourcePMGTableSection.tsx?raw';
+import storagePoolRowSource from '@/components/Storage/StoragePoolRow.tsx?raw';
+import diskListSource from '@/components/Storage/DiskList.tsx?raw';
import storageSummarySource from '@/components/Storage/StorageSummary.tsx?raw';
import workloadsSummarySource from '@/components/Workloads/WorkloadsSummary.tsx?raw';
import resourceDetailDrawerOverviewSource from '@/components/Infrastructure/ResourceDetailDrawerOverviewTab.tsx?raw';
@@ -119,6 +127,7 @@ const sharedSources = import.meta.glob(['./*.tsx', './cards/*.tsx', './responsiv
eager: true,
import: 'default',
}) as Record<string, string>;
+const frontendIndexCssSource = readFileSync(join(process.cwd(), 'src/index.css'), 'utf8');
describe('shared primitive guardrails', () => {
it('limits raw Table composition inside shared primitives to the canonical allowlist', () => {
@@ -286,6 +295,30 @@ describe('shared primitive guardrails', () => {
expect(workloadsSummarySource).not.toContain('const interactiveWorkloadIds = createMemo');
});
+ it('keeps summary-linked table row emphasis on the shared active-row presentation contract', () => {
+ expect(frontendIndexCssSource).toContain("tr[data-summary-row-active='true'] > td");
+ expect(frontendIndexCssSource).toContain('--color-summary-row-bg');
+ expect(frontendIndexCssSource).toContain('--color-summary-row-accent');
+
+ expect(guestRowSource).toContain('data-summary-row-active');
+ expect(guestRowStateSource).not.toContain('bg-sky-50/70');
+ expect(guestRowStateSource).not.toContain('ring-sky-400/25');
+
+ for (const source of [
+ storagePoolRowSource,
+ diskListSource,
+ unifiedResourceHostTableCardSource,
+ unifiedResourcePBSTableSectionSource,
+ unifiedResourcePMGTableSectionSource,
+ ]) {
+ expect(source).toContain('data-summary-row-active');
+ expect(source).not.toContain('bg-sky-50/70');
+ expect(source).not.toContain('ring-sky-400/25');
+ expect(source).not.toContain('bg-blue-100 dark:bg-blue-800');
+ expect(source).not.toContain('ring-blue-300 dark:ring-blue-600');
+ }
+ });
+
it('keeps trial banner on shell, runtime, and model owners', () => {
expect(trialBannerSource).toContain('useTrialBannerState');
expect(trialBannerSource).toContain('TRIAL_BANNER_TITLE');
diff --git a/frontend-modern/src/index.css b/frontend-modern/src/index.css
index 87f1000022..b72aa5396a 100644
--- a/frontend-modern/src/index.css
+++ b/frontend-modern/src/index.css
@@ -58,6 +58,10 @@
--color-border-base: theme('colors.slate.200');
--color-text-base: theme('colors.slate.900');
--color-text-muted: theme('colors.slate.500');
+ --color-summary-row-bg: rgba(14, 165, 233, 0.05);
+ --color-summary-row-bg-hover: rgba(14, 165, 233, 0.08);
+ --color-summary-row-border: rgba(14, 165, 233, 0.16);
+ --color-summary-row-accent: rgba(14, 165, 233, 0.42);
}
.dark {
@@ -71,6 +75,10 @@
--color-border-base: theme('colors.slate.700');
--color-text-base: theme('colors.slate.100');
--color-text-muted: theme('colors.slate.400');
+ --color-summary-row-bg: rgba(56, 189, 248, 0.08);
+ --color-summary-row-bg-hover: rgba(56, 189, 248, 0.12);
+ --color-summary-row-border: rgba(56, 189, 248, 0.18);
+ --color-summary-row-accent: rgba(56, 189, 248, 0.5);
}
body {
@@ -155,6 +163,44 @@
@apply border-b border-border hover:bg-surface-hover;
}
+ tr[data-summary-row-active='true'] > td,
+ tr[data-summary-row-active='true'] > th {
+ background-color: var(--color-summary-row-bg);
+ box-shadow:
+ inset 0 1px 0 var(--color-summary-row-border),
+ inset 0 -1px 0 var(--color-summary-row-border);
+ }
+
+ tr[data-summary-row-active='true']:hover > td,
+ tr[data-summary-row-active='true']:hover > th {
+ background-color: var(--color-summary-row-bg-hover);
+ }
+
+ tr[data-summary-row-active='true'] > td:first-child,
+ tr[data-summary-row-active='true'] > th:first-child {
+ box-shadow:
+ inset 3px 0 0 var(--color-summary-row-accent),
+ inset 0 1px 0 var(--color-summary-row-border),
+ inset 0 -1px 0 var(--color-summary-row-border);
+ }
+
+ tr[data-summary-row-active='true'] > td:last-child,
+ tr[data-summary-row-active='true'] > th:last-child {
+ box-shadow:
+ inset -1px 0 0 var(--color-summary-row-border),
+ inset 0 1px 0 var(--color-summary-row-border),
+ inset 0 -1px 0 var(--color-summary-row-border);
+ }
+
+ tr[data-summary-row-active='true'] > td:first-child:last-child,
+ tr[data-summary-row-active='true'] > th:first-child:last-child {
+ box-shadow:
+ inset 3px 0 0 var(--color-summary-row-accent),
+ inset -1px 0 0 var(--color-summary-row-border),
+ inset 0 1px 0 var(--color-summary-row-border),
+ inset 0 -1px 0 var(--color-summary-row-border);
+ }
+
/* Form input — reusable base for text inputs, textareas, selects */
.form-input {
@apply w-full rounded-md border border-border bg-surface px-3 py-2 text-sm text-base-content focus:outline-none focus:border-blue-500 focus:ring-2 focus:ring-blue-500 transition-colors disabled:opacity-50 disabled:cursor-not-allowed;