Unify gateway styling and preserve identity through recovery
ci / java (push) Failing after 15m11s
ci / nightly-windev (push) Failing after 10m18s
ci / portable (push) Failing after 27m42s
ci / windows-x86 (push) Failing after 22m19s

This commit is contained in:
Joseph Doherty
2026-11-13 20:12:00 -05:00
parent b06921ce85
commit 26a90883fa
76 changed files with 20585 additions and 128 deletions
@@ -0,0 +1,6 @@
@namespace MxUiCanary.Components
@page "/apikeys"
@layout ZB.MOM.WW.MxGateway.Server.Dashboard.Components.Layout.MainLayout
@inject IJSRuntime JS
<ApiKeysPage/>
@code { protected override async Task OnAfterRenderAsync(bool firstRender){if(firstRender)await JS.InvokeVoidAsync("mxCanaryReady");} }
@@ -1,5 +1,7 @@
@namespace MxUiCanary.Components
@page "/browse-fixture"
@page "/browse"
@layout ZB.MOM.WW.MxGateway.Server.Dashboard.Components.Layout.MainLayout
@inject IJSRuntime JS
<ThemeShell Product="Synthetic MX browse"><ChildContent><p>Synthetic cached Galaxy and redacted fixture values. No COM or worker.</p><BrowsePage/></ChildContent></ThemeShell>
<p>Synthetic cached Galaxy and redacted fixture values. No COM or worker.</p><BrowsePage/>
@code { protected override async Task OnAfterRenderAsync(bool firstRender){if(firstRender)await JS.InvokeVoidAsync("mxCanaryReady");} }
@@ -0,0 +1,20 @@
@namespace MxUiCanary.Components
@using ZB.MOM.WW.MxGateway.Server.Dashboard
@page "/fault-identity-fixture"
@implements IDisposable
@inject IJSRuntime JS
<ThemeShell Product="Synthetic fault identity"><ChildContent>
<h1>Fault identity fixture</h1>
<button type="button" class="btn btn-primary" @onclick="ArmAsync">Arm synthetic next snapshot</button>
<p role="status">Snapshot @_round</p>
<section data-fault-mode="compact"><FaultList Faults="_faults" Compact="true" /></section>
<section data-fault-mode="table"><FaultList Faults="_faults" /></section>
</ChildContent></ThemeShell>
@code {
private int _round;private bool _disposed;
private IReadOnlyList<DashboardFaultSummary> _faults=[Fault("session-a"),Fault("session-b")];
private static DashboardFaultSummary Fault(string id)=>new("Worker",id,123,"Faulted","Synthetic fault for "+id+" "+new string('x',300),DateTimeOffset.UnixEpoch);
private async Task ArmAsync(){await Task.Delay(1200);if(_disposed)return;_round++;_faults=[Fault("session-c"),Fault("session-b"),Fault("session-a") with{ObservedAt=DateTimeOffset.UnixEpoch.AddMinutes(1)}];}
protected override async Task OnAfterRenderAsync(bool firstRender){if(firstRender)await JS.InvokeVoidAsync("mxCanaryReady");}
public void Dispose()=>_disposed=true;
}
@@ -1,5 +1,5 @@
@namespace MxUiCanary.Components
@page "/"
@page "/native-fixture"
@inject IJSRuntime JS
<ThemeShell Product="Synthetic MX UI canary">
<ChildContent>
@@ -0,0 +1,7 @@
@namespace MxUiCanary.Components
@page "/layout-fixture"
@layout ZB.MOM.WW.MxGateway.Server.Dashboard.Components.Layout.MainLayout
@inject IJSRuntime JS
<h1>Navigation fixture</h1>
<p>Synthetic principals; links and the logout form are inspected without submitting them.</p>
@code { protected override async Task OnAfterRenderAsync(bool firstRender){if(firstRender)await JS.InvokeVoidAsync("mxCanaryReady");} }
@@ -1,5 +1,7 @@
@namespace MxUiCanary.Components
@page "/overview-fixture"
@page "/"
@layout ZB.MOM.WW.MxGateway.Server.Dashboard.Components.Layout.MainLayout
@inject IJSRuntime JS
<ThemeShell Product="Synthetic MX overview"><ChildContent><DashboardHome/></ChildContent></ThemeShell>
<DashboardHome/>
@code { protected override async Task OnAfterRenderAsync(bool firstRender){if(firstRender)await JS.InvokeVoidAsync("mxCanaryReady");} }
@@ -0,0 +1,22 @@
@namespace MxUiCanary.Components
@page "/style-fixture"
@inject IJSRuntime JS
<ThemeShell Product="Synthetic style fixture"><ChildContent>
<h1>Component states</h1>
<p>Shared components with MX host adapters; no operation provider.</p>
<div class="d-flex gap-2 flex-wrap">
<TechButton id="style-primary">Primary action</TechButton>
<TechButton Variant="ButtonVariant.Secondary">Secondary action</TechButton>
<TechButton Variant="ButtonVariant.Danger">Danger action</TechButton>
<TechButton disabled>Disabled action</TechButton>
<TechButton Busy="true" BusyText="Working…">Busy action</TechButton>
</div>
<TechField Label="Fixture field" For="style-field"><input id="style-field" class="form-control" /></TechField>
<section class="dashboard-section">
<p><span class="quality-chip quality-good">Good</span> <span class="quality-chip quality-bad">Bad</span></p>
<p><span class="alarm-state alarm-state-active">Active</span> <span class="alarm-state alarm-state-acked">Acknowledged</span> <span class="alarm-state alarm-state-other">Unknown</span></p>
<p><span class="text-secondary">Secondary text</span> <span class="text-success">Success text</span> <span class="text-warning">Warning text</span> <span class="text-danger">Danger text</span> <span class="text-info">Information text</span></p>
<div class="alert alert-success">Success notice</div><div class="alert alert-danger">Error notice</div><div class="alert alert-info">Information notice</div><div class="alert alert-warning">Warning notice</div>
</section>
</ChildContent></ThemeShell>
@code { protected override async Task OnAfterRenderAsync(bool firstRender){if(firstRender)await JS.InvokeVoidAsync("mxCanaryReady");} }