Dedicated icons for the superadmin, Guest and System users

Hi devs,

The virtual users superadmin and Guest have no user page and thus no avatar. Wherever a user’s avatar is displayed (page history, comments, notifications, Live Data user columns, user display macros, …) they get the same image as a regular user who simply didn’t set an avatar. One can’t tell at a glance that a change or a comment wasn’t made by a regular person.

Proposal (XWIKI-25310):

  • Give superadmin and Guest each a dedicated icon, different from each other and from the “no avatar” image.
  • If the System user proposal is accepted, the System user (the author displayed for automatic changes) gets its own dedicated icon too, so that the three are told apart.

This is about the need only: I’m not proposing any specific visual. @tkrieck, would you be OK to look into the design? Some questions that I think need answering:

  • Should these be icons from the icon themes (so that they follow the configured icon theme) or images like the current “no avatar” one?
  • How do they look next to real avatars, at the various sizes we use?
  • Anything else needed so that they’re recognized as “not a person” (e.g. a tooltip)?

WDYT?

Thanks

PS: This post was co-written with Claude Code.

+1

Hi @tkrieck,

To get things started, here’s a quick first idea. Feel free to throw it away or reshape it completely, you know this better than I do.

  • superadmin: white shield with a keyhole on dark grey. It reads as “the instance’s master key”, not a person.
  • Guest: outlined silhouette on light grey. Still a person, just an unknown one. The light background is what tells it apart from “no avatar” at 18px. My first try (white on the same grey as “no avatar”) looked just like it at small sizes.
  • Guest (alt): silhouette with a “?”. The meaning is clearer from 50px up, but the “?” disappears at 18px.
  • System: gear on grey, i.e. automatic processing.

I kept the style of the current noavatar.png (flat 160×160 square, one colour per shape, all greys), so they look like part of the same set.

My take on the questions from my first post:

  • Icon theme or image? I’d go with images (SVG + PNG next to noavatar.png). Avatars are passed around as image URLs (REST, the useravatar macro, getUserAvatarURL), and notification emails attach a PNG. An icon-theme glyph has no URL and can’t be emailed.
  • Recognised as “not a person”? I’d add alt text and a tooltip such as “Guest (not logged in)” or “System (automatic change)”, since screen readers get nothing from the picture.

WDYT? Shapes, colours, Guest vs Guest alt?

Thanks

PS: This post was co-written with Claude Code.

I like the options with a few adjustments.

  1. I’d keep using the main image (to make it clear that it’s a user). But add a decorator on top of it.
  2. We could use darker grays in order of “importance” of the user. System for the darker one and lighter for the admin.
  3. The lock in the shield looks more like “security” or “rights”.
  4. I’d drop the cog icon since we use it for configuration UIs
  5. The guest option is nice but I’d go even further and dash it on larger versions (keep as a line on the smaller ones though)
  6. Speaking of smaller, I’d drop the background on the smaller icons to improve legibility

Quick mockup demonstrating my points:

We could use the Icon Theme to draw these programatically since we get dark mode support for free in the future. But this keeps us tied to icons present in FontAwesome free version and they are a bit limited.

Another option is to use SVGs embbeded directly on the page. The advantage here is that we are free to use any icons we want and not only the ones present in the Icon Theme and we get theme support for each color.

Edit: I forgot to add, tooltips are important for each.

Thanks!

+1 for the proposal. Really convenient for devs :slight_smile:

I definitely would love to have icon theme compliant icons here (we can even use icon stacking to build them with FA), but I fear it would create bugs/visual inconsistencies in all the places where this icon could be used. Those have been standardized a bit in the latest cycles, but checking that all of them look great and responsive might still take a while. The easy solution would be to keep using pictures.

It depends a lot on the use case (some orgs might barely do user avatar, only rocking the default picture, some others use vectorial based avatars and some other actual pictures), not sure we can assert anything on this point and what it’d bring. The only comparison that’s worth is for the default user/group avatar, but at this point we might as well include those two in the avatar udpate.

Highlight: We shouldn’t forget the group default avatar when updating those.

I’d say we need to update this one even without the extra options :sweat_smile:

Thanks @tkrieck, your mockup reads much better than my first try: the base avatar plus a decorator keeps it obvious that these are users, and the gray scale by “importance” is a nice touch. Agreed on dropping the cog and the keyhole shield, the dashed outline for Guest, no background on the small sizes, and tooltips for all three.

On how to render them, there’s one choice left between your two options and @CharpentierLucas’s point:

  • Icon Theme (FA stacking): dark mode for free, but limited to the FontAwesome free icons, and Lucas fears visual inconsistencies across all the places where avatars are displayed.
  • Inline SVGs: any icon and per-theme colors, but a new way of displaying avatars.
  • Plain images, as today: the safest option, with no theme support.

Which one would you go for? And would you be OK to produce the final assets (also including the default group avatar, which, as you both said, needs updating anyway)? I’ll then handle the code side in XWIKI-25310.

Thanks
PS: This post was co-written with Claude Code.

Yes, I can export the assets easily.

Here’s two proposals for the group (CC generated):
I’d go for version B since it retain better legibilty on smaller sizes

Version A is closer to what we have right now though.

Regarding these, I’d go for inline SVGs for the theme support and scalable images. But I think we would loose having urls for the images and the ability to attach them to emails. Plain images would be my second option to keep all features that we have right now.

Thanks

Thanks. I feel that A is more legible on smaller sizes since B looks very much like the single user icon on small sizes.

Note: I was only planning to do the user avatar changes :slight_smile: This thread wasn’t about groups. I think we’re missing a proper proposal for the groups side. For ex, what is this new image for:

  • all groups
  • only the `XWikiAllGroup``
  • any group that doesn’t have a dedicated image
  • We would also probably want to have separate images for the default XWikiAdmin group vs XWikiAllGroup.

In any case, to progress, I’d need:

  • More agreement from committers on the propose avatar images
  • The assets

Thx

Agreed, I’ve created Loading... to track it.

As soon as you get more feedback I can export the assets, just let me know.

+1 for the idea + Thiago’s proposal.

My gut instinct liked the full sized version B more. However thinking about it, it looked less and less promising:

  • version A shows people together in a group, version B shows User objects together in a group. Version A is probably easier to understand for non-tech people.
  • The stack from version B conveys depth and ordering. We don’t use depth anywhere in our current UI and abstractions, and groups are not ordered (AFAIR??) so it’s not very representative.
  • We don’t use the 16px icon much in XS (not sure if group mentions get icons…), so the difference in readability doesn’t matter that much for it IMO. But even the 24px icon has a 2 item stack that’s especially difficult to understand for people who are not used to the “stack” icons. The 24px icon is destined to be used somewhat commonly in the UI so it’d still be a problem.

So in the end small +1 for A from me

+1 for the idea and for Thiago’s design.

Also:

  • Notification emails embed each author’s avatar as a MIME part, resized server-side to 32px. So whatever we choose need to be resizable, and afaik most email clients are blocking SVG in img elements.
  • If dark mode support matters, we need to identify a mechanism to switch the icon based on the dark/light mode (as presented during CryptPad icon revamp this year)