feat(earn): gate Tron unstaked claim button behind remote flag cp-7.71.0#27908
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. |
b1077c4 to
36797d2
Compare
| FeatureFlagNames, | ||
| } from '../../../constants/featureFlags'; | ||
|
|
||
| export const selectTronShowClaimUnstakedTrxButton = createSelector( |
There was a problem hiding this comment.
Nit/non-blocking: Earn killswitches usually have the *Enabled suffix.
For example
export const selectTronClaimUnstakedEnabled
aganglada
left a comment
There was a problem hiding this comment.
LGTM on perps changes app/components/UI/Perps/utils/wait.test.ts
36797d2 to
1746e09
Compare
1746e09 to
3436a59
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.
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
3436a59 to
d8ac2f1
Compare
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsE2E Test Selection: The PR introduces:
Tag selection rationale:
The feature flag registry update is additive and shouldn't break any existing E2E tests. The risk is low since the new flag defaults to Performance Test Selection: |
|
|
✅ E2E Fixture Validation — Schema is up to date |




Description
Adds the remote boolean flag
tronClaimUnstakedTrxButtonEnabledso 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).selectTronClaimUnstakedTrxButtonEnabledinapp/selectors/featureFlagController/tronClaimUnstakedTrxButtonEnabled/reads merged remote flags (same pattern as other boolean flags).TronUnstakedBannerusesuseSelector(selectTronClaimUnstakedTrxButtonEnabled)and renders the primary claim button only when the flag istrue; title and description stay visible when the button is hidden.tests/feature-flags/feature-flag-registry.ts(inProd: true,productionDefault: false) so CI/E2E mocks match production client-config.Ops: Ensure
tronClaimUnstakedTrxButtonEnabledexists in LaunchDarkly / client-config; set totruewhere 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
See prior screenshots on this PR (token details with banner).
After
Feature flag disabled / enabled — screenshots attached in thread (banner with and without claim CTA).
Pre-merge author checklist
Pre-merge reviewer checklist