metamask-extension
metamask-extension copied to clipboard
Create "Review/Revoke Spending Cap" screen
Create new screen --> "Review Spending Cap" screen
Resources
Acceptance Criteria
-
The "Verify contract details" link is added to both token allowances screens (a.k.a Set spending cap & Review spending cap)
-
Clicking on the link opens the
Contract details
modal -
On the second token allowance screen (a.k.a. "Review the spending cap"), the navigation header should have a
< Back
button on the left side and display2 of 2
on the right side (2nd screenshot).
Acceptance Criteria
-
Create new screen --> "Review/Revoke Spending Cap" screen according to the figma design.
-
Screen is opened in two ways
- By clicking the Next button on the "Set spending cap" screen, issue: https://github.com/MetaMask/metamask-extension/issues/15211
- When the dapp send 0 allowance amount
- The screen consist of following elements as shown on the picture below.
Note
Rename "Cancel" button to "Reject" (differ from design)
- Navigation header: "< Back button" on the left side and display "2 of 2" on the right side
- Network + account + balance header component - issue: https://github.com/MetaMask/metamask-extension/issues/15222
- Pill component with new design - issue: https://github.com/MetaMask/metamask-extension/issues/15213
- Title: should be:
- "Review the spending cap for your" - when the amount is greater than 0
- "Revoke the spending cap for your" - when the amount is equal to 0
- New token component - issue: https://github.com/MetaMask/metamask-extension/issues/15215
- Clicking on the "Verify contract details" link opens the "Contract details modal" - issue: https://github.com/MetaMask/metamask-extension/issues/15226
- Review spending cap component - issue: https://github.com/MetaMask/metamask-extension/issues/15212. Click on the Edit button will show the screen 1 of 2 (a.k.a "Set spending cap", issue: https://github.com/MetaMask/metamask-extension/issues/15211)
- Estimated fee data and Fee details option - as has been implemented in the current Token allowance version
- Transaction details option - as has been implemented in the current Token allowance version
- Command buttons - Cancel/Reject and Approve buttons. Cancel/Reject button will close the screen as has been implemented in the current version - "Reject" button. Approve button will approve spending cap limit as as has been implemented in the current version - "Confirm" button. Current version screenshot is below.
Only comment on the above AC: let's continue to use "Reject" as the copy for the reject/cancel button. No changes needed there.
Removing the blocked
label as well required PRs have been merged already
As agreed with @danjm and @bschorchit, the old gas component
will be used.
View full transaction details
button from the gas component
will be removed and by clicking on the View details
button (new design) data will be shown (without the granted one, as it is being shown on the contract details modal).
@bschorchit needs to check whether the old design will be used for the gas component
when the enhanced gas fee
is enabled or some new design.
Sounds good! We should also use the existing old design for the gas component
when enhanced gas fee
is enabled.