Pulse/frontend-modern/.bundlesize.json
courtmanr@gmail.com 4ea99183fd Color platform table metric bars from configured alert thresholds
The Docker host, Docker container, Proxmox node, Kubernetes cluster and
node, TrueNAS system and app, and vSphere host tables rendered their
CPU/memory/disk bars without a thresholds prop, so coloring fell through
to the hardcoded METRIC_THRESHOLDS display defaults (memory 75/85). A
Docker host at 84% memory showed a red bar even when the operator had
raised its alert thresholds — the alert runtime resolved the override
correctly and stayed quiet while the row shouted.

Each table now resolves display thresholds through the alerts activation
store with its runtime scope (agent, docker, node, kubernetes, truenas,
vmware) and the resource's override identity candidates, mirroring the
AgentsMachinesTable pattern. The display resolver gains the kubernetes /
truenas / vmware scopes backed by kubernetesDefaults / truenasDefaults /
vmwareDefaults with factory fallbacks, and the unified platform
candidate chain is exported from alertOverridesModel so the tables bind
overrides to the same rows buildProjectedOverrides indexes.

The alertOverridesModel chunk folded into sharedPlatformPage now that
platform tables import it; bundle baseline regenerated within budget.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-27 17:45:18 +01:00

133 lines
2.6 KiB
JSON

{
"$comment": "Frontend bundle size baseline. Run 'npm run check:bundlesize' to validate. To update: run 'node scripts/check-bundle-size.mjs --update-baseline' after vite build.",
"version": 1,
"generated": "2026-07-27",
"defaultThresholdPercent": 15,
"chunks": {
"index": {
"baselineGzip": 136248
},
"sharedPlatformPage": {
"baselineGzip": 104842
},
"Alerts": {
"baselineGzip": 96254
},
"Settings": {
"baselineGzip": 87928
},
"InfrastructureWorkspace": {
"baselineGzip": 85384
},
"Proxmox": {
"baselineGzip": 69453
},
"Chat": {
"baselineGzip": 67797
},
"WorkloadsSurface": {
"baselineGzip": 53812
},
"AIIntelligence": {
"baselineGzip": 53154
},
"Docker": {
"baselineGzip": 25483
},
"vendor-ai": {
"baselineGzip": 23030
},
"Standalone": {
"baselineGzip": 18590
},
"vendor-solid": {
"baselineGzip": 17620
},
"Kubernetes": {
"baselineGzip": 16636
},
"TrueNAS": {
"baselineGzip": 15979
},
"vendor-highlight": {
"baselineGzip": 13743
},
"ReportingPanel": {
"baselineGzip": 12501
},
"vendor-icons": {
"baselineGzip": 11148
},
"vendor": {
"baselineGzip": 9857
},
"Vmware": {
"baselineGzip": 9757
},
"aiControlLevelPresentation": {
"baselineGzip": 9643
},
"UpdatesSettingsPanel": {
"baselineGzip": 9307
},
"messages.de": {
"baselineGzip": 9198
},
"messages.es": {
"baselineGzip": 8991
},
"AuditLogPanel": {
"baselineGzip": 8701
},
"APIAccessPanel": {
"baselineGzip": 8399
},
"DrawerDiskListCard": {
"baselineGzip": 8047
},
"FormTextarea": {
"baselineGzip": 7337
},
"AvailabilitySettingsPanel": {
"baselineGzip": 7240
},
"ActionReviewDialog": {
"baselineGzip": 6711
},
"DiagnosticsPanel": {
"baselineGzip": 5840
},
"SecurityAuthPanel": {
"baselineGzip": 5833
},
"useUnifiedResources": {
"baselineGzip": 5790
},
"FilterBar": {
"baselineGzip": 5636
},
"SetupWizard": {
"baselineGzip": 5532
},
"HelpIcon": {
"baselineGzip": 5516
},
"truenasPageModel": {
"baselineGzip": 5413
},
"RelaySettingsPanel": {
"baselineGzip": 5295
},
"OrganizationSharingPanel": {
"baselineGzip": 5183
}
},
"totals": {
"js": {
"baselineGzip": 1182853
},
"css": {
"baselineGzip": 26751
}
}
}