Skip to content

feat: Update blockaid friction modal copy #30809

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

Merged
merged 7 commits into from
Mar 19, 2025
Merged

feat: Update blockaid friction modal copy #30809

merged 7 commits into from
Mar 19, 2025

Conversation

pedronfigueiredo
Copy link
Contributor

@pedronfigueiredo pedronfigueiredo commented Mar 6, 2025

Description

Open in GitHub Codespaces

Related issues

Fixes: https://github.com/MetaMask/MetaMask-planning/issues/4328

Manual testing steps

  1. Go to this page...

Screenshots/Recordings

Before

After

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.

@pedronfigueiredo pedronfigueiredo added the team-confirmations Push issues to confirmations team label Mar 6, 2025
@pedronfigueiredo pedronfigueiredo self-assigned this Mar 6, 2025
Copy link
Contributor

github-actions bot commented Mar 6, 2025

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.

@metamaskbot
Copy link
Collaborator

Builds ready [89119a6]
Page Load Metrics (1520 ± 45 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint1352168415239244
domContentLoaded1344166014898742
load1352168915209445
domInteractive237934178
backgroundConnect892342311
firstReactRender146330199
getState54111105
initialActions01000
loadScripts957123311097436
setupStore74512105
uiStartup15601945172610048

digiwand
digiwand previously approved these changes Mar 8, 2025
@metamaskbot
Copy link
Collaborator

Builds ready [ab56d88]
Page Load Metrics (1679 ± 62 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint14392026167912962
domContentLoaded14311952165112459
load14402028167912962
domInteractive25113392311
backgroundConnect1078312010
firstReactRender1571362211
getState418932
initialActions01000
loadScripts10451508122910651
setupStore85716168
uiStartup16572304189814871

@metamaskbot
Copy link
Collaborator

Builds ready [12aeb23]
Page Load Metrics (2028 ± 133 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint50426721934412198
domContentLoaded16922429195219694
load170528022028276133
domInteractive2510241199
backgroundConnect10385778742
firstReactRender1590462512
getState6189344220
initialActions01000
loadScripts12741850149115173
setupStore86716157
uiStartup193943222388568273
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 0 Bytes (0.00%)
  • ui: 1.02 KiB (0.01%)
  • common: 867 Bytes (0.01%)

@metamaskbot
Copy link
Collaborator

Builds ready [a8137b0]
Page Load Metrics (2219 ± 121 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint182227642184217104
domContentLoaded17932519208217484
load182629122219253121
domInteractive29162583818
backgroundConnect2555814013163
firstReactRender16145503617
getState14224655627
initialActions01000
loadScripts13711954158514369
setupStore964272010
uiStartup204945632811617296
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 0 Bytes (0.00%)
  • ui: 1.02 KiB (0.01%)
  • common: 867 Bytes (0.01%)

return (
<Text textAlign={TextAlign.Center} variant={TextVariant.bodyMd}>
{t('blockaidAlertInfo')}
{copy}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we have tests for this UI?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

digiwand
digiwand previously approved these changes Mar 13, 2025
OGPoyraz
OGPoyraz previously approved these changes Mar 14, 2025
const { securityAlertResponse } = currentConfirmation;

let copy;
switch (securityAlertResponse?.reason) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@SayaGT Should this description, based on the security alert reason, also be reflected in the Alert System on mobile?

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes please! @vinistevam

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

vinistevam
vinistevam previously approved these changes Mar 14, 2025
@pedronfigueiredo pedronfigueiredo dismissed stale reviews from vinistevam, OGPoyraz, and digiwand via 7264b8e March 18, 2025 14:06
@metamaskbot
Copy link
Collaborator

Builds ready [f87faf5]
Page Load Metrics (4327 ± 3110 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint193032085415164313088
domContentLoaded175731807392064153080
load195932422432764773110
domInteractive301192141249119
backgroundConnect108938412255122
firstReactRender27242975325
getState1670918917685
initialActions01000
loadScripts128030189317562042979
setupStore1335011211053
uiStartup232834098642767563244
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 0 Bytes (0.00%)
  • ui: 1.02 KiB (0.01%)
  • common: 867 Bytes (0.01%)

@pedronfigueiredo pedronfigueiredo added this pull request to the merge queue Mar 19, 2025
Merged via the queue into main with commit 268b397 Mar 19, 2025
76 checks passed
@pedronfigueiredo pedronfigueiredo deleted the pnf/4328 branch March 19, 2025 10:09
@github-actions github-actions bot locked and limited conversation to collaborators Mar 19, 2025
@metamaskbot metamaskbot added the release-12.16.0 Issue or pull request that will be included in release 12.16.0 label Mar 19, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
release-12.16.0 Issue or pull request that will be included in release 12.16.0 team-confirmations Push issues to confirmations team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants