-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
User to be able to edit approval amount in simulation section of batched confirmation #15572
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
base: main
Are you sure you want to change the base?
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. |
3fefddc
to
e42b19f
Compare
|
|
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.
hey @jpuri, the new feature is looking great! a couple of requests and suggestions above
"unavailable": "Unavailable", | ||
"edit_approval_limit_title": "Edit approval limit", | ||
"edit_approval_limit_description": "Enter the amount that you feel comfortable being spent on your behalf.", | ||
"edit_approval_limit_balance_info": "Account balance:", | ||
"cancel": "Cancel", | ||
"save": "Save" |
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] alphabetize
iconName={IconName.Edit} | ||
size={ButtonIconSizes.Md} | ||
onPress={openModal} | ||
testID="edit-amount-button-icon" |
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.
Initially, the file path name "edit-row-value" suggests this could be a generic edit row component.
Based on the translation keys and methods, it combines the context of simulation and the amount. Can we rename the file path to provide more context?
If we plan for other edit row components, we could abstract the logic later to create a reusable component
jest.mock('../../../../core/Engine', () => ({ | ||
context: { | ||
TokenListController: { | ||
fetchTokenList: jest.fn(), | ||
}, | ||
}, | ||
})); | ||
|
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.
jest.mock('../../../../core/Engine', () => ({ | |
context: { | |
TokenListController: { | |
fetchTokenList: jest.fn(), | |
}, | |
}, | |
})); |
I think we can remove this after this PR was merged a few hours ago
#15843
will need to double-check
Description
User to be able to edit approval amount in simulation section of batched confirmation
Related issues
Fixes: https://github.com/MetaMask/MetaMask-planning/issues/4972
Manual testing steps
Screenshots/Recordings
Screen.Recording.2025-05-23.at.6.08.34.PM.mov
Pre-merge author checklist
Pre-merge reviewer checklist