@page "/overlays"
@layout ZB.MOM.WW.ScadaBridge.CentralUI.Components.Layout.MainLayout
@using ZB.MOM.WW.ScadaBridge.CentralUI.Components.Audit
@using ZB.MOM.WW.ScadaBridge.CentralUI.Services
@using ZB.MOM.WW.ScadaBridge.Commons.Types.Enums
@inject IDialogService Dialogs
Local overlay verification
Actual CentralUI dialogs and audit drawer, synthetic read-only data. No fleet services.
@_result
@code {
private bool _drawer;
private string _result = "No local action";
private readonly AuditEventView _event = new() { EventId = Guid.Parse("11111111-2222-3333-4444-555555555555"), OccurredAtUtc = DateTime.UtcNow, IngestedAtUtc = DateTime.UtcNow, Channel = AuditChannel.ApiOutbound, Kind = AuditKind.ApiCall, Status = AuditStatus.Delivered, SourceSiteId = "local-sample", Actor = "local-fixture", Target = "synthetic" };
private async Task Confirm() => _result = await Dialogs.ConfirmAsync("Local confirmation", "Synthetic confirmation body") ? "Confirmed locally" : "Cancelled locally";
private async Task Prompt() => _result = await Dialogs.PromptAsync("Local prompt", "Local sample value") ?? "Cancelled locally";
}