From 5f8fa7004c4aaa2149176c59ab465c78ccc22630 Mon Sep 17 00:00:00 2001 From: Joseph Doherty Date: Thu, 28 May 2026 09:58:36 -0400 Subject: [PATCH] feat(adminui): wire all 9 typed pages into DriverEditRouter map DriverEditRouter now dispatches every known DriverType to its typed page. The legacy DriverEdit fallback remains in ResolveComponentType for forward-compatibility with as-yet-unknown driver types but is no longer reached for any current driver. --- .../Pages/Clusters/Drivers/DriverEditRouter.razor | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Pages/Clusters/Drivers/DriverEditRouter.razor b/src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Pages/Clusters/Drivers/DriverEditRouter.razor index 79dc81fa..1d8e4915 100644 --- a/src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Pages/Clusters/Drivers/DriverEditRouter.razor +++ b/src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Pages/Clusters/Drivers/DriverEditRouter.razor @@ -41,9 +41,15 @@ else private static readonly IReadOnlyDictionary _componentMap = new Dictionary(StringComparer.OrdinalIgnoreCase) { - // Populated by Phase 4 — until then, all driver types fall back to DriverEdit. - // Keys must match DriverInstance.DriverType strings: - // ModbusTcp, AbCip, AbLegacy, S7, TwinCat, Focas, OpcUaClient, Galaxy, Historian.Wonderware + ["ModbusTcp"] = typeof(ModbusDriverPage), + ["AbCip"] = typeof(AbCipDriverPage), + ["AbLegacy"] = typeof(AbLegacyDriverPage), + ["S7"] = typeof(S7DriverPage), + ["TwinCat"] = typeof(TwinCATDriverPage), + ["Focas"] = typeof(FocasDriverPage), + ["OpcUaClient"] = typeof(OpcUaClientDriverPage), + ["Galaxy"] = typeof(GalaxyDriverPage), + ["Historian.Wonderware"] = typeof(HistorianWonderwareDriverPage), }; protected override async Task OnInitializedAsync()