-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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(ramp): offramp analytics #7637
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. |
…mobile into feat/offramp-analytics
Please mark as Draft until PR is ready for review and all checks are passing 🙏 |
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.
Changes requested, main changes requested are: use isBuy
/isSell
instead of RampType and revert our analytics internal interface to be decoupled of current MMetrics implementation. I did not see any changes related to tests, we must create tests to confirm the off-ramp methods are being called when isBuy
is false (you can do this by mocking the sdk hook)
Please use the conventional commit on the PR title (eg: feat(ramp): <description>
, refactor(ramp): <description>
and set is as draft instead of using WIP
in the title.
app/components/UI/Ramp/buy/Views/PaymentMethods/PaymentMethods.tsx
Outdated
Show resolved
Hide resolved
app/components/UI/Ramp/buy/Views/PaymentMethods/PaymentMethods.tsx
Outdated
Show resolved
Hide resolved
app/components/UI/Ramp/buy/Views/PaymentMethods/PaymentMethods.tsx
Outdated
Show resolved
Hide resolved
#7831) ## **Description** This fixes the incorrect assignment of `currency_source` and `currency_destination` definitions in the offramp analytics payloads. ## **Related issues** N/A ## **Manual testing steps** Check logs when analytics trigger and verify the source/destination values ## **Screenshots/Recordings** N/A ### **Before** N/A ### **After** N/A ## **Pre-merge author checklist** - [ ] I’ve followed [MetaMask Coding Standards](https://github.com/MetaMask/metamask-mobile/blob/main/.github/guidelines/CODING_GUIDELINES.md). - [ ] I've clearly explained what problem this PR is solving and how it is solved. - [ ] I've linked related issues - [ ] I've included manual testing steps - [ ] I've included screenshots/recordings if applicable - [ ] I’ve included tests if applicable - [ ] I’ve documented my code using [JSDoc](https://jsdoc.app/) format if applicable - [ ] I’ve applied the right labels on the PR (see [labeling guidelines](https://github.com/MetaMask/metamask-mobile/blob/main/.github/guidelines/LABELING_GUIDELINES.md)). Not required for external contributors. - [ ] I’ve properly set the pull request status: - [ ] In case it's not yet "ready for review", I've set it to "draft". - [ ] In case it's "ready for review", I've changed it from "draft" to "non-draft". ## **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.
…metamask-mobile into feat/offramp-analytics
…metamask-mobile into feat/offramp-analytics
QA'd in simulator--LGTM! |
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.
One little 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.
LGTM!
Kudos, SonarCloud Quality Gate passed! |
Description
Related issues
N/A - we do not track analytics issues here in github
Manual testing steps
Check analytics event logs and confirm the sell events are triggered
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist