[Qt] extend rpc console peers tab#6209
[Qt] extend rpc console peers tab#6209laanwj merged 3 commits intobitcoin:masterfrom Diapolo:Qt_peers
Conversation
Diapolo
commented
Jun 1, 2015
- add node id, ping wait, whitelisted and common height
- rephrase some labels to make them easier to understand for users

|
Post-0.11 utACK |
|
utACK |
src/qt/forms/rpcconsole.ui
Outdated
There was a problem hiding this comment.
Let's use yes/no here instead of a checkbox (more consistent with rest of the table)
|
I don't think it was introduced in this pull, but the |
|
I would prefer the checkbox – but only – if you could also set the state. Together with banning options (#6158) it would be a adequate look and feel. On the other hand, checkboxes sometimes don't really imply a change before the users presses "save" or something similar. |
|
@laanwj I changed to Yes/No and also we don't display |
|
@jonasschnelli If I find the time I'm going to further test your ban/unban pull and would like to add a context menu for it :). |
|
Style wise, the peers view should get an update:
@Diapolo: i can try to create a commit on top of your PR to improve the general look and feel of the peers view if you don't care about this. |
|
@Diapolo: for banning/unbanning i think it would be more visible and more clear if the user could ban/unban over checkboxes or buttons at the peer details section (right part of the view) instead of a context menu. Context menus are not always comprehensible at first sight. |
|
@jonasschnelli If my pull gets ACKs feel free to base a further UI polish on top, that's fine with me :). As for banning/unbanning, I think we should allow both options (click and via context menu). |
|
Why is this failing the No Wallet build with: The build has been terminated" |
|
@jonasschnelli Mind taking a look at commit 3, could be interresting as this just "kicks" a node via context menu :). |
|
Concept ACK. I had to read the code to figure out what "Ping Wait" was, so maybe a tooltip explaining that it is the duration of a currently outstanding ping? |
|
@luke-jr I'm fine with adding a tooltip for Ping Wait and yeah I also had to read the code to understand what it does ^^. |
|
I agree that a checkbox makes sense if the user would be able to change the value. However I don't see the point to be able to change whitelisting status on a connected node. I wouldn't want to encourage people to manually whitelist peers until they disconnect/reconnect. It's micro-management. (I'm not against whitelist editing in the UI in itself, but not in this way, it should be more similar to the command line options) |
src/qt/rpcconsole.cpp
Outdated
There was a problem hiding this comment.
For no reason I guess ^^... will update.
|
Scope drift alert: let's focus here on improving the peers table, features such as kicking/banning from the peers list should be a separate feature pull. |
|
Looks good! Nit: One thing which might be worth a short discussion: I think a easy addition would be to deselect a selected peer if the user switches away from peers to console or net graph, etc. (or if he closes the console/debug window). |
I think a easy addition would be to deselect a selected peer if the user switches away from peers to console or net graph, etc. (or if he closes the console/debug window). This would re-allow the user to change the height of the window below 600px. @jonasschnelli Im not sure, how would that change redude the screens size? |
|
@Diapolo: it wouldn't resize the screen automatically, but, it would allow to reduce the height/size below 600px. If you don't deselect the row, the 17row key/value will constraint the height above 600px. |
|
@jonasschnelli See commit 3, this adds your suggestion. Switching away from peers tab clears the selection. |
- add node id, ping wait, whitelisted and common height - rephrase some labels to make them easier to understand for users
|
@laanwj @jonasschnelli Maybe some final ACKs :)? |
|
ACK. Works for me. |
3537c83 Do not deselect peer when switching away from tab (Hennadii Stepanov) b0037c5 Improve Peers tab layout (Hennadii Stepanov) Pull request description: This is an alternative to #14798. The "Peers" tab of the "Debug" window improved to address comments #6209 (comment) (by @jonasschnelli) and #14798 (comment) (by @promag). This allows to keep the peer selection while navigating to other places and effectively reverts e059726. Screenshots with this PR:    Tree-SHA512: 3d086007f6d72930bc2fc3c395175adda0f1a7722de3842bc246ee4f3bfc5ebda4b9a626fb68a7ee8663a88d0842deb37c0c460ad84cc58e22f138acf8bc71ea
Summary: 3537c8345c788a527bb4e1d00683ca7f8ee5fb1a Do not deselect peer when switching away from tab (Hennadii Stepanov) b0037c51909dc55e279baa81f063c169c9735105 Improve Peers tab layout (Hennadii Stepanov) Pull request description: This is an alternative to #14798. The "Peers" tab of the "Debug" window improved to address comments bitcoin/bitcoin#6209 (comment) (by @jonasschnelli) and bitcoin/bitcoin#14798 (comment) (by @promag). This allows to keep the peer selection while navigating to other places and effectively reverts e059726. Screenshots with this PR:    --- Backport of Core [[bitcoin/bitcoin#15136 | PR15136]] Test Plan: ninja all ./qt/bitcoin-qt -testnet check out the Peers tab for correctness Reviewers: #bitcoin_abc, PiRK Reviewed By: #bitcoin_abc, PiRK Differential Revision: https://reviews.bitcoinabc.org/D8547


