test(ui): retain OtOpcUa component canaries and owned SQL proof
This commit is contained in:
@@ -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];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user