perf(predict): remove GTM onboarding modal#33384
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. |
Feature Flag Registry CheckPossibly unused flagsThis PR removes the last codebase references to the following registered flags.
|
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsE2E Test Selection: Performance Test Selection: |
🧪 Flaky unit test detectionRun history flaky detectionHistorical failure rate is a hint, not proof — review each suggestion in context. See the flaky-test-detection skill for the full pattern reference and manual audit workflow. Failures / runs sampled per window:
AI-detected flaky patterns
|
|
⚡ Performance Test Results
❌ 3 tests failed · 6 tests · 1 device 📱 Devices tested (1)Android: Google Pixel 8 Pro (v14.0) ❌ Failed Tests (3)@metamask-onboarding-team
✅ Passed Tests (3)
Branch: |



Description
The Predict GTM onboarding modal decoded a 4096 x 3175 PNG after users reached wallet home, creating an estimated 52 MB decoded-memory spike and adding approximately 1.85 MB to the bundle. Following the product decision to retire this onboarding experience instead of resizing its asset, this removes the complete modal flow: wallet startup navigation, route and navigation types, app-side feature-flag selection, storage and analytics constants, localized copy, modal assets, and test suppression/dismissal logic. Onboarding and performance flows now proceed directly to wallet home. The remote flag remains listed only in the production feature-flag registry until it is deleted server-side; the app no longer consumes it.
Changelog
CHANGELOG entry: Removed the Predict onboarding modal to improve wallet startup performance
Related issues
Fixes: https://consensyssoftware.atlassian.net/browse/PRED-977
Closes: #31302
Manual testing steps
Screenshots/Recordings
Before
N/A - No screenshot or recording was captured for the retired Predict GTM onboarding modal.
After
N/A - No screenshot or recording was captured; users now proceed directly to the existing wallet home UI.
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