Skip to content

chore: move claim CTA to cover token PCT change#40535

Merged
Jwhiles merged 1 commit intomainfrom
MUSD-299
Mar 3, 2026
Merged

chore: move claim CTA to cover token PCT change#40535
Jwhiles merged 1 commit intomainfrom
MUSD-299

Conversation

@Jwhiles
Copy link
Contributor

@Jwhiles Jwhiles commented Mar 2, 2026

Description

Open in GitHub Codespaces

Changelog

CHANGELOG entry: Moved the Claim Bonus CTA to cover token percent change, rather than token quantity

Related issues

Fixes: MUSD-299

Manual testing steps

  1. Enabled the earnMerklCampaignClaiming feature flag
  2. Navigate to an account with rewards to claim
  3. Observe that claim CTA is correctly positioned and still functions as expected.

Screenshots/Recordings

Before

Screenshot 2026-03-02 at 15 47 33

After

image

Pre-merge author checklist

Pre-merge reviewer checklist

  • I've manually tested the PR (e.g. pull and build branch, run the app, test code being changed).
  • 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.

Note

Low Risk
Low risk UI-only layout change that reorders footer content in TokenCell; main risk is unintended visual regression or misalignment in asset lists.

Overview
Moves the Merkl ClaimBonusBadge in TokenCell to render in footerLeftDisplay, replacing the percent-change display when rewards are claimable, and always shows the token’s primary amount in footerRightDisplay.

Written by Cursor Bugbot for commit a3cd526. This will update automatically on new commits. Configure here.

@github-actions
Copy link
Contributor

github-actions bot commented Mar 2, 2026

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.

@metamaskbotv2
Copy link
Contributor

metamaskbotv2 bot commented Mar 2, 2026

✨ Files requiring CODEOWNER review ✨

💎 @MetaMask/metamask-assets (1 files, +8 -6)
  • 📁 ui/
    • 📁 components/
      • 📁 app/
        • 📁 assets/
          • 📁 token-cell/
            • 📄 token-cell.tsx +8 -6

@github-actions github-actions bot added the size-S label Mar 2, 2026
@sonarqubecloud
Copy link

sonarqubecloud bot commented Mar 2, 2026

@Jwhiles Jwhiles marked this pull request as ready for review March 2, 2026 16:05
@Jwhiles Jwhiles requested a review from a team as a code owner March 2, 2026 16:05
@Matt561 Matt561 self-requested a review March 2, 2026 16:07
@metamaskbotv2
Copy link
Contributor

metamaskbotv2 bot commented Mar 2, 2026

Builds ready [a3cd526]
⚡ Performance Benchmarks
👆 Interaction Benchmarks
BenchmarkMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P75 (ms)P95 (ms)
Load New Accountload_new_account370272527109479527
total370272527109479527
Confirm Txconfirm_tx604960396058960576058
total604960396058960576058
Bridge User Actionsbridge_load_page25323726711258267
bridge_load_asset_picker2182102225222222
bridge_search_token71870473111730731
total1196111012595112341259
🔌 Startup Benchmarks
BenchmarkMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P75 (ms)P95 (ms)
Standard HomeuiStartup14041203172610014471585
load118199214139112281354
domContentLoaded117398014089012141343
domInteractive271792182477
firstPaint180711298166224350
backgroundConnect20719125712209232
firstReactRender18133441925
initialActions105124
loadScripts98379911918910211149
setupStore1373551620
numNetworkReqs312295192584
Power User HomeuiStartup2404143310641159620874377
load12391056171515912701648
domContentLoaded12231048170415512531616
domInteractive4121253363797
firstPaint1927748594267374
backgroundConnect778268835614423612512
firstReactRender24155372538
initialActions105112
loadScripts1003836148015210281392
setupStore1685471735
numNetworkReqs74401602789127
🧭 User Journey Benchmarks
BenchmarkMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P75 (ms)P95 (ms)
Onboarding Import WalletimportWalletToSocialScreen2192172222219222
srpButtonToSrpForm93919419494
confirmSrpToPwForm22212202222
pwFormToMetricsScreen16151601616
metricsToWalletReadyScreen16161601616
doneButtonToHomeScreen1101797156429112681564
openAccountMenuToAccountListLoaded73057025763327176187633
total86778462880613687788806
Onboarding New WalletcreateWalletToSocialScreen2192172201220220
srpButtonToPwForm1081051123108112
createPwToRecoveryScreen989099
skipBackupToMetricsScreen36353713637
agreeButtonToOnboardingSuccess16161701717
doneButtonToAssetList693470853141761853
total1099855130916311481309
Asset DetailsassetClickToPriceChart35313933739
total35313933739
Solana Asset DetailsassetClickToPriceChart58565915859
total58565915859
Import Srp HomeloginToHomeScreen20271852216412921352164
openAccountMenuAfterLogin44335884758
homeAfterImportWithNewWallet2588244926658426442665
total47504451521429748015214
Send TransactionsopenSendPageFromHome18181801818
selectTokenToSendFormLoaded21202312123
reviewTransactionToConfirmationPage8558528635853863
total8988919087900908
SwapopenSwapPageFromHome1161081246123124
fetchAndDisplaySwapQuotes473047254734447344734
total484448334854948544854
🌐 Dapp Page Load Benchmarks

Current Commit: a3cd526 | Date: 3/2/2026

📄 Localhost MetaMask Test Dapp

Samples: 100

Summary

  • pageLoadTime-> current mean value: 977ms (±38ms) 🟢 | historical mean value: 1.04s ⬇️ (historical data)
  • domContentLoaded-> current mean value: 685ms (±36ms) 🟢 | historical mean value: 734ms ⬇️ (historical data)
  • firstContentfulPaint-> current mean value: 76ms (±11ms) 🟢 | historical mean value: 81ms ⬇️ (historical data)

📈 Detailed Results

Metric Mean Std Dev Min Max P95 P99
pageLoadTime 977ms 38ms 950ms 1.25s 1.01s 1.25s
domContentLoaded 685ms 36ms 663ms 942ms 706ms 942ms
firstPaint 76ms 11ms 64ms 172ms 84ms 172ms
firstContentfulPaint 76ms 11ms 64ms 172ms 84ms 172ms
largestContentfulPaint 0ms 0ms 0ms 0ms 0ms 0ms
Bundle size diffs
  • background: 58 Bytes (0%)
  • ui: 5 Bytes (0%)
  • common: 20 Bytes (0%)

@Jwhiles Jwhiles requested a review from nickewansmith March 2, 2026 21:09
@Jwhiles Jwhiles added this pull request to the merge queue Mar 3, 2026
Merged via the queue into main with commit def63c6 Mar 3, 2026
211 of 214 checks passed
@Jwhiles Jwhiles deleted the MUSD-299 branch March 3, 2026 15:10
@github-actions github-actions bot locked and limited conversation to collaborators Mar 3, 2026
@metamaskbot metamaskbot added the release-13.22.0 Issue or pull request that will be included in release 13.22.0 label Mar 3, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

release-13.22.0 Issue or pull request that will be included in release 13.22.0 size-S team-earn

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants