Skip to content

feat: Show rending confirmation alert on permission page when switching network #30725

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

Merged
merged 8 commits into from
Mar 21, 2025

Conversation

jpuri
Copy link
Contributor

@jpuri jpuri commented Mar 4, 2025

Description

Show rending confirmation alert on permission page when switching network

Related issues

Fixes: https://github.com/MetaMask/MetaMask-planning/issues/4329

Manual testing steps

  1. Enable EVM multichain locally using env variable EVM_MULTICHAIN_ENABLED
  2. Submit a confirmation
  3. Switch network ensure user does not have permission on the network
  4. Check that alert appears on grant permission modal and pending confirmations are deleted as user confirms the warning

Screenshots/Recordings

Screenshot 2025-03-04 at 6 57 44 PM Screenshot 2025-03-04 at 6 57 51 PM

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 Mar 4, 2025

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.

@metamaskbot metamaskbot added the team-confirmations Push issues to confirmations team label Mar 4, 2025
@jpuri jpuri force-pushed the switch_network_approval branch 5 times, most recently from d5840f8 to 97ef600 Compare March 5, 2025 15:07
@jpuri jpuri force-pushed the add_permissions branch 2 times, most recently from 1ce262b to a44b849 Compare March 5, 2025 15:27
@jpuri jpuri marked this pull request as ready for review March 5, 2025 15:28
@jpuri jpuri requested a review from a team as a code owner March 5, 2025 15:28
@jpuri jpuri force-pushed the add_permissions branch from a44b849 to acb13bc Compare March 5, 2025 15:40
@metamaskbot
Copy link
Collaborator

Builds ready [acb13bc]
Page Load Metrics (1790 ± 84 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint30120721657456219
domContentLoaded14602054176917785
load15142071179017584
domInteractive24100442110
backgroundConnect115322115
firstReactRender1572392211
getState657242010
initialActions01000
loadScripts10841581132415575
setupStore76017157
uiStartup17082394203919091

@metamaskbot
Copy link
Collaborator

Builds ready [18bb57f]
Page Load Metrics (1706 ± 81 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint31621081646348167
domContentLoaded14522016167215273
load14632092170616981
domInteractive2699482412
backgroundConnect1179382311
firstReactRender147225188
getState56014157
initialActions01000
loadScripts10471529125212660
setupStore786232412
uiStartup170027351987282135

@jpuri jpuri force-pushed the switch_network_approval branch from 1aa7809 to d42103d Compare March 7, 2025 13:02
@jpuri jpuri force-pushed the add_permissions branch from 18bb57f to 3d7e45a Compare March 7, 2025 13:02
@metamaskbot
Copy link
Collaborator

Builds ready [3d7e45a]
Page Load Metrics (1666 ± 51 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint14781886167011053
domContentLoaded1464186916439646
load14821894166610651
domInteractive2610341189
backgroundConnect1168332010
firstReactRender156925168
getState45112136
initialActions01000
loadScripts1039139312198440
setupStore873212010
uiStartup16552175189713866

@jpuri jpuri force-pushed the switch_network_approval branch from d42103d to d2d7db9 Compare March 7, 2025 13:41
@jpuri jpuri force-pushed the add_permissions branch from 3d7e45a to 7135d1b Compare March 7, 2025 13:47
@metamaskbot
Copy link
Collaborator

Builds ready [9d00a4e]
Page Load Metrics (2047 ± 169 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint162826342018286137
domContentLoaded161724311922213102
load163029812047352169
domInteractive26117412311
backgroundConnect1471013017584
firstReactRender18157513818
getState6240586029
initialActions01000
loadScripts12031831146216077
setupStore8113262612
uiStartup1836770327571299624

@metamaskbot
Copy link
Collaborator

Builds ready [d919418]
Page Load Metrics (1735 ± 76 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint36220571591415199
domContentLoaded15212113168514670
load15332127173515976
domInteractive24127362512
backgroundConnect11181545024
firstReactRender1369312010
getState490202211
initialActions01000
loadScripts11531630128211555
setupStore75317168
uiStartup171927262034268129

@jpuri jpuri force-pushed the add_permissions branch from d919418 to 5c966fb Compare March 13, 2025 10:41
Base automatically changed from switch_network_approval to main March 13, 2025 11:16
@jpuri jpuri force-pushed the add_permissions branch from 5c966fb to ac1bb1d Compare March 13, 2025 11:39
@jpuri jpuri enabled auto-merge March 13, 2025 12:06
@metamaskbot
Copy link
Collaborator

Builds ready [6e0cf45]
Page Load Metrics (3024 ± 399 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint181649892732663318
domContentLoaded177640152434476228
load181953783024831399
domInteractive28175764521
backgroundConnect781560589433208
firstReactRender4352813811555
getState1168024318187
initialActions01000
loadScripts133922351736217104
setupStore1058615814871
uiStartup199112032569326891291
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 147 Bytes (0.00%)
  • ui: 2.48 KiB (0.03%)
  • common: 0 Bytes (0.00%)

@metamaskbot
Copy link
Collaborator

Builds ready [db223a9]
Page Load Metrics (3368 ± 1399 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint176012747315928011345
domContentLoaded166911819289026261261
load178813254336829141399
domInteractive26319697435
backgroundConnect971184440306147
firstReactRender42180864220
getState3669722819392
initialActions01000
loadScripts125310860228725061204
setupStore1942611511254
uiStartup232819117508139521898
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 147 Bytes (0.00%)
  • ui: 2.48 KiB (0.03%)
  • common: 0 Bytes (0.00%)

@metamaskbot
Copy link
Collaborator

Builds ready [02aa314]
Page Load Metrics (1999 ± 258 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint37032511896560269
domContentLoaded146730721865399191
load151034981999537258
domInteractive269644209
backgroundConnect1081515019795
firstReactRender16185523919
getState4315618340
initialActions01000
loadScripts103719001344215103
setupStore8269395928
uiStartup1660863727601638787
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 147 Bytes (0.00%)
  • ui: 2.48 KiB (0.03%)
  • common: 0 Bytes (0.00%)

@metamaskbot
Copy link
Collaborator

Builds ready [ba8f173]
Page Load Metrics (4219 ± 1832 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint42010728316127461319
domContentLoaded148213141363334221643
load167113778421938161832
domInteractive254636335992476
backgroundConnect1083065571636306
firstReactRender41190914019
getState412404337511245
initialActions02000
loadScripts109210249277428111350
setupStore1751314113062
uiStartup215722692662853652576
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 147 Bytes (0.00%)
  • ui: 2.48 KiB (0.03%)
  • common: 0 Bytes (0.00%)

@metamaskbot
Copy link
Collaborator

Builds ready [2321ca1]
Page Load Metrics (4332 ± 1831 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint70119307387139271886
domContentLoaded191919233383939111878
load200219329433238121831
domInteractive2672412515876
backgroundConnect731107489346166
firstReactRender243221107435
getState3175721318589
initialActions01000
loadScripts127818801288737511801
setupStore1261813914268
uiStartup228119668692240931965
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 147 Bytes (0.00%)
  • ui: 2.48 KiB (0.03%)
  • common: 0 Bytes (0.00%)

@metamaskbot
Copy link
Collaborator

Builds ready [6054dfb]
Page Load Metrics (3033 ± 464 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint376583126061159556
domContentLoaded171056092465902433
load187158973033966464
domInteractive275389812158
backgroundConnect164959554248119
firstReactRender521741002914
getState7055623212962
initialActions01000
loadScripts122545311685714343
setupStore233881358943
uiStartup275110970554621311023
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 147 Bytes (0.00%)
  • ui: 2.48 KiB (0.03%)
  • common: 0 Bytes (0.00%)

@jpuri jpuri added this pull request to the merge queue Mar 21, 2025
Merged via the queue into main with commit b6da134 Mar 21, 2025
77 checks passed
@jpuri jpuri deleted the add_permissions branch March 21, 2025 10:33
@github-actions github-actions bot locked and limited conversation to collaborators Mar 21, 2025
@metamaskbot metamaskbot added the release-12.16.0 Issue or pull request that will be included in release 12.16.0 label Mar 21, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
release-12.16.0 Issue or pull request that will be included in release 12.16.0 team-confirmations Push issues to confirmations team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants