Hide live capacity for inactive provisioning operations (Refs #85)

This commit is contained in:
2026-10-09 09:55:36 -04:00
parent 4f5725ee74
commit cdc400c6bb
2 changed files with 20 additions and 9 deletions
+2 -1
View File
@@ -95,8 +95,9 @@ function sourceDetails(source: Omit<ProvisioningSource, 'label' | 'href'>): Prov
href: row ? `/maintenance?view=activity#job-${encodeURIComponent(id)}` : null };
}
/** These are current pool snapshots, not a second admission/eligibility engine. */
/** Active operations get current pool snapshots, not a second admission/eligibility engine. */
function capacityFor(deployment: ProvisioningDeployment, evaluatedAt: string): ProvisioningCapacity {
if (!['queued', 'waiting', 'running', 'awaiting-health'].includes(deployment.state)) return { evaluatedAt, pools: [] };
const settings = fleetSettings();
const pools: ProvisioningCapacity['pools'] = [];
if (deployment.action === 'create' || deployment.action === 'rebuild') {