fix(ui): show validation feedback for investment amount #606
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Problem
When entering an investment amount, invalid values (e.g. zero or empty input) were not clearly communicated to the user. This could lead to confusion during the investment flow, especially for first-time users.
Solution
This PR adds immediate visual validation feedback to the investment amount input by displaying a clear error message when the entered amount is invalid.
What’s changed
Displays an error message when the investment amount is not valid
Uses existing Avalonia bindings (IsValid) for validation state
Error message is styled consistently with system error colors
No changes to business logic or transaction flow
Why this matters
Improves UX by giving users instant, actionable feedback
Reduces friction and mistakes during the investment process
Keeps validation logic simple and UI-only
Scope
UI-only change
No protocol, wallet, or transaction logic affected
No breaking changes
Testing
Manually verified by entering invalid and valid amounts in the investment flow
Error message appears and disappears correctly based on validation state