Use user names in participants list

Hello!

We noticed the list of participants to an event is based on the username. We think it would be nice if the user’s name could be used instead (and username used as a fallback).

Are you interested with this feature ? If so, I’d modify the User component (plugins/discourse-calendar/assets/javascripts/discourse/components/modal/post-event-invitees/user.gjs.

If you think this is a bad idea, can we propose a site setting to toggle this feature?

2 likes

That’s a nice idea. Maybe whether username or full name is displayed could be tied to the Enable names site setting? What say, @j.jaffeux?

3 likes

I’m surprised it isn’t already tbh. Imo that setting should cover most, if not all, appearances of a username.

2 likes

There’s a couple other gaps in the (full) name priority, in notifications and the hover title in the Who’s Online plugin. Should these get reported?

2 likes

Let’s see what this topic leads to once our dev chimes in; it might all be covered in one go. Maybe also @lindsey for opinion?

3 likes

IMHO we should tie all username / name display to both enable names and prioritize username in ux site settings.

4 likes

There are other areas where we could be more consistent with the enable names and prioritize username in ux settings but I don’t think we need to wait to have a complete list before we start fixing them.

@j.jaffeux would you consider this pr-welcome to ensure that the Events participant list shows the full name when enable names is “true” and prioritize username in ux is “false”? That would make it more consistent with how we handle names and usernames on user cards, profiles, etc.

5 likes

I’ll work on this once it’s accepted, and on the other places after that, if I can have a list :wink:

4 likes

I see a :+1: from Joffrey in reply to your question, @lindsey, so I’ve added pr-welcome here.

3 likes

A post was split to a new topic: Guidance on implementing display name precedence

Hello!

Follow up: I opened a pull request :slight_smile:

4 likes