Confused about iconology on Set Actor

I guess, I am the odd one here, since I searched the forum and could not find anyone raising something similar in the past, but I will report this nonetheless.

This is in regards when actor?: true in the user resource. I use this to test if my policies work correctly, based on different users, having different roles.

I find it very confusing the fact that Authorization is ON, when the lock icon is UNLOCKED!!! And when the lock icon is LOCKED, authorization is OFF. I just don’t get! How are you supposed to read that icon?

For example, I have installed the Tunez app (to make sure policies and actions are setup correctly) along with AshAdmin (while following along the Ash Framework book) and I CAN create Artists, while logged in as a simple user (role = :user) when the icon looks like:

:locked:(locked)

(sorry, new user, cannot upload screeenshots)

and I CANNOT create an artist when the icon looks like:

:unlocked:(unlocked)

The play/pause icon seems to make no difference either.

Is there some definitive documentation how these work, or what they mean? Having popup tooltips while hovering might be illuminating too!

Thanks!

Yeah honestly those are just not great and should be improved. It’s like the play/pause button. It shows what it will do if you click it, not what it’s doing now.

Tooltips and/or just using buttons with words would be great. As for what play/pause does in that scenario, it should be toggling the actor. When paused there is no actor, and playing there is an actor.

Please open an issue or a PR to adjust those buttons to stop using icons or to have tooltips :man_bowing:

Opened Refactor/Improve the functionality of the Icons on the top right (Set Actor/tenant?) · Issue #349 · ash-project/ash_admin · GitHub.

Thanks for the swift reply!

1 Like

Fixed by @andyleclair here: change svg icons to words by andyleclair · Pull Request #351 · ash-project/ash_admin · GitHub