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(btc): use new snap account flow for Bitcoin accounts #26183

Merged
merged 3 commits into from
Aug 1, 2024

Conversation

ccharly
Copy link
Contributor

@ccharly ccharly commented Jul 29, 2024

Description

This removes the old flow of creating Bitcoin accounts in favor of the new generic Snap account creation flow (that includes account renaming).

This PR does require the Bitcoin Snap to emit the suggested names, otherwise name accounts will be named as follow: Snap Account N (where N is the number of created Snap accounts + 1).

Open in GitHub Codespaces

Related issues

Relates to:

Fixes:

Manual testing steps

Note

Since we have updated the Bitcoin Snap version to 0.4.0, you no longer need to manually install the Snap, it's being prebundled with the right version that supports account name suggestion

  1. Create a Bitcoin account (should be named "Bitcoin Account" by default)
  2. Create a Bitcoin testnet account (should be named "Bitcoin Testnet Account" by default)

Screenshots/Recordings

Before

After

Screen.Recording.2024-07-29.at.11.59.25.mov

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.

@ccharly ccharly requested a review from a team as a code owner July 29, 2024 11:34
@ccharly ccharly requested a review from k-g-j July 29, 2024 11:34
@ccharly ccharly self-assigned this Jul 29, 2024
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.

@ccharly ccharly force-pushed the feature/use-new-snap-account-flow-for-bitcoin branch from 37da73f to 653f678 Compare July 30, 2024 09:58
@ccharly ccharly requested a review from a team as a code owner July 30, 2024 09:58
@ccharly ccharly force-pushed the feature/use-new-snap-account-flow-for-bitcoin branch 2 times, most recently from 94a1c1c to e79f7a2 Compare July 30, 2024 14:01
@ccharly ccharly force-pushed the feature/use-new-snap-account-flow-for-bitcoin branch from e79f7a2 to 4860aa9 Compare July 31, 2024 10:41
Copy link

codecov bot commented Jul 31, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 69.95%. Comparing base (2beba47) to head (2c25cd9).
Report is 3 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop   #26183      +/-   ##
===========================================
- Coverage    69.95%   69.95%   -0.00%     
===========================================
  Files         1411     1410       -1     
  Lines        49963    49956       -7     
  Branches     13800    13799       -1     
===========================================
- Hits         34948    34942       -6     
+ Misses       15015    15014       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@metamaskbot
Copy link
Collaborator

Builds ready [4860aa9]
Page Load Metrics (333 ± 323 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint613791199344
domContentLoaded986242210
load382227333673323
domInteractive986242210
Bundle size diffs [🚀 Bundle size reduced!]
  • background: 0 Bytes (0.00%)
  • ui: -2.03 KiB (-0.03%)
  • common: -20 Bytes (-0.00%)

@ccharly ccharly requested a review from a team as a code owner July 31, 2024 15:58
@ccharly ccharly force-pushed the feature/use-new-snap-account-flow-for-bitcoin branch from fdce80c to e5a7ec0 Compare July 31, 2024 16:35
@metamaskbot
Copy link
Collaborator

Builds ready [e5a7ec0]
Page Load Metrics (407 ± 329 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint663801177737
domContentLoaded884282210
load371979407686329
domInteractive884282210
Bundle size diffs [🚀 Bundle size reduced!]
  • background: -14 Bytes (-0.00%)
  • ui: -2.03 KiB (-0.03%)
  • common: -20 Bytes (-0.00%)

Copy link
Contributor

@k-g-j k-g-j left a comment

Choose a reason for hiding this comment

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

Copy link

sonarcloud bot commented Jul 31, 2024

@metamaskbot
Copy link
Collaborator

Builds ready [2c25cd9]
Page Load Metrics (419 ± 341 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint734061428943
domContentLoaded9117322713
load442085419711341
domInteractive9117322713
Bundle size diffs [🚀 Bundle size reduced!]
  • background: -14 Bytes (-0.00%)
  • ui: -2.03 KiB (-0.03%)
  • common: -20 Bytes (-0.00%)

@ccharly ccharly merged commit ed28508 into develop Aug 1, 2024
75 checks passed
@ccharly ccharly deleted the feature/use-new-snap-account-flow-for-bitcoin branch August 1, 2024 08:16
@github-actions github-actions bot locked and limited conversation to collaborators Aug 1, 2024
@metamaskbot metamaskbot added the release-12.4.0 Issue or pull request that will be included in release 12.4.0 label Aug 1, 2024
@gauthierpetetin gauthierpetetin added release-12.3.0 Issue or pull request that will be included in release 12.3.0 and removed release-12.4.0 Issue or pull request that will be included in release 12.4.0 labels Sep 11, 2024
@k-g-j
Copy link
Contributor

k-g-j commented Sep 17, 2024

Behaves as epected on Chrome version 128.0.6613.138 ✅

Screen.Recording.2024-09-17.at.10.20.59.AM.mov

Behaves as expect on Firefox version 130.0 ✅

Screen.Recording.2024-09-17.at.10.24.22.AM.mov

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
release-12.3.0 Issue or pull request that will be included in release 12.3.0 team-accounts
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants