Repository navigation
feat(ui): migrate all icons from @untitledui/icons to core-ui - #34141
Conversation
❌ 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! |
🔄 Playwright impact map auto-refreshedThis PR touched specs or UI source that changed the source→spec routing map. I regenerated 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 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 |
|
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! |
|
✅ SSO Login Nightly — PASSED View workflow run · Commit
Totals: 79 passed · 0 failed · 0 flaky · 0 skipped · duration 19m 55s |
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]>
…w untitled imports
… and NotificationAlertDetail tests
🚦 Removed from the merge queue —
|
🔄 Playwright impact map auto-refreshedThis PR touched specs or UI source that changed the source→spec routing map. I regenerated 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 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 |
|
| 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
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 ✅ 7 closed✅ Bug: tag-select.tsx still imports the removed @untitledui/icons package
✅ Bug: Column filter icon swapped to CodeSquare01 though Columns01 exists
✅ Bug: QueryCard still imports
|
| Compact |
|
Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source
|



Describe your changes:
Fixes 6923
Migrates all icon imports from the
@untitledui/iconsthird-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.@untitledui/iconsand added 18 new Figma-exported icons intoopenmetadata-ui-core-componentsIcEditPrimary) to their UntitledUI convention names (e.g.Edit02)@untitledui/iconsimports across ~180 source files to@openmetadata/ui-core-components/icons@untitledui/iconsfrom dependencies, Vite externals, and barrel-optimize plugin configpdfjs-distdependency (build fix)Type of change:
High-level design:
Approach: All icons that were previously imported from
@untitledui/iconsare now re-exported fromopenmetadata-ui-core-components/icons/. The SVG files live inopenmetadata-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:
Edit02,ChevronDown) rather than the old domain names (IcEditPrimary,IcChevronDown)@untitledui/file-iconsis intentionally kept — it's a separate package still in useTests:
Use cases covered
Unit tests
Backend integration tests
Ingestion integration tests
Playwright (UI) tests
Manual testing performed
yarn build— verified production build completes without errorspdfjs-distresolves correctly after restoring the dependencyUI screen recording / screenshots:
Not applicable — icons render identically, only import source changed.
Checklist:
Fixes <issue-number>: <short explanation>Fixes #<issue-number>above.