-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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: Custom Spend Allowance #5591
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. |
bcb1f94
to
e711479
Compare
cbbd57a
to
ac44257
Compare
061d5a1
to
aa17390
Compare
Hi @holantonela following our conversation on Slack, please see the loading state cc: @bschorchit |
Taking this back to draft temporarily to complete close out small bug fixes |
app/component-library/components-temp/Accounts/AccountBalance/AccountBalance.tsx
Outdated
Show resolved
Hide resolved
app/component-library/components-temp/Accounts/AccountBase/AccountBase.tsx
Outdated
Show resolved
Hide resolved
app/component-library/components-temp/CustomSpendCap/CustomInput/CustomInput.tsx
Show resolved
Hide resolved
3dd56b2
to
ad07ba5
Compare
SonarCloud Quality Gate failed. |
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
@blackdevelopa I see the issues fixed!! Overall looks good 🔥 I don't want to hold more this PR so I would QA Pass it. There is a small improvement that could be made with load state. Basically, whenever is on a loading state we don't seem to see any indicator that is loading, but we see the Approve button disabled for some seconds - which might create confusion to the user. I would open a separate issue for that, if we agree @blackdevelopa @bschorchit , so we can merge this PR. Also, I will continue QAing this feature together in main, as it's a big change. I will let you know if I find something else. Amazing job!! load-state-approve.mp4 |
I agree with loading being a separate issue :) |
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
I've changed the label from release-7.1.0 to release 7.2.0 as we want to make this change https://github.com/MetaMask/MetaMask-planning/issues/685 (same changes we're making on extension) before shipping this on mobile |
Development & PR Process
release-xx
label to identify the PR slated for a upcoming release (will be used in release discussion)needs-dev-review
label when work is completedneeds-qa
label when dev review is completedQA Passed
label when QA has signed offDescription
Currently when approving a token transaction, there's an option to set a custom spend limit to be approved. In this PR, that flow is broken into two screens: a custom spend screen to set a spend cap and a review screen to approve transaction. This issue is defined further here (#178) and (#177). This PR also removes the metric for
DAPP_APPROVE_SCREEN_EDIT_PERMISSION
for token approve screen.Design
Test Case
Screenshots/Recordings
Before
http://recordit.co/P8mSgLguHF
After
http://recordit.co/PVJF0qx9P3
http://recordit.co/LY5Z3Us1Ax
Issue
Progresses #178 and #177
Checklist