Skip to content

refactor(ui): migrate antd Typography to core Typography - #34106

Merged
shah-harshit merged 21 commits into
mainfrom
refactor/antd-typography-to-core
Oct 1, 2026
Merged

shah-harshit merged 21 commits into
mainfrom
refactor/antd-typography-to-core

Conversation

@shah-harshit

@shah-harshit shah-harshit commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

Describe your changes:

Part of open-metadata/openmetadata-collate#6884 (antd → core migration epic) · Typography: open-metadata/openmetadata-collate#6885

Replaces antd Typography (Text, Paragraph, Title, Link) with the existing core-components Typography across the OSS UI (~390 files). Colours, font sizes, line heights and margins follow core as-is; nothing recreates the antd look.

Mapping at call sites:

antd core
Text <Typography> (span)
Paragraph as="p", or as="div" when the children contain block elements
Title level={n} as="hN"; level={5} also gets size="text-md" weight="semibold" because core prose has no h5 style
Link <Typography><a …></Typography>, with rel="noopener noreferrer" on target="_blank" links
type color
strong weight="semibold"
code a <code> child
ellipsis / rows / tooltip unchanged

Core changes (small, in typography.tsx, all behaviour and no styling API):

  1. The ellipsis tooltip opens only when the text is actually truncated.
  2. ellipsis on span/a keeps the text inline (inline-block) instead of wrapping it in a block div.

Word wrapping stays as on main. The few migrated call sites that render long unbroken text (FQNs, URLs, emails, paths) add tw:wrap-break-word locally: EntityLabel, ProfileSectionUserDetailsCard, TermBoost, SsoTestLoginModal, UrlConfigurationPage, SearchUtils, TableTabsUtils.

ReindexFailures moves off antd:

  • copyable → the existing CopyToClipboardButton.
  • ellipsis.expandable → a more/less toggle, shown only when the text is clamped.

LESS: rules that styled migrated elements through .ant-typography were retargeted to the elements' own classes; rules that only reset antd defaults were dropped.

Type of change:

  • Improvement

High-level design:

  • Scope: only existing core props are used. The earlier antd-parity variant / level / strong / code API is not part of this PR.
  • Visual change: migrated text now uses core colours and spacing. Headings use core prose sizes, secondary text uses text-tertiary, and paragraphs use core margins. This is the intended design-system look and differs from antd in places.
  • Dependencies: the Collate PR (open-metadata/openmetadata-collate#6910) and the Button PRs (Add API for validating expressions in Rule conditions #6886) depend on this one.

Tests:

Unit tests

  • Full UI Jest run: 1654 suites. Three suites failed at first (HashList, UserProfileIcon, NestedColumnsSection) and were updated for the new behaviour; all 92 tests in those suites now pass.
  • Core typography.test.tsx passes 26 tests, including new cases for: no tooltip when the text isn't truncated, the inline wrapper, and truncation detection on block elements.

Manual testing performed

  • Table details, Data Quality, Glossary, the Search Indexing app page and Home all render in light mode with no antd Typography left.

UI screen recording / screenshots:

Text follows core Typography styling (see the design notes above).

Checklist:

  • I have read the CONTRIBUTING document.
  • I have added tests (unit / integration / Playwright as applicable) and listed them above.

Core Typography gains an opt-in variant (text | paragraph | title | link)
with level, strong and code, reproducing antd Typography's computed
styles as rendered in this app (measured in a browser against the full
global stylesheet); dark mode uses the flipping design tokens. Existing
core Typography usages without variant render unchanged.

All antd Typography.Text/Paragraph/Title/Link usages in the OSS UI move
to core Typography; component LESS selectors that targeted
.ant-typography gain [data-typography] twins, and tests/Playwright
locators follow the new markup. ReindexFailures keeps antd Typography
(copyable / expandable ellipsis have no core equivalent yet).
@shah-harshit shah-harshit added UI UI specific issues safe to test Add this label to run secure Github workflows on PRs skip-pr-checks Bypass PR metadata validation check labels Sep 28, 2026
@shah-harshit shah-harshit self-assigned this Sep 28, 2026
@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.

@github-actions

github-actions Bot commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

Jest test Coverage

UI tests summary

Lines Statements Branches Functions
Coverage: 74%
74.53% (111562/149678) 59.91% (68253/113925) 61.31% (22704/37027)

…phy-to-core

# Conflicts:
#	openmetadata-ui/src/main/resources/ui/src/components/DataAssets/DomainLabelV2/DomainLabelV2.tsx
#	openmetadata-ui/src/main/resources/ui/src/components/MyData/CustomizableComponents/CustomiseLandingPageHeader/LandingPageDomainSelector.tsx
#	openmetadata-ui/src/main/resources/ui/src/components/NavBar/NavBar.tsx
#	openmetadata-ui/src/main/resources/ui/src/components/common/DomainDisplay/DomainDisplay.component.tsx
#	openmetadata-ui/src/main/resources/ui/src/components/common/DomainDisplay/DomainDisplay.test.tsx
#	openmetadata-ui/src/main/resources/ui/src/components/common/DomainLabel/DomainLabel.component.tsx
#	openmetadata-ui/src/main/resources/ui/src/components/common/DomainLabel/DomainLabelNew.tsx
#	openmetadata-ui/src/main/resources/ui/src/components/common/DomainSelectableList/DomainSelectableListNew.component.tsx
#	openmetadata-ui/src/main/resources/ui/src/components/common/DomainsSection/DomainsSection.test.tsx
@github-actions

github-actions Bot commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

✅ Playwright Results — workflow succeeded

Validated commit b418abe4763e50a6bc03de2456ccfdc3842b3d6b in Playwright run 36852638975, attempt 1.

✅ 4654 passed · ❌ 0 failed · 🟡 3 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) 38m 13s

⏱️ Max setup 7m 4s · max shard execution 19m 22s · max shard-job elapsed before upload 23m 17s · reporting 18s

🌐 227.25 requests/attempt · 2.19 app boots/UI scenario · 38.21% common-shard skew

Optimization targets still in progress:

  • Common shard skew was 38.21% (convergence target: at most 15%).
  • Browser traffic was 227.25 requests per attempt (convergence target: fewer than 200).
  • Application boot ratio was 2.19 per UI scenario (10804 boots / 4941 scenarios; convergence target: at most 1).
Shard Passed Failed Flaky Skipped Lifecycle failed Lifecycle flaky
✅ Shard advanced-search-01 64 0 0 0 0 0
✅ Shard advanced-search-02 66 0 0 0 0 0
✅ Shard chromium-01 144 0 0 0 0 0
✅ Shard chromium-02 150 0 0 0 0 0
✅ Shard chromium-03 147 0 0 0 0 0
✅ Shard chromium-04 167 0 0 0 0 0
✅ Shard chromium-05 133 0 0 0 0 0
✅ Shard chromium-06 180 0 0 0 0 0
✅ Shard chromium-07 156 0 0 0 0 0
✅ Shard chromium-08 146 0 0 0 0 0
🟡 Shard chromium-09 162 0 1 0 0 0
✅ Shard chromium-10 133 0 0 0 0 0
✅ Shard chromium-11 183 0 0 0 0 0
✅ Shard chromium-12 144 0 0 0 0 0
✅ Shard chromium-13 177 0 0 0 0 0
✅ Shard chromium-14 135 0 0 0 0 0
✅ Shard chromium-15 176 0 0 0 0 0
🟡 Shard chromium-16 171 0 1 0 0 0
✅ Shard chromium-17 164 0 0 0 0 0
✅ Shard chromium-18 130 0 0 0 0 0
✅ Shard chromium-19 171 0 0 0 0 0
🟡 Shard chromium-20 137 0 1 0 0 0
✅ Shard chromium-21 111 0 0 0 0 0
✅ Shard chromium-22 143 0 0 0 0 0
✅ Shard chromium-23 128 0 0 0 0 0
✅ Shard chromium-24 152 0 0 1 0 0
✅ Shard chromium-25 133 0 0 0 0 0
✅ Shard chromium-26 160 0 0 0 0 0
✅ Shard chromium-27 145 0 0 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 96 0 0 0 0 0
✅ Shard import-export-02 56 0 0 0 0 0
✅ Shard ingestion-01 27 0 0 0 0 0
✅ Shard ingestion-02 37 0 0 0 0 0
✅ Shard ingestion-03 29 0 0 0 0 0
✅ Shard reindex-01 41 0 0 0 0 0
✅ Shard search-01 16 0 0 0 0 0
✅ Shard search-rbac-01 29 0 0 0 0 0
🟡 3 flaky test(s) (passed on retry)
  • Pages/ExplorePageRightPanel.spec.ts › Should allow Data Steward to edit tier for dashboard (shard chromium-09, 1 retry)
  • Features/ContextCenterArticlesFilters.spec.ts › filters stay applied and consistent across every sort (shard chromium-16, 1 retry)
  • Pages/DataContractsSemanticRules.spec.ts › Validate UpdatedOn Rule Greater Than Equal (shard chromium-20, 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

@ShaileshParmar11 ShaileshParmar11 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.

Need AUT validation, along with Collate changes

shah-harshit and others added 9 commits September 29, 2026 12:20
…phy-to-core

# Conflicts:
#	openmetadata-ui/src/main/resources/ui/src/components/Glossary/AddGlossary/AddGlossary.component.tsx
- Tooltip trigger keeps the parent's text alignment instead of the button's
  UA centring (truncated text was centred in table cells).
- Links nested in Typography skip article-prose link styling and keep the
  app's antd link rule (no underline until hover, weight 500).
- Inline ellipsis trigger uses inline-flex so the button's line box no
  longer adds ~2px under entity header text.
- Replace className="text-grey-muted" with color="secondary" on the 125
  migrated Typography sites.
…sites

antd Typography painted its own primary text colour and gave paragraphs and
titles a bottom margin; core Typography inherits colour and sets no margin.
Restore both only where a runtime scan against main showed a difference:

- tw:text-primary where the text now inherited a tertiary/grey parent
  (core table cells, link buttons, headings)
- tw:mb-3.5! / tw:mb-2! where antd's paragraph/title margin was load-bearing
  (the ! is needed to beat the global p { margin-bottom: 0 } reset)
- task-details-id LESS rule also targets the core Typography root
… in Collate

Service-insights and no-data placeholders render inside Collate pages the OSS
scan did not reach; the Collate parity scan showed they inherited a grey parent
and lost antd's paragraph margin.
Found by extending the parity scan to opened modals/drawers/menus and a
non-admin user:
- tw:text-primary on modal titles that fell back to rgba(0,0,0,.85)
- tw:mb-4! / tw:mb-3.5! on form titles and alert text that lost antd's
  paragraph margin (Add KPI/Policy/Rule/Role, What's New alert)
- restore the .domain-link.ant-typography selector; broadening it to bare
  .domain-link turned the grey Domains label blue
…phy-to-core

# Conflicts:
#	openmetadata-ui/src/main/resources/ui/src/pages/SettingsAppModePage/SettingsAppModePage.tsx
@github-actions

Copy link
Copy Markdown
Contributor

🔄 Playwright impact map auto-refreshed

This PR touched specs or UI source that changed the source→spec routing map. I regenerated .github/playwright/impact-map.generated.json and pushed the diff to this branch.

- source entries: 817 → 820
- 3 added, 0 removed, 20 changed spec-list

New source→spec entries:
  openmetadata-ui/src/main/resources/ui/src/generated/entity/docStore/document.ts
  openmetadata-ui/src/main/resources/ui/src/generated/type/personaPreferences.ts
  openmetadata-ui/src/main/resources/ui/src/pages/platform/persona/PersonaAppLayoutPage/PersonaAppLayoutPage.tsx

Entries whose spec list changed:
  openmetadata-ui/src/main/resources/ui/playwright/e2e/fixtures/pages.ts
  openmetadata-ui/src/main/resources/ui/playwright/support/fixtures/base.ts
  openmetadata-ui/src/main/resources/ui/playwright/support/fixtures/serverLoad.ts
  openmetadata-ui/src/main/resources/ui/playwright/support/persona/PersonaClass.ts
  openmetadata-ui/src/main/resources/ui/playwright/support/user/UserClass.ts
  openmetadata-ui/src/main/resources/ui/playwright/utils/admin.ts
  openmetadata-ui/src/main/resources/ui/playwright/utils/apiResponse.ts
  openmetadata-ui/src/main/resources/ui/playwright/utils/common.ts
  openmetadata-ui/src/main/resources/ui/playwright/utils/entity.ts
  openmetadata-ui/src/main/resources/ui/playwright/utils/persona.ts
  … and 10 more

What is this file? It is the auto-generated half of Playwright's PR planner. It routes "if source X changes, run specs Y" by walking spec imports and cross-referencing getByTestId strings. Hand-authored routing in impact-map.json always wins on conflict.

What if I want to regenerate locally instead? Run this before pushing your next change to skip the bot commit:

python3 .github/scripts/generate_playwright_impact_map.py
git add .github/playwright/impact-map.generated.json
git commit --amend --no-edit  # or a separate commit

@github-actions

github-actions Bot commented Sep 30, 2026 •

Copy link
Copy Markdown
Contributor

⚠️ UI Checkstyle passed — lint findings in changed files

🔍 ESLint findings in this PR's files — 0 error(s), 639 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), 639 warning(s) across 200 changed file(s).

Count Rule
473 react-hooks/exhaustive-deps
90 no-restricted-imports
33 openmetadata-imports/no-lower-layer-page-imports
15 openmetadata-imports/review-sequential-api-calls
12 openmetadata-ui-patterns/no-non-adaptive-palette
7 openmetadata-imports/no-cross-page-imports
6 openmetadata-imports/no-circular-imports
3 openmetadata-imports/no-api-calls-in-iteration
All findings
Location Rule Message
🟡 src/components/APIEndpoint/APIEndpointSchema/APIEndpointSchema.tsx:486:5 react-hooks/exhaustive-deps React Hook useMemo has a missing dependency: 't'. Either include it or remove the dependency array.
🟡 src/components/ActivityFeed/TaskFeedCard/TaskFeedCardFromTask.component.tsx:40: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/ActivityFeed/TaskFeedCard/TaskFeedCardFromTask.component.tsx:41: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/ActivityFeed/TaskFeedCard/TaskFeedCardFromTask.component.tsx:186:9 react-hooks/exhaustive-deps The 'handleTaskLinkClick' function makes the dependencies of useMemo Hook (at line 222) change on every render. Move it inside the useMemo callback. Alternative
🟡 src/components/Alerts/AlertDetails/AlertDiagnosticInfo/AlertDiagnosticInfoTab.tsx:46:6 react-hooks/exhaustive-deps React Hook useEffect has a missing dependency: 'fetchDiagnosticInfo'. Either include it or remove the dependency array.
🟡 src/components/Alerts/AlertDetails/AlertRecentEventsTab/AlertRecentEventsTab.tsx:96:5 react-hooks/exhaustive-deps React Hook useCallback has an unnecessary dependency: 'filter'. Either exclude it or remove the dependency array.
🟡 src/components/Alerts/AlertDetails/AlertRecentEventsTab/AlertRecentEventsTab.tsx:310:6 react-hooks/exhaustive-deps React Hook useMemo has missing dependencies: 'paging' and 't'. Either include them or remove the dependency array.
🟡 src/components/Alerts/AlertDetails/AlertRecentEventsTab/AlertRecentEventsTab.tsx:323:6 react-hooks/exhaustive-deps React Hook useEffect has a missing dependency: 'getAlertRecentEvents'. Either include it or remove the dependency array.
🟡 src/components/Alerts/AlertFormSourceItem/AlertFormSourceItem.tsx:75:6 react-hooks/exhaustive-deps React Hook useCallback has a missing dependency: 't'. Either include it or remove the dependency array.
🟡 src/components/Alerts/AlertFormSourceItem/AlertFormSourceItem.tsx:91:5 react-hooks/exhaustive-deps React Hook useCallback has a missing dependency: 'form'. Either include it or remove the dependency array.
🟡 src/components/Announcement/AnnouncementThreadBody.component.tsx:103:6 react-hooks/exhaustive-deps React Hook useEffect has a missing dependency: 'getThreads'. Either include it or remove the dependency array.
🟡 src/components/AppBar/SearchOptions.tsx:41:6 react-hooks/exhaustive-deps React Hook useEffect has a missing dependency: 'setIsOpen'. Either include it or remove the dependency array. If 'setIsOpen' changes too often, find the parent
🟡 src/components/AppBar/Suggestions.tsx:247:6 react-hooks/exhaustive-deps React Hook useMemo has an unnecessary dependency: 'location.search'. Either exclude it or remove the dependency array. Outer scope values like 'location.search'
🟡 src/components/AppBar/Suggestions.tsx:394:6 react-hooks/exhaustive-deps React Hook useCallback has a missing dependency: 't'. Either include it or remove the dependency array.
🟡 src/components/BlockEditor/BubbleMenu/BubbleMenu.tsx:101:6 react-hooks/exhaustive-deps React Hook useMemo has a missing dependency: 'toggleLink'. Either include it or remove the dependency array. If 'toggleLink' changes too often, find the parent
🟡 src/components/BlockEditor/Extensions/File/AttachmentComponents/AttachmentPlaceholder.tsx:17: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/BlockEditor/Extensions/slash-command/SlashCommandList.tsx:20: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/Certification/Certification.component.tsx:129:9 react-hooks/exhaustive-deps The 'handleScroll' function makes the dependencies of useMemo Hook (at line 240) change on every render. Move it inside the useMemo callback. Alternatively, wra
🟡 src/components/Certification/Certification.component.tsx:276:6 react-hooks/exhaustive-deps React Hook useEffect has missing dependencies: 'currentCertificate' and 'getCertificationData'. Either include them or remove the dependency array. If 'setSelec
🟡 src/components/Container/ContainerDataModel/ContainerDataModel.tsx:309:5 react-hooks/exhaustive-deps React Hook useMemo has missing dependencies: 't', 'tagFilter.Classification', and 'tagFilter.Glossary'. Either include them or remove the dependency array. Oute
🟡 src/components/Dashboard/DashboardChartTable/DashboardChartTable.tsx:105:6 react-hooks/exhaustive-deps React Hook useCallback has a missing dependency: 'getEntityPermission'. Either include it or remove the dependency array.
🟡 src/components/Dashboard/DashboardChartTable/DashboardChartTable.tsx:130:5 react-hooks/exhaustive-deps React Hook useCallback has missing dependencies: 'fetchChartPermissions' and 't'. Either include them or remove the dependency array.
🟡 src/components/Dashboard/DashboardChartTable/DashboardChartTable.tsx:137:6 react-hooks/exhaustive-deps React Hook useEffect has a missing dependency: 'getAllChartsPermissions'. Either include it or remove the dependency array.
🟡 src/components/Dashboard/DashboardChartTable/DashboardChartTable.tsx:157:6 react-hooks/exhaustive-deps React Hook useCallback has a missing dependency: 't'. Either include it or remove the dependency array.
🟡 src/components/Dashboard/DashboardChartTable/DashboardChartTable.tsx:297:5 react-hooks/exhaustive-deps React Hook useCallback has an unnecessary dependency: 'chartFilters'. Either exclude it or remove the dependency array.
🟡 src/components/Dashboard/DashboardChartTable/DashboardChartTable.tsx:408:5 react-hooks/exhaustive-deps React Hook useMemo has missing dependencies: 'dashboardDetails?.fullyQualifiedName', 'getChartPermissionFlags', 'hasEditGlossaryTermAccess', 't', 'tagFilter.Cla
🟡 src/components/Dashboard/DataModel/DataModels/DataModelsTable.tsx:131:5 react-hooks/exhaustive-deps React Hook useCallback has a missing dependency: 'pageSize'. Either include it or remove the dependency array.
🟡 src/components/Dashboard/DataModel/DataModels/DataModelsTable.tsx:198:5 react-hooks/exhaustive-deps React Hook useCallback has a missing dependency: 'handlePagingChange'. Either include it or remove the dependency array.
🟡 src/components/Dashboard/DataModel/DataModels/DataModelsTable.tsx:242:6 react-hooks/exhaustive-deps React Hook useEffect has a missing dependency: 'searchDataModels'. Either include it or remove the dependency array.
🟡 src/components/Dashboard/DataModel/DataModels/DataModelsTable.tsx:255:6 react-hooks/exhaustive-deps React Hook useEffect has a missing dependency: 'fetchDashboardsDataModel'. Either include it or remove the dependency array.
🟡 src/components/Dashboard/DataModel/DataModels/ModelTab/ModelTab.component.tsx:168:5 react-hooks/exhaustive-deps React Hook useCallback has an unnecessary dependency: 'paging'. Either exclude it or remove the dependency array.
🟡 src/components/Dashboard/DataModel/DataModels/ModelTab/ModelTab.component.tsx:224:9 react-hooks/exhaustive-deps The 'updateColumnDetails' function makes the dependencies of useCallback Hook (at line 253) change on every render. To fix this, wrap the definition of 'updateC
🟡 src/components/Dashboard/DataModel/DataModels/ModelTab/ModelTab.component.tsx:224:9 react-hooks/exhaustive-deps The 'updateColumnDetails' function makes the dependencies of useCallback Hook (at line 270) change on every render. To fix this, wrap the definition of 'updateC
🟡 src/components/Dashboard/DataModel/DataModels/ModelTab/ModelTab.component.tsx:454:5 react-hooks/exhaustive-deps React Hook useMemo has a missing dependency: 't'. Either include it or remove the dependency array.
🟡 src/components/DataAssetRules/DataAssetRules.component.tsx:76:6 react-hooks/exhaustive-deps React Hook useCallback has a missing dependency: 't'. Either include it or remove the dependency array.
🟡 src/components/DataAssetRules/DataAssetRules.component.tsx:80:6 react-hooks/exhaustive-deps React Hook useEffect has a missing dependency: 'fetchSemanticsRules'. Either include it or remove the dependency array.
🟡 src/components/DataAssetRules/DataAssetRules.component.tsx:115:5 react-hooks/exhaustive-deps React Hook useCallback has missing dependencies: 'fetchSemanticsRules' and 't'. Either include them or remove the dependency array.
🟡 src/components/DataAssetRules/DataAssetRules.component.tsx:134:6 react-hooks/exhaustive-deps React Hook useEffect has a missing dependency: 'form'. Either include it or remove the dependency array.
🟡 src/components/DataAssetRules/DataAssetRules.component.tsx:362:5 react-hooks/exhaustive-deps React Hook useMemo has an unnecessary dependency: 't'. Either exclude it or remove the dependency array. Outer scope values like 't' aren't valid dependencies b
🟡 src/components/DataAssetRules/DataAssetRules.component.tsx:382:6 react-hooks/exhaustive-deps React Hook useMemo has missing dependencies: 'addEditSemanticsRule' and 'deleteSemanticsRule'. Either include them or remove the dependency array.
🟡 src/components/DataContract/AddDataContract/AddDataContract.tsx:309:6 react-hooks/exhaustive-deps React Hook useCallback has missing dependencies: 'onSave' and 't'. Either include them or remove the dependency array. If 'onSave' changes too often, find the p
🟡 src/components/DataContract/AddDataContract/AddDataContract.tsx:524:6 react-hooks/exhaustive-deps React Hook useMemo has a missing dependency: 't'. Either include it or remove the dependency array.
🟡 src/components/DataContract/AddDataContract/AddDataContract.tsx:567:6 react-hooks/exhaustive-deps React Hook useMemo has a missing dependency: 't'. Either include it or remove the dependency array.
🟡 src/components/DataContract/ContractDetailFormTab/ContractDetailFormTab.tsx:143:6 react-hooks/exhaustive-deps React Hook useEffect has a missing dependency: 'form'. Either include it or remove the dependency array.
🟡 src/components/DataContract/ContractQualityCard/ContractQualityCard.component.tsx:112:6 react-hooks/exhaustive-deps React Hook useEffect has missing dependencies: 'fetchTestCaseSummary' and 'fetchTestCases'. Either include them or remove the dependency array.
🟡 src/components/DataContract/ContractQualityFormTab/ContractQualityFormTab.tsx:94:9 react-hooks/exhaustive-deps The 'fetchAllTests' function makes the dependencies of useCallback Hook (at line 128) change on every render. To fix this, wrap the definition of 'fetchAllTests
🟡 src/components/DataContract/ContractQualityFormTab/ContractQualityFormTab.tsx:94:9 react-hooks/exhaustive-deps The 'fetchAllTests' function makes the dependencies of useCallback Hook (at line 142) change on every render. To fix this, wrap the definition of 'fetchAllTests
🟡 src/components/DataContract/ContractQualityFormTab/ContractQualityFormTab.tsx:167:5 react-hooks/exhaustive-deps React Hook useMemo has a missing dependency: 't'. Either include it or remove the dependency array.
🟡 src/components/DataContract/ContractQualityFormTab/ContractQualityFormTab.tsx:211:6 react-hooks/exhaustive-deps React Hook useEffect has a missing dependency: 'fetchAllTests'. Either include it or remove the dependency array.
🟡 src/components/DataContract/ContractSLACard/ContractSLA.component.tsx:182:6 react-hooks/exhaustive-deps React Hook useMemo has a missing dependency: 't'. Either include it or remove the dependency array.

… and 589 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

…phy-to-core

# Conflicts:
#	openmetadata-ui/src/main/resources/ui/src/components/Alerts/AlertDetails/AlertRecentEventsTab/AlertRecentEventsTab.tsx
#	openmetadata-ui/src/main/resources/ui/src/components/DataContract/ContractSLACard/ContractSLA.component.tsx
#	openmetadata-ui/src/main/resources/ui/src/components/Database/ColumnDetailPanel/ColumnDetailPanel.component.tsx
#	openmetadata-ui/src/main/resources/ui/src/components/Database/TableQueries/QueryCard.tsx
#	openmetadata-ui/src/main/resources/ui/src/components/Entity/EntityInfoDrawer/EdgeInfoDrawer.component.tsx
#	openmetadata-ui/src/main/resources/ui/src/components/Entity/EntityLineage/CustomNode.utils.tsx
#	openmetadata-ui/src/main/resources/ui/src/components/Explore/ExploreTree/ExploreTree.tsx
#	openmetadata-ui/src/main/resources/ui/src/components/SettingsSso/SSOConfigurationForm/SSOConfigurationForm.tsx
#	openmetadata-ui/src/main/resources/ui/src/components/TestLibrary/TestDefinitionList/TestDefinitionTable.component.tsx
#	openmetadata-ui/src/main/resources/ui/src/components/UploadFile/UploadFile.tsx
#	openmetadata-ui/src/main/resources/ui/src/pages/Persona/PersonaDetailsPage/PersonaDetailsPage.tsx
#	openmetadata-ui/src/main/resources/ui/src/utils/CSV/CSV.utils.tsx
#	openmetadata-ui/src/main/resources/ui/src/utils/IngestionUtils.tsx
…phy-to-core

Take main's core rewrite of the custom-property components (b19ecf4)
and its removal of EditTableTypePropertyModal. Migrate AddTestCaseList,
which still used antd Typography, to core Typography.
@gitar-bot

gitar-bot Bot commented Oct 1, 2026 •

Copy link
Copy Markdown
Code Review ✅ Approved 2 closed / 2 findings

🔴 High risk · A shared Typography migration changes rendering across roughly 390 UI files.

Migrates ~390 call sites from antd Typography (Text, Paragraph, Title, Link) to core Typography across the OSS UI, with colours, font sizes, and spacing following core design. Resolves variant="link" rel handling for target=_blank links and fixes truncation detection on block elements to show tooltips only when text is actually truncated. No issues found.

✅ 2 closed
✅ Security: variant="link" drops antd's automatic rel for target=_blank links

📄 openmetadata-ui-core-components/src/main/resources/ui/src/components/foundations/typography.tsx:261-275 📄 openmetadata-ui/src/main/resources/ui/src/components/Settings/Team/TeamDetails/TeamsHeaderSection/TeamsSubscription.component.tsx 📄 openmetadata-ui/src/main/resources/ui/src/components/Settings/Applications/MarketPlaceAppDetails/MarketPlaceAppDetails.component.tsx
In antd 4.24 (the version this app uses), Typography.Link fills in rel="noopener noreferrer" whenever target="_blank" is set and no rel is given. VariantTypography passes props straight through to the <a>, so every migrated external link loses that rel. The links below are admin- or app-supplied URLs: href={value.endpoint} in TeamsSubscription, and developerUrl / privacyPolicyUrl in MarketPlaceAppDetails and AppDetails. They now open with no noreferrer, which sends the Referer header and breaks the parity the PR claims. Older browsers also lose noopener. Fix it in one place: in VariantTypography, default rel to 'noopener noreferrer' when target === '_blank' and rel is undefined.

✅ Bug: Truncation check reads the wrapper, so block ellipsis never counts as cut

📄 openmetadata-ui-core-components/src/main/resources/ui/src/components/foundations/typography.tsx:185 📄 openmetadata-ui-core-components/src/main/resources/ui/src/components/foundations/typography.tsx:206 📄 openmetadata-ui-core-components/src/main/resources/ui/src/components/foundations/typography.tsx:213-220 📄 openmetadata-ui-core-components/src/main/resources/ui/src/components/foundations/typography.tsx:249-258 📄 openmetadata-ui-core-components/src/main/resources/ui/src/components/foundations/typography.tsx:274-279 📄 openmetadata-ui/src/main/resources/ui/src/components/Settings/Applications/AppLogsViewer/ReindexFailures.component.tsx:47-52 📄 openmetadata-ui/src/main/resources/ui/src/components/Settings/Applications/AppLogsViewer/ReindexFailures.component.tsx:57-69 📄 openmetadata-ui/src/main/resources/ui/src/components/MyData/Widgets/Common/WidgetHeader/WidgetHeader.tsx:106-113
ellipsisClassName (tw:truncate / line-clamp-N) goes on the inner element and on the wrapper. For block elements (as="p", div, h*) the inner element fills the wrapper and hides its own overflow. Content clipped by a descendant with overflow:hidden does not count toward the ancestor's scroll size, so the wrapper always has scrollWidth === clientWidth and scrollHeight === clientHeight. That makes isTruncated(wrapperRef.current, …) always false for these elements, and ellipsis={{ tooltip: true }} never opens its tooltip. This hits WidgetHeader's title, SchemaTable, DataAssetsHeader, TestCaseDetail, the UserProfileIcon 'view profile' item and others. Before this commit, those tooltips always opened. ReindexFailures' ErrorMessage has the same problem: it measures textRef.current.firstElementChild, which is the wrapper div and not the clamped <p>. So isClamped stays false and the 'more' toggle never shows, and long reindex errors can't be expanded. Inline span/a still work because overflow doesn't apply to inline boxes. jsdom tests mock scrollWidth/clientWidth on every element, so they don't catch this. Fix: measure the element that actually clips, i.e. the inner element (or check both), and in ErrorMessage measure the <p> itself.

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

sonarqubecloud Bot commented Oct 1, 2026

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.

5 participants