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

Blockaid banners implementation #6585

Merged
merged 41 commits into from
Aug 24, 2023
Merged

Blockaid banners implementation #6585

merged 41 commits into from
Aug 24, 2023

Conversation

segun
Copy link
Contributor

@segun segun commented Jun 12, 2023

Description
Implementing the Blockaid Banner and making it configurable, such that we only pass in the attackType and attackDetails as props.

This will allow us to be able to show BlockAid PPOM error/warning messages.

Fixes: https://github.com/metamask/metamask-planning/issues/396

Screenshots
Screenshot 2023-07-28 at 07 22 10

Screenshot 2023-07-28 at 07 22 21

Checklist

  • There is a related GitHub issue
  • Tests are included if applicable
  • Any added code is fully documented

@segun segun requested a review from a team as a code owner June 12, 2023 10:05
@github-actions
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.

@segun segun force-pushed the blockaid-banners-implementation branch from 599ee10 to 4442102 Compare June 12, 2023 10:06
Base automatically changed from blockaid-banners to main June 19, 2023 10:53
@segun segun force-pushed the blockaid-banners-implementation branch from 56519ab to 3db01b6 Compare June 19, 2023 11:01
@segun segun self-assigned this Jun 22, 2023
@segun segun added team-confirmations-secure-ux-PR PR from the confirmations team needs-dev-review PR needs reviews from other engineers (in order to receive required approvals) labels Jun 22, 2023
Copy link
Contributor

@jpuri jpuri left a comment

Choose a reason for hiding this comment

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

PR looks good, but I added small possible improvements.

@segun segun force-pushed the blockaid-banners-implementation branch from 3db01b6 to a2a31cc Compare June 26, 2023 11:34
@segun segun requested a review from jpuri June 27, 2023 04:43
@segun segun force-pushed the blockaid-banners-implementation branch from 79d8220 to 3b1265b Compare June 28, 2023 10:05
@segun segun force-pushed the blockaid-banners-implementation branch from 3b1265b to 75d04be Compare July 18, 2023 08:22
blackdevelopa
blackdevelopa previously approved these changes Jul 20, 2023
Copy link
Contributor

@blackdevelopa blackdevelopa left a comment

Choose a reason for hiding this comment

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

changes look good. Left a couple small nit

segun added 14 commits August 4, 2023 14:46
sorted en.json alphabetically

Signed-off-by: Olusegun Akintayo <akintayo.segun@gmail.com>
Signed-off-by: Olusegun Akintayo <akintayo.segun@gmail.com>
Signed-off-by: Olusegun Akintayo <akintayo.segun@gmail.com>
rename shield -> security tick

Signed-off-by: Olusegun Akintayo <akintayo.segun@gmail.com>
Signed-off-by: Olusegun Akintayo <akintayo.segun@gmail.com>
Signed-off-by: Olusegun Akintayo <akintayo.segun@gmail.com>
Capitalize reasons
Tests

Signed-off-by: Olusegun Akintayo <akintayo.segun@gmail.com>
Signed-off-by: Olusegun Akintayo <akintayo.segun@gmail.com>
refactor code
@segun segun force-pushed the blockaid-banners-implementation branch from 8fa2a8c to 3ec9aa5 Compare August 4, 2023 13:47
@sonarcloud
Copy link

sonarcloud bot commented Aug 16, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

75.0% 75.0% Coverage
0.0% 0.0% Duplication

warning The version of Java (11.0.20) you have used to run this analysis is deprecated and we will stop accepting it soon. Please update to at least Java 17.
Read more here

Copy link
Contributor

@jpuri jpuri left a comment

Choose a reason for hiding this comment

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

LGTM

@bschorchit bschorchit added needs-qa Any New Features that needs a full manual QA prior to being added to a release. and removed needs-dev-review PR needs reviews from other engineers (in order to receive required approvals) labels Aug 22, 2023
@jpuri jpuri removed the needs-qa Any New Features that needs a full manual QA prior to being added to a release. label Aug 24, 2023
@jpuri jpuri dismissed brianacnguyen’s stale review August 24, 2023 10:15

Changes have been implemented

@jpuri jpuri merged commit 0799d7c into main Aug 24, 2023
12 of 14 checks passed
@jpuri jpuri deleted the blockaid-banners-implementation branch August 24, 2023 10:16
@github-actions github-actions bot locked and limited conversation to collaborators Aug 24, 2023
@metamaskbot metamaskbot added the release-7.7.0 Issue or pull request that will be included in release 7.7.0 label Aug 24, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
release-7.7.0 Issue or pull request that will be included in release 7.7.0 team-confirmations-secure-ux-PR PR from the confirmations team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants