feat(earn): gate Tron unstaked claim button behind remote flag#27908
Open
ulissesferreira wants to merge 1 commit intomainfrom
Open
feat(earn): gate Tron unstaked claim button behind remote flag#27908ulissesferreira wants to merge 1 commit intomainfrom
ulissesferreira wants to merge 1 commit intomainfrom
Conversation
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. |
86a4ab8 to
b1077c4
Compare
Add tronShowClaimUnstakedTrxButton (default false) and selectTronShowClaimUnstakedTrxButton. Hide claim CTA unless LaunchDarkly serves true. Register the flag in tests/feature-flags/feature-flag-registry.ts (inProd true, productionDefault false per production client-config API). NEB-838
b1077c4 to
36797d2
Compare
Contributor
🔍 Smart E2E Test Selection⏭️ Smart E2E selection skipped - draft PR All E2E tests pre-selected. |
|
Contributor
|
✅ E2E Fixture Validation — Schema is up to date |
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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
Adds the remote boolean flag
tronShowClaimUnstakedTrxButtonso we can hide the claim action on the Tron unstaked banner if something goes wrong in production, without removing the banner copy.Why: We need a safe kill switch for the claim CTA only.
How:
FeatureFlagNameswith defaultfalse(missing/undefined → button hidden; opt-in).selectTronShowClaimUnstakedTrxButtonreads merged remote flags (same pattern as other boolean flags).TronUnstakedBannerusesuseSelectorand renders the primary claim button only when the flag istrue; title and description stay visible when the button is hidden.Ops: Create and enable
tronShowClaimUnstakedTrxButtonin LaunchDarkly (truewhere the claim button should appear).Changelog
CHANGELOG entry: Added a remote feature flag to control visibility of the Tron unstaked TRX claim button on the token details banner.
Related issues
Fixes: NEB-838
Manual testing steps
Screenshots/Recordings
Before
n/a
After
Feature flag disabled

Feature flag enabled
Pre-merge author checklist
Pre-merge reviewer checklist
Note
Low Risk
Low risk: UI-only change that conditionally hides the Tron unstaked claim CTA behind a remote boolean flag, plus accompanying selector/registry/test updates.
Overview
Adds a new remote feature flag,
tronShowClaimUnstakedTrxButton(defaultfalse), to act as a kill switch for the Tron unstaked TRX claim CTA.TronUnstakedBannernow reads this flag via a new selector (selectTronShowClaimUnstakedTrxButton) and only renders the primary claim button when enabled, while keeping the banner copy visible; tests are updated/added to cover both flag states and the flag is registered in the feature-flag registry and defaults.Written by Cursor Bugbot for commit 36797d2. This will update automatically on new commits. Configure here.