Skip to content

fix: Update blockaid friction modal copy #31475

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 8 commits into from
Apr 8, 2025

Conversation

vinistevam
Copy link
Contributor

@vinistevam vinistevam commented Apr 1, 2025

Description

This PR aims to update the friction modal copy depending on the response from the Security Alerts API.

Figma file

Open in GitHub Codespaces

Related issues

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

Manual testing steps

  1. Go to test dapp
  2. Click on the Malicious Signature in the section PPOM - Malicious Transactions and Signatures
  3. Check the Banner and confirm the friction modal should be (description) and (title)

Screenshots/Recordings

blockaid.webm

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.

@vinistevam vinistevam added the team-confirmations Push issues to confirmations team label Apr 1, 2025
Copy link
Contributor

github-actions bot commented Apr 1, 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.

@vinistevam vinistevam self-assigned this Apr 1, 2025
@vinistevam vinistevam marked this pull request as ready for review April 1, 2025 11:59
@metamaskbot
Copy link
Collaborator

Builds ready [ae8a7ba]
UI Startup Metrics (1187 ± 61 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyHomeuiStartup1187105514266112231291
load1034887120156949997
domContentLoaded1028881119856947992
domInteractive16137871626
firstPaint741951170400254993
backgroundConnect106576910
firstReactRender21154162036
getState11439768
initialActions003001
loadScripts81367096354841910
setupStore8518278
WebpackHomeuiStartup993798123481967991
load83758799583890951
domContentLoaded83158099083880947
domInteractive16127191435
firstPaint30554959310815944
backgroundConnect17134781640
firstReactRender16123151627
getState5316356
initialActions001001
loadScripts82957098984879940
setupStore7416279
FirefoxBrowserifyHomeuiStartup13491159180513613831707
load12171046166613012571543
domContentLoaded12161046166613012571542
domInteractive9742185259196
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect22175272336
firstReactRender21183232226
getState6421378
initialActions001001
loadScripts11961029164612912361517
setupStore6314257
WebpackHomeuiStartup9648011439170866971
load8457011259156784899
domContentLoaded8457011259156784898
domInteractive115551712017198
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect201283122232
firstReactRender18162521923
getState8467779
initialActions001001
loadScripts8296881234151771880
setupStore8582978
Bundle size diffs [🚀 Bundle size reduced!]
  • background: 0 Bytes (0%)
  • ui: -25 Bytes (0%)
  • common: -120 Bytes (0%)

jpuri
jpuri previously approved these changes Apr 1, 2025
@vinistevam vinistevam added this pull request to the merge queue Apr 7, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Apr 7, 2025
@metamaskbot
Copy link
Collaborator

Builds ready [d78c3dc]
UI Startup Metrics (1227 ± 70 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyHomeuiStartup1227111214367012731352
load10789521282691142989
domContentLoaded10719351276701184995
domInteractive17136981630
firstPaint8281461278395215993
backgroundConnect107325910
firstReactRender20159082031
getState12451869
initialActions001000
loadScripts819677103269848931
setupStore7417278
WebpackHomeuiStartup20641662234719022102298
load16081304203414817181818
domContentLoaded16021301203114817141810
domInteractive171263111451
firstPaint156633435524078
backgroundConnect3111338343361
firstReactRender171533531038095
getState9440589
initialActions315134
loadScripts15901298202814617001801
setupStore32630264247
FirefoxBrowserifyHomeuiStartup13551146184314213881696
load12191028168613412571540
domContentLoaded12191028168613412571540
domInteractive10137211319098
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect24166682546
firstReactRender23195452428
getState6410178
initialActions001001
loadScripts11971010165313212401517
setupStore6311167
WebpackHomeuiStartup15721365209216116451984
load13521181188215514171761
domContentLoaded13521180188215514161761
domInteractive10041448419199
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect26195062841
firstReactRender38295864353
getState8432589
initialActions101011
loadScripts13281162185915413911731
setupStore8529389
Bundle size diffs [🚀 Bundle size reduced!]
  • background: 0 Bytes (0%)
  • ui: -25 Bytes (0%)
  • common: -120 Bytes (0%)

@digiwand
Copy link
Contributor

digiwand commented Apr 7, 2025

heads up, there is a lint test we want to fix here.

the related issue ticket also implies we want to update the banner alert title and description as well. I think this could be done in addition to this PR or as a separate PR

@vinistevam vinistevam dismissed stale reviews from jpuri and pedronfigueiredo via d8157f5 April 8, 2025 05:16
@metamaskbot
Copy link
Collaborator

Builds ready [1594ff3]
UI Startup Metrics (1249 ± 57 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyHomeuiStartup1249111214435712901331
load109799312415311441198
domContentLoaded109098912335311371200
domInteractive17136471631
firstPaint716801210440228311
backgroundConnect106385910
firstReactRender20155572037
getState145931179
initialActions001001
loadScripts83774296851877917
setupStore8529478
WebpackHomeuiStartup21601725259817922732423
load16781341200813617671893
domContentLoaded16721338200213517631888
domInteractive171267121453
firstPaint150653475523377
backgroundConnect301174143763
firstReactRender187533521095793
getState13450969
initialActions316145
loadScripts16631335198013317551875
setupStore21625825317
FirefoxBrowserifyHomeuiStartup13641171198815813891724
load12241036184115412481583
domContentLoaded12231036184015412481583
domInteractive10035278338797
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect24165782549
firstReactRender22183132329
getState7416289
initialActions001001
loadScripts12001019180815412321561
setupStore6421367
WebpackHomeuiStartup15101294195714515571859
load13061123173313413621630
domContentLoaded13061123173313413611630
domInteractive9536160248997
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect24175062740
firstReactRender34284953746
getState8330589
initialActions002111
loadScripts12841105171113313411605
setupStore7521279
Bundle size diffs [🚀 Bundle size reduced!]
  • background: 0 Bytes (0%)
  • ui: -25 Bytes (0%)
  • common: -120 Bytes (0%)

@metamaskbot
Copy link
Collaborator

Builds ready [04e6609]
UI Startup Metrics (1209 ± 47 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyHomeuiStartup1209109513524712401283
load10569671172441115987
domContentLoaded10509581167441114992
domInteractive17135991632
firstPaint7321301149412230983
backgroundConnect106435910
firstReactRender2114136132038
getState13434778
initialActions003001
loadScripts80169791443831874
setupStore7417278
WebpackHomeuiStartup21851724250019023412436
load17251341215117118372000
domContentLoaded17171336206816718321990
domInteractive171257101549
firstPaint168713054921889
backgroundConnect3611363424060
firstReactRender180544001155991
getState134611079
initialActions318146
loadScripts17081328204516418191967
setupStore23634540368
FirefoxBrowserifyHomeuiStartup13491183186314613671693
load12071035171013612321520
domContentLoaded12071035171013612311519
domInteractive9637279319197
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect2516114142450
firstReactRender22194942230
getState8475879
initialActions001001
loadScripts11831018168413412101494
setupStore6434368
WebpackHomeuiStartup15161303208216315751964
load13101132183715413541726
domContentLoaded13101132183715513541726
domInteractive9738194288997
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect24174962642
firstReactRender35296053744
getState8430579
initialActions002111
loadScripts12881113181115413271705
setupStore7527379
Bundle size diffs [🚀 Bundle size reduced!]
  • background: 0 Bytes (0%)
  • ui: -25 Bytes (0%)
  • common: -120 Bytes (0%)

@vinistevam vinistevam added this pull request to the merge queue Apr 8, 2025
Merged via the queue into main with commit ae92326 Apr 8, 2025
164 checks passed
@vinistevam vinistevam deleted the fix/blockaid-confirm-friction-modal-copy branch April 8, 2025 11:04
@github-actions github-actions bot locked and limited conversation to collaborators Apr 8, 2025
@metamaskbot metamaskbot added the release-12.17.0 Issue or pull request that will be included in release 12.17.0 label Apr 8, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
release-12.17.0 Issue or pull request that will be included in release 12.17.0 team-confirmations Push issues to confirmations team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants