-
Notifications
You must be signed in to change notification settings - Fork 5k
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
Open sea security provider warning message #17662
Open sea security provider warning message #17662
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. |
Verified by QA |
<SecurityProviderBannerMessage | ||
securityProviderResponse={txData?.securityProviderResponse} | ||
/> | ||
)} | ||
<ConfirmPageContainerSummary | ||
className={classnames({ | ||
'confirm-page-container-summary--border': |
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.
Will be nice to have test coverage of the code change in this component.
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.
Fixed here: 40ce40f
Code changes look good to me, will be nice to have some test more coverage. |
0478bca
to
40ce40f
Compare
40ce40f
to
186dd8b
Compare
Builds ready [186dd8b]
Page Load Metrics (1450 ± 108 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
<SecurityProviderBannerMessage | ||
securityProviderResponse={txData?.securityProviderResponse} | ||
/> | ||
)} |
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.
From changes in snaps I am in doubt error message is showing up by default.
This will be true txData?.securityProviderResponse?.flagAsDangerous !== 0
even if txData?.securityProviderResponse?.flagAsDangerous
is undefined.
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.
Yeah, good catch! The securityProviderResponse
was added into beforeEach
and it affected all the tests including the ones that check matching the snapshot. It is fixed now and you can check the changes.
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.
few comments about constants
|
||
it('should render SecurityProviderBannerMessage component properly when flagAsDangerous is 1', () => { | ||
const securityProviderResponse = { | ||
flagAsDangerous: 1, |
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.
Can we use named constants here, 0, 1, 2 doesn't mean much and could be confusing maintaining this in the future.
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.
Fixed
|
||
it('should not render SecurityProviderBannerMessage component when flagAsDangerous is 0', () => { | ||
props.txData.securityProviderResponse = { | ||
flagAsDangerous: 0, |
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.
Same comment as above...we should use named constant here.
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.
Fixed
02c2f7d
to
7d86790
Compare
Builds ready [c72bed0]
Page Load Metrics (1598 ± 39 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
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 QAd the PR and overall looks good. I have some open questions which are not blockers but always good to clarify:
siwe-warning2.mp4
opensea-500-response.mp4
opensea-5.mp4
opensea-empty-header-reason.mp4cc @bschorchit |
Thank you for your amazing 👀 here @seaona ! ❤️
|
Hey @bschorchit and @seaona! Added.SIWE.movStatus.code.500.movMissing.reason.or.reason.header.mov |
Builds ready [85db441]
Page Load Metrics (1660 ± 62 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
Codecov Report
📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more @@ Coverage Diff @@
## develop #17662 +/- ##
===========================================
+ Coverage 62.23% 62.26% +0.03%
===========================================
Files 902 904 +2
Lines 35139 35188 +49
Branches 8889 8921 +32
===========================================
+ Hits 21868 21909 +41
- Misses 13271 13279 +8
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
Builds ready [f25e7c0]
Page Load Metrics (1669 ± 90 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
thank you for the clarifications @bschorchit . I see all the issues fixed! Great work @filipsekulic !! |
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
Explanation
Manual Testing Steps
test-dapp
SEND LEGACY TRANSACTION
SEND EIP 1559 TRANSACTION
ETH SIGN
PERSONAL SIGN
SIGN TYPED DATA
SIGN TYPED DATA V3
SIGN TYPED DATA V4
SIGN IN WITH ETHEREUM
SIGN IN WITH ETHEREUM (W/ RESOURCES)
SIGN IN WITH ETHEREUM (BAD ACCOUNT)
SIGN IN WITH ETHEREUM (MALFORMED)
The warning message will appear depending on the input data sent to the
OpenSea
security provider.