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,17 @@
@page "/raw-caller-pilot"
@layout ZB.MOM.WW.OtOpcUa.AdminUI.Components.Layout.MainLayout
@inject FixtureTreeState State
<p class="notice">Composed actual RawTree/dialogs with fabricated local rename/delete replies and memory-only child reads. No database mutation or fleet request occurs.</p>
<button id="fixture-caller-observe" type="button" @onclick="Observe">Observe local request count</button><output id="fixture-caller-count">@_count</output><output id="fixture-caller-ready">@(_observed?"ready":"waiting")</output>
<RawTree Roots="_roots" />
@code {
private IReadOnlyList<RawNode> _roots=[];private int _count;private bool _observed;
private void Observe(){_count=State.CallerMutationRequests;_observed=true;}
protected override void OnInitialized()
{
var folder=new RawNode{Key="caller-folder-a",EntityId="caller-folder-a",Kind=RawNodeKind.Folder,DisplayName="Local folder A",ClusterId="caller-cluster",Loaded=true,RowVersion=[1]};
var cluster=new RawNode{Key="caller-cluster",EntityId="caller-cluster",Kind=RawNodeKind.Cluster,DisplayName="Local cluster",Loaded=true,Expanded=true,HasLazyChildren=true};
cluster.Children.Add(folder);cluster.ChildCount=1;_roots=[cluster];
State.CallerMutationRequests=0;State.CallerChildren.Clear();State.CallerChildren[cluster.Key]=[folder];
}
}