Skip to content

chore: bump core-backend + refactor query#40731

Open
n3ps wants to merge 6 commits intomainfrom
n3ps/bump-core-backend
Open

chore: bump core-backend + refactor query#40731
n3ps wants to merge 6 commits intomainfrom
n3ps/bump-core-backend

Conversation

@n3ps
Copy link
Contributor

@n3ps n3ps commented Mar 10, 2026

Description

Refactored multichain activity transaction queries to use apiClient query options directly and removed the now-redundant local query helper.

Bump core-backend

Changelog

CHANGELOG entry: chore: bump core-backend; refactor query

Related issues

Fixes:

Manual testing steps

  1. Activity list works as normal

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

Medium Risk
Touches multichain activity transaction fetching by swapping to apiClient infinite-query options and adjusting enable/refetch behavior, which could impact activity list loading/caching. Also bumps @metamask/core-backend, which may introduce subtle runtime changes via updated transitive controller deps.

Overview
Updates multichain Activity v2 transaction querying to use apiClient.accounts.getV4MultiAccountTransactionsInfiniteQueryOptions directly, removing the local helpers/queries wrapper and updating related unit tests.

The useTransactionsQuery hook now explicitly controls enabled/keepPreviousData and adds refetchOnMount/refetchOnWindowFocus, and prefetching uses the same apiClient options (with a temporary @ts-expect-error for v5/v4 type mismatch).

Separately bumps @metamask/core-backend to ^6.1.0 (updating lockfile transitive versions) and adds an .oxlintrc.json.txt configuration file with most rules disabled except sort-imports and no-accumulating-spread.

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

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

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Point of interest

@socket-security
Copy link

socket-security bot commented Mar 10, 2026

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updated@​metamask/​core-backend@​6.0.0 ⏵ 6.1.076 -2210010096 +1100

View full report

@metamaskbotv2
Copy link
Contributor

metamaskbotv2 bot commented Mar 10, 2026

✨ Files requiring CODEOWNER review ✨

👨‍🔧 @MetaMask/core-extension-ux (2 files, +49 -30)
  • 📁 ui/
    • 📁 components/
      • 📁 multichain/
        • 📁 activity-v2/
          • 📄 hooks.test.tsx +22 -15
          • 📄 hooks.ts +27 -15

Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.

"no-optional-chaining": "off",
"no-rest-spread-properties": "off"
}
}
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unrelated oxlint config file accidentally committed

Low Severity

A 106-line .oxlintrc.json.txt file was added at the repository root, but the PR description only mentions bumping core-backend and refactoring queries. The .txt extension means oxlint won't use it as a config file, suggesting it's a personal draft or exploration artifact. No other file references it, and it's unrelated to the stated PR purpose.

Fix in Cursor Fix in Web

@sonarqubecloud
Copy link

@metamaskbotv2
Copy link
Contributor

metamaskbotv2 bot commented Mar 10, 2026

Builds ready [160fce7]
⚡ Performance Benchmarks
👆 Interaction Benchmarks
BenchmarkMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P75 (ms)P95 (ms)
Load New Accountload_new_account28226830413287304
total28226830413287304
Confirm Txconfirm_tx605460496059460596059
total605460496059460596059
Bridge User Actionsbridge_load_page23918828538279285
bridge_load_asset_picker16111319930177199
bridge_search_token7047017072706707
total1083106810981110871098
🔌 Startup Benchmarks
BenchmarkMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P75 (ms)P95 (ms)
Standard HomeuiStartup14191197172810914431644
load117999614109412071366
domContentLoaded117399214019312021357
domInteractive2917102182583
firstPaint168691289134214303
backgroundConnect21719342831216244
firstReactRender19124752028
initialActions106124
loadScripts97479512029010001146
setupStore1373251624
numNetworkReqs312288192382
Power User HomeuiStartup20121677268115820912292
load11751045184916011661547
domContentLoaded11571037179615111571537
domInteractive3620148223791
firstPaint214781648206241339
backgroundConnect30226552238305372
firstReactRender25166082741
initialActions109114
loadScripts93982515091439311296
setupStore18896111934
numNetworkReqs68361744455169
🧭 User Journey Benchmarks
BenchmarkMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P75 (ms)P95 (ms)
Onboarding Import WalletimportWalletToSocialScreen2182182180218218
srpButtonToSrpForm94939519495
confirmSrpToPwForm22222202222
pwFormToMetricsScreen15151501515
metricsToWalletReadyScreen16161701617
doneButtonToHomeScreen68058674760707747
openAccountMenuToAccountListLoaded2945291329672329672967
total40083887418011040814180
Onboarding New WalletcreateWalletToSocialScreen2202182222221222
srpButtonToPwForm1081051113109111
createPwToRecoveryScreen888088
skipBackupToMetricsScreen37344233942
agreeButtonToOnboardingSuccess16151711617
doneButtonToAssetList54949561954609619
total9408751022589951022
Asset DetailsassetClickToPriceChart14411220835155208
total14411220835155208
Solana Asset DetailsassetClickToPriceChart79748238282
total79748238282
Import Srp HomeloginToHomeScreen1971191020695919582069
openAccountMenuAfterLogin45444824548
homeAfterImportWithNewWallet24792225276420026542764
total44274343460910844114609
Send TransactionsopenSendPageFromHome371955134855
selectTokenToSendFormLoaded21192631926
reviewTransactionToConfirmationPage1098846148730114451487
total1160884156031215231560
SwapopenSwapPageFromHome52465745357
fetchAndDisplaySwapQuotes269226872695326942695
total274227402744227442744
🌐 Dapp Page Load Benchmarks

Current Commit: 160fce7 | Date: 3/10/2026

📄 Localhost MetaMask Test Dapp

Samples: 100

Summary

  • pageLoadTime-> current mean value: 1.05s (±53ms) 🟡 | historical mean value: 1.05s ⬇️ (historical data)
  • domContentLoaded-> current mean value: 738ms (±52ms) 🟢 | historical mean value: 740ms ⬇️ (historical data)
  • firstContentfulPaint-> current mean value: 81ms (±10ms) 🟢 | historical mean value: 83ms ⬇️ (historical data)

📈 Detailed Results

Metric Mean Std Dev Min Max P95 P99
pageLoadTime 1.05s 53ms 1.02s 1.34s 1.10s 1.34s
domContentLoaded 738ms 52ms 711ms 1.02s 779ms 1.02s
firstPaint 81ms 10ms 68ms 168ms 92ms 168ms
firstContentfulPaint 81ms 10ms 68ms 168ms 92ms 168ms
largestContentfulPaint 0ms 0ms 0ms 0ms 0ms 0ms
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 5.15 MiB (100%)
  • ui: 8.24 MiB (100%)
  • common: 10.99 MiB (100%)

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

Labels

size-M team-core-extension-ux Core Extension UX team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant