Skip to content

fix: unified swaps activity list items#40459

Draft
micaelae wants to merge 7 commits intomainfrom
swaps4175-activity-details
Draft

fix: unified swaps activity list items#40459
micaelae wants to merge 7 commits intomainfrom
swaps4175-activity-details

Conversation

@micaelae
Copy link
Member

@micaelae micaelae commented Feb 26, 2026

Description

Open in GitHub Codespaces

Changelog

CHANGELOG entry:

Related issues

Fixes:

Manual testing steps

  1. Go to this page...

Screenshots/Recordings

Before/After

BEFORE AFTER
Transactions submitted locally Screenshot 2026-02-27 at 6 06 48 PM Screenshot 2026-02-27 at 6 04 11 PM
Transactions submitted on other clients Screenshot 2026-02-27 at 6 07 20 PM Screenshot 2026-02-27 at 6 04 35 PM
Bridge details (other client) Screenshot 2026-02-27 at 6 07 35 PM Screenshot 2026-02-27 at 6 04 44 PM
Bridge details (local) Screenshot 2026-02-27 at 6 07 58 PM Screenshot 2026-02-27 at 6 04 55 PM
Swap details (other client) Screenshot 2026-02-27 at 6 08 17 PM Screenshot 2026-02-27 at 6 05 11 PM
Swap details (local) Screenshot 2026-02-27 at 6 08 43 PM Screenshot 2026-02-27 at 6 05 26 PM

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.

@metamaskbot metamaskbot added the team-swaps-and-bridge Swaps and Bridge team label Feb 26, 2026
@metamaskbotv2
Copy link
Contributor

metamaskbotv2 bot commented Feb 26, 2026

✨ Files requiring CODEOWNER review ✨

👨‍🔧 @MetaMask/core-extension-ux (5 files, +54 -9)
  • 📁 ui/
    • 📁 components/
      • 📁 app/
        • 📁 transaction-list/
          • 📄 transaction-list.test.js +2 -1
      • 📁 multichain/
        • 📁 activity-v2/
          • 📄 activity-details-modal-adapter.tsx +13 -1
          • 📄 activity-list-item.tsx +7 -1
          • 📄 activity-list.tsx +1 -0
          • 📄 hooks.ts +31 -6

🔄 @MetaMask/swaps-engineers (9 files, +2221 -251)
  • 📁 test/
    • 📁 data/
      • 📁 bridge/
        • 📄 mock-bridge-store.ts +1753 -0
  • 📁 ui/
    • 📁 ducks/
      • 📁 bridge-status/
        • 📄 selectors.ts +51 -1
    • 📁 hooks/
      • 📁 bridge/
        • 📄 useBridgeActivity.ts +90 -0
        • 📄 useBridgeTxHistoryData.ts +29 -13
    • 📁 pages/
      • 📁 bridge/
        • 📁 hooks/
          • 📄 useBridgeTokenDisplayData.ts +21 -15
        • 📁 transaction-details/
          • 📄 index.scss +0 -4
          • 📄 transaction-details.tsx +254 -211
        • 📁 utils/
          • 📄 tx-details.ts +22 -7
          • 📄 index.scss +1 -0

@metamaskbotv2
Copy link
Contributor

metamaskbotv2 bot commented Feb 26, 2026

Builds ready [f1dff9e]
⚡ Performance Benchmarks
👆 Interaction Benchmarks
BenchmarkMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P75 (ms)P95 (ms)
Load New Accountload_new_account28726832019298320
total28726832019298320
Confirm Txconfirm_tx607760676087760796087
total607760676087760796087
Bridge User Actionsbridge_load_page20918524522219245
bridge_load_asset_picker2202122297225229
bridge_search_token7107077185707718
total1130110911491611391149
🔌 Startup Benchmarks
BenchmarkMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P75 (ms)P95 (ms)
Standard HomeuiStartup14431204188411114711659
load1221101115539912431412
domContentLoaded1213100615439812381393
domInteractive3017128212683
firstPaint172701187132214373
backgroundConnect21819938320220243
firstReactRender20124762133
initialActions105124
loadScripts101080813329610401187
setupStore1366071521
numNetworkReqs312288192284
Power User HomeuiStartup16851353235415617162017
load1107987168715510901567
domContentLoaded1091972168115010791527
domInteractive3318161243189
firstPaint193631674192228328
backgroundConnect28524939124293332
firstReactRender24155172537
initialActions107112
loadScripts89078114561448741308
setupStore1674371734
numNetworkReqs59341652856135
🧭 User Journey Benchmarks
BenchmarkMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P75 (ms)P95 (ms)
Onboarding Import WalletimportWalletToSocialScreen2172152181218218
srpButtonToSrpForm90899009090
confirmSrpToPwForm21212102121
pwFormToMetricsScreen15141501515
metricsToWalletReadyScreen15151601516
doneButtonToHomeScreen63955672465688724
openAccountMenuToAccountListLoaded7049700170803570807080
total7973788980928079998092
Onboarding New WalletcreateWalletToSocialScreen2202162222222222
srpButtonToPwForm1121041278116127
createPwToRecoveryScreen888088
skipBackupToMetricsScreen36363603636
agreeButtonToOnboardingSuccess16161601616
doneButtonToAssetList52546361656563616
total9178411021659611021
Asset DetailsassetClickToPriceChart483663126063
total483663126063
Solana Asset DetailsassetClickToPriceChart48474914949
total48474914949
Import Srp HomeloginToHomeScreen2004191621367820452136
openAccountMenuAfterLogin46395665156
homeAfterImportWithNewWallet2210218622592922072259
total43064193444510444044445
Send TransactionsopenSendPageFromHome241441102941
selectTokenToSendFormLoaded20202102121
reviewTransactionToConfirmationPage86384688815872888
total89988091312907913
SwapopenSwapPageFromHome1169413014128130
fetchAndDisplaySwapQuotes52834571639084462396390
total54084685652083463336520
🌐 Dapp Page Load Benchmarks

Current Commit: f1dff9e | Date: 2/26/2026

📄 Localhost MetaMask Test Dapp

Samples: 100

Summary

  • pageLoadTime-> current mean value: 1.07s (±45ms) 🟡 | historical mean value: 1.05s ⬆️ (historical data)
  • domContentLoaded-> current mean value: 751ms (±41ms) 🟢 | historical mean value: 740ms ⬆️ (historical data)
  • firstContentfulPaint-> current mean value: 84ms (±15ms) 🟢 | historical mean value: 83ms ⬆️ (historical data)

📈 Detailed Results

Metric Mean Std Dev Min Max P95 P99
pageLoadTime 1.07s 45ms 1.03s 1.42s 1.11s 1.42s
domContentLoaded 751ms 41ms 720ms 1.06s 794ms 1.06s
firstPaint 84ms 15ms 68ms 224ms 88ms 224ms
firstContentfulPaint 84ms 15ms 68ms 224ms 88ms 224ms
largestContentfulPaint 0ms 0ms 0ms 0ms 0ms 0ms
Bundle size diffs
  • background: 58 Bytes (0%)
  • ui: 717 Bytes (0.01%)
  • common: 20 Bytes (0%)

@sonarqubecloud
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
65.2% Coverage on New Code (required ≥ 80%)
C Reliability Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

@metamaskbotv2
Copy link
Contributor

metamaskbotv2 bot commented Feb 27, 2026

Builds ready [e66ac24]
⚡ Performance Benchmarks
👆 Interaction Benchmarks
BenchmarkMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P75 (ms)P95 (ms)
Load New Accountload_new_account30727534122319341
total30727534122319341
Confirm Txconfirm_tx606460616066260666066
total606460616066260666066
Bridge User Actionsbridge_load_page24319830641262306
bridge_load_asset_picker24122926014260260
bridge_search_token73471674811745748
total1243120712802712541280
🔌 Startup Benchmarks
BenchmarkMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P75 (ms)P95 (ms)
Standard HomeuiStartup14211188188811914701608
load11951007158810012451371
domContentLoaded118798715609812401346
domInteractive281799182475
firstPaint161691422151206388
backgroundConnect21118826214217237
firstReactRender20135272133
initialActions107124
loadScripts99279913629610311153
setupStore1363751523
numNetworkReqs312283183179
Power User HomeuiStartup2071140011272143618343971
load11601023165914711591535
domContentLoaded11471009163214311491524
domInteractive39201893237120
firstPaint1807345390242323
backgroundConnect584259970213293071822
firstReactRender23155082640
initialActions108114
loadScripts93781114151419341284
setupStore1462741620
numNetworkReqs64361492869138
🧭 User Journey Benchmarks
BenchmarkMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P75 (ms)P95 (ms)
Onboarding Import WalletimportWalletToSocialScreen2202192232221223
srpButtonToSrpForm94929729597
confirmSrpToPwForm22222302223
pwFormToMetricsScreen15151601616
metricsToWalletReadyScreen16161601616
doneButtonToHomeScreen72261082190798821
openAccountMenuToAccountListLoaded77987623803115878518031
total8869878690068088819006
Onboarding New WalletcreateWalletToSocialScreen2192162212221221
srpButtonToPwForm1081061112109111
createPwToRecoveryScreen888088
skipBackupToMetricsScreen36363713737
agreeButtonToOnboardingSuccess16161601616
doneButtonToAssetList723486937175910937
total1111875132117513021321
Asset DetailsassetClickToPriceChart37284773847
total37284773847
Solana Asset DetailsassetClickToPriceChart46454814748
total46454814748
Import Srp HomeloginToHomeScreen21581918244422624182444
openAccountMenuAfterLogin47346095360
homeAfterImportWithNewWallet24332240268115425212681
total46384296500027448195000
Send TransactionsopenSendPageFromHome311742113942
selectTokenToSendFormLoaded21172322323
reviewTransactionToConfirmationPage8568518614859861
total91288593618922936
SwapopenSwapPageFromHome1411341485142148
fetchAndDisplaySwapQuotes638263756388563886388
total6541650965792865546579
🌐 Dapp Page Load Benchmarks

Current Commit: e66ac24 | Date: 2/27/2026

📄 Localhost MetaMask Test Dapp

Samples: 100

Summary

  • pageLoadTime-> current mean value: 1.05s (±80ms) 🟡 | historical mean value: 1.05s ⬆️ (historical data)
  • domContentLoaded-> current mean value: 746ms (±99ms) 🟢 | historical mean value: 739ms ⬆️ (historical data)
  • firstContentfulPaint-> current mean value: 85ms (±66ms) 🟢 | historical mean value: 83ms ⬆️ (historical data)

📈 Detailed Results

Metric Mean Std Dev Min Max P95 P99
pageLoadTime 1.05s 80ms 1.02s 1.59s 1.27s 1.59s
domContentLoaded 746ms 99ms 709ms 1.55s 952ms 1.55s
firstPaint 85ms 66ms 60ms 736ms 88ms 736ms
firstContentfulPaint 85ms 66ms 60ms 736ms 88ms 736ms
largestContentfulPaint 0ms 0ms 0ms 0ms 0ms 0ms
Bundle size diffs
  • background: 58 Bytes (0%)
  • ui: 717 Bytes (0.01%)
  • common: 20 Bytes (0%)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size-M team-swaps-and-bridge Swaps and Bridge team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants