fix(confirmations): address minor issues with new MM Pay picker cp-7.80.0#30915
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:
Tag Selection Rationale:
Not selected:
Performance Test Selection: |
Description
Addresses 7 polish issues reported in the new MM Pay picker bottom sheet after the pay-with bottom sheet. The bugs span copy corrections for withdrawal flows, conditional rendering of the "available" balance suffix, icon rendering, and styling inconsistencies.
The "available" suffix on token balance subtitles now only renders for pure-deposit flows (
perpsDeposit,predictDeposit) where it semantically means "you have this much to spend." Order-and-deposit flows (perpsDepositAndOrder,predictDepositAndOrder) and withdrawal flows show the bare balance.Perps and Predict balance icons are migrated to the component-library
IconwithIconName.CandlestickandIconName.Predictionsrespectively.Old i18n keys are removed and replaced with new keys so the translation pipeline can pick up the fresh copy. Stale translated entries for
pay_with_modal.titleandpay_with_modal.title_receiveare cleaned from all 14 non-English locale files.Changelog
CHANGELOG entry: Fixed minor UI issues in MM Pay picker: corrected withdraw flow titles, "available" balance display, selected token styling, balance amount color consistency, modal title, and Perps/Predict balance icons
Related issues
Fixes: #30820
Related to https://consensyssoftware.atlassian.net/browse/CONF-1466
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
UI and i18n-only changes in confirmation pay flows; no auth, payments logic, or transaction execution changes.
Overview
Polishes the MM Pay picker bottom sheet and related confirmation UI after the pay-with redesign.
Copy and titles: Withdraw flows use Receive for the bottom sheet header and receive-oriented “Other assets” helper text. The token list modal always shows Select a token instead of separate pay vs receive titles. English strings are updated; stale
pay_with_modaltitle keys are removed from non-English locale files.Balance subtitles: The “available” suffix on crypto and money-account row subtitles is shown only for standalone Perps/Predict deposit transaction types; order-and-deposit and withdraw paths show the bare fiat amount.
Visual tweaks: Selected payment rows use a muted circular background on the icon slot. The confirmation Pay with row renders the parenthesized USD balance in alternative text color. Perps and Predict account rows use design-system candlestick and predictions icons instead of remote token images.
Tests are extended to cover the new subtitle, title, styling, and icon behavior.
Reviewed by Cursor Bugbot for commit afd7152. Bugbot is set up for automated code reviews on this repo. Configure here.