Add Copy address Peers Tab Context Menu Action #318

pull jarolrod wants to merge 1 commits into bitcoin-core:master from jarolrod:copy-addr-peer changing 1 files +5 −0
  1. jarolrod commented at 9:03 am on May 5, 2021: member

    Picking up #264

    This adds a Copy Address context menu action to the Peers Tab.

    Based on the first commit of PR #317 so that we can use Qt::DisplayRole in the copyEntryData function.

    Master PR
    Screen Shot 2021-05-05 at 4 51 11 AM Screen Shot 2021-05-05 at 4 49 15 AM
  2. hebasto added the label UX on May 9, 2021
  3. promag commented at 1:38 pm on May 10, 2021: contributor
    Concept ACK. But I’m not fond of the base commit “gui: add Direction column to peers tab” - I understand it simplifies this change.
  4. jarolrod force-pushed on May 26, 2021
  5. jarolrod commented at 4:22 am on May 26, 2021: member

    updated from 6ee6d2f -> d6099b7 (pr318.01, pr318.02, diff)

    • rebase on top of updated last commit of #317
    • add translator comment for Copy address action
  6. DrahtBot added the label Needs rebase on May 26, 2021
  7. jarolrod force-pushed on May 26, 2021
  8. jarolrod commented at 8:44 pm on May 26, 2021: member

    updated from d6099b7 -> 85e0f95 (pr318.02 -> pr318.03)

    Changes:

    • Rebased over master because of conflict with #313 (because this is based on #317)
  9. jarolrod force-pushed on May 26, 2021
  10. jarolrod commented at 10:38 pm on May 26, 2021: member

    updated from 85e0f95 -> 65d1d35 (pr318.03 -> pr318.04, diff)

    • rebased to solve conflict with #311 (because this is based on #317)
  11. DrahtBot removed the label Needs rebase on May 27, 2021
  12. in src/qt/rpcconsole.cpp:651 in 65d1d35178 outdated
    646@@ -647,6 +647,11 @@ void RPCConsole::setClientModel(ClientModel *model, int bestblock_height, int64_
    647 
    648         // create peer table context menu
    649         peersTableContextMenu = new QMenu(this);
    650+        //: Context menu action to copy the address of a peer
    651+        peersTableContextMenu->addAction(tr("Copy address"), [this] {
    


    luke-jr commented at 9:01 pm on June 12, 2021:
    Please add a keyboard shortcut (&C used elsewhere)

    jarolrod commented at 7:52 pm on September 5, 2021:
    Thanks, updated
  13. bitcoin-core deleted a comment on Jun 14, 2021
  14. bitcoin-core deleted a comment on Jun 14, 2021
  15. DrahtBot added the label Needs rebase on Jun 14, 2021
  16. promag commented at 10:41 am on September 5, 2021: contributor
    @jarolrod needs rebase, this is a cool change.
  17. jonatack commented at 11:07 am on September 5, 2021: contributor
    Concept ACK
  18. qt: Add "Copy address" item to the context menu in the Peers table
    Co-authored-by: Jarol Rodriguez <jarolrod@tutanota.com>
    3ec061d9da
  19. jarolrod force-pushed on Sep 5, 2021
  20. jarolrod commented at 7:52 pm on September 5, 2021: member

    updated from 65d1d35 -> 3ec061d (pr318.04 -> pr318.05)

    Changes:

    • rebased over recent changes
    • Dropped commit from #317 as it was merged
    • addressed @luke-jr comments and added a mnemonic shortcut
  21. DrahtBot removed the label Needs rebase on Sep 5, 2021
  22. shaavan approved
  23. shaavan commented at 3:14 pm on September 10, 2021: contributor

    tACK 3ec061d9da0c8742bd9dec94ffeb82a11d000aba Tested on Ubuntu 20.04 (Using Qt version 5.12.8)

    This PR adds the functionality to copy the address of a peer from the peertable itself. Tested this PR on Ubuntu 20.04. And I was able to observe the change working correctly.

    Master PR
    Master Screenshot from 2021-09-10 20-09-40

    I agree with the changes suggested in this PR. After #384 being merged, I think it is the next logical step to also having the functionality of copying the address of peer from peertable using the context menu action.

  24. luke-jr approved
  25. luke-jr commented at 5:11 pm on September 11, 2021: member
    utACK 3ec061d9da0c8742bd9dec94ffeb82a11d000aba
  26. in src/qt/rpcconsole.cpp:683 in 3ec061d9da
    679@@ -680,6 +680,11 @@ void RPCConsole::setClientModel(ClientModel *model, int bestblock_height, int64_
    680 
    681         // create peer table context menu
    682         peersTableContextMenu = new QMenu(this);
    683+        //: Context menu action to copy the address of a peer
    


    hebasto commented at 3:51 pm on September 12, 2021:

    nit:

    0        //: Context menu action to copy the address of a peer.
    
  27. hebasto approved
  28. hebasto commented at 3:58 pm on September 12, 2021: member

    ACK 3ec061d9da0c8742bd9dec94ffeb82a11d000aba, tested on Linux Mint 20.2 (Qt 5.12.8):

    Screenshot from 2021-09-12 18-49-30

  29. hebasto merged this on Sep 12, 2021
  30. hebasto closed this on Sep 12, 2021

  31. jonatack commented at 4:19 pm on September 12, 2021: contributor
    Nice and useful change!
  32. sidhujag referenced this in commit 19600c3a64 on Sep 13, 2021
  33. hebasto referenced this in commit 2161a05855 on Sep 14, 2021
  34. sidhujag referenced this in commit e5c2a8a01a on Sep 15, 2021
  35. bitcoin-core locked this on Sep 15, 2022

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin-core/gui. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-11-23 09:20 UTC

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