Skip to content

feat: add BTC experimental toggle#25672

Merged
ccharly merged 45 commits intodevelopfrom
feat/btc-toggle
Jul 10, 2024
Merged

feat: add BTC experimental toggle#25672
ccharly merged 45 commits intodevelopfrom
feat/btc-toggle

Conversation

@gantunesr
Copy link
Copy Markdown
Member

@gantunesr gantunesr commented Jul 4, 2024

Description

Open in GitHub Codespaces

This PR includes the following modifications,

  • Add a new experimental toggle for BTC accounts
  • Fixes minor UI bugs
  • Refactors the pages/settings/experimental-tab files to TypeScript

Note: This change does not affect production build at an UI/UX level

Related issues

Fixes: #486

Manual testing steps

  1. Change the flag BTC_BETA_SUPPORT to true in the builds.yml file
  2. Build the extension client
  3. Go to the experimental settings
  4. See a new toggle called Enable "Add Bitcoin Accounts (Beta)"
  5. The toggle should not have any relevant action on the client

Screenshots/Recordings

Before

Screenshot 2024-07-04 at 12 13 34 PM

After

Screen.Recording.2024-07-10.at.12.27.49.PM.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.

@metamaskbot metamaskbot added the team-accounts-framework Accounts team label Jul 4, 2024
@gantunesr
Copy link
Copy Markdown
Member Author

@metamaskbot update-policies

@metamaskbot
Copy link
Copy Markdown
Collaborator

Policy update failed. You can review the logs or retry the policy update here

@gantunesr gantunesr marked this pull request as ready for review July 5, 2024 12:56
@gantunesr gantunesr requested a review from a team as a code owner July 5, 2024 12:56
@codecov
Copy link
Copy Markdown

codecov bot commented Jul 5, 2024

Codecov Report

Attention: Patch coverage is 66.66667% with 24 lines in your changes missing coverage. Please review.

Project coverage is 69.77%. Comparing base (5ee57a6) to head (4d65cd3).
Report is 23 commits behind head on develop.

Files Patch % Lines
...gs/experimental-tab/experimental-tab.component.tsx 82.00% 9 Missing ⚠️
...ngs/experimental-tab/experimental-tab.container.ts 28.57% 5 Missing ⚠️
.../multichain/account-list-menu/account-list-menu.js 42.86% 4 Missing ⚠️
ui/store/actions.ts 0.00% 4 Missing ⚠️
ui/selectors/selectors.js 0.00% 2 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop   #25672      +/-   ##
===========================================
- Coverage    69.77%   69.77%   -0.00%     
===========================================
  Files         1376     1378       +2     
  Lines        48403    48560     +157     
  Branches     13348    13390      +42     
===========================================
+ Hits         33773    33881     +108     
- Misses       14630    14679      +49     

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

@metamaskbot
Copy link
Copy Markdown
Collaborator

Builds ready [737b269]
Page Load Metrics (348 ± 313 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint703981278039
domContentLoaded11106382612
load452203348652313
domInteractive11106382612
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 163 Bytes (0.00%)
  • ui: -1.56 KiB (-0.02%)
  • common: 854 Bytes (0.01%)

@github-actions
Copy link
Copy Markdown
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.

gantunesr and others added 2 commits July 10, 2024 10:37
Co-authored-by: Charly Chevalier <charly.chevalier@consensys.net>
Co-authored-by: Charly Chevalier <charly.chevalier@consensys.net>
@metamaskbot
Copy link
Copy Markdown
Collaborator

Builds ready [f789263]
Page Load Metrics (487 ± 384 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint863921246431
domContentLoaded11101352010
load622662487800384
domInteractive11101352010
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 163 Bytes (0.00%)
  • ui: -1.56 KiB (-0.02%)
  • common: 857 Bytes (0.01%)

Co-authored-by: Charly Chevalier <charly.chevalier@consensys.net>
ccharly
ccharly previously approved these changes Jul 10, 2024
Copy link
Copy Markdown
Contributor

@ccharly ccharly left a comment

Choose a reason for hiding this comment

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

LGTM and I've manually tested too:

Screen.Recording.2024-07-10.at.17.31.16.mov

Only the href will need to be updated, but this might be done later!

@montelaidev montelaidev mentioned this pull request Jul 10, 2024
7 tasks
gantunesr and others added 3 commits July 10, 2024 12:55
@sonarqubecloud
Copy link
Copy Markdown

@metamaskbot
Copy link
Copy Markdown
Collaborator

Builds ready [4d65cd3]
Page Load Metrics (225 ± 226 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint7712498147
domContentLoaded106525146
load461689225470226
domInteractive106525146
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 163 Bytes (0.00%)
  • ui: -1.56 KiB (-0.02%)
  • common: 730 Bytes (0.01%)

Copy link
Copy Markdown
Contributor

@danroc danroc left a comment

Choose a reason for hiding this comment

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

Tested, LGTM

Copy link
Copy Markdown
Contributor

@ccharly ccharly left a comment

Choose a reason for hiding this comment

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

Also tested, and code looks good! :)

@ccharly ccharly merged commit ffa7c52 into develop Jul 10, 2024
@ccharly ccharly deleted the feat/btc-toggle branch July 10, 2024 20:41
@github-actions github-actions bot locked and limited conversation to collaborators Jul 10, 2024
@metamaskbot metamaskbot added the release-12.2.0 Issue or pull request that will be included in release 12.2.0 label Jul 10, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

release-12.2.0 Issue or pull request that will be included in release 12.2.0 team-accounts-framework Accounts team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants