Repository navigation
feat(ui): use core-components icons on the domain details page - #35019
Conversation
Replace the local SVG and antd icons on the domain details page with untitled-ui icons from @openmetadata/ui-core-components/icons: - Learning icon: Lightbulb01 - Follow button: Star01 - Manage menu trigger: DotsVertical - Manage menu items: Announcement02, Edit01, Trash01 - Version button: Version - Widget edit / add buttons: Edit01 / Plus - Widget collapse toggle: ChevronUp - Description edit button: Edit01 - Tier popover close / save: XClose / Check Remove ic-learning.svg, ic-star-filled.svg and action-icons/plus.svg, which nothing references any more.
Put CloseOutlined / CheckOutlined back on the TierCard footer buttons, reverting the XClose / Check swap from the previous commit.
The comment claimed every edit button on an entity page now matches. Only WidgetEditButton shares Edit01 with the description edit button; the other edit buttons still use edit-new.svg until they move too.
❌ 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 |
|
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! |
The Version button passes the core Version icon straight into the antd Button icon slot with className="anticon". The reason lived only in the PR description, which the squash-merge drops. Record it and cite the record at the call site.
|
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! |
Remove the decision record and its ADR citation. The why-comment on the Version button keeps the reason next to the code.
|
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! |
…-icons # Conflicts: # openmetadata-ui/src/main/resources/ui/src/components/Domain/DomainDetails/DomainDetails.component.tsx
|
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! |
Code Review ✅ Approved 1 closed / 1 findings🟢 Low risk · Replacing SVGs with core icons changes only the appearance of shared entity-page controls; the diff shows no changes to behavior, APIs, or data handling. Swaps local SVG and antd icons on the domain details page for untitled-ui icons from ✅ 1 closed✅ Quality: Rule against antd Icon wrapper for core icons lives only in PR body
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 |
|
| Count | Rule |
|---|---|
| 13 | react-hooks/exhaustive-deps |
| 1 | openmetadata-ui-patterns/no-non-adaptive-palette |
All findings
| Location | Rule | Message | |
|---|---|---|---|
| 🟡 | src/components/Domain/DomainDetails/DomainDetails.component.tsx:357: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:359:9 |
react-hooks/exhaustive-deps |
The 'handleTabChange' function makes the dependencies of useCallback Hook (at line 468) change on every render. To fix this, wrap the definition of 'handleTabCh |
| 🟡 | src/components/Domain/DomainDetails/DomainDetails.component.tsx:359:9 |
react-hooks/exhaustive-deps |
The 'handleTabChange' function makes the dependencies of useCallback Hook (at line 637) change on every render. To fix this, wrap the definition of 'handleTabCh |
| 🟡 | src/components/Domain/DomainDetails/DomainDetails.component.tsx:747: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:946: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:976:6 |
react-hooks/exhaustive-deps |
React Hook useEffect has missing dependencies: 'fetchActiveAnnouncement', 'fetchActivityCount', 'fetchDataProducts', 'fetchDomainAssets', and 'fetchTaskCounts'. |
| 🟡 | src/components/Domain/DomainDetails/DomainDetails.component.tsx:989:6 |
react-hooks/exhaustive-deps |
React Hook useMemo has an unnecessary dependency: 'isSubDomain'. Either exclude it or remove the dependency array. |
| 🟡 | src/components/Domain/DomainDetails/DomainDetails.component.tsx:997:5 |
react-hooks/exhaustive-deps |
React Hook useMemo has a missing dependency: 'tabs'. Either include it or remove the dependency array. |
| 🟡 | src/components/Domain/DomainDetails/DomainDetails.component.tsx:997: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/Entity/EntityHeaderTitle/EntityHeaderTitle.component.tsx:137:5 |
react-hooks/exhaustive-deps |
React Hook useMemo has a missing dependency: 't'. Either include it or remove the dependency array. |
| 🟡 | src/components/Learning/LearningIcon/LearningIcon.component.tsx:74:6 |
react-hooks/exhaustive-deps |
React Hook useEffect has a missing dependency: 'fetchResourceCount'. Either include it or remove the dependency array. |
| 🟡 | src/components/Learning/LearningIcon/LearningIcon.component.tsx:126:13 |
openmetadata-ui-patterns/no-non-adaptive-palette |
Raw palette class "tw:*:data-icon:text-brand-600" is static — it does not flip in dark mode. Use the theme-adapting "utility-" variant (tw:text-utility-brand-60 |
| 🟡 | src/components/common/EntityDescription/Description.tsx:112:6 |
react-hooks/exhaustive-deps |
React Hook useCallback has a missing dependency: 'navigate'. Either include it or remove the dependency array. |
| 🟡 | src/components/common/EntityDescription/Description.tsx:116:6 |
react-hooks/exhaustive-deps |
React Hook useCallback has a missing dependency: 'navigate'. Either include it or remove the dependency array. |
Fix locally (fast - only checks files changed in this branch):
make ui-checkstyle-changed
|
d4150e2



Describe your changes:
Fixes #
I replaced the local SVG and antd icons on the domain details page with the untitled-ui icons from
@openmetadata/ui-core-components/icons, so the page uses only the design system's icon set, as DEVELOPER_HANDBOOK.md and CLAUDE.md require. Every icon chosen was imported from@untitledui/iconsbefore the core migration (#34141), so these are untitled-ui icons hosted in core.ic-learning.svgLightbulb01ic-star-filled.svgStar01menu.svgDotsVerticalannouncements-black.svg/edit-new.svg/ic-delete.svgAnnouncement02/Edit01/Trash01ic-version.svg(via antdIcon)Versionaction-icons/edit.svg/action-icons/plus.svgEdit01/Plusic-card-expand-collapse.svgChevronUpedit-new.svgEdit01ic-learning.svg,ic-star-filled.svgandaction-icons/plus.svgare deleted because nothing references them any more.Type of change:
High-level design:
LearningIcon,EntityHeaderTitle,ManageMenu,WidgetActionButton,WidgetCard,Description) rather than overriding per page. The domain page and every other entity page using these components get the same icons.size/classNameprops keep the previous footprints. The Version button keeps its antdButtonand passes<Version className="anticon" size={14} />. The antd<Icon component>wrapper is avoided because it forcesfill="currentColor", which breaks stroke icons. TheclassName="anticon"pattern already exists inTableConstraintsModal.component.tsx.TagsSection,TierSection,EditIconButton,DisplayNameand others) still useedit-new.svg. Where one sits next to the description, the two pencils differ until they move toEdit01in a follow-up PR.Tests:
Use cases covered
Unit tests
Description.test.tsx: the edit button now assertsiconLeadingisEdit01.WidgetActionButton100%,WidgetCard100%,Description100%,ManageMenu91%,LearningIcon88%,EntityHeaderTitle80%,DomainDetails63% (DomainDetails coverage is pre-existing. This PR only changes import lines and icon props there.)Backend integration tests
Ingestion integration tests
Playwright (UI) tests
data-testids unchanged).make playwright_affectedselects 78 specs, and the impact map has gaps for 6 changed files, so CI would run the full suite in the merge queue.Manual testing performed
fillisnone.yarn ui-checkstyle:changedon the changed files): no diff, 0 ESLint errors.tsc --noEmitreports no errors in the changed files.UI screen recording / screenshots:
TODO: attach before/after screenshots of the domain details page header, widgets and manage menu.
Checklist:
Fixes <issue-number>: <short explanation>Fixes #<issue-number>above.