Repository navigation
Table: Perf tests, lint fixes, minor refactoring - #101
Merged
Merged
Conversation
- Add MemoizedTableRow component with React.memo for row-level updates - Only changed rows re-render when data items change (with stable columns) - Fix plugin stability by using constant empty array defaults - Rename XDSTableRow/Cell to XDSBaseTableRow/Cell for clarity - Remove children mode from XDSTable (data-driven only) - XDSBaseTable retains children mode support - Add performance tests validating memoization behavior
- Renamed XDSBaseTableRow → XDSTableRow and XDSBaseTableCell → XDSTableCell - XDSTable now supports both data-driven and children modes with consistent styling - Children mode uses TableContext for styling (density, dividers, striped, hover) - XDSBaseTable uses XDSTableRow/Cell internally for unified rendering
- Renamed TableContext.ts → XDSTableContext.ts - Renamed TableContext → XDSTableContext - Renamed TableContextValue → XDSTableContextValue - Updated all imports and usages
Contributor
PR Analysis Report📚 Storybook PreviewNo new or modified components detected. Bundle Size Summary
Accessibility AuditStatus: 37 accessibility violation(s) found. XDSAspectRatio - 1 issue(s)
XDSAvatar - 1 issue(s)
XDSBadge - 1 issue(s)
XDSButton - 1 issue(s)
XDSCalendar - 1 issue(s)
XDSCard - 2 issue(s)
XDSCenter - 1 issue(s)
XDSCheckboxInput - 1 issue(s)
XDSDateInput - 1 issue(s)
XDSDivider - 1 issue(s)
XDSField - 1 issue(s)
XDSFontWrapper - 1 issue(s)
XDSGrid - 1 issue(s)
XDSHStack - 1 issue(s)
XDSHeading - 1 issue(s)
XDSHoverCard - 1 issue(s)
XDSIcon - 1 issue(s)
XDSLayout - 2 issue(s)
XDSLink - 1 issue(s)
XDSNumberInput - 1 issue(s)
XDSSection - 2 issue(s)
XDSSelector - 1 issue(s)
XDSSkeleton - 1 issue(s)
XDSStackItem - 1 issue(s)
XDSSwitch - 1 issue(s)
XDSTabList - 1 issue(s)
XDSTable - 1 issue(s)
XDSText - 2 issue(s)
XDSTextArea - 1 issue(s)
XDSTextInput - 1 issue(s)
XDSTimeInput - 1 issue(s)
XDSTooltip - 1 issue(s)
XDSVStack - 1 issue(s)
Generated by PR Enrichment workflow | Storybook | View full report |
cixzhang
added a commit
that referenced
this pull request
Apr 26, 2026
* Add row memoization and refactor table API - Add MemoizedTableRow component with React.memo for row-level updates - Only changed rows re-render when data items change (with stable columns) - Fix plugin stability by using constant empty array defaults - Rename XDSTableRow/Cell to XDSBaseTableRow/Cell for clarity - Remove children mode from XDSTable (data-driven only) - XDSBaseTable retains children mode support - Add performance tests validating memoization behavior * Rename XDSBaseTableRow/Cell to XDSTableRow/Cell and unify styling - Renamed XDSBaseTableRow → XDSTableRow and XDSBaseTableCell → XDSTableCell - XDSTable now supports both data-driven and children modes with consistent styling - Children mode uses TableContext for styling (density, dividers, striped, hover) - XDSBaseTable uses XDSTableRow/Cell internally for unified rendering * Rename TableContext to XDSTableContext for consistency - Renamed TableContext.ts → XDSTableContext.ts - Renamed TableContext → XDSTableContext - Renamed TableContextValue → XDSTableContextValue - Updated all imports and usages
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.
Some adjustments to the table. Refactored it so data and children mode will render the same components. Lint fixes.
Added performance tests to the table to ensure that we avoid over rendering with this API.