Skip to content
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

Merged
merged 5 commits into from Apr 13, 2023
Merged

Improvement on approval pages #18545

merged 5 commits into from Apr 13, 2023

Conversation

jpuri
Copy link
Contributor

@jpuri jpuri commented Apr 12, 2023

Error message improvements on approval pages.

@jpuri jpuri requested review from segun and digiwand April 12, 2023 11:24
@jpuri jpuri requested a review from a team as a code owner April 12, 2023 11:24
@github-actions
Copy link
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.

dataTestId="custom-spending-cap-input"
autoFocus
Copy link
Contributor Author

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.

@metamaskbot
Copy link
Collaborator

Builds ready [6547d0e]
Page Load Metrics (1739 ± 264 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint914061367938
domContentLoaded135932631713536257
load136132631739549264
domInteractive135932631713536257
Bundle size diffs
  • background: 0 bytes
  • ui: 2371 bytes
  • common: 0 bytes

Copy link
Contributor

@blackdevelopa blackdevelopa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@metamaskbot
Copy link
Collaborator

Builds ready [43432c4]
Page Load Metrics (1815 ± 91 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint983521536832
domContentLoaded15092203179519192
load15102203181518991
domInteractive15092203179519192
Bundle size diffs
  • background: 0 bytes
  • ui: 2339 bytes
  • common: 0 bytes

@seaona
Copy link
Contributor

seaona commented Apr 13, 2023

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.mp4
approve-erc721.mp4

@metamaskbot
Copy link
Collaborator

Builds ready [2828d11]
Page Load Metrics (1853 ± 90 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint1001651332010
domContentLoaded15212162183218589
load15312162185318790
domInteractive15212162183218589
Bundle size diffs
  • background: 0 bytes
  • ui: 2339 bytes
  • common: 0 bytes

Copy link
Contributor

@digiwand digiwand left a 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)

@jpuri
Copy link
Contributor Author

jpuri commented Apr 13, 2023

👍

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.

@jpuri jpuri merged commit a2bec15 into develop Apr 13, 2023
46 checks passed
@jpuri jpuri deleted the opensea_approve_fix branch April 13, 2023 17:24
@github-actions github-actions bot locked and limited conversation to collaborators Apr 13, 2023
@danjm danjm added release-10.29.0 release-blocker This bug is blocking the next release rc-cherry-picked labels Apr 13, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
rc-cherry-picked release-10.29.0 release-blocker This bug is blocking the next release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants