From 62fe27224c2ca3c3e72c2464cade8a7e0d8ab1ae Mon Sep 17 00:00:00 2001 From: daniel-c-harvey Date: Fri, 19 Jun 2026 23:10:08 -0400 Subject: [PATCH] fix: register EditModalSaveContextHolder in DeepDrftManager DI ModelView has a required [Inject] of this type; without it navigating to /useradmin/users or /useradmin/registrations terminated the circuit. Matches the registration pattern from SkipperHaven. --- DeepDrftManager/Program.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/DeepDrftManager/Program.cs b/DeepDrftManager/Program.cs index 5e57c51..423a3ac 100644 --- a/DeepDrftManager/Program.cs +++ b/DeepDrftManager/Program.cs @@ -34,6 +34,10 @@ var contentApiUrl = builder.Configuration["Api:ContentApiUrl"] ?? throw new InvalidOperationException("Api:ContentApiUrl is required"); AuthBlocksWeb.Startup.ConfigureAuthServices(builder.Services, contentApiUrl); +// Per-circuit bridge consumed by the AuthBlocks ModelView component (Users/Registrations pages). +// ModelView has a required [Inject] of this type; without it the circuit throws on component init. +builder.Services.AddScoped(); + // Named HttpClient for unauthenticated Content API calls (CmsTrackService proxying WAV data // to DeepDrftAPI's POST api/track/upload). API key added per-request by the service. builder.Services.AddHttpClient("DeepDrft.Content", client =>