Prioritizing full name vs username in the UX

I just added a site setting that allows you to prioritize full names as opposed to usernames in the UI.

When usernames are prioritized cause the site setting prioritize_username_in_ux is enabled you will see:

In card:

On user page:

In post stream:

If you change it so prioritize_username_in_ux is disabled you will see:

In card:

On user page:

In post stream:

I feel an @ symbol may be worth adding per:

This can be done safely via CSS, leaving it off for now.

Quotes inside the UX still pull in username eg:

We may look at making this switch to be fullname based when the setting is set.

22 « J'aime »

Bug report: If full name is blankish, username is offset and not fully bold

1 « J'aime »

eh?

corrected per

https://github.com/discourse/discourse/commit/0e2d918b3b3807041126bc66d3e0d205d42c7820

Still abusable, but we might as well correct that server side by doing a trim on save that is unicode aware.

3 « J'aime »

That is a can-of-worms to implement, same class as improving quotes. I may get to it, but not for this round.

3 « J'aime »

I believe the username should be shown with @ by the default. It’s a lot less confusing.

And the username should always be visible. Don’t make me think.

5 « J'aime »

At symbol too noisy repeated all over the page. In the user card should suffice.

1 « J'aime »

This is working in almost all places, but not in email notifications.

So, in e.g. user card it looks fine.

image

But in email notifications full name is not prioritized:

(also I think only one of the two names need be hyperlinked, the first I guess)

2 « J'aime »

@techAPJ can you investigate a fix for emails?

3 « J'aime »

Corrigé via :

Lorsque prioritize_username_in_ux est activé :

Lorsque prioritize_username_in_ux est désactivé :

4 « J'aime »

Simplification supplémentaire du style pour utiliser le même CSS pour username et user-name. (remarquez le poids de police en gras pour username par rapport au poids normal pour user-name.)

4 « J'aime »

J’ai poussé une autre correction pour la page /about :

4 « J'aime »

J’ai repéré un endroit où ce paramètre ne semble pas avoir d’effet : la liste des correspondances de noms d’utilisateur dans les résultats de recherche :

Geminiscp est le nom d’utilisateur et prioritize username in ux = true.

3 « J'aime »

Nous venons d’installer la barre latérale et le chat expérimentaux. Les noms complets peuvent-ils également être prioritaires dans la section Chat personnel si nous désactivons prioritize_username_in_ux ?

1 « J'aime »