Prioritizing full name vs username in the UX

AI 生成的摘要

The discussion centers on a new site setting, prioritize_username_in_ux, which allows administrators to choose whether usernames or full names are displayed prominently in the UI. sam introduced the feature, showing visual comparisons of how names appear in cards, user pages, and post streams when the setting is toggled. A suggestion to prefix usernames with ‘@’ for clarity was raised gerhard, though codinghorror cautioned against overuse. A bug where blank full names caused misaligned usernames was reported riking and later fixed sam. jerry0 noted the setting didn’t apply to email notifications, which techAPJ resolved, also unifying CSS styling for consistency techAPJ and extending fixes to the /about page techAPJ. mentalstring identified a gap in search result displays, and debryc requested support for the experimental sidebar/chat. The team acknowledges broader improvements (e.g., quote handling) are deferred for future work sam.

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 个赞

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

1 个赞

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 个赞

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

3 个赞

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 个赞

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

1 个赞

这在几乎所有地方都能正常工作,但在邮件通知中不行。

因此,例如在用户卡片中,显示效果正常。

但在邮件通知中,全名未被优先显示:

(另外,我认为两个名字中只需对其中一个添加超链接,我猜是第一个)

2 个赞

@techAPJ 能否调查一下邮件问题的修复方案?

3 个赞

已修复:

当启用 prioritize_username_in_ux 时:

当禁用 prioritize_username_in_ux 时:

4 个赞

进一步简化了样式,使用户名和 user-name 使用相同的 CSS。(注意用户名使用粗体字重,而 user-name 使用正常字重。)

4 个赞

已为 /about 页面推送了另一个修复:

https://github.com/discourse/discourse/commit/e58f0adfcc963305fb16d6c796f51ccfcbe58e00

4 个赞

我发现一个该设置似乎未生效的地方:搜索结果中的用户名匹配列表:

Geminiscp 是用户名,且 prioritize username in ux = true。

3 个赞

我们刚刚安装了实验性的侧边栏和聊天。如果我们禁用 prioritize_username_in_ux,是否也可以在个人聊天部分优先显示全名?

1 个赞