Skip to content
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

feat(Solana): add "Add a new Solana account" link to the account creation dialog #28270

Merged
merged 26 commits into from
Nov 8, 2024

Conversation

ulissesferreira
Copy link
Contributor

@ulissesferreira ulissesferreira commented Nov 4, 2024

Description

Adds a "Add a new Solana account" link to the account creation dialog:

Related issues

Fixes:
SOL-24 [Setup] Add "Add a new Solana account (Beta)" button to the account picker

Manual testing steps

  1. Build and load the extension locally
  2. Open the account picker
  3. Click on "Add account or hardware wallet"
  4. Click on "Add a new Solana wallet (Beta)"
  5. A new Solana wallet should have been created, using the same seed phrase used for Ethereum accounts

Screenshots/Recordings

Screenshot 2024-11-07 at 13 59 22

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.

Copy link
Contributor

github-actions bot commented Nov 4, 2024

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.

@github-actions github-actions bot added the team-sol PRs from the Solana snap team label Nov 4, 2024
@danroc
Copy link
Contributor

danroc commented Nov 7, 2024

I updated the branch because we had flaky tests that were removed in the develop branch, this should improve the stability of this PR!

@metamaskbot
Copy link
Collaborator

Builds ready [5987b17]
Page Load Metrics (2202 ± 213 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint29535591969792381
domContentLoaded175234842173428206
load176135632202443213
domInteractive1589552210
backgroundConnect883252110
firstReactRender562851164421
getState565262211
initialActions01000
loadScripts129124741617321154
setupStore1194372512
uiStartup198638112479453218
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 149 Bytes (0.00%)
  • ui: 0 Bytes (0.00%)
  • common: 64 Bytes (0.00%)

@zone-live zone-live marked this pull request as ready for review November 7, 2024 13:58
@zone-live zone-live requested review from a team as code owners November 7, 2024 13:58
aganglada
aganglada previously approved these changes Nov 7, 2024
ui/hooks/accounts/useMultichainClient.ts Outdated Show resolved Hide resolved
ui/hooks/accounts/useMultichainClient.ts Outdated Show resolved Hide resolved
ui/hooks/accounts/useMultichainClient.ts Outdated Show resolved Hide resolved
ui/hooks/accounts/useMultichainClient.test.ts Outdated Show resolved Hide resolved
Co-authored-by: Charly Chevalier <charly.chevalier@consensys.net>
zone-live and others added 2 commits November 7, 2024 14:52
Co-authored-by: Charly Chevalier <charly.chevalier@consensys.net>
@metamaskbot
Copy link
Collaborator

Builds ready [fe6f4bf]
Page Load Metrics (1825 ± 54 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint15992088182911354
domContentLoaded15881995178910148
load16012091182511254
domInteractive168147189
backgroundConnect999342311
firstReactRender48293905124
getState46118209
initialActions01000
loadScripts1151150213128139
setupStore115824189
uiStartup17862369203415675
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 149 Bytes (0.00%)
  • ui: 0 Bytes (0.00%)
  • common: 64 Bytes (0.00%)

@darkwing
Copy link
Contributor

darkwing commented Nov 7, 2024

I was able to see this with:

diff --git a/builds.yml b/builds.yml
index 2442ad5147..5320b135aa 100644
--- a/builds.yml
+++ b/builds.yml
@@ -18,6 +18,7 @@ buildTypes:
     features:
       - build-main
       - keyring-snaps
+      - solana
     # Additional env variables that are specific to this build
     env:
       - INFURA_PROD_PROJECT_ID

Is there a better way to build / start this?

@zone-live
Copy link
Contributor

I was able to see this with:

diff --git a/builds.yml b/builds.yml
index 2442ad5147..5320b135aa 100644
--- a/builds.yml
+++ b/builds.yml
@@ -18,6 +18,7 @@ buildTypes:
     features:
       - build-main
       - keyring-snaps
+      - solana
     # Additional env variables that are specific to this build
     env:
       - INFURA_PROD_PROJECT_ID

Is there a better way to build / start this?

Thats it, you're correct. Great catch, ty 👍🏼

@metamaskbot
Copy link
Collaborator

Builds ready [c4623fb]
Page Load Metrics (1827 ± 99 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint15772379183520699
domContentLoaded15682347179920498
load15772383182720799
domInteractive20108482311
backgroundConnect988302311
firstReactRender46211914321
getState45921189
initialActions01000
loadScripts11321775132017082
setupStore1193452412
uiStartup176626192062237114
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 149 Bytes (0.00%)
  • ui: 0 Bytes (0.00%)
  • common: 64 Bytes (0.00%)

aganglada
aganglada previously approved these changes Nov 8, 2024
ui/hooks/accounts/useMultichainClient.ts Outdated Show resolved Hide resolved
ui/hooks/accounts/useMultichainClient.ts Outdated Show resolved Hide resolved
@metamaskbot
Copy link
Collaborator

Builds ready [ba2a6f0]
Page Load Metrics (1961 ± 103 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint28725121814519249
domContentLoaded16722477192520699
load172625491961214103
domInteractive18106542210
backgroundConnect788362512
firstReactRender482991176230
getState486192512
initialActions00000
loadScripts11571870139918086
setupStore1196262512
uiStartup189929612241295142
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 149 Bytes (0.00%)
  • ui: 0 Bytes (0.00%)
  • common: 64 Bytes (0.00%)

@metamaskbot
Copy link
Collaborator

Builds ready [ccdbb50]
Page Load Metrics (1856 ± 83 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint31324431789379182
domContentLoaded16142426181916780
load16652444185617383
domInteractive19116462713
backgroundConnect796402914
firstReactRender472051115124
getState488252713
initialActions01000
loadScripts11571900132715474
setupStore11101352512
uiStartup181826572131220106
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 149 Bytes (0.00%)
  • ui: 0 Bytes (0.00%)
  • common: 64 Bytes (0.00%)

@zone-live zone-live added this pull request to the merge queue Nov 8, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Nov 8, 2024
@zone-live zone-live added this pull request to the merge queue Nov 8, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Nov 8, 2024
@zone-live zone-live added this pull request to the merge queue Nov 8, 2024
Merged via the queue into develop with commit d2ddf24 Nov 8, 2024
85 checks passed
@zone-live zone-live deleted the SOL-24-add-new-solana-account-link branch November 8, 2024 18:13
@github-actions github-actions bot locked and limited conversation to collaborators Nov 8, 2024
@metamaskbot metamaskbot added the release-12.8.0 Issue or pull request that will be included in release 12.8.0 label Nov 8, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
release-12.8.0 Issue or pull request that will be included in release 12.8.0 team-sol PRs from the Solana snap team
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

8 participants