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

fix: display new network popup only for accounts that are compatible. #28535

Merged
merged 8 commits into from
Nov 25, 2024

Conversation

montelaidev
Copy link
Contributor

@montelaidev montelaidev commented Nov 19, 2024

Description

This PR updates the new network popup to only show up for accounts that supports it.

Open in GitHub Codespaces

Related issues

Fixes: https://github.com/MetaMask/accounts-planning/issues/660

Manual testing steps

  1. On flask, enable BTC experimental feature and create an account.
  2. Switch to an EVM account
  3. Add a different RPC such as base
  4. See 'You're now using` alert for the added network
  5. tap Got it
  6. Tap the account picker and select BTC account
  7. See that the new network popup does not show.
  8. tap BTC under tokens
  9. See that the new network popup does not show.

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.

@montelaidev montelaidev marked this pull request as ready for review November 19, 2024 13:02
@montelaidev montelaidev requested a review from a team as a code owner November 19, 2024 13:02
@metamaskbot
Copy link
Collaborator

Builds ready [88b3f0b]
Page Load Metrics (1849 ± 65 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint30122461779363174
domContentLoaded16382131181611656
load16612251184913665
domInteractive276740126
backgroundConnect12120342713
firstReactRender4811667178
getState4310284178
initialActions01000
loadScripts11931601135510048
setupStore616721
uiStartup18712688209817584
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 0 Bytes (0.00%)
  • ui: 342 Bytes (0.00%)
  • common: 296 Bytes (0.00%)

ui/pages/routes/routes.component.test.js Outdated Show resolved Hide resolved
ui/pages/routes/routes.component.test.js Show resolved Hide resolved
ui/pages/routes/routes.component.js Show resolved Hide resolved
shared/lib/multichain.ts Show resolved Hide resolved
@metamaskbot
Copy link
Collaborator

Builds ready [3024b8b]
Page Load Metrics (1988 ± 125 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint161726871984263126
domContentLoaded160326581961261125
load161126871988260125
domInteractive14232524722
backgroundConnect980302010
firstReactRender5210574147
getState4312694188
initialActions01000
loadScripts115920441473224108
setupStore6481094
uiStartup185730822268299144
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 0 Bytes (0.00%)
  • ui: 342 Bytes (0.00%)
  • common: 311 Bytes (0.00%)

@montelaidev montelaidev requested a review from ccharly November 20, 2024 16:23
@metamaskbot
Copy link
Collaborator

Builds ready [ece7d0f]
Page Load Metrics (1996 ± 77 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint26022801842511245
domContentLoaded16862216195215173
load17522273199616177
domInteractive16130442512
backgroundConnect1179462311
firstReactRender891651202010
getState782222110
initialActions01000
loadScripts12281703143813866
setupStore65612126
uiStartup19592697222018589
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 0 Bytes (0.00%)
  • ui: 342 Bytes (0.00%)
  • common: 311 Bytes (0.00%)

@metamaskbot
Copy link
Collaborator

Builds ready [610cf1f]
Page Load Metrics (1890 ± 69 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint29621421723488234
domContentLoaded16452146185713967
load16662152189014369
domInteractive20214504220
backgroundConnect1182352210
firstReactRender541551002210
getState65818189
initialActions01000
loadScripts11621626136512359
setupStore65617178
uiStartup18622381209115173
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 0 Bytes (0.00%)
  • ui: 342 Bytes (0.00%)
  • common: 311 Bytes (0.00%)

Copy link
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 + tested:

Screenshot 2024-11-25 at 10 41 25
Screenshot 2024-11-25 at 10 41 54
Screenshot 2024-11-25 at 10 42 49

@montelaidev montelaidev added this pull request to the merge queue Nov 25, 2024
Merged via the queue into develop with commit 232a0f8 Nov 25, 2024
75 checks passed
@montelaidev montelaidev deleted the fix/ap-660 branch November 25, 2024 11:39
@github-actions github-actions bot locked and limited conversation to collaborators Nov 25, 2024
@metamaskbot metamaskbot added the release-12.9.0 Issue or pull request that will be included in release 12.9.0 label Nov 25, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
release-12.9.0 Issue or pull request that will be included in release 12.9.0 team-accounts
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants