From aadbf49678c2728295fef819cb59f58a66aa8cc0 Mon Sep 17 00:00:00 2001 From: Joseph Doherty Date: Wed, 3 Jun 2026 03:13:23 -0400 Subject: [PATCH] feat(adminui): LoginCard sign-in; remove dead StatusBadge --- .../Components/Pages/Login.razor | 37 +++---------------- .../Components/Shared/StatusBadge.razor | 7 ---- 2 files changed, 6 insertions(+), 38 deletions(-) delete mode 100644 src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Shared/StatusBadge.razor diff --git a/src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Pages/Login.razor b/src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Pages/Login.razor index e82b2828..84834dd0 100644 --- a/src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Pages/Login.razor +++ b/src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Pages/Login.razor @@ -5,39 +5,14 @@ the form POSTs to /auth/login while ASP.NET still owns an unstarted HTTP response. Calling SignInAsync from an interactive circuit would be too late. - Uses LoginLayout (no side rail) so the page renders as a clean centred card. *@ + Uses LoginLayout (no side rail) so the page renders as a clean centred card. + The card itself is the shared kit's — it owns the .login-wrap centring + wrapper, the .panel shell, and the static form-POST (username/password/returnUrl). *@ @attribute [Microsoft.AspNetCore.Authorization.AllowAnonymous] - + + + @code { /// Error message surfaced by /auth/login after a failed bind. diff --git a/src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Shared/StatusBadge.razor b/src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Shared/StatusBadge.razor deleted file mode 100644 index 55096fa2..00000000 --- a/src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Shared/StatusBadge.razor +++ /dev/null @@ -1,7 +0,0 @@ -@* Status chip — wraps the theme.css .chip / .chip-ok / .chip-warn / .chip-bad / .chip-idle classes. *@ -@Text - -@code { - [Parameter] public string Text { get; set; } = ""; - [Parameter] public string CssClass { get; set; } = "chip-idle"; -}