Repository navigation
Fixes 7423: swap assets/svg icons to core-ui icons and fix icon regressions - #37093
Conversation
Replace every mapped assets/svg icon with its @openmetadata/ui-core-components icon and delete the svgs nothing references any more. - Components use the core icon name directly; only names that clash with an existing identifier keep an `XIcon` alias. - Icon sizing uses the `size` prop instead of width/height and tw:size-*. - Coloured icons that relied on baked svg colours get their colour at the render site (status badges, DQ dimensions, task status, contract status). - URL-only svg uses that are not logos now render core icons (task fields, slash-command menu, team avatar); service/plugin logos stay URLs. - Icon QA: dropdown, select, button-group and form-label icons are gray-500 with gray-600 hover; 20px frames for menu icons; 18px link-button icons; follow star and vote icons match the article header (filled when active). - Settings modal uses the designer icons; adds Theme, HealthCheck, ProfilerConfiguration, SearchSettings, BrandUrl, DataAssetRules, LearningResources, OnlineUsers, Provisioning, IntakeForms and Youtube; redraws Lock01, PermissionDebugger and Billing. - Removes the X, Tag, AlertTriangle and ActivityAssetDeleted icons in favour of XClose, Tag01, Alert and Trash01.
❌ 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! |
…o-core-ui # Conflicts: # openmetadata-ui/src/main/resources/ui/src/components/common/EntitySummaryDetails/EntitySummaryDetails.tsx
…rder rules Adds ADR:2026-11-05-a-core-icon-or-svg-is-deleted-only-after-no-repo-imports-it and amends ADR:2026-10-13-core-icons-and-buttons-follow-the-figma-icon-spec (v4) for the link-color leading icon frame and the menu, select and button-group icon frames and colours.
|
| Count | Rule |
|---|---|
| 210 | react-hooks/exhaustive-deps |
| 45 | openmetadata-ui-patterns/no-non-adaptive-palette |
| 27 | openmetadata-imports/no-lower-layer-page-imports |
| 11 | openmetadata-ui-patterns/deprecated-om-tokens |
| 11 | openmetadata-imports/no-circular-imports |
| 7 | openmetadata-imports/review-sequential-api-calls |
| 7 | openmetadata-imports/no-impure-pure-utils |
| 5 | openmetadata-imports/no-api-calls-in-iteration |
| 5 | openmetadata-imports/no-cross-page-imports |
All findings
| Location | Rule | Message | |
|---|---|---|---|
| 🟡 | src/components/ActivityFeed/TaskFeedCard/TaskFeedCardFromTask.component.tsx:46: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:47: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:194:9 |
react-hooks/exhaustive-deps |
The 'handleTaskLinkClick' function makes the dependencies of useMemo Hook (at line 234) change on every render. Move it inside the useMemo callback. Alternative |
| 🟡 | src/components/Alerts/DestinationFormItem/DestinationSelectItem/DestinationConfigField/DestinationConfigField.tsx:106:9 |
react-hooks/exhaustive-deps |
The 'receivers' logical expression could make the dependencies of useCallback Hook (at line 132) change on every render. To fix this, wrap the initialization of |
| 🟡 | src/components/Alerts/DestinationFormItem/DestinationSelectItem/DestinationConfigField/DestinationConfigField.tsx:106:9 |
react-hooks/exhaustive-deps |
The 'receivers' logical expression could make the dependencies of useCallback Hook (at line 142) change on every render. To fix this, wrap the initialization of |
| 🟡 | src/components/BlockEditor/BarMenu/BarMenu.tsx:152:9 |
openmetadata-ui-patterns/deprecated-om-tokens |
Legacy token "--om-color-gray-neutral-200" is deprecated. Use tw: utilities or --tw-* theme variables. Migrate existing references when editing them; do not add |
| 🟡 | src/components/BlockEditor/BarMenu/BarMenu.tsx:152:9 |
openmetadata-ui-patterns/deprecated-om-tokens |
Legacy token "--om-legacy-color-f7f9fc" is deprecated. Use tw: utilities or --tw-* theme variables. Migrate existing references when editing them; do not add ne |
| 🟡 | src/components/BlockEditor/BarMenu/BarMenu.tsx:167:27 |
openmetadata-ui-patterns/deprecated-om-tokens |
Legacy token "--om-legacy-color-e8e8e9" is deprecated. Use tw: utilities or --tw-* theme variables. Migrate existing references when editing them; do not add ne |
| 🟡 | src/components/BlockEditor/BarMenu/BarMenu.tsx:167:27 |
openmetadata-ui-patterns/deprecated-om-tokens |
Legacy token "--om-legacy-color-e8e8e9" is deprecated. Use tw: utilities or --tw-* theme variables. Migrate existing references when editing them; do not add ne |
| 🟡 | src/components/BlockEditor/BarMenu/BarMenu.tsx:168:27 |
openmetadata-ui-patterns/deprecated-om-tokens |
Legacy token "--om-legacy-color-ecedee" is deprecated. Use tw: utilities or --tw-* theme variables. Migrate existing references when editing them; do not add ne |
| 🟡 | src/components/BlockEditor/BarMenu/BarMenu.tsx:193:27 |
openmetadata-ui-patterns/deprecated-om-tokens |
Legacy token "--om-color-gray-neutral-200" is deprecated. Use tw: utilities or --tw-* theme variables. Migrate existing references when editing them; do not add |
| 🟡 | src/components/BlockEditor/BlockMenu/BlockMenu.tsx:96:5 |
react-hooks/exhaustive-deps |
React Hook useCallback has a missing dependency: 'handleClickBlockHandle'. Either include it or remove the dependency array. |
| 🟡 | src/components/BlockEditor/BlockMenu/BlockMenu.tsx:99:9 |
react-hooks/exhaustive-deps |
The 'handleKeyDown' function makes the dependencies of useEffect Hook (at line 165) change on every render. Move it inside the useEffect callback. Alternatively |
| 🟡 | src/components/BlockEditor/BlockMenu/BlockMenu.tsx:155:6 |
react-hooks/exhaustive-deps |
React Hook useEffect has a missing dependency: 'view.dom'. Either include it or remove the dependency array. |
| 🟡 | src/components/BlockEditor/BubbleMenu/BubbleMenu.tsx:102: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/slash-command/SlashCommandList.tsx:19: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/TableMenu/TableMenu.tsx:147:6 |
react-hooks/exhaustive-deps |
React Hook useEffect has a missing dependency: 'view.dom'. Either include it or remove the dependency array. |
| 🟡 | src/components/ContextCenter/DocumentsView/DocumentFolderView.component.tsx:520:36 |
openmetadata-imports/no-api-calls-in-iteration |
Avoid issuing one API request per item. Fetch at the data owner, use a bulk endpoint, or use useQueries with an intentional concurrency policy. |
| 🟡 | src/components/Dashboard/DashboardVersion/DashboardVersion.component.tsx:153: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:259: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/DataContract/AddDataContract/AddDataContract.tsx:317: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:533:6 |
react-hooks/exhaustive-deps |
React Hook useMemo has a missing dependency: 't'. Either include it or remove the dependency array. |
| 🟡 | src/components/DataContract/ContractDetailTab/ContractDetail.tsx:175:6 |
react-hooks/exhaustive-deps |
React Hook useCallback has a missing dependency: 't'. Either include it or remove the dependency array. |
| 🟡 | src/components/DataContract/ContractDetailTab/ContractDetail.tsx:193:6 |
react-hooks/exhaustive-deps |
React Hook useCallback has a missing dependency: 't'. Either include it or remove the dependency array. |
| 🟡 | src/components/DataContract/ContractDetailTab/ContractDetail.tsx:209:9 |
react-hooks/exhaustive-deps |
The 'handleRunNow' function makes the dependencies of useCallback Hook (at line 276) change on every render. To fix this, wrap the definition of 'handleRunNow' |
| 🟡 | src/components/DataContract/ContractDetailTab/ContractDetail.tsx:381:41 |
openmetadata-ui-patterns/no-non-adaptive-palette |
Raw palette class "tw:text-gray-700" is static — it does not flip in dark mode. Use the theme-adapting "utility-" variant (tw:text-utility-gray-700) or a semant |
| 🟡 | src/components/DataContract/ContractDetailTab/ContractDetail.tsx:431:41 |
openmetadata-ui-patterns/no-non-adaptive-palette |
Raw palette class "tw:text-error-600" is static — it does not flip in dark mode. Use the theme-adapting "utility-" variant (tw:text-utility-error-600) or a sema |
| 🟡 | src/components/DataContract/ContractDetailTab/ContractDetail.tsx:436:41 |
openmetadata-ui-patterns/no-non-adaptive-palette |
Raw palette class "tw:text-error-600" is static — it does not flip in dark mode. Use the theme-adapting "utility-" variant (tw:text-utility-error-600) or a sema |
| 🟡 | src/components/DataContract/ContractDetailTab/ContractDetail.tsx:536:6 |
react-hooks/exhaustive-deps |
React Hook useMemo has unnecessary dependencies: 'handleRunNow' and 'validateLoading'. Either exclude them or remove the dependency array. |
| 🟡 | src/components/DataContract/ContractDetailTab/ContractDetail.tsx:553:6 |
react-hooks/exhaustive-deps |
React Hook useEffect has a missing dependency: 'fetchLatestContractResults'. Either include it or remove the dependency array. |
| 🟡 | src/components/DataContract/ContractDetailTab/ContractDetail.tsx:617:39 |
openmetadata-ui-patterns/no-non-adaptive-palette |
Raw palette class "tw:text-gray-700" is static — it does not flip in dark mode. Use the theme-adapting "utility-" variant (tw:text-utility-gray-700) or a semant |
| 🟡 | src/components/DataContract/ContractDetailTab/ContractDetail.tsx:634:39 |
openmetadata-ui-patterns/no-non-adaptive-palette |
Raw palette class "tw:text-gray-700" is static — it does not flip in dark mode. Use the theme-adapting "utility-" variant (tw:text-utility-gray-700) or a semant |
| 🟡 | src/components/DataContract/ContractDetailTab/ContractDetail.tsx:659:30 |
openmetadata-ui-patterns/no-non-adaptive-palette |
Raw palette class "tw:border-gray-200" is static — it does not flip in dark mode. Use the theme-adapting "utility-" variant (tw:border-utility-gray-200) or a se |
| 🟡 | src/components/DataContract/ContractDetailTab/ContractDetail.tsx:676:30 |
openmetadata-ui-patterns/no-non-adaptive-palette |
Raw palette class "tw:border-gray-200" is static — it does not flip in dark mode. Use the theme-adapting "utility-" variant (tw:border-utility-gray-200) or a se |
| 🟡 | src/components/DataContract/ContractDetailTab/ContractDetail.tsx:695:30 |
openmetadata-ui-patterns/no-non-adaptive-palette |
Raw palette class "tw:border-gray-200" is static — it does not flip in dark mode. Use the theme-adapting "utility-" variant (tw:border-utility-gray-200) or a se |
| 🟡 | src/components/DataContract/ContractDetailTab/ContractDetail.tsx:714:30 |
openmetadata-ui-patterns/no-non-adaptive-palette |
Raw palette class "tw:border-gray-200" is static — it does not flip in dark mode. Use the theme-adapting "utility-" variant (tw:border-utility-gray-200) or a se |
| 🟡 | src/components/DataContract/ContractDetailTab/ContractDetail.tsx:784:42 |
openmetadata-ui-patterns/no-non-adaptive-palette |
Raw palette class "tw:border-gray-200" is static — it does not flip in dark mode. Use the theme-adapting "utility-" variant (tw:border-utility-gray-200) or a se |
| 🟡 | src/components/DataContract/ContractDetailTab/ContractDetail.tsx:828:44 |
openmetadata-ui-patterns/no-non-adaptive-palette |
Raw palette class "tw:border-gray-200" is static — it does not flip in dark mode. Use the theme-adapting "utility-" variant (tw:border-utility-gray-200) or a se |
| 🟡 | src/components/DataContract/ContractDetailTab/ContractDetail.tsx:846:40 |
openmetadata-ui-patterns/no-non-adaptive-palette |
Raw palette class "tw:border-gray-200" is static — it does not flip in dark mode. Use the theme-adapting "utility-" variant (tw:border-utility-gray-200) or a se |
| 🟡 | src/components/DataContract/ContractSLACard/ContractSLA.component.tsx:186:6 |
react-hooks/exhaustive-deps |
React Hook useMemo has a missing dependency: 't'. Either include it or remove the dependency array. |
| 🟡 | src/components/DataContract/ContractSchemaTable/ContractSchemaTable.component.tsx:139:5 |
react-hooks/exhaustive-deps |
React Hook useMemo has a missing dependency: 't'. Either include it or remove the dependency array. |
| 🟡 | src/components/DataContract/ODCSImportModal/ODCSImportModal.component.tsx:583:6 |
react-hooks/exhaustive-deps |
React Hook useCallback has a missing dependency: 'handleReset'. Either include it or remove the dependency array. |
| 🟡 | src/components/DataContract/ODCSImportModal/ODCSImportModal.component.tsx:704:27 |
openmetadata-ui-patterns/no-non-adaptive-palette |
Raw palette class "tw:text-gray-700" is static — it does not flip in dark mode. Use the theme-adapting "utility-" variant (tw:text-utility-gray-700) or a semant |
| 🟡 | src/components/DataContract/ODCSImportModal/ODCSImportModal.component.tsx:717:29 |
openmetadata-ui-patterns/no-non-adaptive-palette |
Raw palette class "tw:text-gray-700" is static — it does not flip in dark mode. Use the theme-adapting "utility-" variant (tw:text-utility-gray-700) or a semant |
| 🟡 | src/components/DataContract/ODCSImportModal/ODCSImportModal.component.tsx:1168:23 |
openmetadata-ui-patterns/no-non-adaptive-palette |
Raw palette class "tw:text-warning-600" is static — it does not flip in dark mode. Use the theme-adapting "utility-" variant (tw:text-utility-warning-600) or a |
| 🟡 | src/components/DataContract/ODCSImportModal/ODCSImportModal.component.tsx:1171:40 |
openmetadata-ui-patterns/no-non-adaptive-palette |
Raw palette class "tw:text-warning-800" is static — it does not flip in dark mode. Use the theme-adapting "utility-" variant (tw:text-utility-warning-800) or a |
| 🟡 | src/components/DataContract/ODCSImportModal/ODCSImportModal.component.tsx:1278:19 |
openmetadata-ui-patterns/no-non-adaptive-palette |
Raw palette class "tw:bg-gray-50" is static — it does not flip in dark mode. Use the theme-adapting "utility-" variant (tw:bg-utility-gray-50) or a semantic tok |
| 🟡 | src/components/DataContract/ODCSImportModal/ODCSImportModal.component.tsx:1359:33 |
openmetadata-ui-patterns/no-non-adaptive-palette |
Raw palette class "tw:bg-gray-50" is static — it does not flip in dark mode. Use the theme-adapting "utility-" variant (tw:bg-utility-gray-50) or a semantic tok |
| 🟡 | src/components/DataContract/ODCSImportModal/ODCSImportModal.component.tsx:1363:43 |
openmetadata-ui-patterns/no-non-adaptive-palette |
Raw palette class "tw:text-gray-500" is static — it does not flip in dark mode. Use the theme-adapting "utility-" variant (tw:text-utility-gray-500) or a semant |
| 🟡 | src/components/DataContract/ODCSImportModal/ODCSImportModal.component.tsx:1368:39 |
openmetadata-ui-patterns/no-non-adaptive-palette |
Raw palette class "tw:text-gray-700" is static — it does not flip in dark mode. Use the theme-adapting "utility-" variant (tw:text-utility-gray-700) or a semant |
… and 278 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…ay-500 neutral icons, persona/role menu icons
…ata, remove replaced svgs CheckCircle03, LinkExternal02 and TextEditorLink duplicated CheckCircle02, LinkExternal01 and Link03; usages now point at the kept icon.
…o-core-ui # Conflicts: # openmetadata-ui/src/main/resources/ui/src/components/DataContract/ContractSchemaTable/ContractSchemaTable.component.tsx # openmetadata-ui/src/main/resources/ui/src/components/discovery/personal-space/Profile/tabs/notification/NotificationRecentEvents.tsx
…o-core-ui # Conflicts: # openmetadata-ui/src/main/resources/ui/src/components/DataAssets/DataAssetsHeader/DataAssetsHeader.component.tsx # openmetadata-ui/src/main/resources/ui/src/components/observability/TestCaseDetail/TestCaseDetail.tsx # openmetadata-ui/src/main/resources/ui/src/components/observability/TestSuiteDetail/TestSuiteDetail.tsx # openmetadata-ui/src/main/resources/ui/src/pages/IncidentManager/IncidentManagerDetailPage/IncidentManagerDetailPage.tsx # openmetadata-ui/src/main/resources/ui/src/pages/TestSuiteDetailsPage/TestSuiteDetailsPage.component.tsx
…o-core-ui # Conflicts: # openmetadata-ui/src/main/resources/ui/src/components/DataAssets/DataAssetsHeader/DataAssetsHeader.component.tsx # openmetadata-ui/src/main/resources/ui/src/pages/TagPage/TagPage.tsx
Code Review ✅ Approved 1 closed / 1 findings🟡 Medium risk · Replacing SVGs with core-ui icons across hundreds of UI components changes rendering and sizing broadly, so mismatches could obscure statuses or controls. Swaps the remaining ✅ 1 closed✅ Quality: No record for the cross-repo rule on deleting icons and exports
VerificationRules No rules evaluated Functional validation Not enabledAuto-approval Not enabledFor more verification details, comment OptionsDisplay: compact → Showing compact verification results. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source |
…on 2.1 The baselines refreshed in #37237 were captured from a main build that predated #37093, which replaced the app's assets/svg icons with core-ui icons. Every screen showing the sidebar, header, editor toolbar or connection-form tabs has differed since. Each baseline is replaced with the first-attempt -actual.png from the 2.1 nightly visual lane (Linux renderer, regular UI bundle). Co-Authored-By: Claude Opus 5.5 <[email protected]>
The baselines refreshed in #37237 were captured from a main build that predated #37093, which replaced the app's assets/svg icons with core-ui icons. Every screen showing the sidebar, header, editor toolbar or connection-form tabs has differed since. Each baseline is replaced with the first-attempt -actual.png from the 2.1 nightly visual lane (Linux renderer, regular UI bundle). Ontology baselines that #37641 refreshes are left to that PR. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…and add the memory-approval fixture (#37656) * test(playwright): answer the extracted-memory approval read in the visual lane The Context Center memories card now previews extracted-memory approval on mount, and the visual lane fails any GET it has no fixture for. Co-Authored-By: Claude Opus 5.5 <[email protected]> * WIP: temporarily disable maxFailures to capture every visual baseline (revert before merge) * Revert "WIP: temporarily disable maxFailures to capture every visual baseline (revert before merge)" This reverts commit 3d2d902. * test(playwright): refresh visual baselines for the core-ui icon swap The baselines refreshed in #37237 were captured from a main build that predated #37093, which replaced the app's assets/svg icons with core-ui icons. Every screen showing the sidebar, header, editor toolbar or connection-form tabs has differed since. Each baseline is replaced with the first-attempt -actual.png from the 2.1 nightly visual lane (Linux renderer, regular UI bundle). Ontology baselines that #37641 refreshes are left to that PR. Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
Describe your changes:
Part of #7423. Follow-up to #36954 (merged), which added the designer icon set to core-ui. This PR swaps the remaining
assets/svgicons in the UI to@openmetadata/ui-core-components/icons, fixes the icon regressions found in visual QA, and updates the settings modal with the designer's icons. Companion Collate PR: open-metadata/openmetadata-collate (same branch name).Icon swap
assets/svgimport (about 640 in 280 files) now uses its core-ui icon, and the 457 svgs nothing references any more are deleted. Service/plugin logos that are consumed as image URLs (getServiceTypeLogo,ServiceIconUtils) stay as svgs.<Edit01 />, notEdit01 as EditIcon). Only the ~20 names that clash with an existing identifier (coreTable, generatedDataProduct/Columntypes, …) keep anXIconalias.sizeprop instead ofwidth/heightortw:size-*. Icons whose old svg baked in a colour get it at the render site: status badges, DQ dimensions, task open/closed, contract column status.X,Tag,AlertTriangleandActivityAssetDeletedfrom core-ui, replaced everywhere byXClose,Tag01,AlertandTrash01.DataProductinstead of the generic cube/package icons.Icon QA fixes (core-ui level, so they apply everywhere)
Dropdown.Item,Selectoption/value,ButtonGroupand form-label "?" icons: gray-500, gray-600 on hover; dropdown menu icons in a 20px frame.link-colorbuttons use an 18px leading icon (Edit, Bulk Edit All, Custom Query).Settings modal
Theme,HealthCheck,ProfilerConfiguration,SearchSettings,BrandUrl,DataAssetRules,LearningResources,OnlineUsers,Provisioning,IntakeForms,Youtube. Redrawn:Lock01,PermissionDebugger,Billing.Mail,PlatformLineage,DefaultAppMode,Teams,ActivityOwnerChanged,KnowledgePanels, …).Type of change:
High-level design:
className, convert sizing tosize, dropjest.mocks of deleted svgs. Everything it couldn't do mechanically (URL imports, expression classNames,fill/color/styleprops, non-square sizes, coloured icons passed by reference) was fixed by hand.@assets/svg,openmetadata-ui/src/…and the mirror paths) still references it.Tests:
yarn tsc:check: clean apart from theCustomPropertiesDetailPageisLoadingerror that is already onmain.yarn jest --findRelatedTests <changed files>: 1634 suites / 20743 tests pass.vitest(src/components): passes except 6 tag-tooltip tests in files this PR doesn't touch; the same test fails on cleanmain.yarn build: passes.Screenshots
Taken on the local OpenMetadata build of this branch (
yarn startagainst a local backend). Collate pages are in the Collate PR.Regression fixes, round 1
Regression fixes, round 2
Regression fixes, round 3 (follow star, thumbs-down, dark mode)
Settings
More pages
Checklist:
Fixes <issue-number>: <short explanation>🤖 Generated with Claude Code
Part of open-metadata/openmetadata-collate#7537