Repository navigation
refactor(ui): migrate entity details and version page tabs to core Tabs - #33890
Conversation
Replace antd Tabs with the @openmetadata/ui-core-components Tabs on the 24 entity detail pages and 20 entity version pages. - Add .page-tabs / .page-tabs-bar styles that reproduce the tabs-new look on the react-aria DOM; keep the antd rules for pages not yet migrated. - Point entity details/version panel height rules and page-specific Less (glossary, domain, data product, metric, incident manager) at the core tab panel. - Type CustomizePageEntityTabUtils on a local DetailsTabItem instead of antd TabsProps. - Switch Playwright selectors for the migrated pages from antd tab classes to role/aria-selected selectors.
❌ PR checklist incompleteThis PR cannot be merged until the following are addressed on its linked issue:
The fields live on the linked issue in the Shipping project (open the issue → right sidebar → Projects). After you set them, re-run this check (or push a commit) — issue/project changes do not re-trigger it automatically. Maintainers can bypass this check by adding the |
Comments Outside DiffThese findings sit on lines the diff does not cover, so they could not be posted inline. Each one leaves this list once its file changes.
|
- Remove the .page-tabs / .page-tabs-bar chrome and panel rules; the migrated pages now use the core Tabs default styling. - Unwrap the Box that only held Tabs.List on version pages. - Delete antd tab rules that only targeted the migrated pages (version page panel height, glossary/glossary term, domain, data product, metric, incident manager, generic-tab grid override) and the now-empty EntityVersionPage.less and incident-manager-details.less. - Keep .entity-details-page-tabs antd rules for ServiceDetailsPage and the global antd tab rules for pages not yet migrated. - Use page.getByRole for tab and tabpanel locators in Playwright specs.
…ith count badges - Card variant tabs drop the z-10 stacking context; it only lifts the underline over the separator line the card does not draw, and it painted the tab bar over the fixed full-screen lineage overlay. - NestedChildrenUpdates: match the Schema tab with /^Schema/ because the tab's accessible name includes its count badge.
…nd use core button for tab expand - Detail pages: antd Row/Col skeleton becomes a vertical core Box; full width Col wrappers become divs that keep their className and test ids. - Version pages: the description/right panel Row becomes a Box row with Tailwind flex sizing matching antd's flex="auto" and flex="220px". - Glossary details: move the ant-row specific layout rule to Tailwind on the Box and delete it from glossaryV1.less. - Table details: DQ alert badge uses the core Tooltip and gets an aria-label. - AlignRightIconButton (tab-expand-button) is built on core ButtonUtility instead of antd Button + Tooltip; drop the dead .tab-expand-icon rule.
…ders OntologyExplorer is rendered with height="100%", so it depends on the tab panel having a definite height. The antd pane height rule was removed with the antd tab styles, collapsing the graph to a few pixels and breaking node clicks. Give the glossary and glossary term tab panels the same viewport height the antd panes had, via Tailwind, and restore the glossary activity feed height rule.
|
| Count | Rule |
|---|---|
| 240 | react-hooks/exhaustive-deps |
| 20 | openmetadata-imports/review-sequential-api-calls |
| 11 | openmetadata-imports/no-circular-imports |
| 3 | openmetadata-imports/no-cross-page-imports |
| 1 | openmetadata-imports/no-lower-layer-page-imports |
All findings
| Location | Rule | Message | |
|---|---|---|---|
| 🟡 | src/components/APIEndpoint/APIEndpointDetails/APIEndpointDetails.tsx:168:5 |
react-hooks/exhaustive-deps |
React Hook useCallback has missing dependencies: 'apiEndpointDetails' and 'onApiEndpointUpdate'. Either include them or remove the dependency array. If 'onApiEn |
| 🟡 | src/components/APIEndpoint/APIEndpointDetails/APIEndpointDetails.tsx:185:9 |
react-hooks/exhaustive-deps |
The 'getEntityFeedCount' function makes the dependencies of useMemo Hook (at line 279) change on every render. Move it inside the useMemo callback. Alternativel |
| 🟡 | src/components/APIEndpoint/APIEndpointDetails/APIEndpointDetails.tsx:256:6 |
react-hooks/exhaustive-deps |
React Hook useEffect has missing dependencies: 'fetchActivityCount' and 'fetchTaskCounts'. Either include them or remove the dependency array. |
| 🟡 | src/components/APIEndpoint/APIEndpointDetails/APIEndpointDetails.tsx:313:5 |
react-hooks/exhaustive-deps |
React Hook useMemo has a missing dependency: 'tabs'. Either include it or remove the dependency array. |
| 🟡 | src/components/APIEndpoint/APIEndpointDetails/APIEndpointDetails.tsx:313:6 |
react-hooks/exhaustive-deps |
React Hook useMemo has a complex expression in the dependency array. Extract it to a separate variable so it can be statically checked. |
| 🟡 | src/components/APIEndpoint/APIEndpointVersion/APIEndpointVersion.tsx:182:5 |
react-hooks/exhaustive-deps |
React Hook useMemo has missing dependencies: 'domains' and 't'. Either include them or remove the dependency array. |
| 🟡 | src/components/Chart/ChartDetails/ChartDetails.component.tsx:91:6 |
react-hooks/exhaustive-deps |
React Hook useMemo has a missing dependency: 'chartDetails'. Either include it or remove the dependency array. |
| 🟡 | src/components/Chart/ChartDetails/ChartDetails.component.tsx:123:6 |
react-hooks/exhaustive-deps |
React Hook useEffect has a missing dependency: 't'. Either include it or remove the dependency array. |
| 🟡 | src/components/Chart/ChartDetails/ChartDetails.component.tsx:151:6 |
react-hooks/exhaustive-deps |
React Hook useEffect has missing dependencies: 'fetchActivityCount' and 'fetchTaskCounts'. Either include them or remove the dependency array. |
| 🟡 | src/components/Chart/ChartDetails/ChartDetails.component.tsx:254:6 |
react-hooks/exhaustive-deps |
React Hook useMemo has missing dependencies: 'feedCount', 'fetchChart', 'getEntityFeedCount', and 'viewCustomPropertiesPermission'. Either include them or remov |
| 🟡 | src/components/Chart/ChartDetails/ChartDetails.component.tsx:288:5 |
react-hooks/exhaustive-deps |
React Hook useMemo has a missing dependency: 'tabs'. Either include it or remove the dependency array. |
| 🟡 | src/components/Chart/ChartDetails/ChartDetails.component.tsx:288:6 |
react-hooks/exhaustive-deps |
React Hook useMemo has a complex expression in the dependency array. Extract it to a separate variable so it can be statically checked. |
| 🟡 | src/components/Chart/ChartVersion/ChartVersion.component.tsx:24:1 |
openmetadata-imports/no-lower-layer-page-imports |
Pages are route-level composition modules. Move the shared implementation/type to a lower layer instead of importing a page from here. |
| 🟡 | src/components/Container/ContainerVersion/ContainerVersion.component.tsx:79:5 |
react-hooks/exhaustive-deps |
React Hook useMemo has a missing dependency: 'currentVersionData.fullyQualifiedName'. Either include it or remove the dependency array. |
| 🟡 | src/components/Container/ContainerVersion/ContainerVersion.component.tsx:79:6 |
react-hooks/exhaustive-deps |
React Hook useMemo has a complex expression in the dependency array. Extract it to a separate variable so it can be statically checked. |
| 🟡 | src/components/Container/ContainerVersion/ContainerVersion.component.tsx:230:5 |
react-hooks/exhaustive-deps |
React Hook useMemo has missing dependencies: 'dataProducts', 'domains', 't', and 'tags'. Either include them or remove the dependency array. |
| 🟡 | src/components/Dashboard/DashboardDetails/DashboardDetails.component.tsx:31:1 |
openmetadata-imports/no-circular-imports |
This runtime import participates in a circular dependency. Extract the shared type/constant/utility or invert the dependency. |
| 🟡 | src/components/Dashboard/DashboardDetails/DashboardDetails.component.tsx:41:1 |
openmetadata-imports/no-circular-imports |
This runtime import participates in a circular dependency. Extract the shared type/constant/utility or invert the dependency. |
| 🟡 | src/components/Dashboard/DashboardDetails/DashboardDetails.component.tsx:43:1 |
openmetadata-imports/no-circular-imports |
This runtime import participates in a circular dependency. Extract the shared type/constant/utility or invert the dependency. |
| 🟡 | src/components/Dashboard/DashboardDetails/DashboardDetails.component.tsx:50:1 |
openmetadata-imports/no-circular-imports |
This runtime import participates in a circular dependency. Extract the shared type/constant/utility or invert the dependency. |
| 🟡 | src/components/Dashboard/DashboardDetails/DashboardDetails.component.tsx:59:1 |
openmetadata-imports/no-circular-imports |
This runtime import participates in a circular dependency. Extract the shared type/constant/utility or invert the dependency. |
| 🟡 | src/components/Dashboard/DashboardDetails/DashboardDetails.component.tsx:60:1 |
openmetadata-imports/no-circular-imports |
This runtime import participates in a circular dependency. Extract the shared type/constant/utility or invert the dependency. |
| 🟡 | src/components/Dashboard/DashboardDetails/DashboardDetails.component.tsx:97:6 |
react-hooks/exhaustive-deps |
React Hook useMemo has a missing dependency: 'dashboardDetails'. Either include it or remove the dependency array. |
| 🟡 | src/components/Dashboard/DashboardDetails/DashboardDetails.component.tsx:134:6 |
react-hooks/exhaustive-deps |
React Hook useEffect has a missing dependency: 't'. Either include it or remove the dependency array. |
| 🟡 | src/components/Dashboard/DashboardDetails/DashboardDetails.component.tsx:162:6 |
react-hooks/exhaustive-deps |
React Hook useEffect has missing dependencies: 'fetchActivityCount' and 'fetchTaskCounts'. Either include them or remove the dependency array. |
| 🟡 | src/components/Dashboard/DashboardDetails/DashboardDetails.component.tsx:187:5 |
react-hooks/exhaustive-deps |
React Hook useCallback has missing dependencies: 'dashboardDetails' and 'onDashboardUpdate'. Either include them or remove the dependency array. If 'onDashboard |
| 🟡 | src/components/Dashboard/DashboardDetails/DashboardDetails.component.tsx:279:6 |
react-hooks/exhaustive-deps |
React Hook useMemo has missing dependencies: 'customizedPage?.tabs', 'feedCount', 'fetchDashboard', 'getEntityFeedCount', and 'viewCustomPropertiesPermission'. |
| 🟡 | src/components/Dashboard/DashboardDetails/DashboardDetails.component.tsx:312:5 |
react-hooks/exhaustive-deps |
React Hook useMemo has a missing dependency: 'tabs'. Either include it or remove the dependency array. |
| 🟡 | src/components/Dashboard/DashboardDetails/DashboardDetails.component.tsx:312:6 |
react-hooks/exhaustive-deps |
React Hook useMemo has a complex expression in the dependency array. Extract it to a separate variable so it can be statically checked. |
| 🟡 | src/components/Dashboard/DashboardVersion/DashboardVersion.component.tsx:146:5 |
react-hooks/exhaustive-deps |
React Hook useMemo has a missing dependency: 't'. Either include it or remove the dependency array. |
| 🟡 | src/components/Dashboard/DashboardVersion/DashboardVersion.component.tsx:246:5 |
react-hooks/exhaustive-deps |
React Hook useMemo has missing dependencies: 'dataProducts', 'domains', 't', and 'tags'. Either include them or remove the dependency array. |
| 🟡 | src/components/Dashboard/DataModel/DataModelVersion/DataModelVersion.component.tsx:213:5 |
react-hooks/exhaustive-deps |
React Hook useMemo has missing dependencies: 'dataProducts', 'domains', 't', and 'tags'. Either include them or remove the dependency array. |
| 🟡 | src/components/Dashboard/DataModel/DataModels/DataModelDetails.component.tsx:130:6 |
react-hooks/exhaustive-deps |
React Hook useEffect has missing dependencies: 'fetchActivityCount' and 'fetchTaskCounts'. Either include them or remove the dependency array. |
| 🟡 | src/components/Dashboard/DataModel/DataModels/DataModelDetails.component.tsx:236:6 |
react-hooks/exhaustive-deps |
React Hook useMemo has missing dependencies: 'activeTab', 'dataModelData', 'dataModelPermissions', 'feedCount', 'fetchDataModel', and 'getEntityFeedCount'. Eith |
| 🟡 | src/components/Dashboard/DataModel/DataModels/DataModelDetails.component.tsx:257:5 |
react-hooks/exhaustive-deps |
React Hook useMemo has a missing dependency: 'tabs'. Either include it or remove the dependency array. |
| 🟡 | src/components/Dashboard/DataModel/DataModels/DataModelDetails.component.tsx:257:6 |
react-hooks/exhaustive-deps |
React Hook useMemo has a complex expression in the dependency array. Extract it to a separate variable so it can be statically checked. |
| 🟡 | src/components/DataProducts/DataProductsDetailsPage/DataProductsDetailsPage.component.tsx:905:6 |
react-hooks/exhaustive-deps |
React Hook useMemo has missing dependencies: 'getEntityFeedCount', 'isVersionsView', and 'openAssetDrawer'. Either include them or remove the dependency array. |
| 🟡 | src/components/DataProducts/DataProductsDetailsPage/DataProductsDetailsPage.component.tsx:943:6 |
react-hooks/exhaustive-deps |
React Hook useEffect has missing dependencies: 'fetchActiveAnnouncement', 'fetchActivityCount', 'fetchDataProductAssets', 'fetchDataProductContract', and 'fetch |
| 🟡 | src/components/DataProducts/DataProductsDetailsPage/DataProductsDetailsPage.component.tsx:956:5 |
react-hooks/exhaustive-deps |
React Hook useMemo has a missing dependency: 'tabs'. Either include it or remove the dependency array. |
| 🟡 | src/components/DataProducts/DataProductsDetailsPage/DataProductsDetailsPage.component.tsx:956:6 |
react-hooks/exhaustive-deps |
React Hook useMemo has a complex expression in the dependency array. Extract it to a separate variable so it can be statically checked. |
| 🟡 | src/components/DataProducts/DataProductsDetailsPage/DataProductsDetailsPage.component.tsx:989:6 |
react-hooks/exhaustive-deps |
React Hook useMemo has missing dependencies: 'handleTabChange' and 't'. Either include them or remove the dependency array. |
| 🟡 | src/components/Database/StoredProcedureVersion/StoredProcedureVersion.component.tsx:183:5 |
react-hooks/exhaustive-deps |
React Hook useMemo has missing dependencies: 'dataProducts', 'domains', and 't'. Either include them or remove the dependency array. |
| 🟡 | src/components/Database/TableVersion/TableVersion.component.tsx:234:5 |
react-hooks/exhaustive-deps |
React Hook useMemo has missing dependencies: 'dataProducts', 'domains', 't', and 'tags'. Either include them or remove the dependency array. |
| 🟡 | src/components/Domain/DomainDetails/DomainDetails.component.tsx:346:6 |
react-hooks/exhaustive-deps |
React Hook useCallback has missing dependencies: 'domain.fullyQualifiedName' and 't'. Either include them or remove the dependency array. |
| 🟡 | src/components/Domain/DomainDetails/DomainDetails.component.tsx:348:9 |
react-hooks/exhaustive-deps |
The 'handleTabChange' function makes the dependencies of useCallback Hook (at line 457) change on every render. To fix this, wrap the definition of 'handleTabCh |
| 🟡 | src/components/Domain/DomainDetails/DomainDetails.component.tsx:348:9 |
react-hooks/exhaustive-deps |
The 'handleTabChange' function makes the dependencies of useCallback Hook (at line 630) change on every render. To fix this, wrap the definition of 'handleTabCh |
| 🟡 | src/components/Domain/DomainDetails/DomainDetails.component.tsx:740:5 |
react-hooks/exhaustive-deps |
React Hook useCallback has missing dependencies: 'closeSubDomainDrawer' and 't'. Either include them or remove the dependency array. |
| 🟡 | src/components/Domain/DomainDetails/DomainDetails.component.tsx:939:6 |
react-hooks/exhaustive-deps |
React Hook useMemo has missing dependencies: 'activeTab', 'addSubDomain', 'getEntityFeedCount', 'isVersionsView', 'onAddDataProduct', 'onDeleteSubDomain', and ' |
| 🟡 | src/components/Domain/DomainDetails/DomainDetails.component.tsx:969:6 |
react-hooks/exhaustive-deps |
React Hook useEffect has missing dependencies: 'fetchActiveAnnouncement', 'fetchActivityCount', 'fetchDataProducts', 'fetchDomainAssets', and 'fetchTaskCounts'. |
| 🟡 | src/components/Domain/DomainDetails/DomainDetails.component.tsx:982:6 |
react-hooks/exhaustive-deps |
React Hook useMemo has an unnecessary dependency: 'isSubDomain'. Either exclude it or remove the dependency array. |
… and 225 more. Run make ui-checkstyle-changed locally for the full list.
Fix locally (fast - only checks files changed in this branch):
make ui-checkstyle-changed…bilityTab and TagPage tests Both suites mock @openmetadata/ui-core-components with a partial factory but render the real TabsLabel, which now calls useTabItemState.
✅ Playwright Results — workflow succeededValidated commit ✅ 4574 passed · ❌ 0 failed · 🟡 9 flaky · ⏭️ 1 skipped · 🧰 0 lifecycle flaky PerformanceBlocking targets: ✅ met · Optimization targets: 🟡 in progress Shard-job maxima below are not the full workflow wall time; the linked run includes build, fixture, planning, and reporting. 🕒 Full workflow signal wall (to summary) 39m 29s ⏱️ Max setup 4m 18s · max shard execution 23m 24s · max shard-job elapsed before upload 26m 43s · reporting 20s 🌐 223.29 requests/attempt · 2.24 app boots/UI scenario · 45.16% common-shard skew Optimization targets still in progress:
🟡 9 flaky test(s) (passed on retry)
How to debug locally# Download playwright-test-results-<shard> artifact and unzip
npx playwright show-trace path/to/trace.zip # view trace |
…e-tabs # Conflicts: # openmetadata-ui/src/main/resources/ui/src/components/Metric/MetricVersion/MetricVersion.tsx
🚦 Removed from the merge queue —
|
Code Review ✅ Approved 2 closed / 2 findings🟡 Medium risk · Migrates shared tab behavior across 44 entity detail and version pages. Migrates entity detail and version page tabs from Ant Design to the core Tabs component, adding a card variant, actions slot, and tab-item state context. Fixes version pages pushing an extra history entry on mount that broke the Back button. No issues remain. ✅ 2 closed✅ Bug: Version pages push an extra history entry on mount, which breaks Back
Closed: Bug: LeftPanel/DomainType lose content-driven height after page-tabs removal
OptionsDisplay: compact → Counting what did not apply, without listing it. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source |
|



Describe your changes:
Replaces the antd
Tabswith the@openmetadata/ui-core-componentsTabs(react-aria) on the 24 entity detail pages and 20 entity version pages, as part of moving the UI off antd.To keep the entity tab bar design without page CSS, this adds a card variant to the core
Tabs.List. Nodata-testidwas lost: I compared every testid in each changed file againstmain, and all are present with the same counts.Type of change:
High-level design:
Core:
Tabs.List variant="card"+actionsslot (openmetadata-ui-core-components/.../tabs/tabs.tsx)variant="card"wraps the tab list in a coreCard(48px, bordered, rounded). The underline separator is dropped because the card draws its own edge. Tabs are spaced 24px apart and scroll horizontally when they overflow.actionsrenders trailing content inside the bar (e.g. the expand toggle). It replaces antd'stabBarExtraContent.useTabItemState()exposes the enclosing tab's render state (isSelected, …,variant) so custom labels can react to selection without a render function.TabsLabeluses it to render the selected tab's count badge as solid in the card variant.tabs.test.tsx(card wrapper, actions, underline separator, hook state).Pattern (per page)
getRenderedActiveTab, so a hidden or missing route tab falls back to the first rendered tab.defaultSelectedKey={getRenderedActiveTab(tabItems, tab)}. A valid initial key means react-aria never auto-selects on mount, so no extra history entry is pushed.TabsLabelstill rendersdata-testid={id}), so there is nodata-testidonTabs.Item.Styles
EntityVersionPage.lessandincident-manager-details.lessheld only those rules and are deleted..entity-details-page-tabsantd rules (ServiceDetailsPagestill uses antd tabs) and the global antd tab rules for pages not yet migrated.Types
CustomizePageEntityTabUtils.tsuses a localDetailsTabItemtype instead of antdTabsProps.getRenderedActiveTabis generic over the key type.Behaviour differences
destroyInactiveTabPaneoption, which several of these pages already used.main.Not in this PR (follow-ups): 22 remaining antd
Tabsusages (settings, modals, card tabs, legacyTabPaneAPI).Tests:
Use cases covered
Unit tests
src/utils/CustomizePageandTabsLabel: 44 suites, 501 tests pass.tabs.test.tsx, 5 tests covering the card variant anduseTabItemState.getRenderedActiveTabpasses through in detail-page tests. AddedTabsLabeltests for the badge following selection.Backend integration tests
Ingestion integration tests
Playwright (UI) tests
page.getByRole, which matches both antd and react-aria:playwright/utils/glossary.ts,e2e/Pages/Glossary.spec.ts,e2e/Pages/Domains.spec.ts:.ant-tabs-tab-active:has-text("Assets")→getByRole('tab', { name: 'Assets', selected: true })e2e/Features/Glossary/GlossaryNavigation.spec.ts:.ant-tabs-tab-active→getByRole('tab', { selected: true })constant/nestedColumnUpdates.ts+e2e/Flow/NestedChildrenUpdates.spec.ts: CSStabSelector→tabName: 'Schema'clicked viagetByRole('tab', { name, exact: true })e2e/Features/Pagination.spec.ts:[role="tabpanel"][aria-hidden="false"]→getByRole('tabpanel')Manual testing performed
yarn ui-checkstyle:changed+yarn ui-checkstyle:playwright:changedon all changed files: 0 lint errors, no formatting/i18n/app-docs diff,tw-audit0 errors,tw-guardreports no new antd imports.tsc --noEmit: no new errors in changed files compared withmain.yarn token-audit: same totals asmain, no errors in the touched Less files.data-testidaudit script: identical testid occurrences per changed file compared withmain.dist: the Table details page renders the card tab bar with a solid active count badge and the expand toggle. Clicking a tab navigates. The Table version page opens on the first tab without pushing a history entry.UI screen recording / screenshots:
Checklist:
Fixes <issue-number>: <short explanation>Fixes #<issue-number>above.🤖 Generated with Claude Code
The PR appears safe to merge; the previous hidden-tab selection issue is resolved, and the only subsequent change is non-behavioral formatting.
Summary
This PR migrates entity detail and version-page tab surfaces from Ant Design to the React Aria-based core Tabs component.
Diagram
%%{init: {'theme': 'neutral'}}%% flowchart LR Route[Route tab key] --> Normalize[getRenderedActiveTab] Persona[Visible persona tabs] --> Normalize Normalize --> Tabs[Core React Aria Tabs] Tabs --> List[Card tab list] Tabs --> Panel[Selected panel] List --> Action[Optional expand action] List --> Label[Selection-aware label badge] Tabs --> Navigate[Tab selection updates route]Reviews (8) · Last reviewed commit: "style(ui): fix import formatting in Metr..."