feat: add option to hide submit button in the confirmation template#23085
Merged
dbrans merged 7 commits intoFeb 28, 2024
Conversation
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. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #23085 +/- ##
========================================
Coverage 68.58% 68.59%
========================================
Files 1098 1098
Lines 43332 43336 +4
Branches 11551 11555 +4
========================================
+ Hits 29719 29723 +4
Misses 13613 13613 ☔ View full report in Codecov by Sentry. |
Collaborator
Builds ready [607933a]
Page Load Metrics (1882 ± 121 ms)
Bundle size diffs
|
Collaborator
Builds ready [53ea49d]
Page Load Metrics (1987 ± 99 ms)
Bundle size diffs
|
Contributor
5e46087 to
b6d8afd
Compare
…bmit-btn-confirmation-template
dbc7964 to
d0975e2
Compare
Contributor
|
Linting will be fixed by #23204 |
…bmit-btn-confirmation-template
Collaborator
Builds ready [3a6cd48]
Page Load Metrics (1181 ± 391 ms)
Bundle size diffs
|
matthewwalsh0
approved these changes
Feb 28, 2024
OGPoyraz
approved these changes
Feb 28, 2024
Contributor
Manual verificationAdding BNB Chain on chainlist.org Before
AfterManually setting hideSubmitButton = true in template add-ethereum-chain.js
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Description
This PR aims to add an option to hide the submit button in the confirmation template.
Related issues
Fixes: https://github.com/MetaMask/MetaMask-planning/issues/2129
Manual testing steps
Note: It won't be possible to test this option as it was not adopted by any confirmation template.
I recorded a video to show the behaviour with the new option while I was testing.
Test regression adding chain and snaps both are using confirmation template.
Chain:
Snap:
Screenshots/Recordings
hide-submit-btn.webm
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist