fix: graceful fallback for assets missing images cp-7.77.0#30096
Conversation
|
@cursor validate and fix this pls |
|
Validated and fixed the exact issue in that discussion thread ( ✅ Fix applied
✅ Validation
✅ Git updates
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #30096 +/- ##
==========================================
+ Coverage 81.54% 81.74% +0.19%
==========================================
Files 5343 5387 +44
Lines 142128 143484 +1356
Branches 32411 32766 +355
==========================================
+ Hits 115899 117290 +1391
+ Misses 18299 18179 -120
- Partials 7930 8015 +85 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit ff151f5. Configure here.
|
@cursor fix this pls |
|
Fixed the issue from that review thread ( What I changed
These were left unused after switching Validation
Git updates
|
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsE2E Test Selection: The PR replaces direct
Tag selection rationale:
Not selected:
The risk is medium because while the refactoring is straightforward (same underlying Performance Test Selection: |
|
Skipping E2E as known failure
|
|







Description
AssetLogointoken.tsxso send/perps flows use the same asset image pipeline + fallback as home/swap.Changelog
CHANGELOG entry: fix: ensure missing assets try a fallback image url path.
Related issues
Fixes: #29946
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Performance checks (if applicable)
trace()for usage andaddTokenfor an exampleFor performance guidelines and tooling, see the Performance Guide.
Pre-merge reviewer checklist
Note
Low Risk
Low risk UI change that only alters how token logos are rendered; main risk is minor layout/styling differences or unexpected image URL fallback behavior in a few flows.
Overview
Uses the shared
AssetLogocomponent (with its fallback image URL logic) anywhere non-native token avatars were previously rendered directly viaAvatarToken, including the asset overview balance header and the confirmations token selector.Updates the confirmations
Tokentests to mockAssetLogoto keep them focused on text/interaction behavior.Reviewed by Cursor Bugbot for commit 5d62794. Bugbot is set up for automated code reviews on this repo. Configure here.