Skip to content

feat(flags): gate cashWalletCutover query behind usdtWalletEnabled (ENG-465)#657

Closed
islandbitcoin wants to merge 1 commit into
feat/usdt-display-as-usdfrom
eng-465-usdt-flag-gating
Closed

feat(flags): gate cashWalletCutover query behind usdtWalletEnabled (ENG-465)#657
islandbitcoin wants to merge 1 commit into
feat/usdt-display-as-usdfrom
eng-465-usdt-flag-gating

Conversation

@islandbitcoin

Copy link
Copy Markdown
Contributor

What

Adds a usdtWalletEnabled Firebase Remote Config flag (default OFF) and gates the USDT cutover query behind it.

  • feature-flags-context.tsx: new usdtWalletEnabled flag (default off; on for Local)
  • CashWalletCutoverModal.tsx: useCashWalletCutoverQuery({ skip: !usdtWalletEnabled })

Why (ENG-465, audit P0)

cashWalletCutover is queried from the home screen for every account. If the app reaches users before the backend exposes the field, they hit GraphQL validation errors. The modal already hides when the data is null, so with the flag OFF this is a clean no-op.

Toggle behavior

  • OFF (default): query never fires; modal never shows.
  • ON: unchanged from today.

Verification

Local full typecheck not run (isolated worktree has no node_modules) — relying on CI. Minimal change following the existing skip: !deviceAccountEnabled pattern.

🤖 Generated with Claude Code

…NG-465)

The CashWalletCutover modal queries cashWalletCutover on the home screen for
every account. If the app ships before the backend exposes that field, users
hit GraphQL errors. Add a usdtWalletEnabled Remote Config flag (default OFF)
and Apollo `skip:` the query when off. Modal already hides on null data, so
OFF is a clean no-op.

ENG-465. Mirrors the existing deviceAccountEnabled skip pattern.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@linear

linear Bot commented Jun 29, 2026

Copy link
Copy Markdown

ENG-465

@islandbitcoin

Copy link
Copy Markdown
Contributor Author

Superseded by #658, which folds the same bridge kill-switch into the #621 epic (feat/fygaro). #656/#657 targeted sibling branches (fix/bridge-kyc-selfie, feat/usdt-display-as-usd) that are not part of the epics being merged. USDT query gating dropped: the USDT cutover is the intended default (flash#413).

@islandbitcoin islandbitcoin deleted the eng-465-usdt-flag-gating branch June 29, 2026 00:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant