metamask-extension icon indicating copy to clipboard operation
metamask-extension copied to clipboard

feat: new phishing warning UI with metrics

Open AugmentedMode opened this issue 1 year ago • 3 comments

Description

This PR introduces the new phishing-warning-page UI in v4.1.0 along with metrics to track when users click on Back to safety which will lead them to the portfolio as well as when they click on proceed anyways to better tack False positives

Some notable improvements in the new UI:

  • Improved design, highlighting MetaMask as the reason for keeping you safe
  • Back to safety now relocates to Portfolio, helping drive more eyes to it
  • Highly shareable: Built-in Share to Twitter/X button, which worked really well at Wallet Guard. This page is shown 400k times per month, so we can gain some free social from this!

Open in GitHub Codespaces

Related issues

Fixes:

Manual testing steps

  1. Go to a scam website that is found on eth-phishing-detect such as web3-lido.lol and you will see the new phishing page UI!
  2. Once on the new phishing page, you can click on Back to safety which will take you to the portfolio or you can click on proceed anyway which will take you to the scam website and allowlist it.

Screenshots/Recordings

Before

Screenshot 2024-10-17 at 2 29 25 PM

After

Screenshot 2024-10-17 at 2 29 44 PM

Screenshot 2024-10-16 at 12 13 58 PM

Pre-merge author checklist

Pre-merge reviewer checklist

  • [ ] I've manually tested the PR (e.g. pull and build branch, run the app, test code being changed).
  • [ ] I confirm that this PR addresses all acceptance criteria described in the ticket it closes and includes the necessary testing evidence such as recordings and or screenshots.

AugmentedMode avatar Oct 17 '24 18:10 AugmentedMode

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.

github-actions[bot] avatar Oct 17 '24 18:10 github-actions[bot]

New and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/@metamask/[email protected] None 0 1.86 MB metamaskbot

🚮 Removed packages: npm/@metamask/[email protected]

View full report↗︎

socket-security[bot] avatar Oct 17 '24 18:10 socket-security[bot]

Builds ready [3ccbd18]
Page Load Metrics (2006 ± 67 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint18052410201214871
domContentLoaded17332298197213464
load18032346200613967
domInteractive19103552512
backgroundConnect999363014
firstReactRender482551065024
getState56012126
initialActions01000
loadScripts12651680147011153
setupStore1288352512
uiStartup194330952274286138
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 426 Bytes (0.01%)
  • ui: 0 Bytes (0.00%)
  • common: 59 Bytes (0.00%)

metamaskbot avatar Oct 17 '24 21:10 metamaskbot

Builds ready [473e201]
Page Load Metrics (2349 ± 332 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint23947002226770370
domContentLoaded166542442267534257
load168250782349692332
domInteractive18144533316
backgroundConnect107997517584
firstReactRender534391338440
getState5317476833
initialActions0452105
loadScripts118931621703438210
setupStore12384537938
uiStartup1873856327761365655
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 432 Bytes (0.01%)
  • ui: 0 Bytes (0.00%)
  • common: 48 Bytes (0.00%)

metamaskbot avatar Oct 21 '24 01:10 metamaskbot

Builds ready [d82a361]
Page Load Metrics (1956 ± 152 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint154526971952315151
domContentLoaded153426881908301144
load154927021956317152
domInteractive20252594823
backgroundConnect9200505125
firstReactRender463081075225
getState591303014
initialActions01000
loadScripts109420671432261125
setupStore11111282512
uiStartup170530682208410197
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 432 Bytes (0.01%)
  • ui: 0 Bytes (0.00%)
  • common: 48 Bytes (0.00%)

metamaskbot avatar Oct 21 '24 02:10 metamaskbot

Builds ready [ee94373]
Page Load Metrics (1776 ± 126 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint149223461774246118
domContentLoaded148522481734217104
load149324681776262126
domInteractive17230544522
backgroundConnect7295436531
firstReactRender43204853416
getState4186254120
initialActions01000
loadScripts10811812128017986
setupStore11147413316
uiStartup167335892021440211
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 427 Bytes (0.01%)
  • ui: 0 Bytes (0.00%)
  • common: 48 Bytes (0.00%)

metamaskbot avatar Oct 22 '24 17:10 metamaskbot

Builds ready [dbde006]
Page Load Metrics (2169 ± 92 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint34825392085445214
domContentLoaded18502517212718187
load18792542216919192
domInteractive279745168
backgroundConnect976362411
firstReactRender892861345426
getState574212010
initialActions01000
loadScripts13321876157715574
setupStore1296422914
uiStartup213629172466232112
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 427 Bytes (0.01%)
  • ui: 0 Bytes (0.00%)
  • common: 48 Bytes (0.00%)

metamaskbot avatar Oct 23 '24 15:10 metamaskbot