Redesign send and transaction review flows, introduce wallet coins #935

Manually merged
pseudoramdom merged 10 commits from send-redesign into qt6 2026-09-30 18:26:22 +00:00 AGit
pseudoramdom commented 2026-09-24 21:20:30 +00:00 (Migrated from github.com)

This PR is stacked on top of #932


Redesign the send form, transaction review, and completion flow.
The flow also removes "Subtract fee from output" after concerns raised in https://github.com/bitcoin-core/gui-qml/issues/824 and introduces sendall semantics.

  • The form supports multiple recipients, payment request paste, live fee estimates, coin selection.
  • Usingsendall, we bring support to send all coins or send maximum with selected coins.
  • Replace time-based fee choices with block-target presets, plus a custom fee rate and target block selection.
  • Review transaction brings in transaction flow.
  • Add a Wallet Coins page for browsing, selecting, locking, and unlocking coins. The same coin browser supports input selection in Send.

Fixes #786
Fixes #824
Fixes #861
Fixes #859
Fixes #843
Partially fixes #842
Fixes #837

Screenshots

Screenshot 2026-09-24 at 1 15 18 PM
Send form

Screenshot 2026-09-24 at 1 15 57 PM
Send form with details

Screenshot 2026-09-24 at 1 17 14 PM
Coin control

Screenshot 2026-09-24 at 1 56 10 PM
Multiple recipients

Screenshot 2026-09-24 at 2 08 40 PM
Warning before sending all funds

Screenshot 2026-09-24 at 2 12 51 PM
Custom fee selection mode

Screenshot 2026-09-24 at 1 50 13 PM
Transaction review

This PR is stacked on top of #932 --- Redesign the send form, transaction review, and completion flow. The flow also removes "Subtract fee from output" after concerns raised in https://github.com/bitcoin-core/gui-qml/issues/824 and introduces `sendall` semantics. - The form supports multiple recipients, payment request paste, live fee estimates, coin selection. - Using`sendall`, we bring support to send all coins or send maximum with selected coins. - Replace time-based fee choices with block-target presets, plus a custom fee rate and target block selection. - Review transaction brings in transaction flow. - Add a Wallet Coins page for browsing, selecting, locking, and unlocking coins. The same coin browser supports input selection in Send. Fixes #786 Fixes #824 Fixes #861 Fixes #859 Fixes #843 Partially fixes #842 Fixes #837 ## Screenshots <figure> <img width="1527" height="1129" alt="Screenshot 2026-09-24 at 1 15 18 PM" src="https://git.fish.foo/attachments/9c9cec49-117c-4c9c-a5fd-44241b8b1323" /> <figcaption>Send form</figcaption> </figure> ---- <figure> <img width="1527" height="1129" alt="Screenshot 2026-09-24 at 1 15 57 PM" src="https://git.fish.foo/attachments/7cc0f999-ef20-4fe1-946d-ff779b78f8a1" /> <figcaption>Send form with details</figcaption> </figure> ---- <figure> <img width="1527" height="1129" alt="Screenshot 2026-09-24 at 1 17 14 PM" src="https://git.fish.foo/attachments/f3432e30-1e57-4dd0-8572-dd9a305e8141" /> <figcaption>Coin control</figcaption> </figure> ---- <figure> <img width="1767" height="1176" alt="Screenshot 2026-09-24 at 1 56 10 PM" src="https://git.fish.foo/attachments/29688618-4166-4ee9-9441-1c9f3016092e" /> <figcaption>Multiple recipients</figcaption> </figure> ---- <figure> <img width="388" height="249" alt="Screenshot 2026-09-24 at 2 08 40 PM" src="https://git.fish.foo/attachments/db27c79c-4e27-4844-9381-ad59cab1675f" /> <figcaption>Warning before sending all funds</figcaption> </figure> ---- <figure> <img width="461" height="355" alt="Screenshot 2026-09-24 at 2 12 51 PM" src="https://git.fish.foo/attachments/dbf2b528-5a96-4765-9c40-9aacdf2d1581" /> <figcaption>Custom fee selection mode</figcaption> </figure> ---- <figure> <img width="1624" height="1353" alt="Screenshot 2026-09-24 at 1 50 13 PM" src="https://git.fish.foo/attachments/4226610a-974f-4c23-b259-f970fcf8b354" /> <figcaption>Transaction review</figcaption> </figure> ----
johnny9 (Migrated from github.com) reviewed 2026-09-29 06:40:27 +00:00
johnny9 (Migrated from github.com) commented 2026-09-29 06:40:27 +00:00

If another payment confirms while a maximum/send-all transaction is open for review, the fee refresh updates this live recipient amount without rebuilding the prepared transaction. On regtest, receiving 0.5 BTC changed the displayed amount from 0.99999890 BTC to 1.49999823 BTC, while the exported PSBT still paid 0.99999890 BTC. The user can now approve an amount that differs from what will be signed.

Render recipient amounts and destinations from a snapshot of the prepared transaction. Add a regression test that receives funds while review is open and verifies that the displayed amounts still match the prepared transaction.

If another payment confirms while a maximum/send-all transaction is open for review, the fee refresh updates this live recipient amount without rebuilding the prepared transaction. On regtest, receiving 0.5 BTC changed the displayed amount from 0.99999890 BTC to 1.49999823 BTC, while the exported PSBT still paid 0.99999890 BTC. The user can now approve an amount that differs from what will be signed. Render recipient amounts and destinations from a snapshot of the prepared transaction. Add a regression test that receives funds while review is open and verifies that the displayed amounts still match the prepared transaction.
johnny9 (Migrated from github.com) reviewed 2026-09-29 14:00:30 +00:00
johnny9 (Migrated from github.com) commented 2026-09-29 14:00:30 +00:00

If a payment arrives while the “Use locked coin?” confirmation is open, CoinsListModel refreshes and sorts its rows, so pendingLockedCoinRow can now identify a different output. On regtest, confirming after a new output appeared at row 0 selected that new unlocked output and left the requested locked coin unselected. Store the pending coinId/outpoint and resolve that identity when confirming, handling a coin that has disappeared. Add a test that refreshes/reorders the model while the confirmation is open.

If a payment arrives while the “Use locked coin?” confirmation is open, CoinsListModel refreshes and sorts its rows, so pendingLockedCoinRow can now identify a different output. On regtest, confirming after a new output appeared at row 0 selected that new unlocked output and left the requested locked coin unselected. Store the pending coinId/outpoint and resolve that identity when confirming, handling a coin that has disappeared. Add a test that refreshes/reorders the model while the confirmation is open.
johnny9 (Migrated from github.com) commented 2026-09-29 14:00:30 +00:00

Switching TransactionSummary from sats to BTC on the supported Qt 6.4.2 build skips the amount animation and fails test_summary_animates_both_directions, locally and in CI. While the sibling unit label changes, the amount temporarily has width 157 and implicitWidth 158.90625, so this heuristic treats an intrinsic-width label as fixed and rejects the wider BTC text even though the summary has room. Decide clipping from the settled parent allocation instead of this transient width comparison, and retain coverage for both unit-switch directions.

Switching TransactionSummary from sats to BTC on the supported Qt 6.4.2 build skips the amount animation and fails test_summary_animates_both_directions, locally and in CI. While the sibling unit label changes, the amount temporarily has width 157 and implicitWidth 158.90625, so this heuristic treats an intrinsic-width label as fixed and rejects the wider BTC text even though the summary has room. Decide clipping from the settled parent allocation instead of this transient width comparison, and retain coverage for both unit-switch directions.
johnny9 (Migrated from github.com) commented 2026-09-29 14:00:30 +00:00

Opening an ordinary fixed-amount review with Space leaves keyboard focus on the underlying sendReviewButton because this Popup never requests focus. In a QML probe, two Tab presses reached the hidden sendAddressInput, and Ctrl+A followed by typing changed that recipient while the review remained open. This also prevents normal keyboard navigation through the review controls. Set focus: true, establish initial focus inside the review, and add a keyboard test that verifies Tab stays in the popup and cannot edit the underlying form.

Opening an ordinary fixed-amount review with Space leaves keyboard focus on the underlying sendReviewButton because this Popup never requests focus. In a QML probe, two Tab presses reached the hidden sendAddressInput, and Ctrl+A followed by typing changed that recipient while the review remained open. This also prevents normal keyboard navigation through the review controls. Set focus: true, establish initial focus inside the review, and add a keyboard test that verifies Tab stays in the popup and cannot edit the underlying form.
johnny9 (Migrated from github.com) commented 2026-09-29 14:00:30 +00:00

The send/receive functional test stops here with “Property not found: sendTransactionReviewRecipient0.amount”, both locally and in the current GUI functional CI job. The redesigned recipient is a FormRow without an amount property; its amount is now the text of sendTransactionReviewRecipientAmount. Update these reads and the other occurrences in this test to the new child label while preserving the value assertions. An external copy with only those queries corrected completes the full send-all/broadcast flow.

The send/receive functional test stops here with “Property not found: sendTransactionReviewRecipient0.amount”, both locally and in the current GUI functional CI job. The redesigned recipient is a FormRow without an amount property; its amount is now the text of sendTransactionReviewRecipient<N>Amount. Update these reads and the other occurrences in this test to the new child label while preserving the value assertions. An external copy with only those queries corrected completes the full send-all/broadcast flow.
pseudoramdom (Migrated from github.com) reviewed 2026-09-29 17:22:07 +00:00
pseudoramdom (Migrated from github.com) commented 2026-09-29 17:22:07 +00:00

Yikes! This is bad and a good find. Will fix it.

Yikes! This is bad and a good find. Will fix it.
johnny9 (Migrated from github.com) approved these changes 2026-09-30 18:16:31 +00:00
johnny9 (Migrated from github.com) left a comment

ACK 9bd6b23373

The five issues from my previous review are fixed. The updated send and transaction review flows look good to me.

ACK 9bd6b23373c5e54d1eaf865041d5897f727d16a5 The five issues from my previous review are fixed. The updated send and transaction review flows look good to me.
Sign in to join this conversation.
No description provided.