test(ui): retain ScadaBridge synthetic consumer validation host
This commit is contained in:
+27
@@ -0,0 +1,27 @@
|
||||
@page "/batch-two"
|
||||
@layout ZB.MOM.WW.ScadaBridge.CentralUI.Components.Layout.MainLayout
|
||||
@using ZB.MOM.WW.ScadaBridge.CentralUI.Components.Audit
|
||||
@using ZB.MOM.WW.ScadaBridge.Commons.Types.Audit
|
||||
@if (Sample == "dashboard") { <h2 class="h6">Local state and UTC verification</h2> } else { <h1>Local state and UTC verification</h1> }
|
||||
<p>Actual components, synthetic read-only dependencies; no backend queries or write operations. Direct composition is not application authorization verification.</p>
|
||||
@if (Sample == "dashboard")
|
||||
{
|
||||
<ZB.MOM.WW.ScadaBridge.CentralUI.Components.Pages.Dashboard />
|
||||
}
|
||||
else if (Sample == "toast")
|
||||
{
|
||||
<ToastNotification @ref="_toast" />
|
||||
<button class="btn btn-secondary" id="show-toast" @onclick="ShowToast">Show local notifications</button>
|
||||
}
|
||||
else
|
||||
{
|
||||
<AuditFilterBar OnFilterChanged="Capture" />
|
||||
<output id="local-filter-result">@_result</output>
|
||||
}
|
||||
@code {
|
||||
[SupplyParameterFromQuery] public string? Sample { get; set; }
|
||||
private ToastNotification? _toast;
|
||||
private string _result = "No local filter applied";
|
||||
private void Capture(AuditLogQueryFilter filter) => _result = $"From={filter.FromUtc:O};To={filter.ToUtc:O};FromKind={filter.FromUtc?.Kind};ToKind={filter.ToUtc?.Kind}";
|
||||
private void ShowToast() { _toast!.ShowError("Synthetic save feedback", "Local configuration", 60000); _toast.ShowInfo("Synthetic read feedback", "Local audit query", 60000); }
|
||||
}
|
||||
Reference in New Issue
Block a user