Skip to content

fix: gate mobile home swap behind FeatureFlags.showSwapButton (off); build 131 - #630

Merged
n13 merged 4 commits into
mainfrom
fix/remove-swap-build-131
Sep 3, 2026
Merged

fix: gate mobile home swap behind FeatureFlags.showSwapButton (off); build 131#630
n13 merged 4 commits into
mainfrom
fix/remove-swap-build-131

Conversation

@n13

@n13 n13 commented Sep 3, 2026

Copy link
Copy Markdown
Collaborator

What

App review needs the swap action gone from the mobile home, but we'll toggle it across builds. The swap card is gated behind a hardcoded feature flag rather than deleted.

Changes

  • FeatureFlags class — new mobile-app/lib/shared/constants/feature_flags.dart (following the E2EKeys convention) holds showSwapButton, currently false. While false, the home row shows Receive and Send. Flip FeatureFlags.showSwapButton to true to bring the swap button back next build. The swap card, its SwapScreen import, and the disabled-for-encrypted behavior stay in place behind the flag.
  • Build number: 1.5.12+1301.5.12+131 in pubspec.yaml, version.g.dart regenerated via tool/generate_version.sh.
  • Test: home_intent_gating_test.dart asserts Receive and Send always show and Swap follows FeatureFlags.showSwapButton, so it stays correct whichever way the flag is set.

Verification

  • Home actions test passes.
  • melos analyze clean across all packages.

@n13
n13 force-pushed the fix/remove-swap-build-131 branch from 7336431 to cdec83e Compare September 3, 2026 09:22
@n13 n13 changed the title fix: remove swap from mobile home actions; build 131 fix: gate mobile home swap behind showSwapButton flag (off); build 131 Sep 3, 2026
…lag (off); build 131

App review needs swap gone, but we toggle it across builds. Keep the swap card
behind a hardcoded flag in a new shared FeatureFlags class
(lib/shared/constants/feature_flags.dart), set to false, so the home row shows
Receive and Send; flip FeatureFlags.showSwapButton to true to bring swap back.
Build number bumped to 131. The home actions test follows the flag.
@n13
n13 force-pushed the fix/remove-swap-build-131 branch from ba242ec to a7da4d4 Compare September 3, 2026 09:26
@n13 n13 changed the title fix: gate mobile home swap behind showSwapButton flag (off); build 131 fix: gate mobile home swap behind FeatureFlags.showSwapButton (off); build 131 Sep 3, 2026
@n13 n13 added the bot-review Request automated review from review-bot label Sep 3, 2026

@n13 n13 left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewer model: GPT Sol

Verdict (advisory): Approve

No blocking findings.

The compile-time AppConstants.showSwapButton = false cleanly removes Swap from the regular-account home action row while preserving Receive and Send. Flipping the flag back to true reuses the existing Swap card, including its disabled state for encrypted accounts. The regular and multisig rows use the same 20 px gap, the activity typography changes use existing V3 theme tokens, and 1.5.12+131 matches the generated version constants.

Validation:

  • Reviewed the complete ae6c29b2...dc6222d0 diff and surrounding home/button/theme code; git diff --check passed.
  • Changed Dart files pass dart format --output=none --set-exit-if-changed --line-length=120.
  • flutter test test/screens/home_intent_gating_test.dart: 5/5 passed locally.
  • Exact-head GitHub CI passed formatting, workspace analysis, all mobile tests, non-native SDK tests, and cold-wallet tests.

@n13 n13 removed the bot-review Request automated review from review-bot label Sep 3, 2026
@n13
n13 merged commit b1c1150 into main Sep 3, 2026
3 checks passed
@n13
n13 deleted the fix/remove-swap-build-131 branch September 3, 2026 12:50
n13 added a commit that referenced this pull request Sep 3, 2026
… (#631)

* feat(ui): ActionCard widget for the home action tiles, per the app design

The home Receive/Send/Swap tiles are not a design-system Button type: they
use a vertical gradient fill, a hairline border, 20/16 padding and an
icon-over-label layout. Add the two gradient stops as bgCardTop/bgCardBottom
tokens, move the tile into a shared ActionCard widget, and drop the per-call
QuantusButton overrides from the home screen.

* refactor(ui): rename the tile gradient tokens to bgCardGradientTop/Bottom
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