-
Notifications
You must be signed in to change notification settings - Fork 5.4k
fix: add missing metrics to import SRP flow and grouped Import SRP events #37567
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
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. |
✨ Files requiring CODEOWNER review ✨🔑 @MetaMask/accounts-engineers (1 files, +12 -0)
👨🔧 @MetaMask/core-extension-ux (1 files, +5 -2)
|
Builds ready [f4bc00e]
UI Startup Metrics (1286 ± 102 ms)
📊 Page Load Benchmark ResultsCurrent Commit: 📄 Localhost MetaMask Test DappSamples: 100 Summary
📈 Detailed Results
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
lwin-kyaw
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Builds ready [65f1078]
UI Startup Metrics (1219 ± 88 ms)
📊 Page Load Benchmark ResultsCurrent Commit: 📄 Localhost MetaMask Test DappSamples: 100 Summary
📈 Detailed Results
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
|
Not related to the metrics at all but I noticed the paste button is not working as expected. Manually pasting works though. Screen.Recording.2025-11-07.at.4.52.13.PM.mov |
|
This is the sequence of events I see when I click on the import flow and then import and SRP.... Screen.Recording.2025-11-07.at.4.57.36.PM.movGiven that the event |
ui/components/multichain-accounts/add-wallet-modal/add-wallet-modal.tsx
Outdated
Show resolved
Hide resolved
Builds ready [aae863d]
UI Startup Metrics (1246 ± 88 ms)
📊 Page Load Benchmark ResultsCurrent Commit: 📄 Localhost MetaMask Test DappSamples: 100 Summary
📈 Detailed Results
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
Builds ready [bf83eb1]
UI Startup Metrics (1207 ± 95 ms)
📊 Page Load Benchmark ResultsCurrent Commit: 📄 Localhost MetaMask Test DappSamples: 100 Summary
📈 Detailed Results
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
ui/components/multichain-accounts/add-wallet-modal/add-wallet-modal.tsx
Outdated
Show resolved
Hide resolved
Builds ready [4a49e18]
UI Startup Metrics (1194 ± 82 ms)
📊 Page Load Benchmark ResultsCurrent Commit: 📄 Localhost MetaMask Test DappSamples: 100 Summary
📈 Detailed Results
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
Builds ready [b1ce786]
UI Startup Metrics (1237 ± 88 ms)
📊 Page Load Benchmark ResultsCurrent Commit: 📄 Localhost MetaMask Test DappSamples: 100 Summary
📈 Detailed Results
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
Builds ready [b1ca69d]
UI Startup Metrics (1210 ± 91 ms)
📊 Page Load Benchmark ResultsCurrent Commit: 📄 Localhost MetaMask Test DappSamples: 100 Summary
📈 Detailed Results
Bundle size diffs [🚀 Bundle size reduced!]
|
Description
In this PR, added missing track event for SRP import: click event in Add Wallet modal and completion event with hd_entropy_index on import.
Metrics
Import Secret Recovery Phrase Clicked:
This event needs to be added
It should fire when the user clicks the import wallet button on the account list.
Import Secret Recovery Phrase Continue Button Clicked:
It should fire when the user finishes importing an SRP (they click continue)
Also we've enhanced our tracking by grouping the Import Secret Recovery Phrase event with specific status properties: 'started', 'continue_button_clicked', and 'completed', along with location data. This provides visibility into the full workflow timeline from initiation to completion.
Jira Link: https://consensyssoftware.atlassian.net/browse/SL-277
Segment Schema PR: https://github.com/Consensys/segment-schema/pull/367/files
Changelog
CHANGELOG entry: added missing metrics to import SRP flow
Related issues
Fixes:
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist
Note
Unifies SRP import tracking into a single event with start/continue/completed statuses and adds hd_entropy_index and discovered account counts on completion.
ImportSecretRecoveryPhraseClicked/CompletedintoImportSecretRecoveryPhrasewith status-based phases (started,continue_button_clicked,completed).app/scripts/metamask-controller.js):ImportSecretRecoveryPhrasewithhd_entropy_index,number_of_solana_accounts_discovered, andnumber_of_bitcoin_accounts_discovered.ui/components/multichain-accounts/add-wallet-modal/add-wallet-modal.tsx: TrackImportSecretRecoveryPhrasewithstatus: 'started'when selecting "Import a wallet" (location: Add Wallet Modal).ui/components/multichain/account-menu/account-menu.tsx: TrackImportSecretRecoveryPhrasewithstatus: 'started'when clicking SRP import (location: Account Menu).ui/pages/multi-srp/import-srp/import-srp.tsx: TrackImportSecretRecoveryPhrasewithstatus: 'continue_button_clicked'on continue (location: Multi SRP Import).Written by Cursor Bugbot for commit b1ca69d. This will update automatically on new commits. Configure here.