refactor(DimensionalityTab): migrate table to core-ui Table component#27969
refactor(DimensionalityTab): migrate table to core-ui Table component#27969shah-harshit wants to merge 9 commits intomainfrom
Conversation
Replace Ant Design Table with react-aria-based Table from @openmetadata/ui-core-components. Removes antd ColumnsType, HelpCircle icon, and Tooltip imports in favour of Table.Head tooltip prop. Impact-score tooltip now rendered natively by Table.Head. Trans type error fixed via ComponentType cast. Select dimension dropdown styled to match date picker height (h-8/32px) and font-size xs. Refs: open-metadata/openmetadata-collate#3837
Extract nested ternary cell renderer into a switch-based renderCell function. Wrap dimensionTableColumns in useMemo([t]) to stabilize the array reference across renders.
🔴 Playwright Results — 2 failure(s), 10 flaky✅ 4016 passed · ❌ 2 failed · 🟡 10 flaky · ⏭️ 86 skipped
Genuine Failures (failed on all attempts)❌
|
Code Review ✅ Approved 4 resolved / 4 findingsMigrates DimensionalityTab to the core-ui Table component and optimizes rendering through column memoization and flattened cell structures. These changes address previous findings regarding nested ternary chains, redundant re-renders, and missing row keys. ✅ 4 resolved✅ Quality: Deeply nested ternary chain in cell renderer hurts readability
✅ Performance: dimensionTableColumns recreated on every render
✅ Bug: Table.Row key is undefined when record.id is missing
✅ Performance: renderRow is not memoized, recreated every render
OptionsDisplay: compact → Showing less information. Comment with these commands to change:
Was this helpful? React with 👍 / 👎 | Gitar |
|



Summary
Tablewith core-uiTable(react-aria-components) inDimensionalityTabTest plan
🤖 Generated with Claude Code
Summary by Gitar
DimensionalityTabtable tocore-uiTable component, replacing the Ant Design implementation.tw:h-8andfontSize="xs"todimension-selectfor consistent styling.DataQualityTabto settw:min-w-13on the dimension count container.DimensionalityTabby wrapping the table in a container withtw:rounded-xlandtw:ring-1.TranswithTransComponentwrapper for type safety inDimensionalityTab.This will update automatically on new commits.