mirror of
https://github.com/bitcoin-core/gui-qml.git
synced 2026-12-02 07:54:42 +00:00
Redesign send and transaction review flows, introduce wallet coins #935
No reviewers
Labels
No labels
Android
Bug
Build system
Design suggestion
Doc
Needs design review
Needs rebase
Stage
UX
Up for grabs
Upstream
Wallet
duplicate
enhancement
good first issue
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
bitcoin-core/gui-qml!935
Loading…
Reference in a new issue
No description provided.
Delete branch "send-redesign"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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
sendallsemantics.sendall, we bring support to send all coins or send maximum with selected coins.Fixes #786
Fixes #824
Fixes #861
Fixes #859
Fixes #843
Partially fixes #842
Fixes #837
Screenshots
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 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.
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.
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.
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.
Yikes! This is bad and a good find. Will fix it.
ACK
9bd6b23373The five issues from my previous review are fixed. The updated send and transaction review flows look good to me.