test(ui): retain OtOpcUa component canaries and owned SQL proof

This commit is contained in:
Joseph Doherty
2026-11-14 02:03:08 -05:00
parent 06a3811331
commit 65fa9137b8
28 changed files with 843 additions and 0 deletions
@@ -0,0 +1,20 @@
@page "/status-icon-pilot"
@layout ZB.MOM.WW.OtOpcUa.AdminUI.Components.Layout.MainLayout
<p class="notice">Actual host styles and tree components, synthetic display-only hierarchy. Domain actions and child reads are refused by the local fixture.</p>
<h1>Local status and icon verification</h1>
<div id="semantic-paper"><span class="text-danger">Error text</span> <span class="text-warning">Warning text</span> <span class="text-success">Success text</span></div>
<section class="panel p-3" id="semantic-card"><span class="text-danger">Error text</span> <span class="text-warning">Warning text</span> <span class="text-success">Success text</span><div class="notice notice-alert">Application error notice</div><span class="chip chip-bad">Failed</span><span class="chip chip-warn">Degraded</span><span class="chip chip-ok">Healthy</span><span class="chip chip-idle">Disabled</span></section>
<RawTree Roots="_roots" />
@code {
private readonly IReadOnlyList<RawNode> _roots=Build();
private static IReadOnlyList<RawNode> Build()
{
RawNode? child=null;
foreach(var kind in Enum.GetValues<RawNodeKind>().Reverse())
{
var node=new RawNode{Kind=kind,Key="kind:"+kind,EntityId="local-"+kind,DisplayName="Local "+kind,Loaded=true,Expanded=true,HasLazyChildren=child is not null};
if(child is not null){node.Children.Add(child);node.ChildCount=1;}child=node;
}
return child is null?[]:[child];
}
}