fix(engagement): gate marketing-consent sheet on MetaMetrics cp-7.80.0#31028
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. |
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsE2E Test Selection:
Both changes are:
None of the available E2E test tags cover push notification pre-prompt variants or marketing consent flows specifically. The changes don't affect any flows tested by SmokeAccounts, SmokeConfirmations, SmokeIdentity, SmokeNetworkAbstractions, SmokeSwap, SmokeStake, SmokeWalletPlatform, SmokeMoney, SmokePerps, SmokeMultiChainAPI, SmokePredictions, SmokeSeedlessOnboarding, SmokeBrowser, or SmokeSnaps in a meaningful way. Performance Test Selection: |
Description
Previously, the push onboarding sheets could trigger analytics.optIn() when MetaMetrics was off, effectively using the marketing-consent flow to enable MetaMetrics in a less than clear way. This is not desired. This PR simplifies the action taken after accepting the push pre-prompt. It reduces the risk of the existing code.
This PR:
Changelog
CHANGELOG entry: Remove the ability for the push onboarding flow to toggle MetaMetrics opt-in state.
Related issues
Fixes:
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Performance checks (if applicable)
trace()for usage andaddTokenfor an exampleFor performance guidelines and tooling, see the Performance Guide.
Pre-merge reviewer checklist