fix: alert system and refine SIWE and contract interaction alerts#27205
fix: alert system and refine SIWE and contract interaction alerts#27205vinistevam merged 27 commits intodevelopfrom
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. |
Builds ready [8fa2cd6]
Page Load Metrics (1543 ± 72 ms)
Bundle size diffs [🚀 Bundle size reduced!]
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #27205 +/- ##
===========================================
+ Coverage 70.01% 70.01% +0.01%
===========================================
Files 1445 1445
Lines 50194 50199 +5
Branches 14041 14043 +2
===========================================
+ Hits 35139 35146 +7
+ Misses 15055 15053 -2 ☔ View full report in Codecov by Sentry. |
app/_locales/en/messages.json
Outdated
| @@ -1019,10 +1019,10 @@ | |||
| "message": "I have acknowledged the alert and still want to proceed" | |||
| }, | |||
| "confirmAlertModalDetails": { | |||
There was a problem hiding this comment.
To change the copy correctly and trigger new translations, you can add the new copy under a new translation key, and delete the old key in all languages.
There was a problem hiding this comment.
Oh, thanks for pointing that out. I've applied the recommended changes. 474affa
pedronfigueiredo
left a comment
There was a problem hiding this comment.
LGTM, just left one comment regarding the translation files
|
Builds ready [474affa]
Page Load Metrics (1732 ± 107 ms)
Bundle size diffs [🚀 Bundle size reduced!]
|
Builds ready [14d6c72]
Page Load Metrics (1768 ± 85 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
Builds ready [7b18c80]
Page Load Metrics (1866 ± 71 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
ui/components/app/alert-system/confirm-alert-modal/confirm-alert-modal.tsx
Outdated
Show resolved
Hide resolved
Builds ready [1349889]
Page Load Metrics (1855 ± 89 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
digiwand
left a comment
There was a problem hiding this comment.
PR looks good! added 1 non-blocking suggestion
merge conflicts are blocking merge
ui/components/app/alert-system/confirm-alert-modal/confirm-alert-modal.tsx
Outdated
Show resolved
Hide resolved
c2c041b
Builds ready [613b40d]
Page Load Metrics (2092 ± 169 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
edd9c7c to
613b40d
Compare
|
Builds ready [c9dc17d]
Page Load Metrics (1931 ± 97 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|



Description
This PR aims to apply fixes and improvements to the Alert System in general and specific alerts such as SIWE and contract interaction.
Fixes:
1- Display a more generic and toned-down message on the friction modal.
2- Show alerts before the Confirm Alert Modal (final friction modal) when there is a danger alert.
3- Fixed CTA button when the alert has not been acknowledged.
Fixes from UX QA feedback
Figma
security-searchicon when button isReview AlertsorReview Alert- ✔️Xbutton - ✔️Related issues
Fixes: #27132 #27147 #27118
Manual testing steps
Case 1
Case 2
Case 3
Case 4
Screenshots/Recordings
alert-fix.webm
mint-without-funds.webm
Contract.Interaction.and.Alerts.webm
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist