-
Notifications
You must be signed in to change notification settings - Fork 5k
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
feat: Add metrics to track where signature rejection occurred #26469
Conversation
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. |
New and removed dependencies detected. Learn more about Socket for GitHub ↗︎
🚮 Removed packages: npm/@metamask/[email protected]), npm/@metamask/[email protected]), npm/@metamask/[email protected]), npm/@metamask/[email protected]), npm/[email protected]), npm/[email protected]) |
👍 Dependency issues cleared. Learn more about Socket for GitHub ↗︎ This PR previously contained dependency changes with security issues that have been resolved, removed, or ignored. Ignoring: Next stepsTake a deeper look at the dependencyTake a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support [AT] socket [DOT] dev. Remove the packageIf you happen to install a dependency that Socket reports as Known Malware you should immediately remove it and select a different dependency. For other alert types, you may may wish to investigate alternative packages or consider if there are other ways to mitigate the specific risk posed by the dependency. Mark a package as acceptable riskTo ignore an alert, reply with a comment starting with |
@SocketSecurity ignore-all |
shared/constants/metametrics.ts
Outdated
@@ -820,6 +820,8 @@ export enum MetaMetricsEventLocation { | |||
TokenDetection = 'token_detection', | |||
TokenMenu = 'token_menu', | |||
Transaction = 'transaction', | |||
Confirmation = 'confirmation', | |||
AlertFrictionModal = 'alert_friction_modal', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor, but should we keep this enum in alphabetical order?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
await driver.clickElement('#siweBadDomain'); | ||
await driver.switchToWindowWithTitle(WINDOW_TITLES.Dialog); | ||
|
||
const alert = await driver.findElement('[data-testid="inline-alert"]'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pending the full page object model, could large parts of this go into reusable helpers such as expectAlert
or acknowledgeAlert
or confirmWithAlertModal
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
ui/components/app/alert-system/confirm-alert-modal/confirm-alert-modal.tsx
Outdated
Show resolved
Hide resolved
ui/components/app/alert-system/confirm-alert-modal/confirm-alert-modal.tsx
Outdated
Show resolved
Hide resolved
Builds ready [443ca41]
Page Load Metrics (79 ± 9 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #26469 +/- ##
========================================
Coverage 70.05% 70.05%
========================================
Files 1414 1414
Lines 49317 49325 +8
Branches 13780 13780
========================================
+ Hits 34546 34554 +8
Misses 14771 14771 ☔ View full report in Codecov by Sentry. |
Builds ready [2427b8c]
Page Load Metrics (84 ± 10 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
Builds ready [6d8e279]
Page Load Metrics (76 ± 10 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
Builds ready [d2bf9fb]
Page Load Metrics (83 ± 12 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
Builds ready [cbcfc11]
Page Load Metrics (73 ± 6 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
Builds ready [cfee05f]
Page Load Metrics (77 ± 11 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
cfee05f
to
0c30dc2
Compare
Builds ready [0c30dc2]
Page Load Metrics (86 ± 7 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
Quality Gate passedIssues Measures |
Builds ready [7bb6852]
Page Load Metrics (87 ± 13 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
Add a property location to the Signature Rejected event depending on where it was rejected from.
location:
confirmation
oralert_friction_modal
Description
Related issues
Fixes: #2703
Manual testing steps
NOTE: All scenarios below have an E2E test in place along with this PR.
TC1:
TC2:
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist