fix(Rewards): Ondo campaign text issues cp-7.76.0#29815
Conversation
|
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. |
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsE2E Test Selection:
Why no E2E tags are needed:
Performance Test Selection: |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #29815 +/- ##
==========================================
- Coverage 81.97% 81.42% -0.55%
==========================================
Files 5302 5300 -2
Lines 140763 140725 -38
Branches 32047 32033 -14
==========================================
- Hits 115391 114590 -801
- Misses 17517 18295 +778
+ Partials 7855 7840 -15 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|



Description
This cleans up some unintentional text issues when displaying Ondo assets in the Rewards tab. This makes the Rewards tab match how Ondo assets are displayed elsewhere in the app.
Changelog
CHANGELOG entry: null
Related issues
Fixes: n/a
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/text-only changes in Rewards Ondo views plus removal of a now-unused formatting helper; primary risk is minor regressions in how token names/units are displayed and in i18n key usage.
Overview
Rewards Ondo screens now preserve backend-provided token display names (including the
(Ondo Tokenized)suffix) instead of stripping/truncating branding viasanitizeOndoTokenName, and navigation to swaps passes the same unmodified name.Ondo portfolio rows adjust layout to truncate long names and change the units subtext from a localized
"{{units}} shares"string to a direct${units} ${TOKEN_SYMBOL}format (uppercased), removing theposition_unitsi18n key and associated tests.Reviewed by Cursor Bugbot for commit 60550e0. Bugbot is set up for automated code reviews on this repo. Configure here.