Repository navigation
refactor(grid): decompose result_grid_view.dart into focused modules - #1083
Merged
Merged
Conversation
…1035) Move column sizing, selection model and sorting into libraries and the state logic (editing, layout, pointer selection, clipboard, cell actions, keyboard navigation, build) plus row/cell renderers into part files. result_grid_view.dart keeps the widget, state fields and lifecycle.
3 tasks
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
result_grid_view.dartshrinks from 3180 to ~255 lines.lib/features/workspace/grid/:grid_column_sizer,grid_selection_manager(selection model + TSV/CSV/JSON export),grid_sortingas exported libraries;grid_keyboard_navigation,grid_pointer_selection,grid_clipboard_service,grid_cell_editing,grid_cell_actions,grid_view_layout,grid_view_builderas extensions on the state in part files;grid_header_renderer,grid_row_renderer,grid_cell_rendereras part files.result_grid_view.dart); logic is moved verbatim, so rendering and scroll behavior are unchanged.Closes #1035