From 5bdb4202e3340b4fb6a613965141dec77c52c8e7 Mon Sep 17 00:00:00 2001 From: Erik Darling <2136037+erikdarlingdata@users.noreply.github.com> Date: Mon, 6 Apr 2026 10:22:29 -0400 Subject: [PATCH] Add connection toolbar to plan viewer for schema lookups (#166) Plan viewer now has Connect button + server status + database dropdown in the toolbar, enabling schema lookups on plans opened from file. Plans loaded from connected sessions inherit the connection and show the server name and database pre-populated. - Connect button shows connection dialog, populates database dropdown - Database switching updates the connection string for schema lookups - Connection services passed to PlanViewerControl from both MainWindow and QuerySessionControl - Schema lookup items disabled when no connection, enabled after connect Closes #166. Co-Authored-By: Claude Opus 4.6 (1M context) --- .../Controls/PlanViewerControl.axaml | 14 +++ .../Controls/PlanViewerControl.axaml.cs | 97 +++++++++++++++++++ .../Controls/QuerySessionControl.axaml.cs | 9 ++ src/PlanViewer.App/MainWindow.axaml.cs | 2 + 4 files changed, 122 insertions(+) diff --git a/src/PlanViewer.App/Controls/PlanViewerControl.axaml b/src/PlanViewer.App/Controls/PlanViewerControl.axaml index ef2ed43..1eec781 100644 --- a/src/PlanViewer.App/Controls/PlanViewerControl.axaml +++ b/src/PlanViewer.App/Controls/PlanViewerControl.axaml @@ -14,6 +14,20 @@ BorderBrush="{DynamicResource BorderBrush}" BorderThickness="0,0,0,1"> +