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
Improvement on approval pages #18545
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. |
dataTestId="custom-spending-cap-input" | ||
autoFocus |
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.
Reason for removing autofocus is that it causes page to scroll.
Builds ready [6547d0e]
Page Load Metrics (1739 ± 264 ms)
Bundle size diffs
|
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
Builds ready [43432c4]
Page Load Metrics (1815 ± 91 ms)
Bundle size diffs
|
From QA looks good @jpuri ! I can see how the security provider warning is displayed on ERC20 Approve and on ERC721 Approve & setApprovalForAll use cases. approve-warning.mp4approve-erc721.mp4 |
Builds ready [2828d11]
Page Load Metrics (1853 ± 90 ms)
Bundle size diffs
|
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.
👍
future note: would be nice to put the conditional we use to check the security provider flag into a util function
(txData?.securityProviderResponse?.flagAsDangerous !== undefined &&
txData?.securityProviderResponse?.flagAsDangerous !==
SECURITY_PROVIDER_MESSAGE_SEVERITIES.NOT_MALICIOUS) ||
(txData?.securityProviderResponse &&
Object.keys(txData.securityProviderResponse).length === 0)
Yeh I also thought of this. This code can be moved to security alert component itself. May be in different PR. |
Error message improvements on approval pages.