Skip to content

chore: core PR 6068 test drive#34060

Closed
mathieuartu wants to merge 1 commit intomainfrom
test/core-PR-6068
Closed

chore: core PR 6068 test drive#34060
mathieuartu wants to merge 1 commit intomainfrom
test/core-PR-6068

Conversation

@mathieuartu
Copy link
Copy Markdown
Contributor

@mathieuartu mathieuartu commented Jul 3, 2025

Description

Open in GitHub Codespaces

Changelog

CHANGELOG entry:

Related issues

Fixes:

Manual testing steps

  1. Go to this page...

Screenshots/Recordings

Before

After

Pre-merge author checklist

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.

@mathieuartu mathieuartu self-assigned this Jul 3, 2025
@mathieuartu mathieuartu added the team-identity-deprecated DEPRECATED: team no longer exists label Jul 3, 2025
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Jul 3, 2025

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.

@socket-security
Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updated@​metamask/​profile-sync-controller@​18.0.0 ⏵ 19.0.0-preview-83aa339c100 +4100100 +15100 +1100

View full report

@metamaskbot
Copy link
Copy Markdown
Collaborator

✨ Files requiring CODEOWNER review ✨

🪪 @MetaMask/identity (1 files, +2 -0)
  • 📁 ui/
    • 📁 hooks/
      • 📁 identity/
        • 📁 useAccountSyncing/
          • 📄 useAccountSyncing.ts +2 -0

mathieuartu added a commit to MetaMask/core that referenced this pull request Jul 3, 2025
…thod/action (#6068)

## Explanation

This PR adds a new `getUserProfileMetaMetrics` method to
`AuthenticationController`.
This methods queries the Authentication API and retrieves the currently
authenticated user's metametrics data, in the form of
`UserProfileMetaMetrics` type.

```ts
export type UserProfileMetaMetrics = {
  profile_id: string;
  created_at: string;
  lineage: {
    metametrics_id: string;
    agent: Platform; // 'mobile' | 'extension' | 'portfolio' | 'infura'
    created_at: string;
    updated_at: string;
    counter: number;
  }[];
};
```

Extension test-drive PR: 
- MetaMask/metamask-extension#34060

The PR above is only a demo, and **shouldn't** be merged.
It adds a call to `getUserProfileMetaMetrics` just after dispatching
account syncing.

In order to view the results, switch to the test-drive PR branch,
`yarn`, `yarn start`.
Then complete onboarding, open the dev tools, network tab, and filter by
"authentication".
You should see a `metametrics` call every time you refresh the extension
page (more convenient to do in full screen mode).

## References

Will close: 
- https://consensyssoftware.atlassian.net/browse/IDENTITY-162

## Changelog

<!--
THIS SECTION IS NO LONGER NEEDED.

The process for updating changelogs has changed. Please consult the
"Updating changelogs" section of the Contributing doc for more.
-->

## Checklist

- [x] I've updated the test suite for new or updated code as appropriate
- [x] I've updated documentation (JSDoc, Markdown, etc.) for new or
updated code as appropriate
- [x] I've communicated my changes to consumers by [updating changelogs
for packages I've
changed](https://github.com/MetaMask/core/tree/main/docs/contributing.md#updating-changelogs),
highlighting breaking changes as necessary
- [x] I've prepared draft pull requests for clients and consumer
packages to resolve any breaking changes
@mathieuartu mathieuartu deleted the test/core-PR-6068 branch July 18, 2025 10:19
@github-actions github-actions bot locked and limited conversation to collaborators Jul 18, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

team-identity-deprecated DEPRECATED: team no longer exists

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants