feat: MUSD-673 conditionally render Money hub via feature flag#28934
Conversation
…ponent based on feature flag selector
|
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. |
6feb802 to
9be2c69
Compare
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 9047abf. Configure here.
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsE2E Test Selection:
Why no E2E tags are needed:
Performance Test Selection: |
|




Description
Adds new
selectMoneyHubEnabledFlagselector to control conditional rendering of the new Money hub screen.Changelog
CHANGELOG entry: added new
selectMoneyHubEnabledFlagselector to control conditional rendering of the new Money hub screen.Related issues
Fixes: MUSD-673: Create feature flag for Money Hub
Manual testing steps
Screenshots/Recordings
Before
Money hub always rendered
After
When enabled

When disabled
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
Feature-flag-gated UI rendering changes with no new data handling or critical logic; primary risk is accidentally hiding/showing Money Hub sections due to flag wiring.
Overview
Adds a new
selectMoneyHubEnabledFlagselector (remote version-gated flag withMM_MONEY_HUB_ENABLEDenv fallback) and registers the corresponding remote flagearnMoneyHubEnabledfor test defaults.Updates
CashTokensFullViewto conditionally render the bonus/convert sections and bottom CTAs (Convert vs Swap/Buy) only when Money Hub is enabled, with expanded unit tests covering the enabled/disabled UI states and CTA behavior.Reviewed by Cursor Bugbot for commit 1434111. Bugbot is set up for automated code reviews on this repo. Configure here.