fix: set unset OPTIN_META_METRICS_UI_SEEN at onboarding SL-467#24979
fix: set unset OPTIN_META_METRICS_UI_SEEN at onboarding SL-467#24979
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 detailsThe PR introduces a new utility module
The E2E tests in
Since the changes modify the onboarding flow and metrics consent handling, running
The risk is medium because while the changes are well-structured refactoring with proper error handling, they touch the onboarding flow which is critical for new users. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #24979 +/- ##
==========================================
+ Coverage 79.88% 79.90% +0.01%
==========================================
Files 4231 4233 +2
Lines 108283 108518 +235
Branches 22674 22709 +35
==========================================
+ Hits 86503 86707 +204
- Misses 15722 15745 +23
- Partials 6058 6066 +8 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|



Description
Add set OPTIN_META_METRICS_UI_SEEN at onboarding for seedless onboarding
Add unset OPTIN_META_METRICS_UI_SEEN for create srp wallet onboarding flow
OPTIN_META_METRICS_UI_SEEN flag is used to track if the optin metric screen is been seen by user during srp wallet creation.
For seedless onboarding where optin metric defaulted, OPTIN_META_METRICS_UI_SEEN should be set instead of checking seedless onboarding flow flag in the login screen
Changelog
CHANGELOG entry: set OPTIN_META_METRICS_UI_SEEN flag when user login with social login
CHANGELOG entry: unset OPTIN_META_METRICS_UI_SEEN flag when user create srp wallet
Related issues
Fixes:
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist
Note
Introduces a small utility to manage the metrics opt-in UI flag and wires it into onboarding flows for correct behavior across SRP and social login paths.
util/metrics/metricsOptInUIUtilswithmarkMetricsOptInUISeenandresetMetricsOptInUISeen(with error logging)OptinMetricsto callmarkMetricsOptInUISeen()when continuing instead of writing to storage directlyOnboarding:resetMetricsOptInUISeen()when starting "Create Wallet" or "Import Wallet" to re-show consentmarkMetricsOptInUISeen()after successful OAuth login (metrics auto-enabled)metricsOptInUIUtils.test.tsWritten by Cursor Bugbot for commit cc06677. This will update automatically on new commits. Configure here.