Skip to content
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

Enable ppom by default #22246

Merged
merged 15 commits into from
Dec 14, 2023
Merged

Enable ppom by default #22246

merged 15 commits into from
Dec 14, 2023

Conversation

jpuri
Copy link
Contributor

@jpuri jpuri commented Dec 12, 2023

Description

Blockaid validations should be enabled by default for all users.

Related issues

Fixes: metamask-planning#1762

Manual testing steps

  1. Create a new account
  2. Blockaid validations should be enabled by default for the account

Screenshots/Recordings

NA

Pre-merge author checklist

  • I’ve followed MetaMask Coding Standards.
  • I've clearly explained what problem this PR is solving and how it is solved.
  • I've linked related issues
  • I've included manual testing steps
  • I've included screenshots/recordings if applicable
  • I’ve included tests if applicable
  • I’ve documented my code using JSDoc format if applicable
  • I’ve applied the right labels on the PR (see labeling guidelines). Not required for external contributors.
  • I’ve properly set the pull request status:
    • In case it's not yet "ready for review", I've set it to "draft".
    • In case it's "ready for review", I've changed it from "draft" to "non-draft".

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.

@jpuri jpuri added team-confirmations-secure-ux-PR PRs from the confirmations team needs-dev-review PR needs reviews from other engineers (in order to receive required approvals) labels Dec 12, 2023
@jpuri jpuri requested a review from a team as a code owner December 12, 2023 16:47
Copy link
Contributor

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.

@seaona
Copy link
Contributor

seaona commented Dec 13, 2023

[Update] The 2 tests are failing because they are reversed now. The default state (without going to settings) is now Blockaid enabled, and going to settings and toggling the button makes the feature disabled

  • [PPOM Settings @no-mmi should show the PPOM warning when the toggle is on
  • [PPOM Settings @no-mmi should not show the PPOM warning when toggle is off

@jpuri
Copy link
Contributor Author

jpuri commented Dec 13, 2023

[Update] The 2 tests are failing because they are reversed now. The default state (without going to settings) is now Blockaid enabled, and going to settings and toggling the button makes the feature disabled

  • [PPOM Settings @no-mmi should show the PPOM warning when the toggle is on
  • [PPOM Settings @no-mmi should not show the PPOM warning when toggle is off

Yep @seaona I just updated those

segun
segun previously approved these changes Dec 13, 2023
Copy link

codecov bot commented Dec 13, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (10d40aa) 67.78% compared to head (32db1b5) 67.96%.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop   #22246      +/-   ##
===========================================
+ Coverage    67.78%   67.96%   +0.18%     
===========================================
  Files         1065     1066       +1     
  Lines        41275    41286      +11     
  Branches     11066    11067       +1     
===========================================
+ Hits         27978    28059      +81     
+ Misses       13297    13227      -70     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@metamaskbot
Copy link
Collaborator

Builds ready [32db1b5]
Page Load Metrics (1360 ± 145 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint873061666029
domContentLoaded9206596732
load89319101360303145
domInteractive9206596732
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 748 Bytes (0.02%)
  • ui: 0 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

@jpuri jpuri merged commit 369727a into develop Dec 14, 2023
67 checks passed
@jpuri jpuri deleted the enable_ppom_by_default branch December 14, 2023 11:44
@github-actions github-actions bot removed the needs-dev-review PR needs reviews from other engineers (in order to receive required approvals) label Dec 14, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Dec 14, 2023
@metamaskbot metamaskbot added the release-11.9.0 Issue or pull request that will be included in release 11.9.0 label Dec 14, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
release-11.9.0 Issue or pull request that will be included in release 11.9.0 team-confirmations-secure-ux-PR PRs from the confirmations team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants