netbox-community / netbox

The premier source of truth powering network automation. Open source under Apache 2. Try NetBox Cloud free: https://netboxlabs.com/free-netbox-cloud/
http://netboxlabs.com/oss/netbox/
Apache License 2.0
16.16k stars 2.59k forks source link

While hovering with the mouse data, netbox should offer "Copy to clipboard" box #17229

Open Xemanth opened 2 months ago

Xemanth commented 2 months ago

NetBox version

v4.0.8

Feature type

New functionality

Proposed functionality

For example, in sites, pointing the mouse cursor to a record, like "physical address" should popup "copy to clipboard" box.

Similar as shown in the video here: https://gitlab.com/gitlab-org/gitlab-foss/-/issues/32490

Use case

Marking the text is time-consuming, and it's easy to miss something from the record data.

Database changes

I don't think this requires database changes.

External dependencies

No response

goteamkor commented 2 months ago

this would actually be a pretty slick feature.

Domoninic commented 2 months ago

In the example given there is no 'copy to clipboard" button so where would this pop-up appear? Pop-ups have a bad habit of appearing on top of the fields obscuring the data making it difficult move the mouse over any fields.

goteamkor commented 2 months ago

In the example given there is no 'copy to clipboard" button so where would this pop-up appear? Pop-ups have a bad habit of appearing on top of the fields obscuring the data making it difficult move the mouse over any fields.

did you follow the link that shows the video?

https://github.com/user-attachments/assets/81291a15-880d-4123-9172-4485c97017d9

Domoninic commented 2 months ago

In the example given there is no 'copy to clipboard" button so where would this pop-up appear? Pop-ups have a bad habit of appearing on top of the fields obscuring the data making it difficult move the mouse over any fields.

did you follow the link that shows the video? hover-copy.mp4

Yes I did, I was referring to 'For example, in sites, pointing the mouse cursor to a record, like "physical address" should popup "copy to clipboard" box.' This contrasts with the linked video having a 'copy to clipboard' button on which to anchor the pop-up.

ITJamie commented 1 month ago

While a nice addition i would hope that this does not become a replacement for the copy to clipboard buttons in the longterm. Waiting for a hover event to trigger before being able to copy data can be fustrating

goteamkor commented 1 month ago

In the above video the button appears near instantaneously. If that exact copy to clipboard method were implemented that wouldn't be quick enough?

Xemanth commented 1 month ago

In the above video the button appears near instantaneously. If that exact copy to clipboard method were implemented that wouldn't be quick enough?

I would be happy with that speed! 👌