Standardize first runtime page and table anatomy

This commit is contained in:
Joseph Doherty
2026-11-13 21:24:07 -05:00
parent 169149f1eb
commit ee8ac73e8c
26 changed files with 755 additions and 50 deletions
@@ -18,11 +18,11 @@
@rendermode InteractiveServer
<PageErrorBoundary>
<PageTitle>Deployments</PageTitle>
<PageTitle>Deployments · OtOpcUa</PageTitle>
<h1>Deployments</h1>
<div class="page-head"><h1>Deployments</h1></div>
<div class="d-flex align-items-center gap-3 mb-3">
<div class="d-flex flex-wrap align-items-center gap-3 mb-3">
<button class="btn btn-primary" @onclick="StartDeploymentAsync" disabled="@_busy">
@(_busy ? "Deploying…" : "Deploy current configuration")
</button>
@@ -53,22 +53,23 @@
</div>
}
<table class="table table-striped table-sm">
<div class="table-wrap" role="region" aria-label="Deployment history" tabindex="0">
<table class="data-table">
<thead>
<tr>
<th>Deployment</th>
<th>Revision</th>
<th>Status</th>
<th>Created by</th>
<th>Created (UTC)</th>
<th>Sealed (UTC)</th>
<th scope="col">Deployment</th>
<th scope="col">Revision</th>
<th scope="col">Status</th>
<th scope="col">Created by</th>
<th scope="col">Created (UTC)</th>
<th scope="col">Sealed (UTC)</th>
</tr>
</thead>
<tbody>
@foreach (var d in _deployments)
{
<tr>
<td><code>@Short(d.DeploymentId)</code></td>
<th scope="row"><code>@Short(d.DeploymentId)</code></th>
<td><code>@DisplayText.Abbreviate(d.RevisionHash, 12)</code></td>
@* #601: Sealed + a reason = sealed with a degraded address-space apply on some node(s). *@
<td title="@(d.FailureReason ?? "")">@(d.Status == DeploymentStatus.Sealed && !string.IsNullOrEmpty(d.FailureReason) ? "Sealed (degraded)" : d.Status.ToString())</td>
@@ -79,6 +80,7 @@
}
</tbody>
</table>
</div>
</PageErrorBoundary>
@code {