@page "/"
@layout ZB.MOM.WW.ScadaBridge.CentralUI.Components.Layout.MainLayout
@inject IDialogService Dialogs
<PageTitle>ScadaBridge local component canary</PageTitle>
<h1>ScadaBridge local component canary</h1>
<p>Actual CentralUI MainLayout, DateTimeRangeFilter, LoadingSpinner and DialogHost with synthetic local content. This is not the complete application.</p>
<p><a href="/login">Actual CentralUI login</a> · <a href="/canary-provenance">Fixture provenance</a></p>
<section class="panel rise" id="canary-rise">
    <div class="panel-head">Synthetic local filter</div>
    <div class="panel-body">
        <DateTimeRangeFilter IdPrefix="canary" />
        <LoadingSpinner IsLoading="true" Message="Synthetic pending state" />
        <p>These controls have no fleet service behind them.</p>
        <TechButton @onclick="ShowDialog">Open local confirmation</TechButton>
    </div>
</section>
@code {
    private async Task ShowDialog() => await Dialogs.ConfirmAsync(
        "Local fixture confirmation", "Synthetic dialog. Confirm and Cancel only dismiss this local fixture.");
}
