From c3e72e9d8cd14cd77fe6e4663a5846ff3ef128db Mon Sep 17 00:00:00 2001 From: Sylva Elendu Date: Wed, 4 Oct 2023 15:59:16 +0100 Subject: [PATCH] flow to report false positive for blockaid (#20856) ## Explanation We should allow users and developers to report false positives for the security provider warnings. Tasks - [x] Add option on UI to report false design. [See deign](https://www.figma.com/file/Q69vHaA7Or7Rxz4vdzjVHC/Support-for-tx-security-providers-(MVP)?type=design&node-id=6065%3A12121&mode=design&t=oYcxRuTnTvDrzqAM-1). The support url might change in the future. - [x] Add new property to transactions and signature events ## Screenshots/Screencaps ### Before Screenshot 2023-09-15 at 16 53 46 ### After Screenshot 2023-09-21 at 11 33 07 Screenshot 2023-09-21 at 11 33 24 ## Manual Testing Steps ## Pre-merge author checklist - [ ] I've clearly explained: - [x] What problem this PR is solving - [x] How this problem was solved - [x] How reviewers can test my changes - [x] Sufficient automated test coverage has been added ## Pre-merge reviewer checklist - [x] Manual testing (e.g. pull and build branch, run in browser, test code being changed) - [x] PR is linked to the appropriate GitHub issue - [ ] **IF** this PR fixes a bug in the release milestone, add this PR to the release milestone If further QA is required (e.g. new feature, complex testing steps, large refactor), add the `Extension QA Board` label. In this case, a QA Engineer approval will be be required. --- app/_locales/en/messages.json | 4 ++ ...ecurity-provider-banner-alert.test.js.snap | 5 +++ .../blockaid-banner-alert.test.js.snap | 18 +++++++++ .../security-provider-banner-alert.js | 18 +++++++++ .../signature-request/signature-request.js | 27 ++++++++++++- .../transaction-alerts/transaction-alerts.js | 39 +++++++++++++++++-- ui/helpers/constants/zendesk-url.js | 1 + .../confirm-transaction-base.component.js | 1 + 8 files changed, 108 insertions(+), 5 deletions(-) diff --git a/app/_locales/en/messages.json b/app/_locales/en/messages.json index 9243f745c25b..403be4d4f3fc 100644 --- a/app/_locales/en/messages.json +++ b/app/_locales/en/messages.json @@ -4266,6 +4266,10 @@ "someNetworksMayPoseSecurity": { "message": "Some networks may pose security and/or privacy risks. Understand the risks before adding & using a network." }, + "somethingDoesntLookRight": { + "message": "Something doesn't look right? $1", + "description": "A false positive message for users to contact support. $1 is a link to the support page." + }, "somethingIsWrong": { "message": "Something's gone wrong. Try reloading the page." }, diff --git a/ui/components/app/security-provider-banner-alert/__snapshots__/security-provider-banner-alert.test.js.snap b/ui/components/app/security-provider-banner-alert/__snapshots__/security-provider-banner-alert.test.js.snap index a5395a81917f..84815da0dc0b 100644 --- a/ui/components/app/security-provider-banner-alert/__snapshots__/security-provider-banner-alert.test.js.snap +++ b/ui/components/app/security-provider-banner-alert/__snapshots__/security-provider-banner-alert.test.js.snap @@ -52,6 +52,11 @@ exports[`Security Provider Banner Alert should match snapshot 1`] = ` List item +

+ [somethingDoesntLookRight] +