Repository navigation
feat(ui): add designer icons to core-ui and clean up unused assets/svg - #36954
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! |
|
| Count | Rule |
|---|---|
| 11 | react-hooks/exhaustive-deps |
All findings
| Location | Rule | Message | |
|---|---|---|---|
| 🟡 | 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/Database/Profiler/TableProfiler/QualityTab/QualityTab.component.tsx:204:6 |
react-hooks/exhaustive-deps |
React Hook useMemo has a missing dependency: 't'. Either include it or remove the dependency array. |
| 🟡 | src/components/Database/Profiler/TableProfiler/QualityTab/QualityTab.component.tsx:224:6 |
react-hooks/exhaustive-deps |
React Hook useEffect has a missing dependency: 'fetchIngestionPipelineCount'. Either include it or remove the dependency array. |
| 🟡 | src/components/Database/Profiler/TableProfiler/QualityTab/QualityTab.component.tsx:226:9 |
react-hooks/exhaustive-deps |
The 'handleTestCasePageChange' function makes the dependencies of useMemo Hook (at line 377) change on every render. Move it inside the useMemo callback. Altern |
| 🟡 | src/components/Database/Profiler/TableProfiler/QualityTab/QualityTab.component.tsx:354:5 |
react-hooks/exhaustive-deps |
React Hook useMemo has missing dependencies: 'paging.total' and 't'. Either include them or remove the dependency array. |
| 🟡 | src/components/Database/Profiler/TableProfiler/TableProfilerProvider.tsx:210:6 |
react-hooks/exhaustive-deps |
React Hook useMemo has a missing dependency: 'getProfileSampleValue'. Either include it or remove the dependency array. |
| 🟡 | src/components/Database/Profiler/TableProfiler/TableProfilerProvider.tsx:235:5 |
react-hooks/exhaustive-deps |
React Hook useCallback has an unnecessary dependency: 'allTestCases'. Either exclude it or remove the dependency array. |
| 🟡 | src/components/Database/Profiler/TableProfiler/TableProfilerProvider.tsx:345:6 |
react-hooks/exhaustive-deps |
React Hook useEffect has missing dependencies: 'fetchLatestProfilerData', 'isTableDeleted', and 'tableProfiler'. Either include them or remove the dependency ar |
| 🟡 | src/components/Database/Profiler/TableProfiler/TableProfilerProvider.tsx:356:6 |
react-hooks/exhaustive-deps |
React Hook useEffect has a missing dependency: 'fetchAllTests'. Either include it or remove the dependency array. |
| 🟡 | src/components/Database/Profiler/TableProfiler/TableProfilerProvider.tsx:382:6 |
react-hooks/exhaustive-deps |
React Hook useEffect has a missing dependency: 'fetchTestCaseSummary'. Either include it or remove the dependency array. |
| 🟡 | src/components/Database/Profiler/TableProfiler/TableProfilerProvider.tsx:407:6 |
react-hooks/exhaustive-deps |
React Hook useMemo has a missing dependency: 'fetchAllTests'. Either include it or remove the dependency array. |
Fix locally (fast - only checks files changed in this branch):
make ui-checkstyle-changed- Add the Design System icon sets (entity/service, filled variants, designer replacements for assets/svg icons) to ui-core-components as generated icons. - Merge visually identical core-ui icons and repoint their imports. - Remove assets/svg files that are not referenced by OMD or Collate. - Light knockout tints use the bg-primary token so they follow dark mode.
e54a1a1 to
e46f743
Compare
…, BarChart, ManageCharts, MetadataCompleteness, RecentChats, StreamingLoader, SummaryChart, Usage)
Code Review ✅ Approved 2 closed / 2 findings🟡 Medium risk · Replacing many UI icons and deleting 301 SVG assets could leave screens with missing or misleading icons if runtime references were missed. Adds designer icons to core-ui and removes 301 unused ✅ 2 closed✅ Bug: NewConversationFilled plus-sign knockout hardcoded white, ignores dark mode
Closed: Quality: DatabaseService uses a 1.75 stroke, against the Accepted icon-spec ADR
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 |
|



Describe your changes:
Fixes #
First step of migrating the UI from
assets/svgicons to the first-party@openmetadata/ui-core-components/iconslibrary, so icons share one colour, weight and size spec. The actualassets/svg→ core-ui swaps are a follow-up PR; this PR lands the icon set and the clean-up the swap depends on.Core-ui icons
assets/svgicons (e.g.PlayFilled,StatusRunning,Connections,ExpandPanel/CollapsePanel,Alerts,FullScreen).tw:fill-bg-primary/tw:stroke-bg-primary(white fallback) so filled icons follow dark mode.Notification's dot usestw:fill-utility-error-500.Expand01→Maximize01,WorkflowEnd→Flag01,FailedTests/Kill→XCircle) and repoints every import in OMD and core-components. Icons still referenced by OMD or Collate were kept.assets/svg clean-up
assets/svgfiles referenced nowhere in OMD or Collate (path imports,@assetsalias used bycollate-local-webserver, globs and name-based loaders checked;*Application.svgapp logos kept).Collate: companion PR updates Collate imports (
NoDimension→Dimension,Expand01→Maximize01) and removes Collate's unused svgs.Type of change:
High-level design:
openmetadata-ui-core-components/.../ui/icons(icons-customfor brand colours);yarn icons:generateproducessrc/icons/*.tsx+index.ts. Only icons touched here are regenerated; unrelated generator drift is not included.import { … } from '@openmetadata/ui-core-components/icons'(and relative core imports) in OMD and Collate before deletion.Tests:
Use cases covered
Verification
tsc, ESLint, Prettier,vite build✅tsc:check✅ (only the 2 errors that also exist onmain:IngestionWorkflowForm.tsx,OntologyIriInput.test.tsx), ESLint on changed files ✅, Jest--findRelatedTests991 suites / 13,359 tests ✅,vite build✅vite build) ✅Checklist:
Working on <issue-number>: <title>🤖 Generated with Claude Code