-
Notifications
You must be signed in to change notification settings - Fork 5k
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
Disabling network and account changes after the send flow is initiated #18086
Conversation
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. |
Builds ready [4f9c043]
Page Load Metrics (1808 ± 85 ms)
Bundle size diffs
|
Codecov Report
@@ Coverage Diff @@
## develop #18086 +/- ##
===========================================
+ Coverage 65.15% 65.53% +0.38%
===========================================
Files 936 914 -22
Lines 35965 35288 -677
Branches 9231 8984 -247
===========================================
- Hits 23432 23124 -308
+ Misses 12533 12164 -369
... and 288 files with indirect coverage changes Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
Plz check if it possible to add test coverage, it will be good and codecov will also be green 😄 |
Builds ready [2a27b83]
Page Load Metrics (1577 ± 43 ms)
Bundle size diffs
|
Builds ready [0479804]
Page Load Metrics (1608 ± 52 ms)
Bundle size diffs
|
69ce715
to
f103c7b
Compare
91b9a85
to
13de2c6
Compare
lines: 66.58, | ||
branches: 54.79, | ||
statements: 65.74, | ||
functions: 58.4, | ||
}, | ||
transforms: { | ||
branches: 100, |
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.
🚀
expect(getByTestId('account-menu-icon')).not.toBeDisabled(); | ||
}); | ||
}); | ||
}); |
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.
NIT: test case description can be made more intuitive.
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.
Just a small feedbacks, looks great otherwise 👍
Builds ready [e275550]
Page Load Metrics (1711 ± 56 ms)
Bundle size diffs
|
Great job @NiranjanaBinoy I can see how network is disabled while performing a transaction. I've noticed that the Account is also disabled. Is this the intended behaviour? cc @bschorchit extension-change-account.mp4 |
@seaona The account was disabled for the other scenarios where the network drop-down was disabled, so I replicated the same on this. |
I wonder how common is for users to change accounts during this flow. I'm inclined to say we keep the account changing blocked in those screens as well mainly because there's no info on the Minor detail: Is the difference on how the cursor looks like for hovering over the network dropdown and the account dropdown intentional? |
Make sense to me! Thank you @NiranjanaBinoy @bschorchit !! Maybe we could update the PR description/title to reference to the Account Disabling too 👍 |
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.
🚀
Can you please fix the lint failures, then I will approve |
Builds ready [327597b]
Page Load Metrics (2008 ± 100 ms)
Bundle size diffs
|
327597b
to
741200c
Compare
Builds ready [0ec236f]
Page Load Metrics (1592 ± 34 ms)
Bundle size diffs
|
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.
LGTM
Explanation
Fixes #18045
The initial issue was that if the user changes the network while performing a send transaction using ens, the ens gets resolved to the new network's wrong address.
The solution is to disable the ability to change the network and account once the user start a sends transactions.
#18045 (comment)
Screenshots/Screencaps
Before
After
Manual Testing Steps
add recipient page
; this should be disabled.draft send page
, this should also be disabled.Pre-merge author checklist
Pre-merge reviewer checklist
If further QA is required (e.g. new feature, complex testing steps, large refactor), add the
Extension QA Board
label.In this case, a QA Engineer approval will be be required.