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

refactor: use new multichain selectors in accounts related components #25290

Merged

Conversation

ccharly
Copy link
Contributor

@ccharly ccharly commented Jun 13, 2024

Description

This is first work of migrating some components to use the new multichain selectors that have been introduced for non-EVM support within the extension.

None regression is expected with the introduction of those selectors.

Having a pre-PR would make future non-EVM related PRs much simpler to review too.

Open in GitHub Codespaces

Related issues

Fixes:

Manual testing steps

Mostly relying on unit and e2e tests here, since there is no new feature

  1. yarn start:flask
  2. Use the extension as usual

Screenshots/Recordings

Before

After

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

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 refactor/use-multichain-selectors-in-account-components branch from 1b41d07 to 9315087 Compare June 13, 2024 09:27
@ccharly ccharly self-assigned this Jun 13, 2024
Copy link

codecov bot commented Jun 13, 2024

Codecov Report

Attention: Patch coverage is 97.43590% with 2 lines in your changes missing coverage. Please review.

Project coverage is 65.69%. Comparing base (8539477) to head (99d9128).

Files Patch % Lines
ui/selectors/multichain.ts 96.30% 1 Missing ⚠️
ui/selectors/selectors.js 83.33% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop   #25290      +/-   ##
===========================================
+ Coverage    65.68%   65.69%   +0.02%     
===========================================
  Files         1377     1377              
  Lines        54593    54624      +31     
  Branches     14304    14314      +10     
===========================================
+ Hits         35854    35885      +31     
  Misses       18739    18739              

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

@ccharly ccharly marked this pull request as ready for review June 13, 2024 10:05
@ccharly ccharly requested review from a team as code owners June 13, 2024 10:05
@metamaskbot
Copy link
Collaborator

Builds ready [9315087]
Page Load Metrics (201 ± 285 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint752921105426
domContentLoaded98318178
load422781201593285
domInteractive98317178
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 0 Bytes (0.00%)
  • ui: 581 Bytes (0.01%)
  • common: 226 Bytes (0.00%)

montelaidev
montelaidev previously approved these changes Jun 13, 2024
@metamaskbot
Copy link
Collaborator

Builds ready [9023b7d]
Page Load Metrics (52 ± 5 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint6411584136
domContentLoaded9241142
load397652115
domInteractive9241142
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 0 Bytes (0.00%)
  • ui: 569 Bytes (0.01%)
  • common: 226 Bytes (0.00%)

ui/selectors/selectors.js Outdated Show resolved Hide resolved
ui/selectors/multichain.ts Outdated Show resolved Hide resolved
ui/selectors/multichain.ts Outdated Show resolved Hide resolved
@metamaskbot
Copy link
Collaborator

Builds ready [be53a20]
Page Load Metrics (52 ± 3 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint691008284
domContentLoaded10141111
load45665263
domInteractive10141111
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 0 Bytes (0.00%)
  • ui: 580 Bytes (0.01%)
  • common: 233 Bytes (0.00%)

@metamaskbot
Copy link
Collaborator

Builds ready [79b91bd]
Page Load Metrics (54 ± 3 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint6912887147
domContentLoaded9131111
load43675473
domInteractive9131111
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 0 Bytes (0.00%)
  • ui: 580 Bytes (0.01%)
  • common: 233 Bytes (0.00%)

@metamaskbot
Copy link
Collaborator

Builds ready [de1e55d]
Page Load Metrics (138 ± 180 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint6311283147
domContentLoaded9151121
load391772138375180
domInteractive9151121
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 0 Bytes (0.00%)
  • ui: 580 Bytes (0.01%)
  • common: 233 Bytes (0.00%)

@metamaskbot
Copy link
Collaborator

Builds ready [99d9128]
Page Load Metrics (145 ± 201 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint6611383147
domContentLoaded8321252
load391966145418201
domInteractive8321252
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 0 Bytes (0.00%)
  • ui: 580 Bytes (0.01%)
  • common: 233 Bytes (0.00%)

@ccharly ccharly merged commit b7d7a34 into develop Jun 14, 2024
74 checks passed
@ccharly ccharly deleted the refactor/use-multichain-selectors-in-account-components branch June 14, 2024 09:19
@github-actions github-actions bot locked and limited conversation to collaborators Jun 14, 2024
@metamaskbot metamaskbot added the release-12.1.0 Issue or pull request that will be included in release 12.1.0 label Jun 14, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
release-12.1.0 Issue or pull request that will be included in release 12.1.0 team-accounts
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants