-
Notifications
You must be signed in to change notification settings - Fork 5.4k
feat(snap-keyring): more snap account metrics #23113
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
Merged
Merged
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
9018409
feat(shared): add MetaMetricsEventAccountType.Snap
ccharly 7f20fa1
feat(ui): forward trackEvent context to confirmation templates
ccharly a9ea8dd
feat(metametrics): add event for snap account page selection
ccharly fa364f1
feat(metametrics): add events for snap account confirmation/creation/…
ccharly d95e080
docs: fix confirmation template folder path
ccharly 84cd1ed
feat(confirmation): add onLoad hook
ccharly 78cb7dc
refactor(ui): add specialized events for view/confirm/cancel snap acc…
ccharly 8f711cd
feat(snap-keyring): add trackEvent helper
ccharly 537fea4
feat(snap-keyring): track success/error view/confirmation events
ccharly 16b81c3
feat(snap-keyring): track account creation/failure event
ccharly df46423
refactor(confirmation): improve hook naming for snap account redirect
ccharly 9685047
feat(metametrics): add events for snap account transactions
ccharly 0e79f6b
feat(metametrics): add events during snap account transaction loading…
ccharly 401d1bd
feat(metametrics): add events during snap account removal
ccharly 296e779
fix(metametrics): update snap accounts wording: Cancelled -> Canceled
ccharly c33324f
refactor(metametrics): remove unused AddSnapAccountClicked
ccharly b83cdbc
fix(snap-keyring): remove extraneous "canceled" events
ccharly 19bba6e
fix(snap-keyring): fix add/remove snap account event flow
ccharly 27723df
refactor(snap-keyring): add some TODOs for dialog/metametrics
ccharly 1ab98e8
Merge branch 'develop' into feature/247/more-snap-account-metrics
ccharly File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Note for the reviewers:
I thought of maybe augmenting the
showSuccessfunction (or event deeper, to the component itself) to support those events, like having a:So that our component would take care "hooking" those actions and fire events automatically. But this requires a bit more effort to implement properly.
I'm also open for suggestion here, since having those metrics in the
snap-keyring.tsfeels a bit wrong to me.WDYT?
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.
I really like this idea and I agree that the implementation would scope creep this task a bit. If you strongly feel that it should be done first then I recommend opening a new PR for that change
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.
Since I'd like to move on with this PR, I'll probably keep it that way for now, and I'll leave a
TODOto improve that later on.