chore(onboarding): remove dead WhatsNewModal feature#32114
Conversation
|
Current version of PR was reviewed by /review-bugbot on Jun 19, 13:23 GMT-4. It flagged 0 findings. Bugbot on commit |
Remove the auto-show hook, navigation route, Wallet stub, and shouldShowWhatsNewModal logic for the unused What's New modal. Component files and assets are removed in a follow-up PR.
6431082 to
733e053
Compare
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsE2E Test Selection: Performance Test Selection: |
|



Description
The What's New modal (
WhatsNewModal) is no longer shown to users. The auto-show hook was never wired up, and the Wallet screen only retained a no-op effect with a stale comment. This PR removes the dead modal feature entirely — component, hook, navigation route, storage key, locales, assets, tests, and related fixtures — to reduce maintenance surface and avoid investing in performance fixes for unused UI (see #31279).Changelog
CHANGELOG entry: null
Related issues
Fixes: #31279
Manual testing steps
Screenshots/Recordings
Before
N/A — removal of dead code with no user-visible UI.
After
N/A — removal of dead code with no user-visible 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
Note
Low Risk
Dead-code removal with no user-visible behavior change; navigation and Wallet paths are simplified without touching auth, payments, or data handling.
Overview
Removes the unused What's New modal flow from navigation and onboarding: drops
Routes.MODAL.WHATS_NEW, unregisters the screen fromRootModalFlowinApp.tsx, and deletesuseCheckWhatsNewModalplusshouldShowWhatsNewModalfromapp/util/onboarding.Cleans up Wallet by removing a stale effect and related network-onboarding/
usePreviouswiring that no longer drove any UI. Test and fixture updates dropWhatsNewroute assertions, the hook tests, E2EWhatsNewModalpage object, and@MetaMask:WhatsNewAppVersionSeenfrom default async state.Reviewed by Cursor Bugbot for commit 733e053. Bugbot is set up for automated code reviews on this repo. Configure here.