Skip to content

Fixed certification icon size in all the pages#29786

Open
Rohit0301 wants to merge 1 commit into
mainfrom
certification-icon-fix
Open

Fixed certification icon size in all the pages#29786
Rohit0301 wants to merge 1 commit into
mainfrom
certification-icon-fix

Conversation

@Rohit0301

@Rohit0301 Rohit0301 commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

Describe your changes:

Screenshot 2026-07-07 at 12 02 06 AM Screenshot 2026-07-07 at 12 46 35 AM Screenshot 2026-07-07 at 12 02 23 AM Screenshot 2026-07-07 at 12 03 07 AM Screenshot 2026-07-07 at 12 05 21 AM

Fixes #

I worked on ... because ...

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:

N/A — small change.

Tests:

Use cases covered

Unit tests

Backend integration tests

Ingestion integration tests

Playwright (UI) tests

Manual testing performed

UI screen recording / screenshots:

Not applicable.

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.

Greptile Summary

This PR updates certification icon sizing and spacing in the UI. The main changes are:

  • Smaller shared certification image dimensions.
  • Tailwind spacing around certification tags in explore cards.
  • Updated alignment in the certification popover card.
  • Removed named certification tag background and level text colors.

Confidence Score: 4/5

Named certification tags lose their configured visual styling in reachable UI surfaces.

  • The changed tag component stops using the configured certification color for named chips.
  • The changed Less file removes the only Bronze/Silver/Gold text color rules while the component still emits those classes.
  • The remaining changes are small UI layout updates with limited blast radius.

CertificationTag.tsx and certification-tag.less need follow-up.

Important Files Changed

Filename Overview
openmetadata-ui/src/main/resources/ui/src/components/common/CertificationTag/CertificationTag.tsx Removes the tinted background from named certification tags.
openmetadata-ui/src/main/resources/ui/src/components/common/CertificationTag/certification-tag.less Changes certification image sizes and removes level-specific text colors.
openmetadata-ui/src/main/resources/ui/src/components/ExploreV1/ExploreSearchCard/ExploreSearchCard.tsx Replaces a legacy left-padding helper with a prefixed Tailwind margin utility.
openmetadata-ui/src/main/resources/ui/src/components/Certification/certification.less Centers certification card content in the popover.

Reviews (1): Last reviewed commit: "Fixed certification icon size in all the..." | Re-trigger Greptile

Greptile also left 3 inline comments on this PR.

Context used (3)

  • Context used - CLAUDE.md (source)
  • Context used - openmetadata-ui-core-components/CLAUDE.md (source)
  • Context used - AGENTS.md (source)

@Rohit0301 Rohit0301 self-assigned this Jul 6, 2026
@Rohit0301 Rohit0301 added the safe to test Add this label to run secure Github workflows on PRs label Jul 6, 2026
@Rohit0301 Rohit0301 requested a review from a team as a code owner July 6, 2026 18:37
@github-actions

github-actions Bot commented Jul 6, 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.

@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 Jul 6, 2026
@gitar-bot

gitar-bot Bot commented Jul 6, 2026

Copy link
Copy Markdown
Code Review ✅ Approved

Uniformly standardizes the certification icon size across all pages to improve visual consistency. No issues found.

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 👍 / 👎 | Gitar

Comment on lines 56 to 60
const tagStyle = showName
? {
backgroundColor: certification.tagLabel.style?.color
? certification.tagLabel.style?.color + '33'
: '#f8f8f8',
padding: '2px 6px',
}
: {};

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Named Tags Lose Background

When showName is true, the asset header and certification widget still pass certifications with tagLabel.style.color, but this branch no longer uses that color to fill the chip. Named certification tags now render as transparent padded text instead of the previous tinted chip, so configured Gold/Silver/Bronze/custom colors are dropped in the main named-tag surfaces.

Suggested change
const tagStyle = showName
? {
backgroundColor: certification.tagLabel.style?.color
? certification.tagLabel.style?.color + '33'
: '#f8f8f8',
padding: '2px 6px',
}
: {};
const tagStyle = showName
? {
backgroundColor: certification.tagLabel.style?.color
? certification.tagLabel.style?.color + '33'
: '#f8f8f8',
padding: '2px 6px',
}
: {};

Context Used: CLAUDE.md (source)

Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!

Comment on lines 44 to 48
span.certification-text {
color: @grey-700;
font-size: 12px;
font-size: 14px;
max-width: 120px;
}

span.bronze {
color: @red-16;
}

span.silver {
color: @grey-700;
}

span.gold {
color: @yellow-11;
}
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Certification Levels Share Color

The component still adds bronze, silver, or gold as the text class, but this hunk removes the only level-specific rules for those classes. Named certifications without a distinct icon now inherit the same text color, so users can no longer distinguish the certification level from the text styling.

Suggested change
span.certification-text {
color: @grey-700;
font-size: 12px;
font-size: 14px;
max-width: 120px;
}
span.bronze {
color: @red-16;
}
span.silver {
color: @grey-700;
}
span.gold {
color: @yellow-11;
}
}
span.certification-text {
color: @grey-700;
font-size: 14px;
max-width: 120px;
}
span.bronze {
color: @red-16;
}
span.silver {
color: @grey-700;
}
span.gold {
color: @yellow-11;
}
}

Context Used: CLAUDE.md (source)

Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!

Comment on lines 71 to 74
.certification-card-content {
display: flex;
align-items: flex-start;
align-items: center;
gap: 12px;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Wrapped Descriptions Misalign Icons

The certification popover renders a fixed-size icon next to a title and free-form description inside a narrow card. When that description wraps, align-items: center centers the icon against the whole text block instead of the first line, making longer certification cards look vertically off compared with the previous top-aligned layout.

Suggested change
.certification-card-content {
display: flex;
align-items: flex-start;
align-items: center;
gap: 12px;
.certification-card-content {
display: flex;
align-items: flex-start;
gap: 12px;

Context Used: CLAUDE.md (source)

@github-actions

github-actions Bot commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

Jest test Coverage

UI tests summary

Lines Statements Branches Functions
Coverage: 63%
63.78% (72754/114068) 46.93% (42353/90246) 48.21% (13025/27013)

@sonarqubecloud

sonarqubecloud Bot commented Jul 6, 2026

Copy link
Copy Markdown

@github-actions

github-actions Bot commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

🔴 Playwright Results — 2 failure(s), 20 flaky

✅ 4513 passed · ❌ 2 failed · 🟡 20 flaky · ⏭️ 55 skipped

Shard Passed Failed Flaky Skipped
🟡 Shard 1 422 0 3 33
🔴 Shard 2 813 2 8 4
🟡 Shard 3 816 0 1 12
🟡 Shard 4 817 0 2 5
✅ Shard 5 830 0 0 0
🟡 Shard 6 815 0 6 1

Genuine Failures (failed on all attempts)

Features/BulkImport.spec.ts › Database (shard 2)
Error: �[2mexpect(�[22m�[31mlocator�[39m�[2m).�[22mtoContainText�[2m(�[22m�[32mexpected�[39m�[2m)�[22m failed

Locator: locator('.rdg-cell-details')
Timeout: 15000ms
�[32m- Expected  - 1�[39m
�[31m+ Received  + 1�[39m

�[2m  Array [�[22m
�[31m+   "#FIELD_REQUIRED: Field 1 is required;#FIELD_REQUIRED: Field 13 is required",�[39m
�[2m    "Entity updated",�[22m
�[2m    "Entity updated",�[22m
�[2m    "Entity updated",�[22m
�[2m    "Entity updated",�[22m
�[2m    "Entity updated",�[22m
�[2m    "Entity updated",�[22m
�[2m    "Entity updated",�[22m
�[2m    "Entity updated",�[22m
�[32m-   "Entity created",�[39m
�[2m    "Entity created",�[22m
�[2m    "Entity updated",�[22m
�[2m    "Entity created",�[22m
�[2m  ]�[22m

Call log:
�[2m  - Expect "toContainText" with timeout 15000ms�[22m
�[2m  - waiting for locator('.rdg-cell-details')�[22m
�[2m    19 × locator resolved to 12 elements�[22m

Features/ContextCenterPermission.spec.ts › Data Steward can edit content, title, owners, tags, and glossary terms but cannot add article, domain, reviewer, data product, or data assets (shard 2)
Error: �[2mexpect(�[22m�[31mlocator�[39m�[2m).�[22mtoBeVisible�[2m(�[22m�[2m)�[22m failed

Locator: getByTestId('tags-container').getByTestId('add-tag')
Expected: visible
Timeout: 15000ms
Error: element(s) not found

Call log:
�[2m  - Expect "toBeVisible" with timeout 15000ms�[22m
�[2m  - waiting for getByTestId('tags-container').getByTestId('add-tag')�[22m

🟡 20 flaky test(s) (passed on retry)
  • Features/Glossary/GlossaryPagination.spec.ts › should filter by InReview status (shard 1, 1 retry)
  • Pages/Lineage/LineageRightPanel.spec.ts › Verify custom properties tab IS visible for supported type: metric (shard 1, 1 retry)
  • Flow/SearchRBAC.spec.ts › the browse tree only shows the asset-type categories a user can access (shard 1, 1 retry)
  • Features/BulkImport.spec.ts › Database Schema (shard 2, 1 retry)
  • Features/ContextCenterArticles.spec.ts › Article listing search filters, clears, and shows empty state (shard 2, 2 retries)
  • Features/ContextCenterArticles.spec.ts › Article list cards, recently viewed widget, and pagination work (shard 2, 1 retry)
  • Features/ContextCenterArticles.spec.ts › Text formatting (shard 2, 1 retry)
  • Features/ContextCenterArticles.spec.ts › Text formatting (shard 2, 1 retry)
  • Features/ContextCenterMemories.spec.ts › clicking a memory row adds ?memory= param to the URL (shard 2, 1 retry)
  • Features/ContextCenterMemories.spec.ts › editing visibility from Shared to Private saves and updates the badge (shard 2, 1 retry)
  • Features/ContextCenterPermission.spec.ts › user with view-only permission sees no Add Memory button, no row actions, and no modal action buttons (shard 2, 1 retry)
  • Features/LandingPageWidgets/DomainDataProductsWidgets.spec.ts › Domain asset count should update when assets are added (shard 3, 1 retry)
  • Flow/IngestionBot.spec.ts › Ingestion bot should be able to access domain specific domain (shard 4, 2 retries)
  • Pages/DataContractsSemanticRules.spec.ts › Validate Description Rule Is_Set (shard 4, 1 retry)
  • Pages/ExplorePageRightPanel.spec.ts › Should allow Data Steward to edit glossary terms for dashboardDataModel (shard 6, 1 retry)
  • Pages/Glossary.spec.ts › Async Delete - multiple deletes all succeed (shard 6, 1 retry)
  • Pages/GlossaryImportExport.spec.ts › Import partial success - some terms pass, some fail (shard 6, 1 retry)
  • Pages/Lineage/LineageFilters.spec.ts › Verify Impact Analysis service filter selection (shard 6, 1 retry)
  • Pages/Lineage/LineageRightPanel.spec.ts › Verify custom properties tab is NOT visible for pipelineService in platform lineage (shard 6, 1 retry)
  • Pages/TagPageRightPanel.spec.ts › Should open right panel when clicking asset in tag assets page (shard 6, 1 retry)

📦 Download artifacts

How to debug locally
# Download playwright-test-results-<shard> artifact and unzip
npx playwright show-trace path/to/trace.zip    # view trace

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant