Repository navigation
fix(ui): apply icon-image classes to the <img> instead of its wrapper span - #32110
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 |
|
| Count | Rule |
|---|---|
| 11 | openmetadata-imports/no-circular-imports |
| 4 | react-hooks/exhaustive-deps |
| 3 | sonarjs/cyclomatic-complexity |
| 3 | openmetadata-imports/no-lower-layer-page-imports |
| 2 | sonarjs/no-duplicate-string |
| 1 | openmetadata-imports/no-internal-barrel-imports |
| 1 | sonarjs/cognitive-complexity |
| 1 | sonarjs/no-nested-conditional |
All findings
| Location | Rule | Message | |
|---|---|---|---|
| 🟡 | src/components/Tag/TagsV1/TagsV1.component.tsx:34:1 |
openmetadata-imports/no-circular-imports |
This runtime import participates in a circular dependency. Extract the shared type/constant/utility or invert the dependency. |
| 🟡 | src/components/Tag/TagsV1/TagsV1.component.tsx:35:1 |
openmetadata-imports/no-circular-imports |
This runtime import participates in a circular dependency. Extract the shared type/constant/utility or invert the dependency. |
| 🟡 | src/components/Tag/TagsV1/TagsV1.component.tsx:36:1 |
openmetadata-imports/no-circular-imports |
This runtime import participates in a circular dependency. Extract the shared type/constant/utility or invert the dependency. |
| 🟡 | src/components/common/CertificationTag/CertificationTag.tsx:21:1 |
openmetadata-imports/no-circular-imports |
This runtime import participates in a circular dependency. Extract the shared type/constant/utility or invert the dependency. |
| 🟡 | src/components/common/atoms/TagChip/TagChip.tsx:88:4 |
sonarjs/cyclomatic-complexity |
{"message":"Function has a complexity of 11 which is greater than 10 authorized.","cost":1,"secondaryLocations":[{"line":88,"column":3,"endLine":88,"endColumn": |
| 🟡 | src/pages/TagPage/TagPage.tsx:72:1 |
openmetadata-imports/no-internal-barrel-imports |
Import the internal module directly instead of its index barrel so unrelated siblings do not enter the bundle graph. |
| 🟡 | src/pages/TagPage/TagPage.tsx:138:20 |
sonarjs/cognitive-complexity |
Refactor this function to reduce its Cognitive Complexity from 24 to the 15 allowed. |
| 🟡 | src/pages/TagPage/TagPage.tsx:138:20 |
sonarjs/cyclomatic-complexity |
{"message":"Function has a complexity of 25 which is greater than 10 authorized.","cost":15,"secondaryLocations":[{"line":138,"column":19,"endLine":138,"endColu |
| 🟡 | src/pages/TagPage/TagPage.tsx:277:6 |
react-hooks/exhaustive-deps |
React Hook useMemo has a missing dependency: 'tagItem'. Either include it or remove the dependency array. |
| 🟡 | src/pages/TagPage/TagPage.tsx:302:9 |
sonarjs/no-nested-conditional |
Extract this nested ternary operation into an independent statement. |
| 🟡 | src/pages/TagPage/TagPage.tsx:326:9 |
react-hooks/exhaustive-deps |
The 'activeTabHandler' function makes the dependencies of useCallback Hook (at line 496) change on every render. To fix this, wrap the definition of 'activeTabH |
| 🟡 | src/pages/TagPage/TagPage.tsx:407:21 |
sonarjs/no-duplicate-string |
Define a constant instead of duplicating this literal 5 times. |
| 🟡 | src/pages/TagPage/TagPage.tsx:457:21 |
sonarjs/no-duplicate-string |
Define a constant instead of duplicating this literal 3 times. |
| 🟡 | src/pages/TagPage/TagPage.tsx:723:6 |
react-hooks/exhaustive-deps |
React Hook useMemo has a missing dependency: 'fetchFeedCount'. Either include it or remove the dependency array. |
| 🟡 | src/pages/TagPage/TagPage.tsx:796:6 |
react-hooks/exhaustive-deps |
React Hook useMemo has a missing dependency: 't'. Either include it or remove the dependency array. |
| 🟡 | src/utils/ClassificationUtils.tsx:29: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/utils/DataProductUtils.tsx:32:1 |
openmetadata-imports/no-circular-imports |
This runtime import participates in a circular dependency. Extract the shared type/constant/utility or invert the dependency. |
| 🟡 | src/utils/DataProductUtils.tsx:33:1 |
openmetadata-imports/no-circular-imports |
This runtime import participates in a circular dependency. Extract the shared type/constant/utility or invert the dependency. |
| 🟡 | src/utils/DataProductUtils.tsx:34:1 |
openmetadata-imports/no-circular-imports |
This runtime import participates in a circular dependency. Extract the shared type/constant/utility or invert the dependency. |
| 🟡 | src/utils/DataProductUtils.tsx:35:1 |
openmetadata-imports/no-circular-imports |
This runtime import participates in a circular dependency. Extract the shared type/constant/utility or invert the dependency. |
| 🟡 | src/utils/DataProductUtils.tsx:47: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/utils/DataProductUtils.tsx:186:35 |
sonarjs/cyclomatic-complexity |
{"message":"Function has a complexity of 19 which is greater than 10 authorized.","cost":9,"secondaryLocations":[{"line":186,"column":34,"endLine":186,"endColum |
| 🟡 | src/utils/DomainUtils.tsx:29:1 |
openmetadata-imports/no-circular-imports |
This runtime import participates in a circular dependency. Extract the shared type/constant/utility or invert the dependency. |
| 🟡 | src/utils/DomainUtils.tsx:30:1 |
openmetadata-imports/no-circular-imports |
This runtime import participates in a circular dependency. Extract the shared type/constant/utility or invert the dependency. |
| 🟡 | src/utils/DomainUtils.tsx:40: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/utils/DomainUtils.tsx:41:1 |
openmetadata-imports/no-circular-imports |
This runtime import participates in a circular dependency. Extract the shared type/constant/utility or invert the dependency. |
Fix locally (fast - only checks files changed in this branch):
make ui-checkstyle-changed
Code Review ✅ Approved 2 resolved / 2 findingsApplies icon-image classes to the underlying img element instead of its wrapper span across icon components and utilities, addressing both named-icon branch drops caller className and tw:mr-4 changes right margin from 4px to 16px findings. ✅ 2 resolved✅ Bug: tw:mr-4 changes right margin from 4px to 16px
✅ Edge Case: Named-icon branch drops caller className (layout classes lost)
OptionsDisplay: compact → Showing less information. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source |
|
✅ Playwright Results — workflow succeededValidated commit ✅ 605 passed · ❌ 0 failed · 🟡 0 flaky · ⏭️ 0 skipped · 🧰 0 lifecycle flaky PerformanceBlocking targets: ✅ met · Optimization targets: 🟡 in progress Shard-job maxima below are not the full workflow wall time; the linked run includes build, fixture, planning, and reporting. 🕒 Full workflow signal wall (to summary) 1h 2m 35s ⏱️ Max setup 6m 8s · max shard execution 20m 36s · max shard-job elapsed before upload 26m 34s · reporting 3s 🌐 215.52 requests/attempt · 2.87 app boots/UI scenario · 20.06% common-shard skew Optimization targets still in progress:
How to debug locally# Download playwright-test-results-<shard> artifact and unzip
npx playwright show-trace path/to/trace.zip # view trace |
🚦 Removed from the merge queue —
|
🚦 Removed from the merge queue —
|
* fix(ui): render icon/image URLs by real load outcome instead of regex pre-validation (#31982) * fix(ui): render icon/image URLs by real load outcome instead of regex pre-validation * lint fix * addressed gitar comment * addressed gitar comment * lint fix * fix(ui): resolve cached-image race in Icon and move IconProps to interface file (#32067) * fix(ui): resolve cached-image race in Icon and move IconProps to interface file * lint fix * fix(ui): apply icon-image classes to the <img> instead of its wrapper span (#32110) * fix(ui): apply icon-image classes to the <img> instead of its wrapper span * addressed gitar comment * lint fix * unit test fix * fix(playwright): select Collate SaaS Runner before password fill in ServiceCreationPermissions (#32112) * fix(playwright): select Collate SaaS Runner before filling password in ServiceCreationPermissions test When the default runner is Remote Runner the form validation requires passwords to start with the secret: prefix; switching to Collate SaaS Runner before submitting removes that requirement so the test can use a plain-text password value. Co-Authored-By: Claude Sonnet 4.6 <[email protected]> * fix(playwright): move runner selection before password fill to prevent blur-time validation error RJSF customValidate can fire on field blur; selecting Collate SaaS Runner after the password is typed means the secret: prefix validation may trigger while Remote Runner is still active. Select the runner first so the error is never recorded. Co-Authored-By: Claude Sonnet 4.6 <[email protected]> --------- Co-authored-by: Claude Sonnet 4.6 <[email protected]> * fix(ui): Renamed context center Dashboard to Overview * lint fix * playwright fix * lint fix * Rename i18n key from what-should-ask-collate-remember to what-should-ai-remember Replace the old product-branded key with a generic AI key across the component and all 20 locale files, and move the key from the label namespace to the message namespace where the component expects it. Co-Authored-By: Claude Sonnet 4.6 <[email protected]> * lint fix * class based approach * lint fix --------- Co-authored-by: Claude Sonnet 4.6 <[email protected]>



Describe your changes:
Fixes #
I worked on ... because ...






Type of change:
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:
Fixes <issue-number>: <short explanation>Fixes #<issue-number>above.Summary by Gitar
Iconcomponent properties:wrapperStylewithimageClassNameinIconPropsto apply image-specific styling directly to underlying images and built-in iconsTagsV1,CertificationTag,TagChip,DataProductUtils, andDomainUtilsto useimageClassNameor Tailwind layout classes appropriatelyThis will update automatically on new commits.
Greptile Summary
The PR moves icon-specific classes from the
Iconwrapper to the rendered image or built-in icon while retaining wrapper classes for layout.imageClassNameprop and removeswrapperStyle.Confidence Score: 5/5
The PR appears safe to merge.
No blocking failure remains; the previously reported Icon and CertificationTag contract issues are resolved by the current implementation and updated assertions.
Important Files Changed
Reviews (4): Last reviewed commit: "unit test fix" | Re-trigger Greptile