Skip to content

usability: peers view filtering to accept Peer ID copied by the same interface #2468

@imrehg

Description

@imrehg

Is your feature request related to a problem? Please describe.

In the webUI's Peers view, I do want to filter to certain peers by their ID, but the value copied by the interface cannot directly be used to filter.

For example:

  • I select a peer I want to filter for, click on the value in the Peer ID column of their row, that will copy their Peer ID in the format of /p2p/12D3.... (and the rest of the ID.
  • If I paste this value into the "Filter peers" field, it shows no match
  • If I remove the /p2p/ part from the front, the match is made and that peer is displayed.

This goes in contrast with almost the other fields, where clicking on them and then pasting the value from the clipboard into the filter field will correctly filter:

  • location, agent version, open streams can be pasted in;
  • the connection field has its own issue of what's displayed is not what's copied, so pasting it in won't actually filter.

Describe the solution you'd like

Filters work with the /p2p/... format of the PeerID as well.

Describe alternatives you've considered

Manual editing is always an option, however it's cumbersome and should be unnecessary

Additional context

Screenshot of a peer filtered, without /p2p/ part:

Image

and with the "copied" ID, that includes /p2p/...

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    need/triageNeeds initial labeling and prioritization

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions