Skip to content

fix(ui): classification tags display configured custom icons (1.13) - #32232

Merged
anuj-kumary merged 9 commits into
1.13from
fix/tag-icon-classification-1.13
Sep 1, 2026
Merged

anuj-kumary merged 9 commits into
1.13from
fix/tag-icon-classification-1.13

Conversation

@anuj-kumary

@anuj-kumary anuj-kumary commented Aug 28, 2026 •

Copy link
Copy Markdown
Member

Summary

Screenshot 2026-08-28 at 6 02 11 PM Screenshot 2026-08-29 at 8 25 03 PM Screenshot 2026-08-28 at 6 02 17 PM Screenshot 2026-08-29 at 8 25 08 PM

Test plan

  • Create a classification tag with a custom icon configured
  • Verify the custom icon renders in all tag display views (entity detail pages, table columns, etc.)
  • Verify tags without a custom icon still show the default tag icon

🤖 Generated with Claude Code

Greptile Summary

The PR forwards configured classification icon URLs into TagChip while preserving the default icon when no URL is configured.

  • Adds the shared Icon wrapper to the muiTags rendering path.
  • Uses Tag01 when a configured icon cannot be loaded.

Confidence Score: 5/5

The PR appears safe to merge.

No blocking failure remains.

Important Files Changed

Filename Overview
openmetadata-ui/src/main/resources/ui/src/components/Tag/TagsViewer/TagsViewer.tsx Passes configured tag icons to TagChip with explicit failed-load and absent-icon fallback behavior.

Reviews (5): Last reviewed commit: "Merge branch '1.13' into fix/tag-icon-cl..." | Re-trigger Greptile

The muiTags rendering path in TagsViewer omitted the icon prop when
rendering TagChip, so classification tags with a configured custom icon
always showed the default Tag01 fallback instead.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
@anuj-kumary
anuj-kumary requested a review from a team as a code owner August 28, 2026 10:31
@github-actions

Copy link
Copy Markdown
Contributor

❌ PR checklist incomplete

This PR cannot be merged until the following are addressed on its linked issue:

  • Linked issue open-metadata/openmetadata-collate#6226 does not exist or is not accessible.

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.

@anuj-kumary anuj-kumary self-assigned this Aug 28, 2026
@anuj-kumary anuj-kumary added the safe to test Add this label to run secure Github workflows on PRs label Aug 28, 2026
@github-actions github-actions Bot added the UI UI specific issues label Aug 28, 2026
@anuj-kumary anuj-kumary added skip-pr-checks Bypass PR metadata validation check and removed UI UI specific issues labels Aug 28, 2026
When a custom icon URL fails to load, the Icon component now degrades
to the default Tag01 glyph instead of rendering no icon at all.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
@github-actions github-actions Bot added the UI UI specific issues label Aug 28, 2026
@github-actions

Copy link
Copy Markdown
Contributor

❌ UI Checkstyle Failed

❌ ESLint + Prettier + Organise Imports (src)

One or more source files have linting or formatting issues.

❌ Core Components - I18n Sync

Core-components t() keys, locale files, or language-set are out of sync. Run yarn check-i18n-all locally.

❌ Tailwind Audit

Hardcoded Tailwind values found. Use a design-system utility (run yarn tw-audit:report for the token each value maps to).

❌ Antd + Less Deprecation Guard

A new antd import or new .less file was added. Use UntitledUI + Tailwind for new work.

Affected files

at Function._resolveFilename (node:internal/modules/cjs/loader:1401:15)
at defaultResolveImpl (node:internal/modules/cjs/loader:1057:19)
at resolveForCJSWithHooks (node:internal/modules/cjs/loader:1062:22)
at Function._load (node:internal/modules/cjs/loader:1211:37)
at TracingChannel.traceSync (node:diagnostics_channel:322:14)
at wrapModuleLoad (node:internal/modules/cjs/loader:235:24)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:171:5)
at node:internal/main/run_main_module:36:49 {


Fix locally (fast - only checks files changed in this branch):

make ui-checkstyle-changed

@github-actions

github-actions Bot commented Aug 28, 2026 •

Copy link
Copy Markdown
Contributor

Jest test Coverage

UI tests summary

Lines Statements Branches Functions
Coverage: 63%
63.52% (61260/96438) 44.9% (33673/74981) 46.79% (10259/21924)

@gitar-bot

gitar-bot Bot commented Sep 1, 2026

Copy link
Copy Markdown
Code Review ✅ Approved 1 resolved / 1 findings

Fixes classification tags to display configured custom icons in the muiTags rendering path by passing tag.style?.iconURL to TagChip's icon prop, with Tag01 fallback for failed icon loads. Tags without a configured icon retain the default fallback behavior.

✅ 1 resolved
✅ Edge Case: Failed custom icon load shows no icon instead of Tag01

📄 openmetadata-ui/src/main/resources/ui/src/components/Tag/TagsViewer/TagsViewer.tsx:82-89
When tag.style?.iconURL is set but the image fails to load (or is not a valid image URL), Icon renders its fallback, which defaults to null — so the chip shows no icon at all rather than the default Tag01 used for tags without an icon. This is a slightly inconsistent fallback. Consider passing a fallback={<Tag01 size={14} />} to the Icon so a broken/unreachable custom icon still degrades to the default tag glyph.

Options

Display: compact → Showing less information.

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 Sep 1, 2026

Copy link
Copy Markdown

@anuj-kumary
anuj-kumary merged commit 96980ba into 1.13 Sep 1, 2026
84 checks passed
@anuj-kumary
anuj-kumary deleted the fix/tag-icon-classification-1.13 branch September 1, 2026 08:58

This branch was previously deployed

1 inactive deployment
test — cf1dd2c6 Deployed Sep 1, 2026 by anuj-kumary via playwright-ci-postgresql (1, 6) #76682
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 skip-pr-checks Bypass PR metadata validation check UI UI specific issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants