Commit 385df81
chore(runway): cherry-pick fix(MUSD-651): polish Cash & mUSD UI per latest designs cp-7.74.0 (#28996)
- fix(MUSD-651): polish Cash & mUSD UI per latest designs cp-7.74.0
(#28921)
## **Description**
Implements the four remaining MUSD-651 polish items on the Cash full
view, mUSD asset detail page, and home Cash section. Audit confirmed the
other ticket items (tooltip icon color, stablecoin tag
checkmarks/dark-mode fill, 3% bonus tag on home) already shipped in PRs
#28479, #28656, and #28718.
**Lifetime bonus formatting** — `AssetOverviewClaimBonus` now renders
`$0.00` in default text color until the user has actually claimed a
bonus, then switches to `+$X` in `SuccessDefault` green. Previously
always rendered `+$0.00` in green.
**Get mUSD CTA** — `MusdConversionAssetListCta` button promoted from
`Secondary` to `Primary` to match the white-on-dark Figma spec;
redundant inner `<Text>` color override dropped so the Button can drive
its own text color from the variant.
**Drop "Claim bonus" link from token rows** — `MusdAggregatedRow` (home
Cash section) and `TokenListItem` (mUSD per-network rows) no longer
render the blue "Claim bonus" affordance when a bonus is claimable. They
fall through to the green "3% bonus" label instead. The claim CTA still
lives on the mUSD asset detail page (`AssetOverviewClaimBonus`), which
is now the canonical claim entry point.
**Padding above "Convert your stablecoins"** — bumped top padding
(`pt-3`) inside `MoneyConvertStablecoins` so the divider isn't flush
with the title.
`MusdAggregatedRow` also dropped its now-unused `useMerklBonusClaim`,
`useNetworkName`, and analytics dependencies — the removed click handler
was the only reason the hook was called.
**Note:** claim bonus tag shape is addressed separately in [this
PR](#28903).
## **Changelog**
CHANGELOG entry: Polished Cash and mUSD bonus UI: lifetime bonus shows
zero state in white, "Get mUSD" CTA is now primary, blue "Claim bonus"
link removed from token rows.
## **Related issues**
Fixes: MUSD-651
## **Manual testing steps**
```gherkin
Feature: MUSD-651 Cash & mUSD UI polish
Scenario: lifetime bonus shows zero state in white
Given the user has never claimed an mUSD bonus
When user opens the Cash full view from Home → Cash header
Then the "Lifetime bonus claimed" row reads "$0.00" in default (white) text
Scenario: lifetime bonus shows positive amount in green
Given the user has previously claimed at least one mUSD bonus
When user opens the Cash full view
Then the "Lifetime bonus claimed" row reads "+$<amount>" in green
Scenario: Get mUSD CTA is primary
Given the user has no mUSD balance and is geo-eligible
When user views the home wallet asset list
Then the "Get mUSD" CTA renders as a primary (white-on-dark) button
Scenario: Cash row never shows blue "Claim bonus" link
Given the user has a claimable mUSD bonus on Linea
When user views Home → Cash section
Then the row shows green "3% bonus" text (no blue "Claim bonus" link)
And tapping the row navigates to the Cash full view
Scenario: token list mUSD rows never show "Claim bonus"
Given the user holds mUSD across multiple chains with claimable rewards
When user opens the Cash full view
Then each mUSD row in the token list shows green "3% bonus" (no blue link)
And the "Claim $X bonus" CTA on the asset detail "Your bonus" section still works
Scenario: spacing above "Convert your stablecoins"
Given the user is on the Cash full view
When user scrolls to the "Convert your stablecoins" section
Then there is visible breathing room between the divider line and the section title
```
## **Screenshots/Recordings**
<img width="1206" height="2622" alt="image"
src="https://github.com/user-attachments/assets/642d6690-5896-48ca-b01f-3d47b26a493b"
/>
<img width="1206" height="2622" alt="image"
src="https://github.com/user-attachments/assets/8d72bb20-608e-49d1-b694-a3624f485292"
/>
## **Pre-merge author checklist**
- [x] I've followed [MetaMask Contributor
Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask Mobile
Coding
Standards](https://github.com/MetaMask/metamask-mobile/blob/main/.github/guidelines/CODING_GUIDELINES.md).
- [x] I've completed the PR template to the best of my ability
- [x] I've included tests if applicable
- [ ] I've documented my code using [JSDoc](https://jsdoc.app/) format
if applicable
- [x] I've applied the right labels on the PR (see [labeling
guidelines](https://github.com/MetaMask/metamask-mobile/blob/main/.github/guidelines/LABELING_GUIDELINES.md)).
Not required for external contributors.
#### Performance checks (if applicable)
- [ ] I've tested on Android
- [ ] I've tested with a power user scenario
- [ ] I've instrumented key operations with Sentry traces for production
performance metrics
## **Pre-merge reviewer checklist**
- [x] I've manually tested the PR (e.g. pull and build branch, run the
app, test code being changed).
- [x] I confirm that this PR addresses all acceptance criteria described
in the ticket it closes and includes the necessary testing evidence such
as recordings and or screenshots.
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> **Medium Risk**
> UI/UX behavior changes around when/where users can claim mUSD bonuses
(removing claim affordances from token rows) plus token list rendering
tweaks could affect discoverability and row layout, but no core auth or
funds-transfer logic is modified.
>
> **Overview**
> Polishes mUSD bonus presentation to match updated designs:
`AssetOverviewClaimBonus` now shows lifetime bonus as **`$0.00` in
default text** until a first claim, switching to **green `+$X`** only
when non-zero, and tests are updated accordingly.
>
> Updates Cash and token list rows to stop showing the previous inline
*claim bonus* affordance: `TokenListItem` removes
`useMerklBonusClaim`/spinner/claim handling entirely and, when eligible,
renders a dedicated mUSD “`3% bonus`” row layout (hiding the price
rail), while `MusdAggregatedRow` standardizes the label to “`Claim 3%
bonus`” when claimable and uses the design-system spinner; analytics
properties are adjusted to match the new button text.
>
> Small UI tweaks: promotes the “Get mUSD” asset-list CTA button to
`Primary` (letting the Button control text styling), adds top padding in
`MoneyConvertStablecoins`, and simplifies `TokenList` by removing
viewability state/props and dropping the `scrollToMerklRewards`
navigation param type.
>
> <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit
c6155a3. Bugbot is set up for automated
code reviews on this repo. Configure
[here](https://www.cursor.com/dashboard/bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
[775a207](775a207)
Co-authored-by: Alexey Kureev <a.g.kureev@gmail.com>1 parent 03c356b commit 385df81
12 files changed
Lines changed: 172 additions & 507 deletions
File tree
- app/components
- UI
- Earn/components
- AssetOverviewClaimBonus
- Musd/MusdConversionAssetListCta
- Money/components/MoneyConvertStablecoins
- Tokens/TokenList
- TokenListItem
- Views
- Asset
- Homepage/Sections
- Cash
- Tokens
- locales/languages
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
319 | 319 | | |
320 | 320 | | |
321 | 321 | | |
322 | | - | |
| 322 | + | |
323 | 323 | | |
324 | 324 | | |
325 | 325 | | |
| |||
Lines changed: 9 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
124 | | - | |
125 | | - | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
126 | 127 | | |
127 | | - | |
| 128 | + | |
128 | 129 | | |
129 | 130 | | |
130 | 131 | | |
| |||
320 | 321 | | |
321 | 322 | | |
322 | 323 | | |
323 | | - | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
324 | 329 | | |
325 | 330 | | |
326 | 331 | | |
| |||
Lines changed: 2 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
204 | 204 | | |
205 | 205 | | |
206 | 206 | | |
207 | | - | |
| 207 | + | |
208 | 208 | | |
209 | 209 | | |
210 | 210 | | |
211 | 211 | | |
212 | | - | |
213 | | - | |
214 | | - | |
| 212 | + | |
215 | 213 | | |
216 | 214 | | |
217 | 215 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
139 | | - | |
| 139 | + | |
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
| 1 | + | |
8 | 2 | | |
9 | | - | |
| 3 | + | |
10 | 4 | | |
11 | 5 | | |
12 | 6 | | |
| |||
144 | 138 | | |
145 | 139 | | |
146 | 140 | | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | 141 | | |
160 | 142 | | |
161 | 143 | | |
| |||
166 | 148 | | |
167 | 149 | | |
168 | 150 | | |
169 | | - | |
170 | 151 | | |
171 | 152 | | |
172 | 153 | | |
| |||
176 | 157 | | |
177 | 158 | | |
178 | 159 | | |
179 | | - | |
180 | | - | |
181 | 160 | | |
182 | 161 | | |
183 | 162 | | |
| |||
196 | 175 | | |
197 | 176 | | |
198 | 177 | | |
199 | | - | |
200 | 178 | | |
201 | 179 | | |
202 | 180 | | |
| |||
219 | 197 | | |
220 | 198 | | |
221 | 199 | | |
222 | | - | |
223 | | - | |
224 | | - | |
225 | | - | |
226 | | - | |
227 | 200 | | |
228 | 201 | | |
229 | 202 | | |
| |||
234 | 207 | | |
235 | 208 | | |
236 | 209 | | |
237 | | - | |
| 210 | + | |
238 | 211 | | |
239 | 212 | | |
240 | 213 | | |
| |||
0 commit comments