Skip to content

feat(ui): migrate all icons from @untitledui/icons to core-ui - #34141

Merged
Rohit0301 merged 25 commits into
mainfrom
migrate-untitled-icons-to-core-ui
Oct 1, 2026
Merged

Rohit0301 merged 25 commits into
mainfrom
migrate-untitled-icons-to-core-ui

Conversation

@Rohit0301

@Rohit0301 Rohit0301 commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

Describe your changes:

Fixes 6923

Migrates all icon imports from the @untitledui/icons third-party package to @openmetadata/ui-core-components/icons, the project's own design-system layer. This eliminates the external dependency, centralizes icon management, and aligns with the CLAUDE.md rule that icons must go through the core-components package.

  • Extracted 202 SVGs from @untitledui/icons and added 18 new Figma-exported icons into openmetadata-ui-core-components
  • Renamed domain-named icons (e.g. IcEditPrimary) to their UntitledUI convention names (e.g. Edit02)
  • Rewrote all @untitledui/icons imports across ~180 source files to @openmetadata/ui-core-components/icons
  • Removed @untitledui/icons from dependencies, Vite externals, and barrel-optimize plugin config
  • Fixed a ThumbsUp/ThumbsDown icon swap bug discovered during migration
  • Restored accidentally-removed pdfjs-dist dependency (build fix)

Type of change:

  • Bug fix
  • Improvement
  • New feature
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation

High-level design:

Approach: All icons that were previously imported from @untitledui/icons are now re-exported from openmetadata-ui-core-components/icons/. The SVG files live in openmetadata-ui-core-components/.../icons/ and are wrapped as React components via a barrel export. Consumer code imports from @openmetadata/ui-core-components/icons — no path into the old package remains.

Key decisions:

  • Icon names follow UntitledUI naming (e.g. Edit02, ChevronDown) rather than the old domain names (IcEditPrimary, IcChevronDown)
  • @untitledui/file-icons is intentionally kept — it's a separate package still in use
  • 5 icons missing from the UntitledUI set were exported from Figma and added (Archive, BarChart03, CornerDownRight, Percent01, Rows03)

Tests:

Use cases covered

  • All existing icon rendering continues to work with the new import paths
  • Build succeeds (Vite/Rolldown) after migration

Unit tests

  • Not applicable — no logic changes, only import path rewiring

Backend integration tests

  • Not applicable (no backend changes)

Ingestion integration tests

  • Not applicable (no ingestion changes)

Playwright (UI) tests

  • Not applicable — visual icon rendering unchanged

Manual testing performed

  1. Ran yarn build — verified production build completes without errors
  2. Confirmed pdfjs-dist resolves correctly after restoring the dependency

UI screen recording / screenshots:

Not applicable — icons render identically, only import source changed.

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: I updated the migration scripts or explained why it is not needed.
  • 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.

@github-actions

github-actions Bot commented Sep 28, 2026 •

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 added the UI UI specific issues label Sep 28, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Hi there 👋 Thanks for your contribution!

The OpenMetadata team will review the PR shortly! Once it has been labeled as safe to test, the CI workflows
will start executing and we'll be able to make sure everything is working as expected.

Let us know if you need any help!

@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: 805 → 805
- 0 added, 0 removed, 1 changed spec-list

Entries whose spec list changed:
  openmetadata-ui/src/main/resources/ui/src/generated/entity/data/topic.ts

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

Copy link
Copy Markdown
Contributor

Hi there 👋 Thanks for your contribution!

The OpenMetadata team will review the PR shortly! Once it has been labeled as safe to test, the CI workflows
will start executing and we'll be able to make sure everything is working as expected.

Let us know if you need any help!

@github-actions

github-actions Bot commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

✅ SSO Login Nightly — PASSED

View workflow run · Commit 61c6a2e

Provider Status Pass Fail Flaky Skip Duration
basic ✅ pass 23 0 0 0 6m 55s
ldap ✅ pass 7 0 0 0 1m 15s
keycloak-oidc-confidential ✅ pass 10 0 0 0 1m 43s
keycloak-oidc-public ✅ pass 9 0 0 0 1m 25s
msal-mock ✅ pass 6 0 0 0 1m 01s
auth0-mock ✅ pass 6 0 0 0 1m 10s
okta ⏩ skipped - - - - -
keycloak-azure-saml ✅ pass 18 0 0 0 6m 25s
keycloak-azure-saml-crosssite ⏩ skipped - - - - -

Totals: 79 passed · 0 failed · 0 flaky · 0 skipped · duration 19m 55s

Rohit0301 and others added 10 commits September 29, 2026 15:09
Add SVG sources and auto-generated TSX components for icons used by
Collate that were missing from the core-ui icon set:
CalendarPlus02, ClipboardCheck, ClockStopwatch, Compass03, FileSearch02,
Hash01, LayersThree02, Lightning01, LineChartUp01, Pencil01, PieChart01,
SearchLg, SearchMd, Signal02, SwitchVertical01, Target04, TrendDown01,
TrendUp01, ZoomIn, ZoomOut

Regenerated src/icons/index.ts (386 icons total).

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
@github-actions

Copy link
Copy Markdown
Contributor

🚦 Removed from the merge queue — merge_conflict (2026-09-30T15:12:44Z)

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

@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: 826 → 826
- 0 added, 0 removed, 1 changed spec-list

Entries whose spec list changed:
  openmetadata-ui/src/main/resources/ui/src/components/discovery/personal-space/Profile/tabs/bots/BotsListPanel.tsx

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), 477 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), 477 warning(s) across 138 changed file(s).

Count Rule
183 react-hooks/exhaustive-deps
110 openmetadata-ui-patterns/no-non-adaptive-palette
108 no-restricted-imports
47 openmetadata-imports/no-lower-layer-page-imports
9 openmetadata-imports/no-api-calls-in-iteration
8 openmetadata-imports/review-sequential-api-calls
8 openmetadata-imports/no-cross-page-imports
4 openmetadata-imports/no-circular-imports
All findings
Location Rule Message
🟡 src/components/Alerts/AlertDetails/AlertRecentEventsTab/AlertRecentEventsTab.tsx:101: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:317: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:330:6 react-hooks/exhaustive-deps React Hook useEffect has a missing dependency: 'getAlertRecentEvents'. Either include it or remove the dependency array.
🟡 src/components/Alerts/DestinationFormItem/DestinationSelectItem/DestinationConfigField/DestinationConfigField.tsx:98:9 react-hooks/exhaustive-deps The 'receivers' logical expression could make the dependencies of useCallback Hook (at line 124) change on every render. To fix this, wrap the initialization of
🟡 src/components/Alerts/DestinationFormItem/DestinationSelectItem/DestinationConfigField/DestinationConfigField.tsx:98:9 react-hooks/exhaustive-deps The 'receivers' logical expression could make the dependencies of useCallback Hook (at line 134) change on every render. To fix this, wrap the initialization of
🟡 src/components/Alerts/DestinationFormItem/DestinationSelectItem/DestinationSelectItem.tsx:59:9 react-hooks/exhaustive-deps The 'destinationItem' logical expression could make the dependencies of useMemo Hook (at line 98) change on every render. To fix this, wrap the initialization o
🟡 src/components/AppModeSwitcher/AppModeSwitcher.tsx:259:19 openmetadata-ui-patterns/no-non-adaptive-palette Raw palette class "tw:bg-blue-600" is static — it does not flip in dark mode. Use the theme-adapting "utility-" variant (tw:bg-utility-blue-600) or a semantic t
🟡 src/components/AppModeSwitcher/InterfaceModeMenuItem.tsx:29:3 openmetadata-ui-patterns/no-non-adaptive-palette Raw palette class "tw:hover:bg-blue-50" is static — it does not flip in dark mode. Use the theme-adapting "utility-" variant (tw:bg-utility-blue-50) or a semant
🟡 src/components/BulkEditEntity/BulkEditEntity.component.tsx:238:6 react-hooks/exhaustive-deps React Hook useCallback has a missing dependency: 'newRowConfig?.defaults'. Either include it or remove the dependency array.
🟡 src/components/Classifications/ClassificationDetails/ClassificationDetails.tsx:307:8 react-hooks/exhaustive-deps React Hook useCallback has missing dependencies: 'isVersionView' and 'navigate'. Either include them or remove the dependency array.
🟡 src/components/Classifications/ClassificationDetails/ClassificationDetails.tsx:471:8 react-hooks/exhaustive-deps React Hook useMemo has a missing dependency: 't'. Either include it or remove the dependency array.
🟡 src/components/Classifications/ClassificationDetails/ClassificationDetails.tsx:547:7 react-hooks/exhaustive-deps React Hook useMemo has a missing dependency: 't'. Either include it or remove the dependency array.
🟡 src/components/Classifications/ClassificationDetails/ClassificationDetails.tsx:597:8 react-hooks/exhaustive-deps React Hook useEffect has missing dependencies: 'fetchClassificationChildren', 'handlePageChange', and 'isAddingTag'. Either include them or remove the dependenc
🟡 src/components/ContextCenter/CreateMemoryModal/CreateMemoryModal.component.tsx:312:20 openmetadata-ui-patterns/no-non-adaptive-palette Raw palette class "tw:border-warning-300, tw:bg-warning-50" is static — it does not flip in dark mode. Use the theme-adapting "utility-" variant (tw:border-util
🟡 src/components/ContextCenter/CreateMemoryModal/CreateMemoryModal.component.tsx:314:19 openmetadata-ui-patterns/no-non-adaptive-palette Raw palette class "tw:text-warning-700" is static — it does not flip in dark mode. Use the theme-adapting "utility-" variant (tw:text-utility-warning-700) or a
🟡 src/components/ContextCenter/CreateMemoryModal/CreateMemoryModal.component.tsx:320:21 openmetadata-ui-patterns/no-non-adaptive-palette Raw palette class "tw:text-warning-700" is static — it does not flip in dark mode. Use the theme-adapting "utility-" variant (tw:text-utility-warning-700) or a
🟡 src/components/ContextCenter/CreateMemoryModal/CreateMemoryModal.component.tsx:327:21 openmetadata-ui-patterns/no-non-adaptive-palette Raw palette class "tw:text-warning-700" is static — it does not flip in dark mode. Use the theme-adapting "utility-" variant (tw:text-utility-warning-700) or a
🟡 src/components/ContextCenter/DocumentsView/DocumentFolderView.component.tsx:529: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/ContextCenter/PersonaAIContext/ContextPreviewModal/ContextPreviewModal.component.tsx:303:25 react-hooks/exhaustive-deps The ref value 'previewRequestRef.current' will likely have changed by the time this effect cleanup function runs. If this ref points to a node rendered by React
🟡 src/components/ContextCenter/PersonaAIContext/ContextRuleEditor/ContextRuleEditor.component.tsx:287:27 react-hooks/exhaustive-deps The ref value 'previewRequestRef.current' will likely have changed by the time this effect cleanup function runs. If this ref points to a node rendered by React
🟡 src/components/ContextCenter/PersonaAIContext/VersionHistoryDrawer/VersionHistoryDrawer.component.tsx:134:7 openmetadata-imports/review-sequential-api-calls Review these sequential API requests. If they are independent, start them together with Promise.all/Promise.allSettled; keep sequencing only when data-dependent
🟡 src/components/Customization/GenericWidget/GenericWidget.tsx:33: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/Customization/GenericWidget/GenericWidget.tsx:34: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/Customization/GenericWidget/GenericWidget.tsx:35: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/Customization/GenericWidget/GenericWidget.tsx:137:6 react-hooks/exhaustive-deps React Hook useMemo has missing dependencies: 'data' and 'widgetName'. Either include them or remove the dependency array.
🟡 src/components/DataAssets/DataAssetsHeader/DataAssetsHeader.component.tsx:254:5 react-hooks/exhaustive-deps React Hook useMemo has a missing dependency: 'hasFollowers'. Either include it or remove the dependency array.
🟡 src/components/DataAssets/DataAssetsHeader/DataAssetsHeader.component.tsx:378:6 react-hooks/exhaustive-deps React Hook useEffect has missing dependencies: 'entityType', 'fetchActiveAnnouncement', 'fetchContainerAncestors', and 'fetchDQFailureCount'. Either include the
🟡 src/components/DataAssets/DataAssetsHeader/DataAssetsHeader.component.tsx:668:6 react-hooks/exhaustive-deps React Hook useCallback has a missing dependency: 'dataAsset.fullyQualifiedName'. Either include it or remove the dependency array.
🟡 src/components/DataAssets/DataAssetsHeader/DataAssetsHeader.component.tsx:744:6 react-hooks/exhaustive-deps React Hook useEffect has a missing dependency: 'fetchDataContract'. Either include it or remove the dependency array.
🟡 src/components/DataContract/ContractDetailTab/ContractDetail.tsx:180: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:198: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:214:9 react-hooks/exhaustive-deps The 'handleRunNow' function makes the dependencies of useCallback Hook (at line 281) change on every render. To fix this, wrap the definition of 'handleRunNow'
🟡 src/components/DataContract/ContractDetailTab/ContractDetail.tsx:393: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:443: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:447: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:547: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:564: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:599:42 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/ContractDetailTab/ContractDetail.tsx:633:33 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:649:33 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:670: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:687: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:706: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:725: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:808: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:858: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:876: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/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

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

@gitar-bot

gitar-bot Bot commented Oct 1, 2026

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

🟡 Medium risk · A broad icon migration changes shared assets and rendering across UI screens.

Migrates all icon imports from @untitledui/icons to @openmetadata/ui-core-components/icons, eliminating the external dependency and centralizing icon management across ~180 source files. All six issues discovered during migration—stray imports in tag-select.tsx and TreeSelect story, icon swaps in column filter and QueryCard, ICON_MAP key rename breaking saved state, and duplicate jest.mock dropping the Hint mock—have been resolved.

✅ 7 closed
✅ Bug: tag-select.tsx still imports the removed @untitledui/icons package

📄 openmetadata-ui-core-components/src/main/resources/ui/package.json
This PR removes @untitledui/icons from both package.json files, the yarn.lock files and the Vite externals. But components/base/select/tag-select.tsx:13 still has import { ChevronDown, XClose } from '@untitledui/icons'. The core-components barrel re-exports this file (components/index.ts:80), so the core-components library build and every consumer of @openmetadata/ui-core-components will fail with a missing-module error once the package is gone from node_modules. Point the import at the local icons.

✅ Bug: Column filter icon swapped to CodeSquare01 though Columns01 exists

📄 openmetadata-ui/src/main/resources/ui/src/components/observability/common/FilterChip/FilterChip.tsx:14 📄 openmetadata-ui/src/main/resources/ui/src/components/observability/common/FilterChip/FilterChip.tsx:44
Columns01 is exported from the new barrel (index.ts:88), but FilterChip changes the TestCaseType.column option icon to CodeSquare01, a code glyph that has nothing to do with columns. The same kind of unneeded swap turns Edit03, Edit05 and Edit02 into Edit01, User03 into User01, Settings02 into Settings01, Trash02 into Trash01 and UploadCloud02 into UploadCloud01, even though every one of the original names is exported. That contradicts the PR's claim that icons 'render identically'. Keep the original icon names.

✅ Bug: QueryCard still imports Copy, which this PR removed from the barrel

📄 openmetadata-ui-core-components/src/main/resources/ui/src/icons/index.ts:95-96
index.ts drops export { Copy } from './Copy' and deletes copy.svg/Copy.tsx (it is renamed to Copy07). components/Database/TableQueries/QueryCard.tsx:15 still has import { Copy } from '@openmetadata/ui-core-components/icons', so the name no longer exists. That fails type-checking, and in a Rolldown/ESM build Copy either errors or resolves to undefined, which crashes when the query card renders. Import Copy07 (or Copy01) under an alias instead.

✅ Bug: Renaming ICON_MAP key SearchLg→Search breaks already-saved icons

📄 openmetadata-ui/src/main/resources/ui/src/utils/IconUtils.tsx:85 📄 openmetadata-ui/src/main/resources/ui/src/utils/IconUtils.tsx:180 📄 openmetadata-ui-core-components/src/main/resources/ui/src/components/foundations/icon/icon.constants.ts:74 📄 openmetadata-ui/src/main/resources/ui/src/components/common/IconPicker/IconPicker.constants.ts:89
Icon picker names are stored as style.iconURL on domains, data products, glossary terms and tags. Both resolvers look the saved name up in ICON_MAP: getEntityAvatarProps in IconUtils.tsx:180 and Icon in core icon.tsx:63. This PR renames the key from SearchLg to Search in both maps and in AVAILABLE_ICONS, so any entity already saved with iconURL: 'SearchLg' no longer matches. Those entities quietly show the default Globe/Cube icon, or the fallback in Icon, and the picker no longer shows their saved icon as selected. Keep SearchLg as an alias key in both maps so stored data still resolves. You could also keep the picker name as SearchLg, or add a data migration.

✅ Bug: TreeSelect story still imports removed Edit icon export

📄 openmetadata-ui-core-components/src/main/resources/ui/src/icons/index.ts:136-139
This PR removes export { Edit } from icons/index.ts (it is now Edit01/Edit02/…), but src/stories/TreeSelect.stories.tsx still has import { Edit, GlossaryTerm } from '../icons'. It was the only import left pointing at a removed barrel export, so Storybook and any typecheck that includes stories will fail on it. Change the import to Edit01 as Edit, or whichever variant matches the old glyph.

...and 2 more closed from earlier reviews

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 UI UI specific issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants