Add validation to the Send form (address and amount) #490

Manually merged
johnny9 merged 1 commit from send-validation-qt6 into qt6 2026-02-16 09:47:51 +00:00 AGit
johnny9 commented 2025-08-01 16:46:16 +00:00 (Migrated from github.com)

These changes add properties for the error strings used in the QML to SendRecipient and add validation methods that are checked when the relevant properties are changed by the user.

image

This is a port of #462 into the qt6 branch

These changes add properties for the error strings used in the QML to SendRecipient and add validation methods that are checked when the relevant properties are changed by the user. <img width="870" height="730" alt="image" src="https://git.fish.foo/attachments/26481461-bc40-493b-a333-fdb0311d542a" /> This is a port of #462 into the qt6 branch
johnny9 commented 2025-08-05 17:57:59 +00:00 (Migrated from github.com)

@MarnixCroes do you mind re-reviewing this change?

@MarnixCroes do you mind re-reviewing this change?
MarnixCroes (Migrated from github.com) reviewed 2025-08-06 17:12:07 +00:00
MarnixCroes (Migrated from github.com) left a comment

55fdce2c269a7751b640e99d874ea154effb5319

  • The Amount must be greater than zero while there is only the placeholder text is a bit silly.
    Which can be repro'd by entering 0 and then deleting it.
    image

  • The amount sometimes changes and gets negative when entering large numbers:
    image

Screencast from 2025-08-06 11-11-16.webm

Screencast from 2025-08-06 11-13-03.webm

55fdce2c269a7751b640e99d874ea154effb5319 - The `Amount must be greater than zero` while there is only the placeholder text is a bit silly. Which can be repro'd by entering 0 and then deleting it. <img width="501" height="105" alt="image" src="https://git.fish.foo/attachments/c3338f56-405b-40ce-b89f-4ddcc991fd0c" /> - The amount sometimes changes and gets negative when entering large numbers: <img width="501" height="105" alt="image" src="https://git.fish.foo/attachments/b699bceb-0960-4902-be1f-cd0576864d68" /> [Screencast from 2025-08-06 11-11-16.webm](https://github.com/user-attachments/assets/805ffeb3-0f89-4845-adcf-401c97739f99) [Screencast from 2025-08-06 11-13-03.webm](https://github.com/user-attachments/assets/47239182-c974-4267-9aba-1ef224f9447b)
MarnixCroes (Migrated from github.com) commented 2025-08-06 16:50:13 +00:00
            setAddressError(tr("Invalid address"));

maybe better?

```suggestion setAddressError(tr("Invalid address")); ``` maybe better?
johnny9 commented 2026-02-14 20:23:57 +00:00 (Migrated from github.com)

from 5ec53c0 to fb149bf

  • Squashed commits and summarized
from [5ec53c0](https://github.com/bitcoin-core/gui-qml/commit/5ec53c01b34ed862992fa0d49a9f8e032236118d) to [fb149bf](https://github.com/bitcoin-core/gui-qml/commit/fb149bfc3732cea0d6650479ead1dc2383d37441) - Squashed commits and summarized
jarolrod commented 2026-02-16 03:59:16 +00:00 (Migrated from github.com)
ACK https://github.com/bitcoin-core/gui-qml/commit/fb149bfc3732cea0d6650479ead1dc2383d37441
Sign in to join this conversation.
No description provided.