Skip to content
This repository has been archived by the owner on Sep 27, 2022. It is now read-only.

Enhancement - Add Raw Capability Name When Human-Readable Setting Enabled #148

Open
ryanjbonnell opened this issue Jul 29, 2017 · 4 comments

Comments

@ryanjbonnell
Copy link

ryanjbonnell commented Jul 29, 2017

With the new setting in Members 2.x to "Show human-readable capabilities when possible", there's no longer a way to visibly see the raw capability name (e.g. edit_users) without disabling the feature or inspecting the HTML.

While I'm a proponent of this new feature, there are times when seeing the raw capability is desirable without disabling the feature altogether.

Could we get something like a tooltip or the raw capability name shown in parenthesis added to the UI somewhere?

screen shot 2017-07-28 at 5 03 13 pm

screen shot 2017-07-28 at 5 11 42 pm

This strikes a good balance and would give developer and power users the ability to see both the human-readable name and the raw capability name at the same time, without having to toggle the feature on/off.

Thoughts?

@ryanjbonnell ryanjbonnell changed the title Enhancement - Add Capability Name When Human-Readable Setting Enabled Enhancement - Add Raw Capability Name When Human-Readable Setting Enabled Jul 29, 2017
@renatonascalves
Copy link

Seems reasonable!

@justintadlock
Copy link
Owner

I'm not sure whether a tooltip would be good for screen readers here.

I'm kind of digging the second screenshot with the cap name to the side though.

@justintadlock
Copy link
Owner

I've given this some more thought. I think always showing the plain cap would be preferable. On smaller mobile devices, we may hide it to save space.

@justintadlock justintadlock added this to the 3.0.0 milestone Aug 25, 2018
@justintadlock
Copy link
Owner

I'm attaching a screenshot of an early draft of what I'm doing for 3.0. Any feedback on it is appreciated. This incorporates both the human-readable/title and the code version of the capability. Got some good feedback on it this morning and thought it'd be good to go ahead and share.

members-008

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants