feat: MUSD-166 right align convert to musd cta#24249
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. |
e242f64 to
ac79f59
Compare
app/components/UI/Tokens/TokenList/TokenListItem/TokenListItem.tsx
Outdated
Show resolved
Hide resolved
app/components/UI/Tokens/TokenList/TokenListItem/TokenListItem.tsx
Outdated
Show resolved
Hide resolved
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsThe changes involve refactoring the mUSD conversion flow from StakeButton to TokenListItem, and adding a new clickable secondary balance feature to AssetElement. Key changes:
The changes affect:
The risk is medium because:
I'm not including SmokeCard or SmokeRamps because the Card and Earn components only have snapshot changes (adding TouchableOpacity wrapper) with no functional changes to those features. |
|
|
@Matt561 Can we right align Earn as well, maybe in a follow up PR? Pattern wise, it seems odd to have different CTA styles. |



Description
Moved the "Convert to mUSD" CTA to the AssetElement's secondary balance position for supported stablecoins. This is where the price change percentage is normally displayed.
Changelog
CHANGELOG entry: updated token list item musd conversion cta position to secondary balance position. This replaces the price change percentage for specified stablecoins
Related issues
Fixes: MUSD-166: Right align convert to mUSD CTA
Manual testing steps
Screenshots/Recordings
Before
After
Screen_Recording_20260105_165424_MetaMask.mp4
Pre-merge author checklist
Pre-merge reviewer checklist
Note
Shifts the mUSD conversion entry point to the token row’s secondary balance and wires it to initiate conversion.
secondaryBalancein a pressable withSECONDARY_BALANCE_BUTTON_TEST_ID; addsonSecondaryBalancePress(asset)prop and disables when no handler ordisabledis true"Convert to mUSD"when conversion is enabled, token is eligible, and balance > 0; pressing callsinitiateConversionwithoutputChainId,preferredPaymentToken, andnavigationStack; otherwise keeps percentage logicAssetElement,TokenListItem,CardAssetItem, andEarnLendingBalance; adds new test IDs and coverage for press behaviorWritten by Cursor Bugbot for commit d223108. This will update automatically on new commits. Configure here.