Split QueryStoreGridControl.axaml.cs into partial classes#330
Merged
Conversation
Move-only refactor; no behavior changes. QueryStoreGridControl.axaml.cs
(1,959 lines) split into 7 partials:
Fetch (452) - Fetch_Click + FetchPlans/WaitStats + grouping
Filters (256) - search type/value + column filter popup + ApplyFilters
GroupBy (161) - GroupBy + ReorderColumns + row expand/collapse
+ ResultsGrid_DoubleTapped + ToggleRowExpansion
Sort (245) - sorting + UpdateBarRatios + GetSortKey + status
Selection (134) - select/load/ViewHistory/context menu + copy
WaitStats (182) - wait fetch + category click + mode toggle
TimeRange ( 33) - OnTimeRangeChanged
Main file now 465 lines — fields, ctor, public API
(SetInitialTimeRange), DB picker, and static accessor dictionaries.
The standalone QueryStoreRow class at the bottom of the file is
untouched.
Build clean: 0 errors, 0 warnings on PlanViewer.App.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
ae53535 to
caa98d0
Compare
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
Move-only refactor of
QueryStoreGridControl.axaml.cs(1,900 lines) into 7 partial-class files.File sizes
QueryStoreGridControl.axaml.cs(main)SetInitialTimeRange, DB picker (PopulateDatabaseBox,QsDatabase_SelectionChanged), static accessor/column dicts; plus the unrelatedQueryStoreRowclass at the bottom.Fetch.csFetch_Click,FetchPlansForRangeAsync, flat/grouped fetch, grouping helpers (BuildGroupedRows,AggregateGroupedRows).Filters.csApplyFilters+ Match{Text,Numeric}.GroupBy.csGroupBy_SelectionChanged, column reordering, row expand/collapse.Sort.csApplySortAndFilters{,Grouped},UpdateBarRatios,GetSortKey, status text.Selection.cs.WaitStats.cs.TimeRange.csOnTimeRangeChangedBehavior
QueryStoreRowclass at the bottom of the file is untouched.Test plan
dotnet build PlanViewer.sln— 0 errors🤖 Generated with Claude Code