feat: update malicious alert modal to new design#24055
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. |
app/components/Views/confirmations/components/modals/alert-modal/alert-modal.tsx
Show resolved
Hide resolved
app/components/Views/confirmations/components/modals/alert-modal/alert-modal.tsx
Show resolved
Hide resolved
app/components/Views/confirmations/components/modals/alert-modal/alert-modal.test.tsx
Outdated
Show resolved
Hide resolved
app/components/Views/confirmations/components/modals/alert-modal/alert-modal.tsx
Show resolved
Hide resolved
app/components/Views/confirmations/components/modals/alert-modal/alert-modal.tsx
Show resolved
Hide resolved
…to fix/malicious-alert-modal
…to fix/malicious-alert-modal
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsE2E Test Selection:
The changes are self-contained within the confirmations alert system. Running
No other tags are needed as the alert system is specific to confirmations and doesn't affect other areas like accounts, trading, or network management. Performance Test Selection: |
|



Description
The
Got itbutton on malicious (Danger severity) alert modals was clickable without requiring the user to first acknowledge the risk via the checkbox. This created a UX issue where users could dismiss security warnings without properly acknowledging the danger.Changes:
Changelog
CHANGELOG entry: Fixed malicious alert modal to require checkbox acknowledgment before enabling the Acknowledge button, and added a Close button for easier dismissal
Related issues
Fixes:
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist
Note
Medium Risk
Changes the dismiss/acknowledge behavior of security-sensitive Danger alerts (new button semantics and disable rules), which could impact user flows if logic is wrong, but scope is limited to the alert modal UI and tests.
Overview
Danger-severity alert modals now require explicit user acknowledgement. The primary button changes from “Got it” to “Acknowledge” and is disabled until the checkbox is checked (and remains disabled for blocking alerts).
Adds a separate “Close” button for Danger alerts that only dismisses the modal (does not trigger
onAcknowledgeClick), updates testIDs/selectors (alert-modal-acknowledge-button) and E2E flows accordingly, and introduces new i18n strings foracknowledge_btnandclose_btnalong with expanded unit coverage.Written by Cursor Bugbot for commit c340ef5. This will update automatically on new commits. Configure here.