penumbra-zone / web

Apache License 2.0
10 stars 8 forks source link

make transaction approval dialogue actually understandable #1394

Open TalDerei opened 3 days ago

TalDerei commented 3 days ago

One longer-term action item we discussed is improving the readability of the extension's approval dialogue. Users perform actions (user-defined state transitions), and the transaction internally balances by spending UTXO notes and receiving change notes. In the current approval dialogue, we display the raw actions but fail to provide sufficient context—specifically, the concept of a UTXO note and the balancing logic necessary to understand these actions. We need to transform the approval dialogue to be more human-readable, minimally displaying the input and output amounts. This may require an additional layer in our translator logic to perform this transformation.

grod220 commented 3 days ago

I really like Rabby wallet's pre-sign simulation:

Screenshot 2024-07-02 at 9 37 54 AM

It makes it super clear what's going out and what's coming in. I feel like we could do something similar if we aggregate in/out note amounts.