From 42b00373764ff87a49fdfd4aa803e4e5bf6aa2e8 Mon Sep 17 00:00:00 2001 From: Joseph Doherty Date: Sun, 24 May 2026 07:51:00 -0400 Subject: [PATCH] Dashboard: replace inline fully-qualified type refs with @using ApiKeysPage and GalaxyPage referenced ApiKeyConstraints and GalaxyRepositoryOptions by full namespace inside @code. Add the appropriate @using directive at the top of each file and let the short type names resolve through that. Co-Authored-By: Claude Opus 4.7 (1M context) --- .../Dashboard/Components/Pages/ApiKeysPage.razor | 5 +++-- .../Dashboard/Components/Pages/GalaxyPage.razor | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/ZB.MOM.WW.MxGateway.Server/Dashboard/Components/Pages/ApiKeysPage.razor b/src/ZB.MOM.WW.MxGateway.Server/Dashboard/Components/Pages/ApiKeysPage.razor index 9874d9a..b23eff2 100644 --- a/src/ZB.MOM.WW.MxGateway.Server/Dashboard/Components/Pages/ApiKeysPage.razor +++ b/src/ZB.MOM.WW.MxGateway.Server/Dashboard/Components/Pages/ApiKeysPage.razor @@ -1,5 +1,6 @@ @page "/apikeys" @inherits DashboardPageBase +@using ZB.MOM.WW.MxGateway.Server.Security.Authentication @inject AuthenticationStateProvider AuthenticationStateProvider @inject IDashboardApiKeyManagementService ApiKeyManagementService @@ -416,7 +417,7 @@ else KeyId: CreateModel.KeyId, DisplayName: CreateModel.DisplayName, Scopes: CreateModel.SelectedScopes, - Constraints: new ZB.MOM.WW.MxGateway.Server.Security.Authentication.ApiKeyConstraints( + Constraints: new ApiKeyConstraints( ReadSubtrees: ParseList(CreateModel.ReadSubtrees), WriteSubtrees: ParseList(CreateModel.WriteSubtrees), ReadTagGlobs: ParseList(CreateModel.ReadTagGlobs), @@ -447,7 +448,7 @@ else } } - private static string ConstraintText(ZB.MOM.WW.MxGateway.Server.Security.Authentication.ApiKeyConstraints constraints) + private static string ConstraintText(ApiKeyConstraints constraints) { if (constraints.IsEmpty) { diff --git a/src/ZB.MOM.WW.MxGateway.Server/Dashboard/Components/Pages/GalaxyPage.razor b/src/ZB.MOM.WW.MxGateway.Server/Dashboard/Components/Pages/GalaxyPage.razor index f3e072b..f1d73ea 100644 --- a/src/ZB.MOM.WW.MxGateway.Server/Dashboard/Components/Pages/GalaxyPage.razor +++ b/src/ZB.MOM.WW.MxGateway.Server/Dashboard/Components/Pages/GalaxyPage.razor @@ -1,5 +1,6 @@ @page "/galaxy" @inherits DashboardPageBase +@using ZB.MOM.WW.MxGateway.Server.Galaxy Dashboard Galaxy @@ -140,7 +141,7 @@ else @code { [Inject] - private IOptions GalaxyOptions { get; set; } = null!; + private IOptions GalaxyOptions { get; set; } = null!; private string RefreshHeading() {