fix(dashboard): pilot native dialog focus and safe dismissal

This commit is contained in:
Joseph Doherty
2026-11-13 17:51:02 -05:00
parent 3e004708d4
commit 260d58afa1
32 changed files with 1750 additions and 40 deletions
@@ -0,0 +1,2 @@
@namespace MxUiCanary.Components
<!doctype html><html lang="en"><head><meta charset="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><base href="/"/><link rel="stylesheet" href="/lib/bootstrap/css/bootstrap.min.css"/><ThemeHead/><link rel="stylesheet" href="/css/site.css"/></head><body class="dashboard-body"><FixtureBody @rendermode="InteractiveServer"/><script>window.mxCanaryReady=()=>document.documentElement.dataset.mxReady='true';</script><script src="/_framework/blazor.web.js"></script></body></html>
@@ -0,0 +1,18 @@
@namespace MxUiCanary.Components
@page "/"
@inject IJSRuntime JS
<ThemeShell Product="Synthetic MX UI canary">
<ChildContent>
<p>Synthetic local fixture: no gateway worker, key store, LDAP, COM or real write provider.</p>
<button id="slow-trigger" class="btn btn-secondary" @onclick="()=>_open=true">Open synthetic delayed confirmation</button>
<button id="outside" class="btn btn-secondary">Outside inertness probe</button>
<p id="counts">Synthetic confirms: @_count</p>
<ConfirmDialog IsOpen="@_open" IsBusy="@_busy" Title="Synthetic delayed operation" Message="Fixture only; no session or key is changed." OnCancel="()=>_open=false" OnConfirm="Confirm"/>
<ApiKeysPage/>
</ChildContent>
</ThemeShell>
@code {
bool _open;bool _busy;int _count;
protected override async Task OnAfterRenderAsync(bool firstRender) {if(firstRender)await JS.InvokeVoidAsync("mxCanaryReady");}
async Task Confirm(){if(_busy)return;_busy=true;_count++;await Task.Delay(1500);_busy=false;_open=false;}
}
@@ -0,0 +1,7 @@
@using Microsoft.AspNetCore.Components
@using Microsoft.AspNetCore.Components.Web
@using Microsoft.JSInterop
@using static Microsoft.AspNetCore.Components.Web.RenderMode
@using ZB.MOM.WW.Theme
@using ZB.MOM.WW.MxGateway.Server.Dashboard.Components.Shared
@using ZB.MOM.WW.MxGateway.Server.Dashboard.Components.Pages