Skip to content

[refactor] simplify where possible and add doc#411

Merged
severo merged 12 commits intomasterfrom
react-rules
Feb 3, 2026
Merged

[refactor] simplify where possible and add doc#411
severo merged 12 commits intomasterfrom
react-rules

Conversation

@severo
Copy link
Copy Markdown
Contributor

@severo severo commented Feb 3, 2026

No description provided.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR refactors the table component architecture to simplify the provider hierarchy and improve code organization, while also adding comprehensive documentation and test coverage for selection functionality.

Changes:

  • Removed RowsAndColumnsProvider and RowsAndColumnsContext, converting the data fetching logic to a useFetchCells hook
  • Moved visibleColumnsParameters computation to ColumnVisibilityStatesProvider for better data locality and performance
  • Added comprehensive documentation comments for types, interfaces, and functions across multiple files
  • Added extensive test coverage for selection functionality (controlled, uncontrolled, and disabled states)

Reviewed changes

Copilot reviewed 13 out of 15 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/types.ts Enhanced documentation for columnConfiguration and onError props
src/providers/OrderByProvider.tsx Added useMemo optimization for context value and inline type import
src/providers/ColumnVisibilityStatesProvider.tsx Added visibleColumnsParameters computation and export
src/providers/ColumnParametersProvider.tsx Updated Props type to use Pick<DataFrame> and improved documentation
src/providers/CellNavigationProvider.tsx Added TODO comment about refactoring focus state
src/hooks/useFetchCells.ts Converted from RowsAndColumnsProvider to a hook for cleaner architecture
src/helpers/dataframe/types.ts Added documentation for ColumnDescriptor interface
src/helpers/columnConfiguration.ts Added comprehensive documentation for all types and changed import style
src/contexts/RowsAndColumnsContext.ts Removed - no longer needed
src/contexts/ColumnVisibilityStatesContext.ts Added visibleColumnsParameters to context type
src/contexts/ColumnParametersContext.ts Enhanced documentation
src/components/HighTable/Slice.tsx Integrated useFetchCells hook and optimized className lookup
src/components/HighTable/HighTable.tsx Removed RowsAndColumnsProvider and simplified component hierarchy
src/components/HighTable/HighTable.selection.uncontrolled.test.tsx New comprehensive test suite for uncontrolled selection
src/components/HighTable/HighTable.selection.controlled.test.tsx New comprehensive test suite for controlled selection

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/helpers/columnConfiguration.ts Outdated
Comment thread src/providers/OrderByProvider.tsx Outdated
severo and others added 2 commits February 3, 2026 06:55
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@severo severo merged commit 0f26caf into master Feb 3, 2026
5 checks passed
@severo severo deleted the react-rules branch February 3, 2026 12:20
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.

2 participants