Improve layout of transaction confirmation dialog #11606

issue flack opened this issue on November 4, 2017
  1. flack commented at 1:09 PM on November 4, 2017: contributor

    The dialog currently looks like this (taken from #11556):

    <img width="439" alt="32405190-8027db44-c160-11e7-84af-a137da9ea47d" src="https://user-images.githubusercontent.com/425166/32405638-95c0ff90-c169-11e7-8445-ec8676613c28.png">

    The layout is quite messy, which makes it ahrd to see what's going on (and thus easy to overlook some problem). IMHO it would be a lot easier to comprehend if the information was structured like this:

    dialog

  2. fanquake added the label GUI on Nov 4, 2017
  3. MarcoFalke commented at 4:10 PM on November 4, 2017: member

    Ack

    On Nov 4, 2017 06:10, "flack" notifications@github.com wrote:

    The dialog currently looks like this (taken from #11556 https://github.com/bitcoin/bitcoin/pull/11556):

    [image: 32405190-8027db44-c160-11e7-84af-a137da9ea47d] https://user-images.githubusercontent.com/425166/32405638-95c0ff90-c169-11e7-8445-ec8676613c28.png

    The layout is quite messy, which makes it ahrd to see what's going on (and thus easy to overlook some problem). IMHO it would be a lot easier to comprehend if the information was structured like this:

    [image: dialog] https://user-images.githubusercontent.com/425166/32405650-cb5c592e-c169-11e7-8c25-d3d22601fa6a.png

    — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/bitcoin/bitcoin/issues/11606, or mute the thread https://github.com/notifications/unsubscribe-auth/AGGmvxq2KM5nMWru42HcJ9B5mm8Ftp0cks5szGI4gaJpZM4QSAJC .

  4. shashisamala commented at 7:47 PM on November 4, 2017: none

    lgtm

  5. Sjors commented at 5:59 AM on November 5, 2017: member

    Good improvement.

    I woud leave out "added" and capitalize the first word.

    To make it more clear that users pay per (v)byte, you could also change it to "Transaction fee for 0.168 kB".

    Perhaps a separate change, but you could show the fee as a percentage, in small font under the fee.

  6. flack commented at 10:52 AM on November 6, 2017: contributor

    Yes, I agree that "added" is superfluous and can be removed (also i made a little error when I copied your RBF text, so it's not intended to be different from what you proposed in #11556). I'm also wondering if the "= 1.08400 mBTC.." line shouldn't rather go in the right column (underneath the total sum), but those are details that can be worked out once someone actually codes this :-)

  7. laanwj added the label help wanted on Nov 8, 2017
  8. gmverdon commented at 3:54 PM on November 10, 2017: none

    transaction confirm dialog

    Based on the design of @flack, but with a few adjustments.

  9. MarcoFalke commented at 3:59 PM on November 10, 2017: member

    Feel free to create a pull request for this. I think we can fine tune the nits later, but the general design seems a good way to go.

  10. flack commented at 4:00 PM on November 10, 2017: contributor

    @gmverdon what would it look like if you send to more than one address?

  11. gmverdon commented at 5:51 PM on November 10, 2017: none

    @flack that is a good one, haven't thought of that possibility yet. The solution you provided is indeed more elegant when sending to more than one address.

    image

  12. jnewbery commented at 8:31 PM on March 27, 2018: member

    @flack @gmverdon - do either of you plan to open a PR for this?

    If not, I suggest we close this as stale.

  13. flack commented at 8:37 PM on March 27, 2018: contributor

    @jnewbery nah, I'm good. I was actually thinking about suggesting giving stuff like this a "good first issue" tag, because it's pretty self-contained and you don't need to know a lot about the code to work on it, but do whatever fits your workflow

  14. jnewbery commented at 8:47 PM on March 27, 2018: member

    Thanks @flack . Generally I think it's better to close out WIBNI issues rather than let them sit for months or years.

  15. ryanofsky commented at 8:59 PM on March 27, 2018: member

    Could close with up for grabs

  16. MarcoFalke added the label Up for grabs on Mar 27, 2018
  17. sugandhnow commented at 6:41 AM on March 30, 2018: none

    Can I pick this up?

  18. promag commented at 8:29 AM on March 30, 2018: member
  19. MarcoFalke referenced this in commit 81c533c6f4 on May 14, 2018
  20. marcoagner commented at 3:38 PM on May 15, 2018: contributor

    Maybe this could be considered solved by https://github.com/bitcoin/bitcoin/commit/81c533c6f481ebf6a4f6349c05731306e3a2402f and closed? At least, until there are new specific demands/improvements to be made. It is somewhat a duplicate of the already closed #10613. :)

  21. MarcoFalke closed this on May 15, 2018

  22. flack commented at 4:00 PM on May 15, 2018: contributor

    @marcoagner true, it actually is a duplicate of #10613, didn't see this one before :-)

    Your version in #13158 is definitely a readability improvement, although I have to say that for me, the point of both tickets is more to get the numbers all aligned into one column, so that it's easier to check the math by adding them:

    Description Amount
    some address 14.200101
    Transaction fee (0.123 kB) 0.200010
    Total Amount 14.400111

    is way easier to manually check than

    14.200101 to some address


    Transaction fee (0.123 kB): 0.200010


    Total Amount: 14.400111

  23. MarcoFalke commented at 4:06 PM on May 15, 2018: member

    I attempted to achieve that with a span style=float:left for the left column and a span style=float:right for the right column, but it appeared as if the style was ignored. Feel free to fix this up @flack or @marcoagner, but I think it is not worth keeping this issue open.

  24. flack commented at 4:16 PM on May 15, 2018: contributor

    @MarcoFalke looks like float is only supported on tables and images according to http://doc.qt.io/archives/qt-4.8/richtext-html-subset.html#css-properties . If the individual lines were wrapped in p or div, align=right should work, although the cleanest version would probably be to convert the dialog to use <table>. At some point, I might try to implement this, but don't hold your breath :-) (also, I'm very happy if someone beats me to it!)

  25. marcoagner commented at 4:21 PM on May 15, 2018: contributor

    In my opinion, the alignment of numbers to the right side-by-side with addresses gets tricky if the addresses are not truncated and I don't think the addresses should be truncated here. But, in case anybody decides to work on this in the future, what @flack commented holds (same behavior qt5) and <table> will probably be the way to go.

  26. flack commented at 4:27 PM on May 15, 2018: contributor

    If truncation is the issue (could be mitigated with a tooltip showing the full address if that's deemed acceptable), then an alternative might be something like this:

    To: somereallyreallylongaddresswewanttoseecompletelywithoutanytruncation
                                                                14.20330393 BTC
    Transaction fees (0.122 kB)
                                                                 0.20000000 BTC
    Total Amount:
                                                                14.40330393 BTC
    

    The advantage is that this should be doable without tables, i.e. simply with <p> tags, the drawback is that it uses more vertical space

  27. fanquake removed the label Up for grabs on Mar 21, 2019
  28. jasonbcox referenced this in commit 6b6d0ee541 on Oct 11, 2019
  29. UdjinM6 referenced this in commit ee8beba049 on Jun 18, 2021
  30. TheArbitrator referenced this in commit 52ad4ff0ab on Jun 21, 2021
  31. UdjinM6 referenced this in commit 9316725eb2 on Jun 24, 2021
  32. UdjinM6 referenced this in commit d8051ec52f on Jun 29, 2021
  33. UdjinM6 referenced this in commit 47b2895954 on Jun 29, 2021
  34. UdjinM6 referenced this in commit 9621d4181b on Jul 2, 2021
  35. UdjinM6 referenced this in commit 984f6bbd18 on Jul 4, 2021
  36. UdjinM6 referenced this in commit a650372830 on Jul 6, 2021
  37. MarcoFalke locked this on Dec 16, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-14 21:15 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me