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.

Simplify Kubernetes workload attention

rcourtmanb9d0f3336f38
diff --git a/docs/release-control/v6/internal/subsystems/frontend-primitives.md b/docs/release-control/v6/internal/subsystems/frontend-primitives.md
index 1a058023d3..71f92f884e 100644
--- a/docs/release-control/v6/internal/subsystems/frontend-primitives.md
+++ b/docs/release-control/v6/internal/subsystems/frontend-primitives.md
@@ -304,6 +304,15 @@ tabs. The thresholds platform IA is platform-shaped: Proxmox, Docker,
Kubernetes, TrueNAS, vSphere, PBS, PMG, and Systems. Frontend primitives own
the chip, reset, "+ Filter", and route-backed shell pattern; alerts must not
replace that with page-local search/tab chrome or legacy neutral buckets.
+PlatformTableToolbar may accept compact consumer-owned context through its
+shared leading-control rail when the context is actionable for the inventory
+immediately below it. Consumers must use that extension point for local
+attention counts and review actions instead of introducing a parallel filter
+card or a routine page-wide posture banner; the toolbar continues to own
+responsive placement alongside saved views, View preferences, and row counts.
+Frequently used leading context remains visible when the mobile filter body is
+collapsed and moves into the canonical action rail when that body is expanded;
+lower-priority trailing orientation controls remain collapsed with the rail.
Native multiline form fields are also a shared primitive boundary.
`FormTextarea` owns label/id/help wiring, controlled value synchronization, and
textarea chrome for alert, settings, and infrastructure runtime surfaces; those
diff --git a/docs/release-control/v6/internal/subsystems/unified-resources.md b/docs/release-control/v6/internal/subsystems/unified-resources.md
index 4a4e5989a4..27da23a0d8 100644
--- a/docs/release-control/v6/internal/subsystems/unified-resources.md
+++ b/docs/release-control/v6/internal/subsystems/unified-resources.md
@@ -328,7 +328,11 @@ the primary native workload stack: Deployments, Pods, workload controllers,
and autoscaling rows. That deliberate cluster-to-workload composition mirrors
the Docker host-to-container Overview and shares the exact same URL-backed
cluster, namespace, search, and status state as the Workloads workflow; it must
-not fork a second projection or filter model. Node, service, storage,
+not fork a second projection or filter model. Routine pending or
+under-replicated workload attention stays attached to that shared workload
+toolbar as a compact count and review action; page-wide Kubernetes attention
+is reserved for node availability or critical health signals. Zero-valued
+attention facets must not occupy the summary. Node, service, storage,
configuration, policy, and event object rows remain in their workflow tabs.
Any other future Overview that repeats a detailed table must retire the owning
workflow, reduce the Overview content to aggregate signal, or establish an
diff --git a/frontend-modern/browser-verification.json b/frontend-modern/browser-verification.json
index 3cd9a9dc3e..4e0ade11bb 100644
--- a/frontend-modern/browser-verification.json
+++ b/frontend-modern/browser-verification.json
@@ -1,24 +1,19 @@
{
"version": 1,
- "base_sha": "9d9f13e7b0a7298c34dadc13d58cb991379edc0f",
- "verified_at": "2026-08-03T17:08:00Z",
+ "base_sha": "6bd382173bd802dbb0dbceb9c618ee01f645c55f",
+ "verified_at": "2026-08-03T17:22:38Z",
"result": "passed",
- "changed_paths": ["frontend-modern/src/features/platformPage/sharedPlatformPage.tsx"],
+ "changed_paths": [
+ "frontend-modern/src/components/shared/FilterBar/FilterBar.tsx",
+ "frontend-modern/src/features/kubernetes/KubernetesPageSurface.tsx",
+ "frontend-modern/src/features/platformPage/sharedPlatformPage.tsx"
+ ],
"content_sha256": {
- "frontend-modern/src/features/platformPage/sharedPlatformPage.tsx": "ca7464c040278ef3a313ac35805590e12d318ed18500bd76b145b6b2842bc273"
+ "frontend-modern/src/components/shared/FilterBar/FilterBar.tsx": "53162c174225e4e72dfbe5a9e6033357f649e8db2e0e160af8c20984e65917a8",
+ "frontend-modern/src/features/kubernetes/KubernetesPageSurface.tsx": "0a8974f2f174914aa91658fee2016ee5e3f332ee18b8e8b1a0be8155960f8a6e",
+ "frontend-modern/src/features/platformPage/sharedPlatformPage.tsx": "21163d3e2e3894139a51d3bec2a971928efc1cdb38a172c4272a696b1d7131c8"
},
- "routes": [
- "/kubernetes/nodes",
- "/kubernetes/workloads",
- "/kubernetes/services",
- "/kubernetes/storage",
- "/kubernetes/configuration",
- "/kubernetes/events",
- "/docker/images",
- "/docker/storage",
- "/docker/networks",
- "/docker/swarm"
- ],
+ "routes": ["/kubernetes/overview", "/kubernetes/workloads"],
"viewports": [
{
"width": 1280,
@@ -30,19 +25,19 @@
}
],
"states": [
- "Desktop Docker Storage with the complete section rail and Storage marked as the active page",
- "Phone-width Docker Storage after a live viewport resize with Overview, Images, Storage, and Networks visible",
- "Phone-width Docker Networks and Swarm with each active destination reachable in the overflowing section rail",
- "Desktop and phone-width Kubernetes Nodes, Workloads, Services, Storage, Configuration, and Events section rails",
- "Phone-width Kubernetes filter bodies in both collapsed and expanded states on Nodes and Workloads"
+ "Desktop Kubernetes Overview with three clusters, nineteen degraded workloads, and the compact workload-attention control aligned in the inventory toolbar",
+ "Desktop Kubernetes Overview with routine workload degradation and no page-wide Kubernetes attention banner",
+ "Phone-width Kubernetes Overview with the filter body collapsed and workload attention retained as visible leading context",
+ "Phone-width Kubernetes Overview with the filter body expanded and workload attention composed into the canonical action rail",
+ "Kubernetes Workloads destination after following the compact Review action",
+ "Kubernetes empty-inventory state after the local runtime data reset"
],
"interactions": [
- "Narrowed Docker Storage from 1280 by 720 to 390 by 844 without reloading and confirmed the active Storage tab remained fully visible",
- "Inspected the Docker Storage rail after resize and confirmed scrollLeft remained zero because the active tab was already within the visible bounds",
- "Navigated across the Docker Images, Storage, Networks, and Swarm destinations and confirmed active-page styling and horizontal reachability",
- "Navigated across the Kubernetes Nodes, Workloads, Services, Storage, Configuration, and Events destinations and confirmed the active section remained visible",
- "Expanded the narrow Kubernetes Nodes and Workloads filter bodies and confirmed the tab rail and filter controls remained unclipped",
- "Confirmed the 390-pixel document width did not acquire page-level horizontal overflow during the responsive passes",
- "Inspected the final desktop and narrow screenshots for clipped, overlapping, or unnecessarily recentered section labels"
+ "Confirmed routine pending and under-replicated workload counts render beside Review rather than in the page-wide attention summary",
+ "Confirmed Review navigates directly to /kubernetes/workloads and marks Workloads as the active section",
+ "Collapsed and expanded the 390-pixel filter body and confirmed leading workload context remains available while lower-priority trailing controls follow the collapsed rail",
+ "Confirmed the workload status and Review action remain within the filter container with no page-level horizontal overflow",
+ "Confirmed unavailable-node and critical-signal cases remain covered by the prominent attention summary while zero-value metrics are omitted",
+ "Reloaded the final local build in Chrome and confirmed the Kubernetes empty-inventory fallback remained intact after the seeded runtime data reset"
]
}
diff --git a/frontend-modern/src/components/shared/FilterBar/FilterBar.test.tsx b/frontend-modern/src/components/shared/FilterBar/FilterBar.test.tsx
index 3000e61759..d40cab9fd0 100644
--- a/frontend-modern/src/components/shared/FilterBar/FilterBar.test.tsx
+++ b/frontend-modern/src/components/shared/FilterBar/FilterBar.test.tsx
@@ -275,6 +275,27 @@ describe('FilterBar', () => {
expect(screen.getByText('12 items')).toBeInTheDocument();
});
+ it('keeps frequent leading context visible while mobile filters are collapsed', () => {
+ render(() => (
+ <FilterBar
+ search={search}
+ filters={[inlineTypeFilter()]}
+ isMobile={() => true}
+ leadingControls={<button type="button">Review attention</button>}
+ trailingControls={<span>12 items</span>}
+ />
+ ));
+
+ expect(screen.getByRole('button', { name: 'Review attention' })).toBeInTheDocument();
+ expect(screen.queryByText('12 items')).not.toBeInTheDocument();
+
+ fireEvent.click(screen.getByRole('button', { name: 'Filters' }));
+
+ const actions = screen.getByRole('group', { name: 'Filter actions' });
+ expect(within(actions).getByRole('button', { name: 'Review attention' })).toBeInTheDocument();
+ expect(within(actions).getByText('12 items')).toBeInTheDocument();
+ });
+
it('hides the redundant visual Filter label by default without changing the accessible name', () => {
render(() => (
<FilterBar
diff --git a/frontend-modern/src/components/shared/FilterBar/FilterBar.tsx b/frontend-modern/src/components/shared/FilterBar/FilterBar.tsx
index 70e887c1c7..1071e6d2c6 100644
--- a/frontend-modern/src/components/shared/FilterBar/FilterBar.tsx
+++ b/frontend-modern/src/components/shared/FilterBar/FilterBar.tsx
@@ -146,6 +146,10 @@ export const FilterBar: Component<FilterBarProps> = (props) => {
</Show>
</div>
+ <Show when={props.isMobile() && !mobileExpanded() && props.leadingControls}>
+ <div class="flex min-w-0 flex-wrap items-center gap-2 pt-1">{props.leadingControls}</div>
+ </Show>
+
<Show when={showDesktopControlsRow()}>
<div class="flex flex-wrap items-center gap-2">
<For each={inlineFilters()}>
diff --git a/frontend-modern/src/features/kubernetes/KubernetesPageSurface.tsx b/frontend-modern/src/features/kubernetes/KubernetesPageSurface.tsx
index 351a05b231..8119603701 100644
--- a/frontend-modern/src/features/kubernetes/KubernetesPageSurface.tsx
+++ b/frontend-modern/src/features/kubernetes/KubernetesPageSurface.tsx
@@ -350,7 +350,11 @@ function createKubernetesInventoryScope(
};
}
-function KubernetesWorkloads(props: { model: KubernetesPageModel; controllers: Resource[] }) {
+function KubernetesWorkloads(props: {
+ model: KubernetesPageModel;
+ controllers: Resource[];
+ attentionCount?: number;
+}) {
const hasWorkloadInventory = createMemo(
() => props.model.workloads.length > 0 || props.model.autoscaling.length > 0,
);
@@ -402,6 +406,23 @@ function KubernetesWorkloads(props: { model: KubernetesPageModel; controllers: R
statusOptions={PLATFORM_HEALTH_FILTER_OPTIONS}
filters={scopeFilters()}
savedViewsKey="kubernetes-workloads"
+ leadingControls={
+ <Show when={(props.attentionCount ?? 0) > 0}>
+ <div
+ class="inline-flex min-w-0 items-center gap-1.5 text-xs font-medium text-amber-700 dark:text-amber-300"
+ role="status"
+ >
+ <span class="h-1.5 w-1.5 shrink-0 rounded-full bg-amber-500" aria-hidden="true" />
+ <span class="whitespace-nowrap">
+ {props.attentionCount} workload{props.attentionCount === 1 ? '' : 's'}{' '}
+ {props.attentionCount === 1 ? 'needs' : 'need'} attention
+ </span>
+ <ButtonLink href={buildKubernetesPath('workloads')} variant="warning" size="xs">
+ Review
+ </ButtonLink>
+ </div>
+ </Show>
+ }
visible={visibleRows()}
total={totalRows()}
rowNoun="rows"
@@ -611,8 +632,9 @@ function KubernetesConfiguration(props: { model: KubernetesPageModel }) {
function KubernetesOverview(props: KubernetesOverviewProps) {
const [searchParams, setSearchParams] = useSearchParams();
const posture = createMemo(() => buildKubernetesOverviewPosture(props.model()));
- const needsAttention = () => posture().attentionResources > 0 || posture().attentionSignals > 0;
const workloadAttention = () => posture().podAttention + posture().deploymentAttention;
+ const needsProminentAttention = () =>
+ posture().nodeAttention > 0 || posture().criticalIncidents > 0;
const headline = () => {
const resources = posture().attentionResources;
const signals = posture().attentionSignals;
@@ -627,20 +649,26 @@ function KubernetesOverview(props: KubernetesOverviewProps) {
return (
<div class="space-y-4">
- <Show when={needsAttention()}>
+ <Show when={needsProminentAttention()}>
<PlatformAttentionSummary
title="Kubernetes attention"
headline={headline()}
- description="Start with unavailable nodes, pending pods, or deployments below their desired replica count. Inventory remains available below."
+ description="Start with unavailable nodes or critical health signals. Workload inventory remains available below."
tone={
posture().criticalResources > 0 || posture().criticalIncidents > 0
? 'danger'
: 'warning'
}
metrics={[
- { label: 'nodes', value: posture().nodeAttention },
- { label: 'workloads', value: workloadAttention() },
- { label: 'signals', value: posture().attentionSignals },
+ ...(posture().nodeAttention > 0
+ ? [{ label: 'nodes', value: posture().nodeAttention }]
+ : []),
+ ...(workloadAttention() > 0
+ ? [{ label: 'workloads', value: workloadAttention() }]
+ : []),
+ ...(posture().attentionSignals > 0
+ ? [{ label: 'signals', value: posture().attentionSignals }]
+ : []),
]}
actions={
<>
@@ -683,6 +711,7 @@ function KubernetesOverview(props: KubernetesOverviewProps) {
<KubernetesWorkloads
model={props.model()}
controllers={getKubernetesControllerResources(props.model())}
+ attentionCount={workloadAttention()}
/>
<Show when={props.model().incidents.length > 0}>
<div id="kubernetes-health-signals">
diff --git a/frontend-modern/src/features/kubernetes/__tests__/KubernetesPageSurfaceUrlFilters.test.tsx b/frontend-modern/src/features/kubernetes/__tests__/KubernetesPageSurfaceUrlFilters.test.tsx
index 7e2de73644..ea3601716a 100644
--- a/frontend-modern/src/features/kubernetes/__tests__/KubernetesPageSurfaceUrlFilters.test.tsx
+++ b/frontend-modern/src/features/kubernetes/__tests__/KubernetesPageSurfaceUrlFilters.test.tsx
@@ -68,6 +68,56 @@ beforeEach(() => {
});
describe('Kubernetes URL-backed shared toolbar filters', () => {
+ it('keeps routine workload attention compact and local to the workload toolbar', () => {
+ setResources([
+ makeResource({ id: 'cluster-1', type: 'k8s-cluster' }),
+ makeResource({
+ id: 'pending-pod',
+ type: 'pod',
+ kubernetes: {
+ clusterId: 'cluster-1',
+ clusterName: 'Cluster 1',
+ namespace: 'default',
+ podPhase: 'Pending',
+ },
+ }),
+ ]);
+
+ renderSurfaceAt('/kubernetes/overview');
+
+ expect(screen.queryByRole('region', { name: 'Kubernetes attention' })).not.toBeInTheDocument();
+ expect(screen.getByRole('status')).toHaveTextContent('1 workload needs attention');
+ expect(screen.getByRole('link', { name: 'Review' })).toHaveAttribute(
+ 'href',
+ '/kubernetes/workloads',
+ );
+ });
+
+ it('reserves prominent attention for node availability', () => {
+ setResources([
+ makeResource({ id: 'cluster-1', type: 'k8s-cluster' }),
+ makeResource({
+ id: 'unavailable-node',
+ type: 'k8s-node',
+ kubernetes: {
+ clusterId: 'cluster-1',
+ clusterName: 'Cluster 1',
+ nodeName: 'unavailable-node',
+ ready: false,
+ },
+ }),
+ ]);
+
+ renderSurfaceAt('/kubernetes/overview');
+
+ const summary = screen.getByRole('region', { name: 'Kubernetes attention' });
+ expect(summary).toHaveAttribute('data-platform-attention-summary', 'danger');
+ expect(summary).toHaveTextContent('1 resource needs review');
+ expect(summary).toHaveTextContent('1node');
+ expect(summary).not.toHaveTextContent('0workloads');
+ expect(summary).not.toHaveTextContent('0signals');
+ });
+
it('applies the URL search filter, including -term exclusions, on the workloads tab', () => {
setResources([
makeResource({ id: 'checkout-api', type: 'k8s-deployment' }),
diff --git a/frontend-modern/src/features/platformPage/__tests__/sharedPlatformPage.test.ts b/frontend-modern/src/features/platformPage/__tests__/sharedPlatformPage.test.ts
index 0f7b6e841e..9bd9684546 100644
--- a/frontend-modern/src/features/platformPage/__tests__/sharedPlatformPage.test.ts
+++ b/frontend-modern/src/features/platformPage/__tests__/sharedPlatformPage.test.ts
@@ -415,6 +415,31 @@ describe('PlatformTableToolbar', () => {
expect(viewDialog).toHaveTextContent('Columns');
expect(viewDialog).not.toContainElement(screen.getByText('2 of 3 rows'));
});
+
+ it('composes consumer context into the canonical toolbar rail', () => {
+ const contextualAction = document.createElement('button');
+ contextualAction.type = 'button';
+ contextualAction.textContent = 'Review attention';
+
+ render(() =>
+ PlatformTableToolbar({
+ search: () => '',
+ onSearchChange: () => undefined,
+ searchPlaceholder: 'Search rows',
+ status: 'all',
+ onStatusChange: () => undefined,
+ statusOptions: [{ value: 'all', label: 'All' }],
+ visible: 3,
+ total: 3,
+ rowNoun: 'rows',
+ leadingControls: contextualAction,
+ }),
+ );
+
+ const action = screen.getByRole('button', { name: 'Review attention' });
+ expect(action.closest('.filter-bar')).not.toBeNull();
+ expect(action.closest('.filter-bar')).toContainElement(screen.getByText('3 rows'));
+ });
});
describe('formatPlatformTableTextValue', () => {
diff --git a/frontend-modern/src/features/platformPage/sharedPlatformPage.tsx b/frontend-modern/src/features/platformPage/sharedPlatformPage.tsx
index c3a890d233..9227725fac 100644
--- a/frontend-modern/src/features/platformPage/sharedPlatformPage.tsx
+++ b/frontend-modern/src/features/platformPage/sharedPlatformPage.tsx
@@ -1056,6 +1056,11 @@ export function PlatformTableToolbar<T extends string | number>(props: {
// chips behind "+ Filter".
filters?: FilterDef[];
savedViewsKey?: string;
+ /**
+ * Compact consumer-owned context that belongs beside the table controls,
+ * such as an attention count with a focused review action.
+ */
+ leadingControls?: JSX.Element;
/**
* Low-frequency table presentation controls. PlatformTableToolbar owns the
* shared View popover so feature tables cannot accidentally render these as
@@ -1113,6 +1118,7 @@ export function PlatformTableToolbar<T extends string | number>(props: {
filters={allFilters}
showAddFilterLabel={false}
savedViewsKey={props.savedViewsKey}
+ leadingControls={props.leadingControls}
viewOptions={props.viewOptions}
trailingControls={
<PlatformResourceCounter