Skip to content

feat(wallet): add testnet banner and improve send flow validation#480

Open
web3nova wants to merge 2 commits into
Echo-Mirror-Butler:developmentfrom
web3nova:feat/wallet-testnet-validation
Open

feat(wallet): add testnet banner and improve send flow validation#480
web3nova wants to merge 2 commits into
Echo-Mirror-Butler:developmentfrom
web3nova:feat/wallet-testnet-validation

Conversation

@web3nova

Copy link
Copy Markdown

Summary

Adds missing testnet indicator and fixes recipient validation UX in the send ECHO modal.

Changes

  • Testnet banner: Yellow warning banner shows on testnet builds (dismissible)
  • Recipient validation: Real-time validation with 500ms debounce and visual feedback
  • Amount validation: Now supports decimals, rounds to 2 places, checks balance
  • Send confirmation: AlertDialog before any transaction submission

Testing

  • Run with --dart-define=STELLAR_NETWORK=testnet → banner shows
  • Run without flag → no banner
  • Send flow validates recipient, amount, and shows confirmation

Closes #460

…alidation

- Added environment config for testnet detection
- Testnet banner now conditionally shows based on STELLAR_NETWORK
- Added send confirmation dialog before transaction submission
- Amount validation now rounds to 2 decimal places
- Fixed recipient validation with debouncing (already present)

Closes Echo-Mirror-Butler#460
@drips-wave

drips-wave Bot commented Jun 26, 2026

Copy link
Copy Markdown

@web3nova Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@akintewe akintewe left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Great work overall — testnet banner, confirmation dialog, and amount validation are all correct. One issue blocking merge:

Duplicate onChanged block in wallet_screen.dart: The amount validation logic appears twice in the same onChanged handler — once with double-quoted strings, then again with single-quoted strings. This will cause a Dart compile error. Please remove the second (single-quoted) duplicate block starting at final parsed = double.tryParse(value.trim()); around line 250 and keep only the first block.

Once that's fixed this is ready to merge.

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.

feat(flutter/wallet): add testnet warning badge and fix send flow recipient validation

2 participants