Skip to content

fix: maintain activity tab scroll position#40681

Merged
n3ps merged 1 commit intomainfrom
n3ps/fix-activity-scroll
Mar 9, 2026
Merged

fix: maintain activity tab scroll position#40681
n3ps merged 1 commit intomainfrom
n3ps/fix-activity-scroll

Conversation

@n3ps
Copy link
Copy Markdown
Contributor

@n3ps n3ps commented Mar 6, 2026

Description

Maintain scroll position when navigating to the Activity tab

Open in GitHub Codespaces

Changelog

CHANGELOG entry: fix: maintain activity tab scroll position

Related issues

Fixes:

Manual testing steps

  1. Scroll down the Tokens list
  2. Switch to the Activity tab

Screenshots/Recordings

Before

After

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 change that tweaks @tanstack/react-virtual options; main risk is minor scrolling/virtualization regressions (e.g., unexpected jump or offset) in the Activity tab.

Overview
Preserves the Activity tab’s scroll position by initializing the useVirtualizer offset from the current scroll container scrollTop.

Updates the virtualizer to use the shared noAdjustmentsScroll scrollToFn, aligning scroll behavior with other virtualized lists and preventing unwanted scroll adjustments on navigation.

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

@n3ps n3ps requested a review from a team as a code owner March 6, 2026 18:36
@n3ps n3ps added the team-core-extension-ux Core Extension UX team label Mar 6, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Mar 6, 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
Copy Markdown
Contributor

metamaskbotv2 bot commented Mar 6, 2026

✨ Files requiring CODEOWNER review ✨

👨‍🔧 @MetaMask/core-extension-ux (1 files, +3 -0)
  • 📁 ui/
    • 📁 components/
      • 📁 multichain/
        • 📁 activity-v2/
          • 📄 activity-list.tsx +3 -0

@n3ps n3ps enabled auto-merge March 6, 2026 18:39
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud bot commented Mar 6, 2026

@metamaskbotv2
Copy link
Copy Markdown
Contributor

metamaskbotv2 bot commented Mar 6, 2026

Builds ready [f7ceae8]
⚡ Performance Benchmarks
👆 Interaction Benchmarks
BenchmarkMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P75 (ms)P95 (ms)
Load New Accountload_new_account2822752896285289
total2822752896285289
Confirm Txconfirm_tx6051600460782760686078
total6051600460782760686078
Bridge User Actionsbridge_load_page24620029638271296
bridge_load_asset_picker22619125625247256
bridge_search_token74573376010746760
total1210112212887212671288
🔌 Startup Benchmarks
BenchmarkMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P75 (ms)P95 (ms)
Standard HomeuiStartup14261208193310814631614
load1191100115709312371350
domContentLoaded118599915629212291343
domInteractive2917129202580
firstPaint1466738772201264
backgroundConnect21019427713211240
firstReactRender20134962133
initialActions106124
loadScripts99181513439210361147
setupStore1263551422
numNetworkReqs312289192281
Power User HomeuiStartup2768180212084162725404735
load12681085203118513051662
domContentLoaded12501075200717912751613
domInteractive40212423237105
firstPaint2007743886269346
backgroundConnect7932661029815053712469
firstReactRender25176682743
initialActions106114
loadScripts1020848175017010421371
setupStore177107121831
numNetworkReqs82342464894201
🧭 User Journey Benchmarks
BenchmarkMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P75 (ms)P95 (ms)
Onboarding Import WalletimportWalletToSocialScreen2192172201220220
srpButtonToSrpForm94939619596
confirmSrpToPwForm21212202222
pwFormToMetricsScreen15151501515
metricsToWalletReadyScreen16161601616
doneButtonToHomeScreen61159464922604649
openAccountMenuToAccountListLoaded2916290229341329342934
total3888386039142038973914
Onboarding New WalletcreateWalletToSocialScreen2222212231223223
srpButtonToPwForm1061041081107108
createPwToRecoveryScreen888088
skipBackupToMetricsScreen35343503535
agreeButtonToOnboardingSuccess16161601616
doneButtonToAssetList68061772540700725
total1068101411053410871105
Asset DetailsassetClickToPriceChart14812816313157163
total14812816313157163
Solana Asset DetailsassetClickToPriceChart79748348283
total79748348283
Import Srp HomeloginToHomeScreen23352111262022525932620
openAccountMenuAfterLogin685179107579
homeAfterImportWithNewWallet25812408276412626752764
total49844764518214150765182
Send TransactionsopenSendPageFromHome17161811618
selectTokenToSendFormLoaded21182742227
reviewTransactionToConfirmationPage8488478480848848
total8828818851882885
SwapopenSwapPageFromHome19172012020
fetchAndDisplaySwapQuotes268226812684126832684
total270126992703127012703
🌐 Dapp Page Load Benchmarks

Current Commit: f7ceae8 | Date: 3/6/2026

📄 Localhost MetaMask Test Dapp

Samples: 100

Summary

  • pageLoadTime-> current mean value: 1.07s (±42ms) 🟡 | historical mean value: 1.05s ⬆️ (historical data)
  • domContentLoaded-> current mean value: 751ms (±39ms) 🟢 | historical mean value: 740ms ⬆️ (historical data)
  • firstContentfulPaint-> current mean value: 84ms (±14ms) 🟢 | historical mean value: 81ms ⬆️ (historical data)

📈 Detailed Results

Metric Mean Std Dev Min Max P95 P99
pageLoadTime 1.07s 42ms 1.04s 1.39s 1.10s 1.39s
domContentLoaded 751ms 39ms 725ms 1.05s 777ms 1.05s
firstPaint 84ms 14ms 68ms 212ms 100ms 212ms
firstContentfulPaint 84ms 14ms 68ms 212ms 100ms 212ms
largestContentfulPaint 0ms 0ms 0ms 0ms 0ms 0ms
Bundle size diffs
  • background: 58 Bytes (0%)
  • ui: 219 Bytes (0%)
  • common: 20 Bytes (0%)

@n3ps n3ps added this pull request to the merge queue Mar 9, 2026
Merged via the queue into main with commit fb655a9 Mar 9, 2026
194 of 195 checks passed
@n3ps n3ps deleted the n3ps/fix-activity-scroll branch March 9, 2026 07:14
@github-actions github-actions bot locked and limited conversation to collaborators Mar 9, 2026
@metamaskbot metamaskbot added the release-13.23.0 Issue or pull request that will be included in release 13.23.0 label Mar 9, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

release-13.23.0 Issue or pull request that will be included in release 13.23.0 size-XS team-core-extension-ux Core Extension UX team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants