-
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
feat: Do not require scroll-to-bottom for SIWE or Signatures with simulations before enabling Confirm footer #26887
Conversation
…o check condition
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 [dcf9a9c]
Page Load Metrics (1810 ± 60 ms)
Bundle size diffs
|
Footer is not using useConfirmContext yet throwing disabled logic off
///: BEGIN:ONLY_INCLUDE_IF(build-mmi) | ||
mmiSubmitDisabled || | ||
///: END:ONLY_INCLUDE_IF | ||
hardwareWalletRequiresConnection; |
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.
It will be nice to create context for scroll functionality and move these logic to it - so that the logic does not goes to components like footer.
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.
that can be done in separate task
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.
Great suggestion!
I created a new, enhancement issue to address this here: #26970
b3d2f3c
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #26887 +/- ##
===========================================
+ Coverage 70.17% 70.17% +0.01%
===========================================
Files 1425 1425
Lines 49646 49648 +2
Branches 13891 13890 -1
===========================================
+ Hits 34835 34839 +4
+ Misses 14811 14809 -2 ☔ View full report in Codecov by Sentry. |
Builds ready [b3d2f3c]
Page Load Metrics (1828 ± 122 ms)
Bundle size diffs
|
Quality Gate passedIssues Measures |
Builds ready [3d47a03]
Page Load Metrics (1845 ± 110 ms)
Bundle size diffs
|
Description
Related issues
Fixes: https://github.com/MetaMask/MetaMask-planning/issues/3131
Manual testing steps
Test scrollable confirmation Confirm button behavior
Screenshots/Recordings
Before
After
Permit with simulation does not need to scroll to confirm, even with Blockaid warning
Sign-in With Ethereum does not need to scroll to confirm
[Existing behavior] Other scrollable confirmations will require scrolling to the bottom to confirm
Pre-merge author checklist
Pre-merge reviewer checklist