-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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: Added UI for switching via dapp for custom chain id #26905
Conversation
3f3e0af
to
982ecc1
Compare
Hmmmm I got this error. I didn't built with any env vars, just yarn; yarn webpack Screen.Recording.2024-09-04.at.10.22.10.AM.mov |
I got this same error, but after setting Should we handle the case where this flag is not set, rather than dumping a generic error? |
@@ -249,6 +250,83 @@ function getValues(pendingApproval, t, actions, history, data) { | |||
}, | |||
], | |||
}, | |||
{ | |||
element: process.env.CHAIN_PERMISSIONS && 'BannerAlert', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the expected behavior if this feature flag is not set?
Similarly to @gambinish, I get an error when not using the flag, but when the flag is on, everything works well. |
6661249
to
366bb44
Compare
Nice catch @bergeron . @jonybur @gambinish without feature flag it should not crash. Here is the expected behaviour in both the cases With feature flagScreen.Recording.2024-09-09.at.3.45.24.AM.movWithout feature flagScreen.Recording.2024-09-09.at.3.47.48.AM.mov |
Builds ready [1786235]
Page Load Metrics (1641 ± 60 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
Quality Gate passedIssues Measures |
Builds ready [c0a13ad]
Page Load Metrics (1665 ± 123 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #26905 +/- ##
===========================================
- Coverage 70.17% 70.17% -0.00%
===========================================
Files 1425 1425
Lines 49659 49662 +3
Branches 13891 13893 +2
===========================================
+ Hits 34846 34848 +2
- Misses 14813 14814 +1 ☔ View full report in Codecov by Sentry. |
This PR is to update the UI when the dapp tries to add custom Chain Id network in MetaMask
Related issues
Fixes: https://github.com/MetaMask/MetaMask-planning/issues/2661
Manual testing steps
Screenshots/Recordings
Before
NA
After
Screen.Recording.2024-09-04.at.6.10.59.PM.mov
Pre-merge author checklist
Pre-merge reviewer checklist