Skip to content

feat(solana): update add account from network picker #31358

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

Merged

Conversation

PatrykLucka
Copy link
Contributor

@PatrykLucka PatrykLucka commented Mar 27, 2025

Description

This PR updates the flow of adding new Solana account from the network picker to be consistent with the flow from accounts picker. It also allows user to pick which SRP to use if there are more than one SRP added.

Related issues

Manual testing steps

  1. Make sure you do not have Solana accounts
  2. Open network picker
  3. Click Solana
  4. Click Add Account

Screenshots/Recordings

Before

Screenshot 2025-03-28 at 12 10 40

After

Screenshot 2025-03-28 at 12 12 54

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.

@PatrykLucka PatrykLucka self-assigned this Mar 27, 2025
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.

@metamaskbot metamaskbot added the team-mmi PRs from the MMI team label Mar 27, 2025
@PatrykLucka PatrykLucka force-pushed the MMMULTISRP-114-update-add-account-from-network-picker branch 2 times, most recently from 92ca851 to a04c137 Compare March 28, 2025 09:12
@metamaskbot
Copy link
Collaborator

metamaskbot commented Mar 28, 2025

✨ Files requiring CODEOWNER review ✨

🖥️ @MetaMask/wallet-ux

  • ui/components/multichain/create-account/create-account.tsx
  • ui/components/multichain/network-list-menu/add-non-evm-account/add-non-evm-account.tsx
  • ui/components/multichain/network-list-menu/index.scss
  • ui/components/multichain/network-list-menu/network-list-menu.tsx

@PatrykLucka PatrykLucka force-pushed the MMMULTISRP-114-update-add-account-from-network-picker branch from a04c137 to 374ae53 Compare March 28, 2025 09:45
@metamaskbot
Copy link
Collaborator

Builds ready [374ae53]
UI Startup Metrics (1173 ± 56 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyHomeuiStartup1173106313535612081267
load1022927117852949993
domContentLoaded1016919116952946996
domInteractive16123741527
firstPaint7881311171374268993
backgroundConnect96283810
firstReactRender20154972038
getState11530679
initialActions001001
loadScripts80671495450834898
setupStore7521278
WebpackHomeuiStartup940762129888942967
load80264795762834895
domContentLoaded79664293861826891
domInteractive15124371336
firstPaint4786094633883893
backgroundConnect16105081437
firstReactRender14122841326
getState6311177
initialActions001001
loadScripts79464192560824890
setupStore7514279
FirefoxBrowserifyHomeuiStartup13891188185315114291784
load12491065169014212971617
domContentLoaded12491065169014212971617
domInteractive9739189269096
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect2617123172547
firstReactRender23194442529
getState7451579
initialActions001001
loadScripts12241047166713612761554
setupStore6412267
WebpackHomeuiStartup9898341640180889977
load8697281404159801896
domContentLoaded8687281404159801896
domInteractive123432092414492
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect2013106142032
firstReactRender18162721825
getState8460778
initialActions001001
loadScripts8527141383155814887
setupStore941001178
Bundle size diffs [🚀 Bundle size reduced!]
  • background: -572.99 KiB (-8.83%)
  • ui: -975.3 KiB (-12.58%)
  • common: -875.09 KiB (-8.52%)

@PatrykLucka PatrykLucka marked this pull request as ready for review March 28, 2025 11:13
@PatrykLucka PatrykLucka requested a review from a team as a code owner March 28, 2025 11:13
shane-t
shane-t previously approved these changes Mar 28, 2025
@metamaskbot
Copy link
Collaborator

Builds ready [27a2c81]
UI Startup Metrics (1189 ± 57 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyHomeuiStartup1189107613765712281294
load1035948120252957993
domContentLoaded1030943119852955994
domInteractive16133851627
firstPaint7391501202389268994
backgroundConnect96334910
firstReactRender19154352029
getState11439769
initialActions001001
loadScripts81572397851847894
setupStore7418278
WebpackHomeuiStartup918778117177944964
load778594100869826885
domContentLoaded772584100469818882
domInteractive15124671333
firstPaint424691007330820839
backgroundConnect16115081539
firstReactRender14122831324
getState6415268
initialActions001001
loadScripts76957499469817877
setupStore7514279
FirefoxBrowserifyHomeuiStartup13701147197616814211786
load12321034179616012691625
domContentLoaded12321033179616012691625
domInteractive9839189278997
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect2516157152635
firstReactRender22194842330
getState7337478
initialActions001001
loadScripts12091018170315412551597
setupStore6418267
WebpackHomeuiStartup9848501489140901959
load8637301344129808970
domContentLoaded8627291344129807970
domInteractive123322133114546
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect20136282339
firstReactRender19173631925
getState8349589
initialActions001001
loadScripts8457151316125799964
setupStore8456789
Bundle size diffs [🚀 Bundle size reduced!]
  • background: -634.13 KiB (-9.77%)
  • ui: -971.48 KiB (-12.53%)
  • common: -801.58 KiB (-7.8%)

darkwing
darkwing previously approved these changes Mar 31, 2025
@PatrykLucka PatrykLucka enabled auto-merge March 31, 2025 15:36
shane-t
shane-t previously approved these changes Mar 31, 2025
@PatrykLucka PatrykLucka added this pull request to the merge queue Mar 31, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to a conflict with the base branch Mar 31, 2025
@PatrykLucka PatrykLucka dismissed stale reviews from shane-t and darkwing via 1049b9f April 1, 2025 09:10
@PatrykLucka PatrykLucka force-pushed the MMMULTISRP-114-update-add-account-from-network-picker branch from 27a2c81 to 1049b9f Compare April 1, 2025 09:10
@metamaskbot
Copy link
Collaborator

Builds ready [1049b9f]
UI Startup Metrics (1215 ± 67 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyHomeuiStartup1215106813886712741322
load10639471227621146980
domContentLoaded10579331222621164995
domInteractive16133341629
firstPaint7581501228414246970
backgroundConnect106294910
firstReactRender18154031922
getState11432768
initialActions001001
loadScripts84072398360890933
setupStore7420278
WebpackHomeuiStartup969781117986948976
load81756493578876920
domContentLoaded81155793278869913
domInteractive15123861333
firstPaint29353920288813920
backgroundConnect17134881639
firstReactRender17122941728
getState6319358
initialActions001000
loadScripts80855493078868911
setupStore7415268
FirefoxBrowserifyHomeuiStartup13961236198815614391797
load12581073184315013041635
domContentLoaded12581073184315013041635
domInteractive10339226308697
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect23175052532
firstReactRender23194952533
getState6422278
initialActions001001
loadScripts12361054180414712851612
setupStore6424367
WebpackHomeuiStartup9918281509169893940
load8677291323149812925
domContentLoaded8677281323149812925
domInteractive115411922616396
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect19133452232
firstReactRender18162821923
getState104881389
initialActions001001
loadScripts8507151307146826975
setupStore8562878
Bundle size diffs
  • background: 0 Bytes (0%)
  • ui: 10.89 KiB (0.16%)
  • common: 0 Bytes (0%)

@PatrykLucka PatrykLucka requested a review from darkwing April 1, 2025 09:47
@PatrykLucka PatrykLucka added this pull request to the merge queue Apr 2, 2025
Merged via the queue into main with commit 75dbb54 Apr 2, 2025
147 checks passed
@PatrykLucka PatrykLucka deleted the MMMULTISRP-114-update-add-account-from-network-picker branch April 2, 2025 14:11
@github-actions github-actions bot locked and limited conversation to collaborators Apr 2, 2025
@metamaskbot metamaskbot added the release-12.17.0 Issue or pull request that will be included in release 12.17.0 label Apr 2, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
release-12.17.0 Issue or pull request that will be included in release 12.17.0 team-mmi PRs from the MMI team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants