Skip to content

feat(ui): TESTNET badge on the home balance header - #844

Merged
QuantumExplorer merged 1 commit into
swift-sdk-integrationfrom
feat/testnet-indicator
Jul 17, 2026
Merged

QuantumExplorer merged 1 commit into
swift-sdk-integrationfrom
feat/testnet-indicator

Conversation

@QuantumExplorer

Copy link
Copy Markdown
Member

What

An orange TESTNET capsule at the top of the home balance header whenever the wallet runs on testnet, so test funds can't be mistaken for real Dash. Especially relevant while fresh installs deliberately default to testnet during the migration (WalletEnvironment.networkKind's missing-key default, owner decision 2026-07-03).

  • Driven by a @Published isTestnet on BalanceModel, re-evaluated on DWCurrentNetworkDidChange — the badge appears/disappears live when using the switch-network shortcuts.
  • Renders nothing on mainnet.

Testing

Testnet smoke on QA-iPhone16 / iPhone 16 Pro sims (both run testnet): badge visible above the balance; balance hide/show, sync label, and breakdown card layout unaffected. Unit-test target pre-existing-broken per CLAUDE.md.

🤖 Generated with Claude Code

An orange TESTNET capsule sits above the balance whenever the wallet
runs on testnet, so test funds can't be mistaken for real Dash —
especially relevant while fresh installs deliberately default to
testnet (WalletEnvironment.networkKind's missing-key default). Driven
by a published flag on BalanceModel that re-evaluates on
DWCurrentNetworkDidChange, so the badge tracks the switch-network
shortcuts live. Nothing renders on mainnet.

Co-Authored-By: Claude Fable 5 <[email protected]>
@coderabbitai

coderabbitai Bot commented Jul 17, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: e33d8a2f-6496-4bf9-8024-4a5698e5e66a

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/testnet-indicator

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@QuantumExplorer
QuantumExplorer merged commit d8c736b into swift-sdk-integration Jul 17, 2026
1 check passed
@QuantumExplorer
QuantumExplorer deleted the feat/testnet-indicator branch August 7, 2026 08:22
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