Skip to content

fix: add metrics ui_customizations: permit for permit signature types#25105

Merged
jpuri merged 5 commits intodevelopfrom
signature_redesign_metrics_fixes
Jun 12, 2024
Merged

fix: add metrics ui_customizations: permit for permit signature types#25105
jpuri merged 5 commits intodevelopfrom
signature_redesign_metrics_fixes

Conversation

@jpuri
Copy link
Copy Markdown
Contributor

@jpuri jpuri commented Jun 6, 2024

Description

Add metrics ui_customisation: [permit] for permit signature type

Related issues

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

Manual testing steps

  1. Enable metrics
  2. Submit permit request from test dapp
  3. Ensure has metrics have value ui_customisation: [permit]

Screenshots/Recordings

NA

Pre-merge author checklist

  • I’ve followed MetaMask Coding Standards.
  • I've completed the PR template to the best of my ability
  • 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.

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 needs-dev-review PR needs reviews from other engineers (in order to receive required approvals) confirmation-redesign team-confirmations Push issues to confirmations team labels Jun 6, 2024
@jpuri jpuri requested review from a team as code owners June 6, 2024 14:37
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Jun 6, 2024

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.

matthewwalsh0
matthewwalsh0 previously approved these changes Jun 7, 2024
@jpuri jpuri force-pushed the permit_signature_copy_changes branch from 91ee72e to 010a1e0 Compare June 12, 2024 10:09
@jpuri jpuri force-pushed the signature_redesign_metrics_fixes branch from 21fb8cd to 787289a Compare June 12, 2024 10:20
@jpuri jpuri force-pushed the permit_signature_copy_changes branch from 010a1e0 to feb8367 Compare June 12, 2024 12:11
@jpuri jpuri force-pushed the permit_signature_copy_changes branch from feb8367 to 228f73b Compare June 12, 2024 12:15
@jpuri jpuri force-pushed the signature_redesign_metrics_fixes branch from 787289a to dbba668 Compare June 12, 2024 12:18
Base automatically changed from permit_signature_copy_changes to develop June 12, 2024 13:27
@jpuri jpuri dismissed matthewwalsh0’s stale review June 12, 2024 13:27

The base branch was changed.

@jpuri jpuri changed the title Add metrics ui_customizations: permit for permit signature types fix: add metrics ui_customizations: permit for permit signature types Jun 12, 2024
Comment on lines +285 to +286
export const parseTypedDataMessage = (dataToParse: string) =>
JSON.parse(dataToParse);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

IIRC, there was a conversation about utilizing this separate function with JSON.parse to elaborate on the expected parsed values

@jpuri jpuri requested a review from matthewwalsh0 June 12, 2024 15:40
@metamaskbot
Copy link
Copy Markdown
Collaborator

Builds ready [679d0bf]
Page Load Metrics (119 ± 146 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint70998284
domContentLoaded9131111
load411446119304146
domInteractive9131011
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 383 Bytes (0.01%)
  • ui: 248 Bytes (0.00%)
  • common: 441 Bytes (0.01%)

@codecov
Copy link
Copy Markdown

codecov bot commented Jun 12, 2024

Codecov Report

Attention: Patch coverage is 92.85714% with 1 line in your changes missing coverage. Please review.

Project coverage is 65.67%. Comparing base (3595052) to head (679d0bf).
Report is 3 commits behind head on develop.

Files Patch % Lines
...p/scripts/lib/createRPCMethodTrackingMiddleware.js 85.71% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop   #25105      +/-   ##
===========================================
+ Coverage    65.66%   65.67%   +0.01%     
===========================================
  Files         1371     1371              
  Lines        54328    54337       +9     
  Branches     14217    14216       -1     
===========================================
+ Hits         35673    35684      +11     
+ Misses       18655    18653       -2     

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

@jpuri jpuri merged commit 696cf1d into develop Jun 12, 2024
@jpuri jpuri deleted the signature_redesign_metrics_fixes branch June 12, 2024 16:55
@github-actions github-actions bot locked and limited conversation to collaborators Jun 12, 2024
@github-actions github-actions bot removed the needs-dev-review PR needs reviews from other engineers (in order to receive required approvals) label Jun 12, 2024
@metamaskbot metamaskbot added the release-12.1.0 Issue or pull request that will be included in release 12.1.0 label Jun 12, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

confirmation-redesign release-12.1.0 Issue or pull request that will be included in release 12.1.0 team-confirmations Push issues to confirmations team

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

5 participants