gitea icon indicating copy to clipboard operation
gitea copied to clipboard

Change admin indicator to icon-only

Open silverwind opened this issue 6 months ago • 10 comments

Change admin indicator in navbar to icon only, which looks better imho, and the icon is the same as "Site Administration" in this menu, which is exactly what the admin role gives access to. User can hover over the icon to get a native title tooltip which localized text.

Screenshot 2025-06-02 at 19 02 17

Works with any avatar and is now aligned to the notifications and stopwatch dots:

Screenshot 2025-06-02 at 19 07 37

(Before there was slight misalignment):

Screenshot 2025-06-02 at 19 01 29

Active state:

Screenshot 2025-06-02 at 19 08 56

silverwind avatar Jun 02 '25 17:06 silverwind

Besides the "text" problem, the "icon" is more not-suitable .... why there is a "server" icon next to the user's avatar, it seems more strange.

wxiaoguang avatar Jun 03 '25 07:06 wxiaoguang

I think the purpose becomes clear when opening the dropdown.

image

silverwind avatar Jun 03 '25 08:06 silverwind

I think the purpose becomes clear when opening the dropdown.

But it still confuses users at first glance.

And the icon is also inconsistent with other navbar items like "notification", "stopwatch": they all use the blue balls.

wxiaoguang avatar Jun 03 '25 08:06 wxiaoguang

I read such blue dots as "activity indicator", but admin info is not such a state, it's a user attribute.

silverwind avatar Jun 03 '25 09:06 silverwind

I'd like put it at right botom side image

a1012112796 avatar Jun 04 '25 01:06 a1012112796

Besides the "text" problem, the "icon" is more not-suitable .... why there is a "server" icon next to the user's avatar, it seems more strange.

+1

hiifong avatar Jun 04 '25 03:06 hiifong

Could move it, yeah. It doesn't have to be same position as the other blue activity indcators.

silverwind avatar Jun 04 '25 05:06 silverwind

Any other suggestions? Things about the current icon that I don't like:

  • That it's blue. Blue is activity indicator, but this is not one
  • That it's so big. I would prefer something more subtle

silverwind avatar Jun 04 '25 13:06 silverwind

Another possible icon would be the wrench. I find that more suitable than the server icon:

image

silverwind avatar Jun 04 '25 13:06 silverwind

There are two icons around the avatar, which looks unfriendly.

hiifong avatar Jun 10 '25 13:06 hiifong

This might not necessary to be backport to v1.24

lunny avatar Jun 17 '25 02:06 lunny

One more thing, I think we need a better design to cover a new case: I'd like to implement "impersonation" (allow admin to "sudo" as any user). We also need some indicator in the navbar.

wxiaoguang avatar Jun 17 '25 03:06 wxiaoguang

I guess "wrench" to indicate admin and a hat to indicate sudo should work. Would make them bottom-right aligned to the user icon. Also, change user settings icon in menu to something else then wrench.

silverwind avatar Jun 17 '25 11:06 silverwind

Maybe we could simply add a new icon in the navbar?

For example:

[Bell] [Admin] [AddRepo] [UserAvatar]

The [Admin] icon could be a link to the admin panel. And we can easily change it to indicate "impersonation". Then we do not need any trick on the "UserAvatar"

wxiaoguang avatar Jun 17 '25 11:06 wxiaoguang

Hmm yes that would also work for me.

silverwind avatar Jun 17 '25 14:06 silverwind

Hmm yes that would also work for me.

-> Refactor headnav bar icons #34922

Now we have more flexible layout and can add more icons

wxiaoguang avatar Jul 01 '25 03:07 wxiaoguang

Obsoleted by https://github.com/go-gitea/gitea/pull/34922.

silverwind avatar Jul 02 '25 18:07 silverwind