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

[MMI] adds segment events to Metametrics constants #19468

Merged
merged 8 commits into from
Jul 18, 2023

Conversation

zone-live
Copy link
Contributor

@zone-live zone-live commented Jun 6, 2023

Adds MMI segment events enums to the Metametrics constants file to be in line with what MetaMask already has.

Segment-schema repo changes:
https://github.com/Consensys/segment-schema/pull/70

Pre-merge author checklist

  • I've clearly explained:
    • What problem this PR is solving
    • How this problem was solved
    • How reviewers can test my changes
  • Sufficient automated test coverage has been added

Pre-merge reviewer checklist

  • Manual testing (e.g. pull and build branch, run in browser, test code being changed)
  • PR is linked to the appropriate GitHub issue
  • IF this PR fixes a bug in the release milestone, add this PR to the release milestone

If further QA is required (e.g. new feature, complex testing steps, large refactor), add the Extension QA Board label.

In this case, a QA Engineer approval will be be required.

@zone-live zone-live requested a review from a team as a code owner June 6, 2023 14:30
@zone-live zone-live requested a review from garrettbear June 6, 2023 14:30
@github-actions
Copy link
Contributor

github-actions bot commented Jun 6, 2023

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.

@codecov
Copy link

codecov bot commented Jun 6, 2023

Codecov Report

Merging #19468 (f672619) into develop (91c8499) will increase coverage by 0.01%.
The diff coverage is 100.00%.

@@             Coverage Diff             @@
##           develop   #19468      +/-   ##
===========================================
+ Coverage    69.47%   69.48%   +0.01%     
===========================================
  Files          988      988              
  Lines        37313    37323      +10     
  Branches      9989     9990       +1     
===========================================
+ Hits         25923    25933      +10     
  Misses       11390    11390              
Impacted Files Coverage Δ
...p/signature-request/signature-request.component.js 75.68% <ø> (ø)
ui/components/app/wallet-overview/eth-overview.js 70.27% <ø> (ø)
...y-confirm-link-modal/custody-confirm-link-modal.js 100.00% <ø> (ø)
...token-modal/interactive-replacement-token-modal.js 81.82% <ø> (ø)
.../multichain/account-list-menu/account-list-menu.js 77.50% <ø> (ø)
...i/components/multichain/global-menu/global-menu.js 68.97% <ø> (ø)
...add-custodian-token/confirm-add-custodian-token.js 76.92% <ø> (ø)
...ional-feature/confirm-add-institutional-feature.js 95.92% <ø> (ø)
ui/pages/institutional/custody/custody.js 49.72% <ø> (ø)
shared/constants/metametrics.ts 100.00% <100.00%> (ø)
... and 1 more

@metamaskbot
Copy link
Collaborator

Builds ready [265faf0]
Page Load Metrics (1477 ± 37 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint91156108178
domContentLoaded1383158214586431
load1383163614777837
domInteractive1383158114576431
Bundle size diffs
  • background: 0 bytes
  • ui: 0 bytes
  • common: 0 bytes

Comment on lines 591 to 599
UserClickedRefreshTokenLink = 'User clicked refresh token link',
ShowDeeplinkForSignature = 'Show deeplink for signature',
CustodianOnboarding = 'Custodian onboarding',
InstitutionalFeatureConnection = 'Institutional feature connection',
CustodianSelected = 'Custodian selected',
ConnectCustodian = 'Connect to custodian',
ConnectCustodianCancel = 'Connect to custodian cancel',
ConnectCustodianError = 'Connect to custodian error',
CustodialAccountsConnected = 'Custodial accounts connected',
Copy link
Contributor

Choose a reason for hiding this comment

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

Event names should all have title casing, and some of these don't make sense as actions. What does 'Custodian Onboarding' mean?. Has @worldlyjohn been asked to validate this schema?

Copy link
Contributor

Choose a reason for hiding this comment

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

thanks @brad-decker . i have not, but here are the relevant links.

Copy link
Contributor Author

@zone-live zone-live Jun 13, 2023

Choose a reason for hiding this comment

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

Hey folks, thanks for the feedback, I'll update the event names to be Title Casing, they are the ones we have in use already, I'll also check the "Custodian Onboarding" one. My plan was to add/update them here in the extension and then add them in the Segment Schema repo.
Also I don't have access to the Event Naming Conventions (Consensys Notion) can you provide it to me?

@metamaskbot
Copy link
Collaborator

Builds ready [442243c]
Page Load Metrics (1737 ± 57 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint1021961322110
domContentLoaded15612017171110450
load15722023173711857
domInteractive15612016171110450
Bundle size diffs
  • background: 0 bytes
  • ui: 0 bytes
  • common: 0 bytes

@metamaskbot
Copy link
Collaborator

Builds ready [8d174af]
Page Load Metrics (1641 ± 66 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint101179130209
domContentLoaded14531870160711354
load14531949164113866
domInteractive14531870160711354
Bundle size diffs
  • background: 0 bytes
  • ui: 0 bytes
  • common: 0 bytes

@zone-live
Copy link
Contributor Author

Hi @worldlyjohn can you give me write access to this repo: segment-schema
I'm trying to push a branch there with our events, and I'm seeing the error Write access to repository not granted..
Thank you! 💪🏼

@worldlyjohn
Copy link
Contributor

hey @zone-live please request access via [email protected]

@metamaskbot
Copy link
Collaborator

Builds ready [f672619]
Page Load Metrics (1754 ± 76 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint1152131582311
domContentLoaded15182038175215775
load15192038175415976
domInteractive15182038175215775
Bundle size diffs
  • background: 0 bytes
  • ui: 0 bytes
  • common: 0 bytes

@zone-live
Copy link
Contributor Author

Hi @brad-decker I've updated this PR, with the work done in the segment-schema repo that has been approved by @worldlyjohn.
If you can approve this one now, I'll appreciate! 💪🏼

@albertolive albertolive merged commit f8bfb6c into develop Jul 18, 2023
@albertolive albertolive deleted the MMI-segment-events branch July 18, 2023 13:55
@github-actions github-actions bot locked and limited conversation to collaborators Jul 18, 2023
@metamaskbot metamaskbot added the release-10.36.0 Issue or pull request that will be included in release 10.36.0 label Jul 18, 2023
@Gudahtt Gudahtt added release-11.1.0 Issue or pull request that will be included in release 11.1.0 and removed release-10.36.0 Issue or pull request that will be included in release 10.36.0 labels Sep 19, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
release-11.1.0 Issue or pull request that will be included in release 11.1.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants