feat: add infrastructure checks (DB exists, Spaces prefix) to customer overview
Some checks failed
Build & Release / build (push) Has been cancelled

This commit is contained in:
Ryan Moon
2026-04-03 20:23:48 -05:00
parent bd97d65613
commit 530698f52e
2 changed files with 59 additions and 10 deletions

View File

@@ -624,7 +624,7 @@
}
}
function renderDetail({ customer, status, sizeHistory }) {
function renderDetail({ customer, status, infra, sizeHistory }) {
// Header
document.getElementById('detail-name').textContent = customer.name || customer.slug;
document.getElementById('detail-slug').textContent = customer.slug;
@@ -718,6 +718,30 @@
${conditionsHtml}
${podsHtml}
</div>
<div class="stat-card">
<div class="card-title">Infrastructure</div>
<div class="stat-row">
<span class="stat-label">Database</span>
<span class="stat-value">${infra?.database?.exists
? '<span class="badge badge-green">Exists</span>'
: '<span class="badge badge-red">Not found</span>'}</span>
</div>
<div class="stat-row">
<span class="stat-label">Storage</span>
<span class="stat-value">${infra?.spaces?.configured
? '<span class="badge badge-green">Configured</span>'
: '<span class="badge badge-gray">Not configured</span>'}</span>
</div>
${infra?.spaces?.configured ? `
<div class="stat-row">
<span class="stat-label">Bucket</span>
<span class="stat-value" style="font-family:monospace;font-size:0.8rem">${infra.spaces.bucket}</span>
</div>
<div class="stat-row">
<span class="stat-label">Prefix</span>
<span class="stat-value" style="font-family:monospace;font-size:0.8rem">${infra.spaces.prefix}</span>
</div>` : ''}
</div>
<div class="stat-card">
<div class="card-title">Provisioning Steps</div>
<div class="step-list">${stepsHtml}</div>