From 6d81e29a74eb73884d1091b60190bcccac4880cc Mon Sep 17 00:00:00 2001 From: Erik Darling <2136037+erikdarlingdata@users.noreply.github.com> Date: Thu, 14 May 2026 09:21:54 +0200 Subject: [PATCH] Fix two post-split UX issues MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Both are pre-existing bugs surfaced during smoke-testing of the god-file split; neither was caused by the move-only refactor. 1. Run Repro from a file-loaded plan produced an actual-plan tab with schema lookups (Show Indexes / Show Table Definition) greyed out. The new PlanViewerControl wasn't given the connection used to run the repro. Now inherits ConnectionString + connection services + status, matching the query-editor Run Repro path. 2. QuerySessionControl toolbar overflowed off-screen on narrow windows — the Format / Format Options buttons were unreachable. Switched the toolbar from a single-row StackPanel to a WrapPanel so buttons wrap to a second row instead of being cut off. Build clean: 0 errors on PlanViewer.sln. Co-Authored-By: Claude Opus 4.7 (1M context) --- .../Controls/QuerySessionControl.axaml | 20 +++++++++++++------ src/PlanViewer.App/MainWindow.PlanViewer.cs | 6 ++++++ 2 files changed, 20 insertions(+), 6 deletions(-) diff --git a/src/PlanViewer.App/Controls/QuerySessionControl.axaml b/src/PlanViewer.App/Controls/QuerySessionControl.axaml index a6fa92c..a9aefad 100644 --- a/src/PlanViewer.App/Controls/QuerySessionControl.axaml +++ b/src/PlanViewer.App/Controls/QuerySessionControl.axaml @@ -8,7 +8,19 @@ - + + + + + +