Separate campaigns from server deployment lifecycle tracking
This commit is contained in:
@@ -90,7 +90,7 @@
|
||||
liveViews.filter((v) => v.health === 'online').length
|
||||
);
|
||||
let totalCount = $derived(servers.length);
|
||||
let inFlightDeployments = $derived(
|
||||
let inFlightCampaigns = $derived(
|
||||
Array.from($deployments.values()).filter((d) => {
|
||||
for (const s of d.servers.values()) if (s.state === 'pending') return true;
|
||||
return false;
|
||||
@@ -127,12 +127,12 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="hero-cell">
|
||||
<a class="deploy-link" href="/deployments">
|
||||
<a class="deploy-link" href="/campaigns">
|
||||
<Stat
|
||||
label="Deployments in flight"
|
||||
value={inFlightDeployments}
|
||||
label="Campaigns in flight"
|
||||
value={inFlightCampaigns}
|
||||
size="xl"
|
||||
tone={inFlightDeployments > 0 ? 'accent' : 'primary'}
|
||||
tone={inFlightCampaigns > 0 ? 'accent' : 'primary'}
|
||||
tween
|
||||
/>
|
||||
<span class="link-hint">View →</span>
|
||||
|
||||
Reference in New Issue
Block a user