pods-framework / pods

The Pods Framework is a Content Development Framework for WordPress - It lets you create and extend content types that can be used for any project. Add fields of various types we've built in, or add your own with custom inputs, you have total control.
https://pods.io/
GNU General Public License v2.0
1.06k stars 265 forks source link

Add copy icon to field slugs to make it easier to copy/paste #7237

Closed millionleaves closed 2 weeks ago

millionleaves commented 6 months ago

Problem to Solve

When I'm looking at a list of custom fields, it would be useful to have a copy icon next to the field slug that appears on hover. At the moment the only way to copy the field slug is to click the field and copy it from the field edit screen.

Proposed Solution

Add a copy icon next to the field slug that appears on hover

Possible Workaround

No response

Examples Elsewhere

This is what ACF looks like when you hover on a field: Screenshot 2023-12-19 at 10 06 12

Screenshots / Screencast

No response

heybran commented 6 months ago

If no one's on this task yet, I can take a look after new year and see if I can tackle this.

heybran commented 2 months ago

@sc0ttkclark @JoryHogeveen

Once you see this, what do you think? Maybe to keep consistent with the UI, I should replace svg with text Copy? And while doing this update, I noticed that the button texts are really small, and I have relatively good eye sight, not sure if will bring trouble to other people though? Should we bump up the font size on the UI?

https://github.com/pods-framework/pods/assets/75633537/3764c71d-593d-4fb2-98ae-f1e8af89ffff

sc0ttkclark commented 2 weeks ago

Fixed via https://github.com/pods-framework/pods/pull/7291