Skip to content

Fix two post-split UX issues (schema lookup on Run Repro, toolbar overflow)#335

Merged
erikdarlingdata merged 1 commit into
devfrom
fix/post-split-followups
May 14, 2026
Merged

Fix two post-split UX issues (schema lookup on Run Repro, toolbar overflow)#335
erikdarlingdata merged 1 commit into
devfrom
fix/post-split-followups

Conversation

@erikdarlingdata
Copy link
Copy Markdown
Owner

Summary

Two pre-existing UX bugs surfaced during smoke-testing of the god-file split PRs (#327#334). Neither was caused by the move-only refactor — they were latent in the original code.

  1. Schema lookups greyed out after Run Repro from a file-loaded plan. When you File → Open an estimated plan and click Run Repro, the resulting actual-plan tab had Show Indexes / Show Table Definition disabled on the node context menu. The freshly-created PlanViewerControl wasn't given the connection used to run the repro. Now it inherits ConnectionString + SetConnectionServices + SetConnectionStatus, matching the query-editor Run Repro path (which already did this).

  2. QuerySessionControl toolbar overflowed off-screen on narrow windows. The Format / Format Options buttons (and more, on a sufficiently narrow window) were cut off and unreachable. Switched the toolbar from a single-row StackPanel to a WrapPanel so buttons wrap to a second row instead of being clipped.

Test plan

  • dotnet build PlanViewer.sln — 0 errors
  • File → Open estimated plan → Run Repro → right-click a scan node → Show Indexes / Show Table Definition are enabled
  • Narrow the window — toolbar buttons wrap to a second row, all remain clickable
  • Query-editor Run Repro path still works (unchanged, but worth a sanity check)

🤖 Generated with Claude Code

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) <noreply@anthropic.com>
@erikdarlingdata erikdarlingdata merged commit a2750c4 into dev May 14, 2026
2 checks passed
@erikdarlingdata erikdarlingdata deleted the fix/post-split-followups branch May 14, 2026 07:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant