Skip to content

refactor(ui): migrate entity details and version page tabs to core Tabs - #33890

Merged
karanh37 merged 10 commits into
mainfrom
replace-antd-tabs-core-tabs
Sep 24, 2026
Merged

karanh37 merged 10 commits into
mainfrom
replace-antd-tabs-core-tabs

Conversation

@karanh37

@karanh37 karanh37 commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor

Describe your changes:

Replaces the antd Tabs with the @openmetadata/ui-core-components Tabs (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. No data-testid was lost: I compared every testid in each changed file against main, and all are present with the same counts.

Type of change:

  • Improvement

High-level design:

Core: Tabs.List variant="card" + actions slot (openmetadata-ui-core-components/.../tabs/tabs.tsx)

  • variant="card" wraps the tab list in a core Card (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.
  • actions renders trailing content inside the bar (e.g. the expand toggle). It replaces antd's tabBarExtraContent.
  • useTabItemState() exposes the enclosing tab's render state (isSelected, …, variant) so custom labels can react to selection without a render function. TabsLabel uses it to render the selected tab's count badge as solid in the card variant.
  • Covered by tabs.test.tsx (card wrapper, actions, underline separator, hook state).

Pattern (per page)

<Tabs className="tw:gap-3" data-testid="tabs" selectedKey={getRenderedActiveTab(tabs, activeTab)} onSelectionChange={(key) => handleTabChange(String(key))}>
  <Tabs.List actions={expandToggle} size="sm" type="underline" variant="card">
    {tabs.map(({ key, label }) => <Tabs.Item id={key} key={key}>{label}</Tabs.Item>)}
  </Tabs.List>
  {tabs.map(({ key, children }) => <Tabs.Panel id={key} key={key}>{children}</Tabs.Panel>)}
</Tabs>
  • Detail pages: the selection is controlled and normalized with getRenderedActiveTab, so a hidden or missing route tab falls back to the first rendered tab.
  • Version pages: defaultSelectedKey={getRenderedActiveTab(tabItems, tab)}. A valid initial key means react-aria never auto-selects on mount, so no extra history entry is pushed.
  • Tab labels are unchanged (TabsLabel still renders data-testid={id}), so there is no data-testid on Tabs.Item.

Styles

  • No page-level tab CSS is added. I removed the antd tab rules that only targeted the migrated pages: version-page panel height, glossary/glossary-term layout, domain, data product, metric, incident manager, and the generic-tab grid override. EntityVersionPage.less and incident-manager-details.less held only those rules and are deleted.
  • Kept: the .entity-details-page-tabs antd rules (ServiceDetailsPage still uses antd tabs) and the global antd tab rules for pages not yet migrated.

Types

  • CustomizePageEntityTabUtils.ts uses a local DetailsTabItem type instead of antd TabsProps. getRenderedActiveTab is generic over the key type.

Behaviour differences

  • react-aria mounts only the selected panel, so switching tabs unmounts the previous tab's content. This matches antd's destroyInactiveTabPane option, which several of these pages already used.
  • A hidden or invalid route tab renders the first visible tab and leaves the URL as is. Domain and Data Product already did this on main.
  • Panels no longer have fixed-height inner scroll. Content grows and the page scrolls.

Not in this PR (follow-ups): 22 remaining antd Tabs usages (settings, modals, card tabs, legacy TabPane API).

Tests:

Use cases covered

  • Entity detail pages (Table, Topic, Dashboard, Chart, Data Model, Pipeline, ML Model, Container, Search Index, Stored Procedure, API Collection/Endpoint, Database, Schema, Metric, Directory/File/Spreadsheet/Worksheet, Glossary, Glossary Term, Domain, Data Product, Incident Manager): switching tabs updates the URL, the expand button toggles, and customized persona tab order/hidden tabs are respected.
  • Entity version pages for the same entities: switching tabs navigates to the versioned tab route.

Unit tests

  • App: co-located suites for every changed component, plus src/utils/CustomizePage and TabsLabel: 44 suites, 501 tests pass.
  • Core: tabs.test.tsx, 5 tests covering the card variant and useTabItemState.
  • Updated mocks so getRenderedActiveTab passes through in detail-page tests. Added TabsLabel tests for the badge following selection.

Backend integration tests

  • Not applicable (no backend API changes).

Ingestion integration tests

  • Not applicable (no ingestion changes).

Playwright (UI) tests

  • No new specs. Selectors that depended on antd tab DOM now use 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: CSS tabSelector → tabName: 'Schema' clicked via getByRole('tab', { name, exact: true })
    • e2e/Features/Pagination.spec.ts: [role="tabpanel"][aria-hidden="false"] → getByRole('tabpanel')
  • The Playwright suite has not been run locally for this change.

Manual testing performed

  1. yarn ui-checkstyle:changed + yarn ui-checkstyle:playwright:changed on all changed files: 0 lint errors, no formatting/i18n/app-docs diff, tw-audit 0 errors, tw-guard reports no new antd imports.
  2. tsc --noEmit: no new errors in changed files compared with main.
  3. yarn token-audit: same totals as main, no errors in the touched Less files.
  4. data-testid audit script: identical testid occurrences per changed file compared with main.
  5. Vite dev server against a local backend on 8585, with the app pointed at this branch's core 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:

image image

Checklist:

  • I have read the CONTRIBUTING document.
  • My PR title is Fixes <issue-number>: <short explanation>
  • My PR is linked to a GitHub issue via Fixes #<issue-number> above.
  • I have commented on my code, particularly in hard-to-understand areas.
  • For JSON Schema changes: Not applicable (no schema changes).
  • For UI changes: I attached a screen recording and/or screenshots above.
  • I have added tests (unit / integration / Playwright as applicable) and listed them above.

🤖 Generated with Claude Code

RetriggerConfidence Score: 5/5

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.

  • Adds a card-style core tab list, trailing actions slot, and selected-tab render-state context.
  • Migrates detail pages to normalized controlled selection and version pages to normalized initial selection.
  • Replaces Ant Design-specific layouts and styles while updating role-based Playwright selectors and tab tests.
  • No new actionable issue was introduced since the previous review.
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]
Loading

Reviews (8) · Last reviewed commit: "style(ui): fix import formatting in Metr..."

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.
Copilot AI lite review requested due to automatic review settings September 23, 2026 12:40

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@github-actions

Copy link
Copy Markdown
Contributor

❌ PR checklist incomplete

This PR cannot be merged until the following are addressed on its linked issue:

  • No GitHub issue is linked. Link an issue in the Development section of the PR (or add Fixes #12345 to the description). For a same-org cross-repo issue, add Fixes open-metadata/<repo>#123 to the description.

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 skip-pr-checks label.

@greptile-apps

greptile-apps Bot commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor

Comments Outside Diff

These 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.

  • P1 Fallback Leaves Route Stale openmetadata-ui/src/main/resources/ui/src/utils/CustomizePage/CustomizePageEntityTabUtils.ts:89 ▶

    For an invalid or persona-hidden deep link, this helper changes only the key displayed by Tabs; it does not update the route. Database, Glossary, Domain, and Data Product pages can therefore display the first visible panel while retaining the invalid tab URL. Selecting that already-rendered tab does not trigger another selection change, so reloads and shared links continue requesting the wrong tab instead of navigating to the valid fallback.

@github-actions github-actions Bot added safe to test Add this label to run secure Github workflows on PRs UI UI specific issues labels Sep 23, 2026
- 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.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

…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.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@github-actions

github-actions Bot commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor

⚠️ UI Checkstyle passed — lint findings in changed files

🔍 ESLint findings in this PR's files — 0 error(s), 275 warning(s)

Errors block the build. Warnings do not yet — they are rules whose backlog is still
being worked down, listed so this PR does not add to it. See docs/ui-code-quality-gate.md.

0 error(s), 275 warning(s) across 43 changed file(s).

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.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@github-actions

github-actions Bot commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor

✅ Playwright Results — workflow succeeded

Validated commit ee10f0b736121e258cb8c5a6dd318359c94ea026 in Playwright run 35942494826, attempt 1.

✅ 4574 passed · ❌ 0 failed · 🟡 9 flaky · ⏭️ 1 skipped · 🧰 0 lifecycle flaky

Performance

Blocking 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:

  • Common shard skew was 45.16% (convergence target: at most 15%).
  • Browser traffic was 223.29 requests per attempt (convergence target: fewer than 200).
  • Application boot ratio was 2.24 per UI scenario (10922 boots / 4875 scenarios; convergence target: at most 1).
Shard Passed Failed Flaky Skipped Lifecycle failed Lifecycle flaky
✅ Shard advanced-search-01 130 0 0 0 0 0
✅ Shard chromium-01 150 0 0 0 0 0
✅ Shard chromium-02 172 0 0 0 0 0
✅ Shard chromium-03 175 0 0 0 0 0
✅ Shard chromium-04 195 0 0 0 0 0
✅ Shard chromium-05 181 0 0 0 0 0
✅ Shard chromium-06 184 0 0 0 0 0
✅ Shard chromium-07 159 0 0 0 0 0
✅ Shard chromium-08 187 0 0 0 0 0
✅ Shard chromium-09 168 0 0 0 0 0
✅ Shard chromium-10 180 0 0 0 0 0
✅ Shard chromium-11 164 0 0 0 0 0
🟡 Shard chromium-12 158 0 1 0 0 0
🟡 Shard chromium-13 161 0 2 0 0 0
✅ Shard chromium-14 190 0 0 0 0 0
🟡 Shard chromium-15 194 0 4 1 0 0
✅ Shard chromium-16 141 0 0 0 0 0
✅ Shard chromium-17 152 0 0 0 0 0
✅ Shard chromium-18 207 0 0 0 0 0
✅ Shard chromium-19 147 0 0 0 0 0
✅ Shard chromium-20 159 0 0 0 0 0
🟡 Shard chromium-21 163 0 1 0 0 0
✅ Shard chromium-22 187 0 0 0 0 0
🟡 Shard chromium-23 222 0 1 0 0 0
✅ Shard data-asset-rules-01 65 0 0 0 0 0
✅ Shard domain-isolation-01 16 0 0 0 0 0
✅ Shard global-state-01 34 0 0 0 0 0
✅ Shard import-export-01 51 0 0 0 0 0
✅ Shard import-export-02 99 0 0 0 0 0
✅ Shard ingestion-01 46 0 0 0 0 0
✅ Shard ingestion-02 55 0 0 0 0 0
✅ Shard reindex-01 41 0 0 0 0 0
✅ Shard search-01 12 0 0 0 0 0
✅ Shard search-rbac-01 29 0 0 0 0 0
🟡 9 flaky test(s) (passed on retry)
  • Features/ContextCenterDashboard.spec.ts › Create > Quick Link creates a quick link that appears in the Articles pillar card recent list (shard chromium-12, 1 retry)
  • Pages/Entity.spec.ts › Announcement create, edit & delete (shard chromium-13, 1 retry)
  • Features/MultipleRename.spec.ts › Classification - should handle multiple consecutive renames (shard chromium-13, 1 retry)
  • Features/ContextCenterArticles.spec.ts › Text formatting (shard chromium-15, 1 retry)
  • Pages/Entity.spec.ts › Tier Add, Update and Remove (shard chromium-15, 1 retry)
  • Pages/EntityDataConsumer.spec.ts › Tier Add, Update and Remove (shard chromium-15, 1 retry)
  • Pages/Users.spec.ts › Create and Delete user (shard chromium-15, 1 retry)
  • Pages/Domains.spec.ts › Multiple consecutive domain renames preserve all associations (shard chromium-21, 1 retry)
  • Pages/InputOutputPorts.spec.ts › Output ports section collapse/expand (shard chromium-23, 1 retry)

📦 Download artifacts

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
@github-actions

Copy link
Copy Markdown
Contributor

🚦 Removed from the merge queue — manual (2026-09-23T19:02:32Z)

The entry left the queue before it was built, so no checks ran against it.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@gitar-bot

gitar-bot Bot commented Sep 24, 2026

Copy link
Copy Markdown
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

📄 openmetadata-ui/src/main/resources/ui/src/components/APIEndpoint/APIEndpointVersion/APIEndpointVersion.tsx:82-91 📄 openmetadata-ui/src/main/resources/ui/src/components/APIEndpoint/APIEndpointVersion/APIEndpointVersion.tsx:216-219 📄 openmetadata-ui/src/main/resources/ui/src/components/MlModel/MlModelVersion/MlModelVersion.component.tsx:367-370
The entity header's versionHandler opens getVersionPath(type, fqn, version) without a tab, so on the first visit tab is undefined and defaultSelectedKey={tab} has no value. As the PR description says, react-aria then selects the first tab itself and calls onSelectionChange. antd never called onChange on mount, so this is new. The version pages' handleTabChange calls navigate(getVersionPath(..., activeKey)) without replace (unlike the detail pages, which pass replace: true), so every visit to a version page now pushes /versions/X/overview on top of /versions/X. The user has to press Back twice to leave. If the page remounts on the tab-less URL, Back takes them to /versions/X, which pushes /overview again, so they can't get off the page with Back. This affects all ~20 migrated version pages. Fix: control the selection with a fallback so react-aria never auto-selects, or pass replace: true in the version handleTabChange.

Closed: Bug: LeftPanel/DomainType lose content-driven height after page-tabs removal

📄 openmetadata-ui/src/main/resources/ui/src/components/Customization/GenericTab/generic-tab.less:64-67 📄 openmetadata-ui/src/main/resources/ui/src/components/APIEndpoint/APIEndpointDetails/APIEndpointDetails.tsx:352
This commit deletes the .page-tabs .grid-container > #KnowledgePanel.LeftPanel / #KnowledgePanel.DomainType { height: initial !important } rule, and the pages now pass className="tw:gap-3" instead of page-tabs, so nothing replaces it. Those grid items now use react-grid-layout's inline height, which comes from DynamicHeightWidget measuring the inner content (contentRect). That measurement leaves out the LeftPanel's own 1px border on each side, so with border-box sizing the bordered card ends up about 2px shorter than its content. It also lags behind whenever the content resizes (for example, expanding a description). Before this commit, the rule let those items size to their content directly. To fix, keep the rule on a class the new markup still has, such as .entity-details-page-tabs or .entity-version-page-tabs (or put a stable class on Tabs), or add the height override to the .grid-container rules in generic-tab.less.

Review coverage

📋 Rules No rules evaluated

🧪 Functional validation Not enabled · Set up

🤖 Auto-approval Not enabled · Set up

Options

Display: compact → Counting what did not apply, without listing it.

Comment with these commands to change the behavior for this request:

Compact
gitar display:verbose         

Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source

@sonarqubecloud

Copy link
Copy Markdown

This branch was previously deployed

1 inactive deployment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

safe to test Add this label to run secure Github workflows on PRs skip-pr-checks Bypass PR metadata validation check UI UI specific issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants