-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
feat: add feature flag to blacklist custom networks (used to hide Monad before launch) #21616
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add feature flag to blacklist custom networks (used to hide Monad before launch) #21616
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. |
977076d to
f454b02
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested with feature flag set as true and false via LD
|



Description
This PR introduces support for remotely blacklisting networks from the “Add Popular Network” list in the Custom Networks settings view.
The feature is being added specifically to temporarily hide Monad ahead of its November 19 launch, preventing users from adding or interacting with the network before it is officially live.
The new additionalNetworksBlacklist feature flag can be controlled remotely or via the MM_ADDITIONAL_NETWORK_BLACKLIST environment variable, enabling flexible rollout management for upcoming network launches.
Changelog
CHANGELOG entry: added feature flag support to temporarily hide Monad (and other networks) from the “Add Popular Network” list.
Related issues
Fixes:
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist
Note
Adds a feature flag (and ENV override) to hide specified chain IDs from the “Add Popular Network” list, with filtering utility and tests.
CustomNetwork.tsx: FiltersPopularListviagetFilteredPopularNetworksusingselectAdditionalNetworksBlacklistFeatureFlagto hide blacklisted chain IDs.selectors/featureFlagController/networkBlacklist: NewselectAdditionalNetworksBlacklistFeatureFlagwithMM_ADDITIONAL_NETWORK_BLACKLISTENV override parsing.util/networks/customNetworks.tsx: AddgetFilteredPopularNetworks(blacklistedChainIds, baseNetworkList?)to exclude blacklisted networks.e2e/api-mocking/helpers/remoteFeatureFlagsHelper.ts: IncludeadditionalNetworksBlacklistdefault in mocked flags.Written by Cursor Bugbot for commit ac0beef. This will update automatically on new commits. Configure here.