sam
(Sam Saffron)
1
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 个赞
riking
(Kane York)
2
Bug report: If full name is blankish, username is offset and not fully bold

1 个赞
sam
(Sam Saffron)
4
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 个赞
sam
(Sam Saffron)
5
That is a can-of-worms to implement, same class as improving quotes. I may get to it, but not for this round.
3 个赞
gerhard
(Gerhard Schlager)
6
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 个赞
jerry0
(Jerry)
8
这在几乎所有地方都能正常工作,但在邮件通知中不行。
因此,例如在用户卡片中,显示效果正常。
但在邮件通知中,全名未被优先显示:
(另外,我认为两个名字中只需对其中一个添加超链接,我猜是第一个)
2 个赞
sam
(Sam Saffron)
9
@techAPJ 能否调查一下邮件问题的修复方案?
3 个赞
techAPJ
(Arpit Jalan)
11
已修复:
当启用 prioritize_username_in_ux 时:
当禁用 prioritize_username_in_ux 时:
4 个赞
techAPJ
(Arpit Jalan)
12
进一步简化了样式,使用户名和 user-name 使用相同的 CSS。(注意用户名使用粗体字重,而 user-name 使用正常字重。)
4 个赞
techAPJ
(Arpit Jalan)
13
4 个赞
我发现一个该设置似乎未生效的地方:搜索结果中的用户名匹配列表:
Geminiscp 是用户名,且 prioritize username in ux = true。
3 个赞
debryc
(Deborah Chang)
15
我们刚刚安装了实验性的侧边栏和聊天。如果我们禁用 prioritize_username_in_ux,是否也可以在个人聊天部分优先显示全名?
1 个赞