Add capacity overview with host resource history

This commit is contained in:
2026-10-05 12:06:29 -04:00
parent 7c76851252
commit 09ef8c6ec8
19 changed files with 845 additions and 10 deletions
@@ -118,6 +118,7 @@
{#if preview.availability && preview.servers.length}
<section class="availability" aria-label="Latest reported capacity">
<h3>Latest reported capacity</h3>
<a href="/capacity" target="_blank" rel="noopener">View capacity and history ↗</a>
<p class="muted">{preview.availability.estimatedAvailable === null ? 'An estimate is not available yet.' : `${preview.availability.estimatedAvailable} additional servers estimated to fit.`} {preview.availability.requested} requested.</p>
<dl>
<div><dt>CPU available</dt><dd>{preview.availability.cpuCoresAvailable === null ? 'Unknown' : `${preview.availability.cpuCoresAvailable.toFixed(1)} cores`}</dd></div>