Skip to content

chore(onboarding): remove dead WhatsNewModal feature#32114

Open
wachunei wants to merge 1 commit into
mainfrom
chore/remove-whats-new-modal
Open

chore(onboarding): remove dead WhatsNewModal feature#32114
wachunei wants to merge 1 commit into
mainfrom
chore/remove-whats-new-modal

Conversation

@wachunei

@wachunei wachunei commented Jun 19, 2026

Copy link
Copy Markdown
Member

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

Feature: Wallet loads without What's New modal

  Scenario: user opens the wallet after upgrade
    Given the user has an existing wallet and is on the home screen

    When the user navigates to the Wallet tab
    Then no What's New modal appears
    And the wallet renders normally

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)

  • I've tested on Android
    • Ideally on a mid-range device; emulator is acceptable
  • I've tested with a power user scenario
    • Use these power-user SRPs to import wallets with many accounts and tokens
  • I've instrumented key operations with Sentry traces for production performance metrics

For performance guidelines and tooling, see the Performance Guide.

Pre-merge reviewer checklist

  • I've manually tested the PR (e.g. pull and build branch, run the app, test code being changed).
  • I confirm that this PR addresses all acceptance criteria described in the ticket it closes and includes the necessary testing evidence such as recordings and or screenshots.

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 from RootModalFlow in App.tsx, and deletes useCheckWhatsNewModal plus shouldShowWhatsNewModal from app/util/onboarding.

Cleans up Wallet by removing a stale effect and related network-onboarding/usePrevious wiring that no longer drove any UI. Test and fixture updates drop WhatsNew route assertions, the hook tests, E2E WhatsNewModal page object, and @MetaMask:WhatsNewAppVersionSeen from default async state.

Reviewed by Cursor Bugbot for commit 733e053. Bugbot is set up for automated code reviews on this repo. Configure here.

@wachunei wachunei self-assigned this Jun 19, 2026
@mm-token-exchange-service mm-token-exchange-service Bot added the team-mobile-ux Mobile UX team label Jun 19, 2026
@wachunei wachunei marked this pull request as ready for review June 19, 2026 17:25
@wachunei wachunei requested review from a team as code owners June 19, 2026 17:25
@cursor

cursor Bot commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

Current version of PR was reviewed by /review-bugbot on Jun 19, 13:23 GMT-4. It flagged 0 findings.

Bugbot on commit 6431082 is skipped.

@github-actions github-actions Bot added the risk:low AI analysis: low risk label Jun 19, 2026
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.
@wachunei wachunei force-pushed the chore/remove-whats-new-modal branch from 6431082 to 733e053 Compare June 19, 2026 19:38
@github-actions github-actions Bot added size-M and removed size-XL labels Jun 19, 2026
@github-actions

Copy link
Copy Markdown
Contributor

🔍 Smart E2E Test Selection

  • Selected E2E tags: SmokeAccounts, SmokeConfirmations, SmokeIdentity, SmokeNetworkAbstractions, SmokeNetworkExpansion, SmokeSwap, SmokeStake, SmokeWalletPlatform, SmokeMoney, SmokePerps, SmokeMultiChainAPI, SmokePredictions, SmokeSeedlessOnboarding, SmokeBrowser, SmokeSnaps
  • Selected Performance tags: None (no tests recommended)
  • Risk Level: high
  • AI Confidence: 100%
click to see 🤖 AI reasoning details

E2E Test Selection:
Hard rule (global-infrastructure-change): Global infrastructure changed: app/components/hooks/useCheckWhatsNewModal/index.ts, app/components/hooks/useCheckWhatsNewModal/useCheckWhatsNewModal.test.ts, app/components/hooks/useCheckWhatsNewModal/useCheckWhatsNewModal.ts. Running all tests.

Performance Test Selection:
The changes are purely a removal of the WhatsNew modal feature - deleting a hook, utility function, navigation route, and page object. There are no changes to performance-sensitive flows like app launch, login, asset loading, swaps, or onboarding performance. The Wallet component cleanup removes a dead useEffect (no performance impact). No performance test tags are warranted.

View GitHub Actions results

@sonarqubecloud

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk:low AI analysis: low risk size-M team-mobile-ux Mobile UX team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

WhatsNewModal carousel progress dots animate width on JS thread

1 participant