Skip to content

feat(ui): add designer icons to core-ui and clean up unused assets/svg - #36954

Merged
Rohit0301 merged 9 commits into
mainfrom
Rohit0301/icon-migration-to-core-ui
Nov 4, 2026
Merged

Rohit0301 merged 9 commits into
mainfrom
Rohit0301/icon-migration-to-core-ui

Conversation

@Rohit0301

@Rohit0301 Rohit0301 commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

Describe your changes:

Fixes #

First step of migrating the UI from assets/svg icons to the first-party @openmetadata/ui-core-components/icons library, so icons share one colour, weight and size spec. The actual assets/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

  • Adds the Design System icon sets as generated core-ui icons: entity/service icons (DS18), filled/outline variants, and the designer's replacements for assets/svg icons (e.g. PlayFilled, StatusRunning, Connections, ExpandPanel/CollapsePanel, Alerts, FullScreen).
  • Light knockout tints use tw:fill-bg-primary / tw:stroke-bg-primary (white fallback) so filled icons follow dark mode. Notification's dot uses tw:fill-utility-error-500.
  • Merges visually identical core-ui icons (e.g. 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.
  • Normalises 24-grid sources and strokes to the 20-grid / 1.3 spec (ADR:2026-10-13-core-icons-and-buttons-follow-the-figma-icon-spec).

assets/svg clean-up

  • Removes 301 assets/svg files referenced nowhere in OMD or Collate (path imports, @assets alias used by collate-local-webserver, globs and name-based loaders checked; *Application.svg app logos kept).

Collate: companion PR updates Collate imports (NoDimension→Dimension, Expand01→Maximize01) and removes Collate's unused svgs.

Type of change:

  • Improvement

High-level design:

  • SVG sources live in openmetadata-ui-core-components/.../ui/icons (icons-custom for brand colours); yarn icons:generate produces src/icons/*.tsx + index.ts. Only icons touched here are regenerated; unrelated generator drift is not included.
  • Removed/merged icon names were checked against every import { … } from '@openmetadata/ui-core-components/icons' (and relative core imports) in OMD and Collate before deletion.

Tests:

Use cases covered

  • All core-ui icon imports in OMD and Collate resolve to an exported icon.
  • Screens using merged icons render the kept icon (inbox activity, workflow nodes, lineage nav, global settings, knowledge-graph/ontology toolbars, data-contract SLA, table profiler).

Verification

  • core-components: tsc, ESLint, Prettier, vite build ✅
  • OMD: tsc:check ✅ (only the 2 errors that also exist on main: IngestionWorkflowForm.tsx, OntologyIriInput.test.tsx), ESLint on changed files ✅, Jest --findRelatedTests 991 suites / 13,359 tests ✅, vite build ✅
  • Collate built against this branch (production vite build) ✅

Checklist:

  • I have read the CONTRIBUTING document.
  • My PR title is Working on <issue-number>: <title>
  • 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.

🤖 Generated with Claude Code

@Rohit0301
Rohit0301 requested a review from a team as a code owner November 3, 2026 13:31
@Rohit0301
Rohit0301 requested a review from harsh-vador November 3, 2026 13:31
@github-actions

github-actions Bot commented Nov 3, 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 Nov 3, 2026
@github-actions

github-actions Bot commented Nov 3, 2026

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!

@Rohit0301 Rohit0301 self-assigned this Nov 3, 2026
@Rohit0301 Rohit0301 added safe to test Add this label to run secure Github workflows on PRs and removed safe to test Add this label to run secure Github workflows on PRs labels Nov 3, 2026
@github-actions

github-actions Bot commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

⚠️ UI Checkstyle passed — lint findings in changed files

🔍 ESLint findings in this PR's files — 0 error(s), 11 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), 11 warning(s) across 3 changed file(s).

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

@github-actions

github-actions Bot commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

Jest test Coverage

UI tests summary

Lines Statements Branches Functions
Coverage: 81%
81.35% (138230/169902) 68.38% (49847/72894) 71.44% (28001/39195)

- 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.
@Rohit0301
Rohit0301 force-pushed the Rohit0301/icon-migration-to-core-ui branch from e54a1a1 to e46f743 Compare November 4, 2026 06:40
@gitar-bot

gitar-bot Bot commented Nov 4, 2026

Copy link
Copy Markdown
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 assets/svg files, with merged icons repointed across OMD and core-components. Resolved the NewConversationFilled plus-sign knockout that hardcoded white, so it now follows dark mode via tw:fill-bg-primary. No open issues found.

✅ 2 closed
✅ Bug: NewConversationFilled plus-sign knockout hardcoded white, ignores dark mode

📄 openmetadata-ui-core-components/src/main/resources/ui/src/icons/NewConversationFilled.tsx:40-44
The PR says filled icon knockouts use tw:stroke-bg-primary with a white fallback so they follow dark mode, and the other new *Filled icons do this (for example ArticleFilled and AlertsFilled). NewConversationFilled doesn't. Its plus-sign path has only stroke="#fff", because the source icons/new-conversation-filled.svg is missing class="tw:stroke-bg-primary". On a dark background the plus stays pure white instead of matching the surface, so this icon looks different from the rest of the filled set. Add the class to the SVG source and run yarn icons:generate again.

Closed: Quality: DatabaseService uses a 1.75 stroke, against the Accepted icon-spec ADR

📄 openmetadata-ui-core-components/src/main/resources/ui/src/icons/DatabaseService.tsx:40-44
ADR:2026-10-13-core-icons-and-buttons-follow-the-figma-icon-spec says "Every outline icon uses a 1.3 stroke". Its v2 amendment allows exceptions only for LayoutRows, LayoutColumns and ChevronSelectorVertical02. The redrawn DatabaseService adds a second path, the two indicator dots, with strokeWidth={1.75}. The previous version drew those dots at 1.3. This outline icon now breaks the Accepted record without an amendment. Either redraw the dots at 1.3, or add a v3 amendment to the ADR that says: "DatabaseService draws its indicator dots with a 1.75 stroke on the 20 grid."

Verification

Rules No rules evaluated

Functional validation Not enabled

Set up

Auto-approval Not enabled

Set up

For more verification details, comment gitar display:verbose.

Options

Display: compact → Showing compact verification results.

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 Nov 4, 2026

Copy link
Copy Markdown

@Rohit0301
Rohit0301 merged commit d55b6ed into main Nov 4, 2026
63 of 67 checks passed
@Rohit0301
Rohit0301 deleted the Rohit0301/icon-migration-to-core-ui branch November 4, 2026 14:06
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.

2 participants