feat(ui): Data Quality & Incident Manager UI – Core Components Migration#26066
feat(ui): Data Quality & Incident Manager UI – Core Components Migration#26066shah-harshit wants to merge 11 commits intomainfrom
Conversation
|
Hi there 👋 Thanks for your contribution! The OpenMetadata team will review the PR shortly! Once it has been labeled as Let us know if you need any help! |
...ity/IncidentManager/DimensionalityTab/DimensionalityHeatmap/HeatmapCellTooltip.component.tsx
Outdated
Show resolved
Hide resolved
| }: Record<string, unknown>) => ( | ||
| <div data-testid="progress-bar-circle" role="progressbar" {...props} /> | ||
| ), | ||
| Tooltip: ({ |
There was a problem hiding this comment.
💡 Quality: Test mocks unused Tooltip from core-components
The DimensionalityHeatmap.component.test.tsx mocks Tooltip from @openmetadata/ui-core-components (lines 57-72), but the actual component imports Tooltip from antd (line 18 of the component file), not from @openmetadata/ui-core-components. This mock is dead code that will never be exercised, since only Typography and ProgressBarCircle are imported from the core-components library.
This won't cause test failures, but it's misleading for future maintainers who may think the component uses core-components Tooltip.
Suggested fix:
jest.mock('@openmetadata/ui-core-components', () => ({
Typography: ({
as: Component = 'span',
children,
...props
}: {
as?: React.ElementType;
children: React.ReactNode;
[key: string]: unknown;
}) => <Component {...props}>{children}</Component>,
ProgressBarCircle: ({
valueFormatter: _vf,
...props
}: Record<string, unknown>) => (
<div data-testid="progress-bar-circle" role="progressbar" {...props} />
),
}));
Was this helpful? React with 👍 / 👎
Code Review 👍 Approved with suggestions 2 resolved / 4 findingsClean migration from AntD/MUI to core-components across 32 files. One previous minor finding (dead 💡 Quality: Dead export: TOOLTIP_STYLES never imported after migrationThe This is dead code that should be cleaned up to avoid confusion about whether these MUI spacing-based values are still in use. Suggested fix💡 Quality: Test mocks unused Tooltip from core-components📄 openmetadata-ui/src/main/resources/ui/src/components/DataQuality/IncidentManager/DimensionalityTab/DimensionalityHeatmap/DimensionalityHeatmap.component.test.tsx:57 📄 openmetadata-ui/src/main/resources/ui/src/components/DataQuality/IncidentManager/DimensionalityTab/DimensionalityHeatmap/DimensionalityHeatmap.component.tsx:18 The This won't cause test failures, but it's misleading for future maintainers who may think the component uses core-components Tooltip. Suggested fix✅ 2 resolved✅ Bug: HeatmapCellTooltip: MUI spacing units used as raw CSS pixels
✅ Bug: ProgressBarCircle with static value={75} misused as loading spinner
Rules 🎸 1 action takenGitar Rules
1 rule not applicable. Show all rules by commenting OptionsAuto-apply is off → Gitar will not commit updates to this branch. Comment with these commands to change:
Was this helpful? React with 👍 / 👎 | Gitar |
|



Summary
Migrates Data Quality, Incident Manager, and Table Profiler UI to use
@openmetadata/ui-core-components(Typography, Button, Dropdown, Tooltip, Tabs, ProgressBarCircle, etc.) and aligns styling with the design system. No changes to core-components package, yarn.lock, or unrelated common components.Scope (32 files)
Incident Manager & Data Quality
as="span"for inline layout in Space, tooltip stylingshowArrow={false}, white tooltip styles (test-case-result-tab.style.less)Table Profiler & Data Observability
Test Suite Details
Utils
Made with Cursor
Summary by Gitar
@openmetadata/ui-core-components(Typography, Button, Dropdown, Tabs, ProgressBarCircle) across 32 files in Data Quality, Incident Manager, Table Profiler, and Test Suite modules for design system alignmentsxprops to Tailwind CSS utilities (tw:flex,tw:gap-*,tw:w-full) for layout with LESS stylesheets for custom theming and Antd Tooltip overrides (white background, border-radius)activeKey→selectedKey,onChange→onSelectionChange), updated Dropdown state management, and added semantic HTML via Typographyasprop (e.g.,as="span")getByRole('menuitemradio')) for improved test resilience across 7 test filesThis will update automatically on new commits.