fix: MUSD-772 fix earn deposits redirecting to activity view with no way to leave#29763
Merged
Matt561 merged 3 commits intoMay 6, 2026
Conversation
…eature is enabled; prevents users from stranded since the activity list is not part of the main action bar
Contributor
|
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. |
shane-t
approved these changes
May 6, 2026
Member
|
Tested |
…o-activity-view-with-no-way-to-leave
vinnyhoward
approved these changes
May 6, 2026
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Description
Fixes a regression introduced in #29454 where Earn redirects to the activity view for successful pooled-staking or lending deposits would leave users stranded without a way to exit.
This comes as part of a larger change to replace activity with Money in the main navbar.
Changelog
CHANGELOG entry: Fixes a regression where Earn redirects to the activity view for successful pooled-staking or lending deposits would leave users stranded without a way to exit.
Related issues
Fixes: MUSD-772: Fix deposit redirects for Earn flows leaving users stranded on Activity page
Manual testing steps
Screenshots/Recordings
Before
musd-772-fix-earn-redirects-to-activity-without-way-to-leave-demo-before.mov
After
musd-772-fix-earn-redirects-to-activity-without-way-to-leave-demo-after.mov
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
Changes back-navigation behavior (including Android hardware back handling) for
ActivityViewwhen the Money Home feature flag is enabled, which could affect user navigation flows if routing assumptions are wrong. Scope is limited and covered by new unit tests around back button and hardware back handling.Overview
Fixes a regression where users redirected into
ActivityView(e.g., after successful Earn deposits) could get stuck without a reliable way to exit when the Money Home experience is enabled.When
selectMoneyHomeScreenEnabledFlagis on,ActivityViewnow always shows a back button and routes both header back and AndroidhardwareBackPresstoRoutes.HOME_TABS(instead of returning to the prior stack/confirmation screen). The wallet’s Activity entrypoint no longer passesshowBackButtonparams, andRoutesadds a newHOME_TABSroute constant.Adds/updates
ActivityViewtests to cover Money-flag behavior for header back, hardware back interception, and header variant selection.Reviewed by Cursor Bugbot for commit e5a0c60. Bugbot is set up for automated code reviews on this repo. Configure here.