unkeyed / unkey

Open source API management platform
https://go.unkey.com
Other
3.97k stars 464 forks source link

Toggle for permissions #1960

Closed Flo4604 closed 1 month ago

Flo4604 commented 2 months ago

Preliminary Checks

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

When creating a rootkey Its annoying to have to press all permissions individually CleanShot 2024-07-22 at 20 21 47@2x

Describe the solution

What I would love to see is that if I e.g do a double press on this all permissions will be selected.

Describe alternatives you have considered (if any)

Another idea would be to add a search bar in the top right where I can filter permissions by name, in this I would write get and then have a option to select all of them and then just unselect everything I don't want to

Additional context

CleanShot 2024-07-22 at 20 25 23@2x

I would love to see something similiar in the Permissions for role tab, but unsure of how this would look

linear[bot] commented 2 months ago

ENG-1274 Toggle for permissions

chronark commented 2 months ago

Good suggestions!

I don't think double clicking is the way to do it, but a "select all" / "unselect all" toggle would be very useful

chronark commented 2 months ago

cc @guilhermerodz wdyt?

harshsbhat commented 1 month ago

@chronark

image

What do you think of this as a solution? I have pushed these changes in the same PR. So that you can check them visually.