Repository navigation
fix(ui): resolve cached-image race in Icon and move IconProps to interface file - #32067
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 |
|---|---|
| 2 | react-hooks/exhaustive-deps |
| 1 | sonarjs/no-nested-conditional |
All findings
| Location | Rule | Message | |
|---|---|---|---|
| 🟡 | src/components/Certification/Certification.component.tsx:119:9 |
react-hooks/exhaustive-deps |
The 'handleScroll' function makes the dependencies of useMemo Hook (at line 218) change on every render. Move it inside the useMemo callback. Alternatively, wra |
| 🟡 | src/components/Certification/Certification.component.tsx:188:21 |
sonarjs/no-nested-conditional |
Extract this nested ternary operation into an independent statement. |
| 🟡 | src/components/Certification/Certification.component.tsx:254:6 |
react-hooks/exhaustive-deps |
React Hook useEffect has missing dependencies: 'currentCertificate' and 'getCertificationData'. Either include them or remove the dependency array. If 'setSelec |
Fix locally (fast - only checks files changed in this branch):
make ui-checkstyle-changed
Code Review ✅ ApprovedResolves a cached-image race condition in the Icon component and extracts IconProps into a dedicated interface file. No issues found. 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 ✅ 552 passed · ❌ 0 failed · 🟡 1 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) 55m 22s ⏱️ Max setup 5m 21s · max shard execution 18m 33s · max shard-job elapsed before upload 22m 45s · reporting 4s 🌐 213.13 requests/attempt · 2.83 app boots/UI scenario · 13.66% common-shard skew Optimization targets still in progress:
🟡 1 flaky test(s) (passed on retry)
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 —
|
* 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
IconPropsinterface into a dedicatedIcon.interface.tsfileIconcomponent by checkingimg.completeon mountIcon.test.tsxand updatedCertificationcomponent fallbackThis will update automatically on new commits.
Greptile Summary
The PR updates the shared Icon component to resolve already-complete images after mounting and moves its props into a dedicated interface file.
IconPropsintoIcon.interface.ts.Confidence Score: 5/5
The PR appears safe to merge.
No blocking failure remains.
Important Files Changed
Reviews (2): Last reviewed commit: "lint fix" | Re-trigger Greptile