-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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: Add domain binding SIWE redesign alert row #25281
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. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #25281 +/- ##
===========================================
+ Coverage 69.69% 69.70% +0.01%
===========================================
Files 1350 1351 +1
Lines 47865 47881 +16
Branches 13199 13203 +4
===========================================
+ Hits 33355 33371 +16
Misses 14510 14510 ☔ View full report in Codecov by Sentry. |
…mation useBlockaidAlert
Builds ready [780f5b7]
Page Load Metrics (47 ± 6 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.
👍
Builds ready [e817fec]
Page Load Metrics (43 ± 3 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
Builds ready [e817fec]
Page Load Metrics (43 ± 3 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
hello again and apologies, may I get a re-review please? @jpuri @matthewwalsh0 merge conflict undid approvals. I took this as an opportunity to update the filepaths from useDomainMismatchAlert → useDomainMismatchAlerts to match pattern of similar hooks |
Builds ready [52502c2]
Page Load Metrics (136 ± 171 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
@@ -44,7 +44,7 @@ const SIWESignInfo: React.FC = () => { | |||
return ( | |||
<> | |||
<ConfirmInfoRow label={t('message')}> | |||
<ConfirmInfoRowText text={statement} /> | |||
<ConfirmInfoRowText text={statement || ''} /> |
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.
<ConfirmInfoRowText text={statement || ''} /> | |
<ConfirmInfoRowText text={statement ?? ''} /> |
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.
oh nice! I can update this in a subsequent alert PR to not need re-reviews
|
||
const isSIWE = isSIWESignatureRequest(currentConfirmation); | ||
const isInvalidSIWEDomain = | ||
isSIWE && !isValidSIWEOrigin(msgParams as WrappedSIWERequest); |
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.
It will be useful to include above 3 lines also inside useMemo
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.
I had this originally and then @matthewwalsh0 brought up a good point to reduce the # of observed dependencies
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.
Changes look good 👍
Description
Currently, the existing logic displays the same friction modal for multiple alerts with only one danger alert. There will be a separate PR to update the Alert System to follow the designs mentioned in the Issue ticket
Related issues
Fixes: #24683
Manual testing steps
Screenshots/Recordings
Before
After
(There is another PR that is hiding the "i" icon beside the Alert for SIWE)
Pre-merge author checklist
Pre-merge reviewer checklist