Split Lite + Dashboard god-class files into partial classes#912
Merged
erikdarlingdata merged 2 commits intodevfrom Apr 29, 2026
Merged
Split Lite + Dashboard god-class files into partial classes#912erikdarlingdata merged 2 commits intodevfrom
erikdarlingdata merged 2 commits intodevfrom
Conversation
Move-only refactor; no behavior changes. Three files split: - Controls/ServerTab.xaml.cs (5824 → 1571) into 8 partials: Refresh, Charts, Pickers, Plans, DrillDown, Comparison, CopyExport, Filters - MainWindow.xaml.cs (2352 → 1967): plan viewer extracted to MainWindow.PlanViewer.cs - Controls/PlanViewerControl.xaml.cs (2376 → 209) into 4 partials: Rendering, Properties, Tooltips, Interaction Build clean: 0 errors, 186 warnings (all pre-existing CA1873). Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Move-only refactor; no behavior changes. Five files split: - Services/DatabaseService.QueryPerformance.cs (4941 → 1198) into 6 sub-partials: Snapshots, Stats, Blocking, History, Trends, Mcp - ServerTab.xaml.cs (3871 → 533) into 9 partials: Refresh, Charts, Plans, TimeRange, Filters, DrillDown, Slicers, CopyExport, Alerts - Controls/QueryPerformanceContent.xaml.cs (2869 → 1279) into 6 partials: Filters, Plans, Slicers, Comparison, Heatmap, CopyExport - Controls/PlanViewerControl.xaml.cs (2539 → 368) into 4 partials: Rendering, Properties, Tooltips, Interaction - MainWindow.xaml.cs (2523 → 2112): plan viewer extracted to MainWindow.PlanViewer.cs Build clean: 0 errors, 0 warnings (pre-existing CA1806 warnings now attached to ServerTab.Plans.cs since those methods moved there). Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Lite/andDashboard/into focused partial-class siblings (Refresh / Charts / Plans / Filters / etc.). No behavior or signature changes.Lite/Controls/ServerTab.xaml.cs: 5,824 → 1,571 (8 partials)Lite/Controls/PlanViewerControl.xaml.cs: 2,376 → 209 (4 partials)Lite/MainWindow.xaml.cs: 2,352 → 1,967 (1 partial)Dashboard/Services/DatabaseService.QueryPerformance.cs: 4,941 → 1,198 (6 sub-partials)Dashboard/ServerTab.xaml.cs: 3,871 → 533 (9 partials)Dashboard/Controls/QueryPerformanceContent.xaml.cs: 2,869 → 1,279 (6 partials)Dashboard/Controls/PlanViewerControl.xaml.cs: 2,539 → 368 (4 partials)Dashboard/MainWindow.xaml.cs: 2,523 → 2,112 (1 partial)Test plan
dotnet build Lite/PerformanceMonitorLite.csproj -c Debug— 0 errorsdotnet build Dashboard/Dashboard.csproj -c Debug— 0 errors, 0 warningsSUCCESS🤖 Generated with Claude Code