Skip to content

Refactor and update blockaid banner alert#22625

Merged
digiwand merged 21 commits intodevelopfrom
refactor-and-update-blockaid-banner-alert
Feb 5, 2024
Merged

Refactor and update blockaid banner alert#22625
digiwand merged 21 commits intodevelopfrom
refactor-and-update-blockaid-banner-alert

Conversation

@digiwand
Copy link
Copy Markdown
Contributor

@digiwand digiwand commented Jan 22, 2024

Description

minor cleanup before more updates on BlockaidBannerAlert and SecurityProviderBannerAlert

  • update domain prop to include txData?.origin
  • display "Provided by" even on failed tx
  • update storybook controls to redisplay dropdown and without "NotApplicable" types
  • alphabetize params
  • rm redundant getDisclosureTitle function

Related issues

Fixes: #22624

Manual testing steps

  1. run storybook yarn storybook
  2. go to http://localhost:6006/?path=/docs/components-app-securityproviderbanneralert-blockaidbanneralert--docs

Screenshots/Recordings

Before

Screenshot 2024-01-22 at 8 32 28 AM

After

Screenshot 2024-01-22 at 10 51 05 AM Screenshot 2024-01-22 at 10 51 12 AM

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.

@digiwand digiwand requested a review from a team as a code owner January 22, 2024 18:58
@github-actions
Copy link
Copy Markdown
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.

@digiwand digiwand added the team-confirmations-secure-ux-deprecated DEPRECATED: please use "team-confirmations" instead label Jan 22, 2024
@metamaskbot
Copy link
Copy Markdown
Collaborator

Builds ready [b6df572]
Page Load Metrics (1469 ± 173 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint865171848842
domContentLoaded9180495225
load86620621469360173
domInteractive9180485225
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 0 Bytes (0.00%)
  • ui: 114 Bytes (0.00%)
  • common: 36 Bytes (0.00%)

@codecov
Copy link
Copy Markdown

codecov bot commented Jan 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (9a92987) 68.33% compared to head (d06c1a6) 68.33%.
Report is 1 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop   #22625      +/-   ##
===========================================
- Coverage    68.33%   68.33%   -0.00%     
===========================================
  Files         1088     1088              
  Lines        42803    42798       -5     
  Branches     11390    11388       -2     
===========================================
- Hits         29247    29242       -5     
  Misses       13556    13556              

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

jpuri
jpuri previously approved these changes Jan 23, 2024
jsonRpcParams: JSON.stringify(txParams ?? msgParams),
resultType,
reproduce: JSON.stringify(features),
};
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

the only key/value prop updated here is domain. all others were reordered alphabetically

@metamaskbot
Copy link
Copy Markdown
Collaborator

Builds ready [046c27c]
Page Load Metrics (800 ± 19 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint102139116126
domContentLoaded11241732
load7458668003919
domInteractive11241731
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 0 Bytes (0.00%)
  • ui: 19 Bytes (0.00%)
  • common: 36 Bytes (0.00%)

jpuri
jpuri previously approved these changes Jan 25, 2024
segun
segun previously approved these changes Jan 31, 2024
@digiwand digiwand dismissed stale reviews from segun and jpuri via d06c1a6 February 1, 2024 15:33
@digiwand digiwand requested review from jpuri and segun February 1, 2024 15:55
@metamaskbot
Copy link
Copy Markdown
Collaborator

Builds ready [d06c1a6]
Page Load Metrics (810 ± 28 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint93136113126
domContentLoaded9231542
load7179118105928
domInteractive9231542
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 0 Bytes (0.00%)
  • ui: 19 Bytes (0.00%)
  • common: 36 Bytes (0.00%)

@digiwand digiwand merged commit 5a968da into develop Feb 5, 2024
@digiwand digiwand deleted the refactor-and-update-blockaid-banner-alert branch February 5, 2024 15:00
@github-actions github-actions bot locked and limited conversation to collaborators Feb 5, 2024
@metamaskbot metamaskbot added the release-11.11.0 Issue or pull request that will be included in release 11.11.0 label Feb 5, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

release-11.11.0 Issue or pull request that will be included in release 11.11.0 team-confirmations-secure-ux-deprecated DEPRECATED: please use "team-confirmations" instead

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Refactor]: Update BannerAlert "NotApplicable" logic; minor clean up; update storybook support

4 participants