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.

Clarify empty provider usage table

rcourtman3678d583bf43
diff --git a/docs/release-control/v6/internal/subsystems/ai-runtime.md b/docs/release-control/v6/internal/subsystems/ai-runtime.md
index bf17248af5..1ce3397e3c 100644
--- a/docs/release-control/v6/internal/subsystems/ai-runtime.md
+++ b/docs/release-control/v6/internal/subsystems/ai-runtime.md
@@ -5228,6 +5228,11 @@ shared `frontend-modern/src/components/shared/Table.tsx` primitive instead of
carrying AI-local scroll wrappers or raw table shell markup. Any future AI
usage table styling change must extend the shared primitive or its governed
wrapper affordances first, then consume that contract from the dashboard.
+At phone widths, the provider usage table must retain provider, model, and
+estimated spend as its primary decision fields while token-detail columns stay
+hidden through the shared responsive table boundary. A loaded range with no
+provider/model rows must render an explanatory row inside the table rather
+than leaving a header above an unexplained empty shell.
`internal/ai/` is the live backend AI engine. It owns chat execution, Patrol
orchestration, findings generation, investigation support, provider selection,
diff --git a/frontend-modern/browser-verification.json b/frontend-modern/browser-verification.json
index aa07953faf..82e0260179 100644
--- a/frontend-modern/browser-verification.json
+++ b/frontend-modern/browser-verification.json
@@ -1,120 +1,30 @@
{
"version": 1,
- "base_sha": "f675b5a4d8f20f74b490c76c7a9c2792e97b5eba",
- "verified_at": "2026-08-25T18:05:38Z",
+ "base_sha": "caf7f80867871f0a601d9a572cbab309f8d4b41f",
+ "verified_at": "2026-08-25T18:42:00Z",
"result": "passed",
"changed_paths": [
- "frontend-modern/src/index.css",
- "frontend-modern/src/components/Workloads/guestRowModel.tsx",
- "frontend-modern/src/features/storageBackups/storagePagePresentation.ts",
- "frontend-modern/src/features/docker/DockerAlertsTable.tsx",
- "frontend-modern/src/features/docker/DockerConfigsTable.tsx",
- "frontend-modern/src/features/docker/DockerNetworksTable.tsx",
- "frontend-modern/src/features/docker/DockerSecretsTable.tsx",
- "frontend-modern/src/features/docker/DockerServicesTable.tsx",
- "frontend-modern/src/features/docker/DockerSwarmNodesTable.tsx",
- "frontend-modern/src/features/docker/DockerTasksTable.tsx",
- "frontend-modern/src/features/docker/DockerVolumesTable.tsx",
- "frontend-modern/src/features/kubernetes/KubernetesAlertsTable.tsx",
- "frontend-modern/src/features/kubernetes/KubernetesClustersTable.tsx",
- "frontend-modern/src/features/kubernetes/KubernetesConfigTable.tsx",
- "frontend-modern/src/features/kubernetes/KubernetesDeploymentsTable.tsx",
- "frontend-modern/src/features/kubernetes/KubernetesEventsTable.tsx",
- "frontend-modern/src/features/kubernetes/KubernetesNodesTable.tsx",
- "frontend-modern/src/features/kubernetes/KubernetesPodsTable.tsx",
- "frontend-modern/src/features/kubernetes/KubernetesServicesTable.tsx",
- "frontend-modern/src/features/proxmox/ProxmoxBackupServersTable.tsx",
- "frontend-modern/src/features/truenas/TrueNASAlertsTable.tsx",
- "frontend-modern/src/features/truenas/TrueNASNetworkSharesTable.tsx",
- "frontend-modern/src/features/truenas/TrueNASServicesTable.tsx",
- "frontend-modern/src/features/truenas/TrueNASStorageTopologyTable.tsx",
- "frontend-modern/src/features/truenas/TrueNASVirtualMachinesTable.tsx",
- "frontend-modern/src/features/vmware/VsphereActivityTable.tsx",
- "frontend-modern/src/features/vmware/VsphereAlertsTable.tsx",
- "frontend-modern/src/features/vmware/VsphereDatastoresTable.tsx",
- "frontend-modern/src/features/vmware/VsphereHostsTable.tsx",
- "frontend-modern/src/features/vmware/VsphereNetworksTable.tsx"
+ "frontend-modern/src/components/AI/AICostDashboard.tsx",
+ "frontend-modern/src/utils/aiCostPresentation.ts"
],
"content_sha256": {
- "frontend-modern/src/index.css": "756bfe09c980a01f8da6152947bb4368350580fb7f5625799f91725c1246af81",
- "frontend-modern/src/components/Workloads/guestRowModel.tsx": "4a70975f00a0211021c5b95f7bfe892a99bcc46657b9cd716ec36aa94cb1783a",
- "frontend-modern/src/features/storageBackups/storagePagePresentation.ts": "ab310a3f5bcb477d0ee1e1e1c1d6b6b0bc07365b55ea855262c6f3236c7f451a",
- "frontend-modern/src/features/docker/DockerAlertsTable.tsx": "cb27be49cb7a7c7c52156b942734be56bac62cd8e5ffa738ece71e80cc0bfd40",
- "frontend-modern/src/features/docker/DockerConfigsTable.tsx": "3b6e054f29bbadba3432ffa1a24a85b877c1a1c1e23ce71e48443bd43e1784b9",
- "frontend-modern/src/features/docker/DockerNetworksTable.tsx": "80a93851f2a2f1c1c392f5557ef7209edc45e22faed18560629506d4f7d69da8",
- "frontend-modern/src/features/docker/DockerSecretsTable.tsx": "098eed45ea7f8336c75366a8b5e8242aaba30d00aa41334f1c2b4cf07a93df6f",
- "frontend-modern/src/features/docker/DockerServicesTable.tsx": "c2fca534af2166987f79dcdcaf03702cb9ef5a089b3731406fcc76277e4d775b",
- "frontend-modern/src/features/docker/DockerSwarmNodesTable.tsx": "b4e1c5d0d95776dbef33eed176ffd71952831cdfb2f69f5329e2ff5092740cae",
- "frontend-modern/src/features/docker/DockerTasksTable.tsx": "a1ebdcb6d146d9f09f5240523cb6a8cf7ad25a988d8b50706bb8f13dea888c0f",
- "frontend-modern/src/features/docker/DockerVolumesTable.tsx": "78fff3df4eee7e82dec791317c9ac831a2bdf7989795e298682f2d741a768b48",
- "frontend-modern/src/features/kubernetes/KubernetesAlertsTable.tsx": "b8121bdd7cad2ea370417f6c07a774e1a1551c0e578a8257640979c748feabeb",
- "frontend-modern/src/features/kubernetes/KubernetesClustersTable.tsx": "32c93716d25190881e6e6519b26fe606fb545b7c8a5f3a185016be4721ae2d2c",
- "frontend-modern/src/features/kubernetes/KubernetesConfigTable.tsx": "2dbce115619e15bb9e9ddd30b0df33d4bd94b3516f23aea6714289be563637f2",
- "frontend-modern/src/features/kubernetes/KubernetesDeploymentsTable.tsx": "dde8702c9d791723b89c5d8eb528915a02d5fc6cb7d014be9fe1c259f9ee143c",
- "frontend-modern/src/features/kubernetes/KubernetesEventsTable.tsx": "98afc291ac7f4fb9330df404d2a721e7184a109a40995802cb5139c097469aad",
- "frontend-modern/src/features/kubernetes/KubernetesNodesTable.tsx": "491723e0b345ff3a77b0a64509f8ca8f424a1c1cae27dbc2f865018eaefb6309",
- "frontend-modern/src/features/kubernetes/KubernetesPodsTable.tsx": "ae1101b32be82e9cdaaed59993b02d93b3f7eca16bbb1f0803f1b7ee09b8b3fe",
- "frontend-modern/src/features/kubernetes/KubernetesServicesTable.tsx": "a7d293b93db92a521f91eabc50866c6e7c798cb6e41a5ef147d42dad091c1ca0",
- "frontend-modern/src/features/proxmox/ProxmoxBackupServersTable.tsx": "72d0ae197be7e83513fcf2a02b266c7e1bb517733fa54b73d8c09828d828e560",
- "frontend-modern/src/features/truenas/TrueNASAlertsTable.tsx": "8bc2c39ee7b9dd32614ef584ac99f7e693b2c856f03009bab8a7bd68192535ad",
- "frontend-modern/src/features/truenas/TrueNASNetworkSharesTable.tsx": "43b7869af1f162464620e1cfb027c640336f14cf2116f9ef305946ad44d0999b",
- "frontend-modern/src/features/truenas/TrueNASServicesTable.tsx": "9b9cdf44f267f05053281c277342f6f3faeb95ac2b7481f3597b371eecd57ffc",
- "frontend-modern/src/features/truenas/TrueNASStorageTopologyTable.tsx": "ff1456b6961de9c99103f7e2db3ab57f69e55680db3cdc3b730068ed62fd2867",
- "frontend-modern/src/features/truenas/TrueNASVirtualMachinesTable.tsx": "4dbab04bc08e50e8ca0eef3cdb9b4592613265b9d35159c856a780e63bd06998",
- "frontend-modern/src/features/vmware/VsphereActivityTable.tsx": "a0fbaf6cb1499c225ed83716d4abb7c9bf0cb3f8510f481832141b38c7a7d675",
- "frontend-modern/src/features/vmware/VsphereAlertsTable.tsx": "e346c21869081c209fb11f0009d3ca78144f7b9963305c763a2e9f3c1d8ef48c",
- "frontend-modern/src/features/vmware/VsphereDatastoresTable.tsx": "ab232b130760607a1986e4ef0136c8d3346be3a540550d55f2efd0fb674f5259",
- "frontend-modern/src/features/vmware/VsphereHostsTable.tsx": "ad89bdb743553eb8ee85287cf369215d592cde60db621e00e09d53344c72dcfe",
- "frontend-modern/src/features/vmware/VsphereNetworksTable.tsx": "5b09083d86217c442313c12bf9a339bd68def0cf7013c8254ea1b18dffac401e"
+ "frontend-modern/src/components/AI/AICostDashboard.tsx": "eb9291049d9c415bfc24868cf45da5f9d862bb24f98100bc0fb10e2188554100",
+ "frontend-modern/src/utils/aiCostPresentation.ts": "816376697dc3eefa1b3d3a198ab29f80ae9148ddbffaf3dc1ab18fb22bc46041"
},
- "routes": [
- "/docker/overview",
- "/docker/images",
- "/docker/storage",
- "/docker/networks",
- "/docker/swarm",
- "/kubernetes/overview",
- "/kubernetes/nodes",
- "/kubernetes/workloads",
- "/kubernetes/services",
- "/kubernetes/storage",
- "/kubernetes/configuration",
- "/kubernetes/events",
- "/truenas/overview",
- "/truenas/storage",
- "/truenas/services",
- "/truenas/apps",
- "/truenas/vms",
- "/truenas/shares",
- "/truenas/protection",
- "/vmware/overview",
- "/vmware/storage",
- "/vmware/networks",
- "/vmware/health",
- "/vmware/activity",
- "/proxmox/overview",
- "/proxmox/storage",
- "/proxmox/backups/date",
- "/standalone/machines",
- "/standalone/availability"
- ],
+ "routes": ["/settings/pulse-intelligence/provider"],
"viewports": [
{ "width": 1440, "height": 900 },
- { "width": 390, "height": 844 },
- { "width": 320, "height": 844 }
+ { "width": 390, "height": 844 }
],
"states": [
- "all provider table routes at phone width with visible header/body parity and no horizontal overflow",
- "duplicate mobile state and severity columns removed where the identity indicator already carries the same condition",
- "dense Docker, Kubernetes, TrueNAS, vSphere, Proxmox, and standalone tables reduced to readable operational fields",
- "320px narrow-phone projection with additional low-priority demotions and a promoted identity track",
- "1440px Kubernetes overview and nodes tables with their full desktop column sets restored"
+ "loaded provider usage range with no provider/model rows",
+ "phone projection retaining Provider, Model, and Est. USD",
+ "desktop projection restoring Input, Output, and Total"
],
"interactions": [
- "navigated every provider workflow tab and measured visible headers, first-row cells, cell widths, and scroll-shell overflow at 390px",
- "verified header and body visibility counts match for every ordinary data row inspected",
- "rechecked Kubernetes overview and nodes at 320px and confirmed the narrow stage remains overflow-free",
- "visually inspected the final Kubernetes overview at 390px after replacing clipped or cryptic compact labels",
- "verified full Kubernetes desktop columns return at 1440px and reset the temporary browser viewport"
+ "navigated to Provider & Models and scrolled the settings surface to Provider Usage & Spend",
+ "verified the empty-state row is fully readable at 390px after correcting fixed-table text clipping",
+ "measured zero table-shell and page overflow at 390px and 1440px",
+ "confirmed all six desktop headers return at 1440px"
]
}
diff --git a/frontend-modern/src/components/AI/AICostDashboard.tsx b/frontend-modern/src/components/AI/AICostDashboard.tsx
index a9515127b7..6a5ac8c1d4 100644
--- a/frontend-modern/src/components/AI/AICostDashboard.tsx
+++ b/frontend-modern/src/components/AI/AICostDashboard.tsx
@@ -26,6 +26,7 @@ import {
AI_COST_PANEL_DESCRIPTION,
AI_COST_PANEL_TITLE,
AI_COST_PATROL_USE_CASE_LABEL,
+ AI_COST_PROVIDER_TABLE_EMPTY_STATE,
AI_COST_RESET_HISTORY_LABEL,
buildAICostExportFilename,
getAICostBudgetNote,
@@ -556,6 +557,15 @@ export const AICostDashboard: Component = () => {
</TableRow>
</TableHeader>
<TableBody>
+ <Show when={visibleProviderModels().length === 0}>
+ <TableRow>
+ <TableCell colSpan={6} class="px-3 py-6 text-center text-sm text-muted">
+ <span class="block whitespace-normal">
+ {AI_COST_PROVIDER_TABLE_EMPTY_STATE}
+ </span>
+ </TableCell>
+ </TableRow>
+ </Show>
<For each={visibleProviderModels()}>
{(pm) => (
<TableRow class="border-b border-border-subtle">
diff --git a/frontend-modern/src/components/AI/__tests__/AICostDashboard.test.tsx b/frontend-modern/src/components/AI/__tests__/AICostDashboard.test.tsx
index 3b6f5499aa..040bfbb987 100644
--- a/frontend-modern/src/components/AI/__tests__/AICostDashboard.test.tsx
+++ b/frontend-modern/src/components/AI/__tests__/AICostDashboard.test.tsx
@@ -256,6 +256,17 @@ describe('AICostDashboard', () => {
expect(totalHeader).toHaveClass('hidden', 'sm:table-cell');
});
+ it('explains an empty provider usage table within the table boundary', async () => {
+ getCostSummaryMock.mockResolvedValue(baseSummary({ provider_models: [] }));
+ renderDashboard();
+
+ const emptyState = await screen.findByText('No provider usage recorded for this range.');
+
+ expect(emptyState.closest('table')).toBeInTheDocument();
+ expect(emptyState).toHaveClass('block', 'whitespace-normal');
+ expect(emptyState.closest('td')).toHaveAttribute('colspan', '6');
+ });
+
// ---- range buttons ----
it('switches range to 7 days when clicking 7d button', async () => {
diff --git a/frontend-modern/src/utils/aiCostPresentation.ts b/frontend-modern/src/utils/aiCostPresentation.ts
index 0ab1e26032..b31a82ad59 100644
--- a/frontend-modern/src/utils/aiCostPresentation.ts
+++ b/frontend-modern/src/utils/aiCostPresentation.ts
@@ -9,6 +9,7 @@ export const AI_COST_BUDGET_LABEL = '30-day budget (USD)';
export const AI_COST_RESET_HISTORY_LABEL = 'Reset usage history';
export const AI_COST_EMPTY_STATE =
'Provider usage data will appear here once Pulse Assistant or Patrol activity is recorded.';
+export const AI_COST_PROVIDER_TABLE_EMPTY_STATE = 'No provider usage recorded for this range.';
export const AI_COST_DAILY_USD_EMPTY_STATE =
'Daily spend trend will appear here once provider activity is recorded.';
export const AI_COST_DAILY_TOKEN_EMPTY_STATE =