fix(secrets-ui): align fields, confirmation lifecycle and list recovery

This commit is contained in:
Joseph Doherty
2026-11-13 17:02:22 -05:00
parent cb424a0ce7
commit 510d15d546
64 changed files with 4376 additions and 97 deletions
@@ -0,0 +1,7 @@
<!DOCTYPE html>
<html lang="en"><head><meta charset="utf-8" /><meta name="viewport" content="width=device-width,initial-scale=1" /><base href="/" />
<link rel="stylesheet" href="/fixture-bootstrap/bootstrap.min.css" />
<ThemeHead /><title>Secrets synthetic acceptance fixture</title>
<style>body{margin:0}.fixture-main{padding:1.5rem;max-width:92rem;margin:auto;min-width:0}.fixture-note{font-size:.85rem;color:var(--ink-muted)}.fixture-transform{transform:translateZ(0)}.visually-hidden{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}</style>
<HeadOutlet @rendermode="InteractiveServer" /></head><body><div class="fixture-main fixture-transform"><p class="fixture-note">Synthetic local fixture · bootstrap · No production data or services</p>
<Routes @rendermode="InteractiveServer" /></div><ThemeScripts /><script src="/_framework/blazor.web.js"></script></body></html>
@@ -0,0 +1,6 @@
<ErrorBoundary><div data-fixture-ready="@(_ready ? "true" : "false")">@ChildContent</div></ErrorBoundary>
@code {
[Parameter] public RenderFragment? ChildContent { get; set; }
private bool _ready;
protected override void OnAfterRender(bool firstRender) { if (firstRender) { _ready = true; StateHasChanged(); } }
}
@@ -0,0 +1,3 @@
@page "/admin/secrets"
@attribute [Authorize(Policy = SecretsAuthorization.ManagePolicy)]
<PageErrorBoundary><SecretsPage /></PageErrorBoundary>
@@ -0,0 +1 @@
<Router AppAssembly="typeof(App).Assembly"><Found Context="routeData"><AuthorizeRouteView RouteData="routeData"><NotAuthorized><p role="status">Synthetic principal is not authorized.</p></NotAuthorized></AuthorizeRouteView></Found><NotFound><p>Fixture route not found.</p></NotFound></Router>
@@ -0,0 +1,9 @@
@using Microsoft.AspNetCore.Components
@using Microsoft.AspNetCore.Components.Authorization
@using Microsoft.AspNetCore.Components.Routing
@using Microsoft.AspNetCore.Components.Web
@using Microsoft.AspNetCore.Authorization
@using static Microsoft.AspNetCore.Components.Web.RenderMode
@using ZB.MOM.WW.Theme
@using ZB.MOM.WW.Secrets.Ui
@using SecretsUiFixture.Components
@@ -0,0 +1,12 @@
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup><TargetFramework>net10.0</TargetFramework><ImplicitUsings>enable</ImplicitUsings><Nullable>enable</Nullable><RootNamespace>SecretsUiFixture</RootNamespace><OtOpcUaRoot Condition="'$(OtOpcUaRoot)' == ''">/Users/dohertj2/Desktop/OtOpcUa</OtOpcUaRoot></PropertyGroup>
<ItemGroup>
<ProjectReference Condition="'$(SecretsUiPackageVersion)' == ''" Include="../../../../../../ZB.MOM.WW.Secrets/src/ZB.MOM.WW.Secrets.Ui/ZB.MOM.WW.Secrets.Ui.csproj" />
<PackageReference Condition="'$(SecretsUiPackageVersion)' != ''" Include="ZB.MOM.WW.Secrets.Ui" Version="$(SecretsUiPackageVersion)" />
<PackageReference Include="ZB.MOM.WW.Theme" Version="1.0.0" />
<Compile Include="../shared/*.cs" Link="%(Filename)%(Extension)" />
<Compile Include="../../../../../../ZB.MOM.WW.Secrets/tests/ZB.MOM.WW.Secrets.Ui.Tests/Fakes/FakeCipher.cs" Link="Fakes/FakeCipher.cs" />
<Compile Include="../../../../../../ZB.MOM.WW.Secrets/tests/ZB.MOM.WW.Secrets.Ui.Tests/Fakes/RecordingSecretStore.cs" Link="Fakes/RecordingSecretStore.cs" />
<Compile Include="../../../../../../ZB.MOM.WW.Secrets/tests/ZB.MOM.WW.Secrets.Ui.Tests/Fakes/RecordingCacheInvalidator.cs" Link="Fakes/RecordingCacheInvalidator.cs" />
<Compile Include="../../../../../../ZB.MOM.WW.Secrets/tests/ZB.MOM.WW.Secrets.Ui.Tests/Fakes/CapturingAuditWriter.cs" Link="Fakes/CapturingAuditWriter.cs" />
</ItemGroup></Project>