mirror of
https://github.com/bitcoin-core/gui-qml.git
synced 2026-12-02 08:03:39 +00:00
Consider unifying activity rows that belong to the same underlying Bitcoin transaction #853
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#853
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Today, sends and receives are presented as independent activity rows. This is straightforward for transactions containing a single recipient.
But this becomes misleading when one transaction contains multiple recipients.
Consider the scenario here -
Bob makes a single transaction paying Alice 0.2BTC and Charlie 0.1 BTC
The activity list displays 2 separate send entries, even though they both belong to the same transaction and share the same TXID, confirmations, timestamp, fee, inputs, replacement history (RBF).
Navigating to the detail view of one of the entires, the page is titled "Transaction" but the primary content describes only the selected destination output, which seems to be conflating a transaction & an output.
@GBKS
I was thinking more about that since yesterday. Perhaps just dropping the separating lines between items that belong to the same transaction would already group things in an intuitive manner.
Here's a UTXO consolidation transaction - The send and receives are 2 separate entries. These can also be unified -
Good topic. Just generally, this is a simple list overview where we necessarily make simplifications and abstractions.
Presenting the payments to Alice and Bob separately is simple and intuitive. I don't think it is misleading that the underlying transaction structure is not surfaced here.
But there are good reasons to have a more intelligent activity view that combines certain things, and your UTXO consolidation transactions captures that well.
I spent a lot of time on this with Arké, so I'll use that as an example. First, some screens:
And some design decisions:
It is a lot, but it does feel simple and intuitive in practical usage.
For this project, maybe it's worth mapping out what scenarios we have and thinking through the logic before deciding on visual treatments like tweaks to the divider line (which may be too subtle for people to pick up).
I had been thinking about this a bunch, and it feels to me that the activity list makes the unstated assumption that transactions and payments have a 1:1 relationship. However, it is quite common for power users to make multiple payments in a single transaction, so this assumption seems too encompassing to me.
Yes, that's why we called it "Activity" and not "Transactions".
I'd like to mock up the activity list and detail screens for the various scenarios. The first step is to agree on what those scenarios are. What do you think of the following?
Sends
Receives
Other
With a defined list of transactions/activities, and matching mock-ups, it will be easier to make design decisions. How does that sound? If it sounds good, what changes would you make to the scenarios above? If not, how would you like to go about mapping this out?
These look good to me, but I would posit two more scenarios: a fanout transaction which is a self-send in which multiple outputs go to the own wallet (e.g., used in enterprise UTXO management), and a multi-user transaction in which only some of the inputs are contributed by the own wallet (e.g., Payjoin, Coinjoin).
The data output could be combined with most of the above, but usually such transactions also have a change output. Perhaps we should also consider P2A outputs, e.g., occurring when a lightning channel is closed toward a Bitcoin Core wallet.
Here's an update with those two additional transaction types. Some notes:
For sends, the number of counterparties might be the best way to split on-chain transactions into user actions (each counterparty is one action):
Could a Payjoin/Coinjoin be either send or receive based on amounts?
And what would a P2A output look like? I'd need some help with those more complex cases.
I think “Multi-user send” is incomplete. For example by those criteria, we would recognize a Payjoin payment as a Multi-user send. We could potentially classify as a receive or a send depending on whether our wallet balance increases or decreases per the transaction, but if we for example combine a Payjoin receive with a payment to another user, that could still be somewhat incorrect (we got paid and sent, but our balance went down and it would get classified as a sent). So, maybe the simplest thing would be to classify transactions with inputs from multiple users as “multi-user transaction” without trying to guess whether it is a send or a receive.
I like that idea. Just thinking about how to express this in the activity list. Some ideas: