feat: add social login dismiss event and account_type gaps#30529
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. |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 4a231c8. Configure here.
tylerc-consensys
left a comment
There was a problem hiding this comment.
From AI:
- The PR still does not pass explicit accountType into the wallet creation error route, so SocialLoginErrorSheet can still fall back to metamask if seedless onboarding auth connection is unavailable.
- Pre-OAuth failures from Onboarding, like invalid/disabled Telegram provider, are still outside OAuthService and not covered by Social Login Failed.
- No-internet preflight remains untracked, but I’d leave that alone unless Product explicitly wants it because tracking it changes metrics opt-in timing.
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsE2E Test Selection:
The changes are analytics/error-handling improvements within the social login onboarding flow. The core OAuth logic (login, token exchange, wallet creation) is not fundamentally changed - only how errors are classified and tracked. The No other test tags are needed because:
Performance tests are not warranted as these are analytics/error-handling changes with no UI rendering or data loading impact. Performance Test Selection: |
|




Description
Social login onboarding analytics had gaps: several events were missing account_type, and there was no dedicated signal when a user abandoned the provider auth UI before completing login (especially Telegram and cross-provider cancel flows)
This PR:
Jira: https://consensyssoftware.atlassian.net/browse/TO-754
Changelog
CHANGELOG entry: null
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
Note
Medium Risk
Adds new analytics events and modifies OAuth provider cancellation/error classification on Android and iOS, which could change how login failures are surfaced and tracked. Risk is moderate because it touches cross-platform OAuth handlers and centralized OAuthService error handling, but does not alter auth token exchange logic.
Overview
Adds a new MetaMetrics event
SOCIAL_LOGIN_AUTH_BROWSER_DISMISSEDand emits it fromOAuthServicewhen provider auth is cancelled/dismissed (withaccount_type,surface, andelapsed_ms).Fills
account_typegaps forAccountStatuspage-view + wallet setup/import start events and forChoosePasswordWALLET_SETUP_FAILUREtracking during social-login flows.Refactors cancel detection into shared helpers (
isOAuthUserCancellationMessage,isSocialLoginAuthSessionDismissed) and expands Android Google + iOS Apple handlers to classify more cancel/dismiss outcomes (including resolved cancel results and additional message/code patterns), with updated/added unit tests.Reviewed by Cursor Bugbot for commit 4a231c8. Configure here.