@page "/" @layout ZB.MOM.WW.ScadaBridge.CentralUI.Components.Layout.MainLayout @inject IDialogService Dialogs ScadaBridge local component canary

ScadaBridge local component canary

Actual CentralUI MainLayout, DateTimeRangeFilter, LoadingSpinner and DialogHost with synthetic local content. This is not the complete application.

Actual CentralUI login · Fixture provenance

Synthetic local filter

These controls have no fleet service behind them.

OK sample Warning sample Failure sample Idle sample Information sample
Save local sample Simulate local failure Caller-disabled local action Open local confirmation
@_outcome

Supported dark tokens come from actual CentralUI site.css under the limited candidate adoption; this host still uses synthetic local data only.

@code { private string _sample = ""; private string? _fieldError = "Synthetic validation error. Enter a label to clear it."; private string? _workingAction; private string _outcome = "No local operation has run."; private bool IsWorking => _workingAction is not null; private bool SuccessBusy => _workingAction == "success"; private bool FailureBusy => _workingAction == "failure"; private string FieldDescription => _fieldError is null ? "canary-field-hint" : "canary-field-hint canary-field-error"; private void ValidateSample() => _fieldError = string.IsNullOrWhiteSpace(_sample) ? "Synthetic validation error. Enter a label to clear it." : null; private async Task WorkAsync(bool failure) { if (IsWorking) return; _workingAction = failure ? "failure" : "success"; _outcome = "Local sample pending."; await Task.Delay(800); _outcome = failure ? "Local sample failed. Try again." : "Local sample saved."; _workingAction = null; } private async Task ShowDialog() => await Dialogs.ConfirmAsync( "Local fixture confirmation", "Synthetic dialog. Confirm and Cancel only dismiss this local fixture."); }