You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
show-names replacement of usernames w. real names breaks UX expectations, leads to ambiguity #8561
When the username "matches" the real name via isUsernameAlreadyFullName(), the username text typically in the top left position on a comment (bold, highlighted) is changed to contain the text of the real name instead (see screenshots below).
This has a few big issues:
It breaks UX expectations of this location being the username of the user, not the real name - this breaks copying of the username into any location such as comments, other GitHub issues / PRs, URLs, etc
The username can mismatch the real name, leading to ambiguity of the username (see examples below)
Examples of mismatched user pairs:
Pair
GitHub username
Real‑name on profile
Canonical form
1
gabriella-monte
Gabriella Monte
gabriellamonte
1
gabriel-lamonte
Gabriel Lamonte
gabriellamonte
2
maria-bel
Maria Bel
mariabel
2
mariabel
Mari Abel
mariabel
3
robert-oates
Robert Oates
robertoates
3
robertoates
Roberto Ates
robertoates
4
tom-ashe
Tom Ashe
tomashe
4
tomashe
Tomas He
tomashe
5
sam-argus
Sam Argus
samargus
5
samargus
Samar Gus
samargus
This means that users would need to hover for the username before copying it, increasing friction.
Hmm, copying with a button would be almost ok 🤔 It would actually possibly speed up my particular use case
But it feels like it still breaks the UX expectation that the username text content is in a consistent position in the interface.
Aside from the pure UX expectation, IIRC I've also heard it from GitHub users: I've seen feedback asking for consistent positions of content from GitHub users on new designs introduced by the GitHub team.
this concept philosophically doesn't exist in Refined GitHub
Correct. It's on or off. At most customizable via CSS
It would actually possibly speed up my particular use case
Yeah I got requests to add such buttons for almost every part of the UI. Copying text especially out of links is very inconvenient. The problem is causing additional visual noise and content shift.
Yeah, I just disabled show-names because it means I can't search for some people's comments by username (and searching by username is just way more intuitive for me than searching by real name, plus there are people I interact with sporadically where I remember their username but not their real name (or not the correct spelling of their real name), plus there are people where I know their real name but GitHub doesn't, so I'd have to remember to not use their real name when searching for them, etc).
(If it "showed" their username invisibly I'd be fine with that as long as Ctrl+F still found it.)
right click and copy the URL to get the real username
All of these workarounds have downsides:
disable the feature
Downside: Refined GitHub has the philosophy that all features should be enabled, and disabling features leads to other features breaking due to inherent coupling, as shown in #8544 (comment)
Downside: this introduces 2 extra steps of friction: A) select and copy only the username in the textarea B) delete the @ and the space in the textarea
right click and copy the URL to get the real username
Downside: this introduces 1 extra step of friction: A) after copying, edit out the username from the URL
This wouldn't be so bad if it only happened once in a while, but this can be required multiple times a day.
It feels like this "UI simplification" part of the show-names feature:
@fregante would you accept a PR showing only the username in show-names in the case that username matches the real name via isUsernameAlreadyFullName?
karlhorky
That would keep the GitHub design the same and avoid duplication. It would slightly weaken the feature in the case that the username matches the real name, but sidestep the problems with collisions and ambiguity.
Also, arguably, almost all the value of show-names is when the real name is very different than the username.
Eg. this diff:
source/features/show-names.tsx
for (const element of elements) {
- if (isUsernameAlreadyFullName(username, fullName)) {- element.textContent = fullName;- } else {+ if (!isUsernameAlreadyFullName(username, fullName)) {
appendName(element, fullName);
}
}
Downside: this introduces 2 extra steps of friction: A) select and copy only the username in the textarea B) delete the @ and the space in the textarea
I don't see how? Either you want to use the username immediately and leave a comment, in which case it's faster, OR the textarea is empty so it's a matter of:
click
ctrl-a
ctrl-c
Which is arguably faster and safer than carefully trying to select the linked username (also without spaces, mind you) and pressing ctrl-c
delete the @ and the space in the textarea
Now I wonder where you use usernames, because I thought the whole issue was about trying to mention users in other repos.
right click and copy the URL to get the real username
Downside: this introduces 1 extra step of friction: A) after copying, edit out the username from the URL
You keep skipping the "select username with 1-px accuracy" step, I'd say that's a non-trivial step if we want to action complexity.
btw I'm just entertaining the conversation, I know that it's not ideal, but just trying to find solutions alternative to just showing the same name twice.
no accent
I forgot about the accent normalization.
username matches the real name
Yeah I suppose we can limit the scope of isUsernameAlreadyFullName and apply the replacements I suggested earlier:
capitalize letters
add spaces via spacer span
maybe hide dashes?
3.1. maybe only when they match the space?
So gabriellamonte becomes
GabriellaMonte
Gabriella<spacer>Monte
and gabriella-monte becomes:
Gabriella<opacity-0>-</opacity-0>Monte
and gabri-ella-monte becomes:
Gabri-ella<opacity-0>-</opacity-0>Monte
The first 2 steps are pretty straightforward, even if this means billoreilly won't receive this treatment.
I don't see how? Either you want to use the username immediately and leave a comment, in which case it's faster, OR the textarea is empty so it's a matter of: click, ctrl-A, ctrl-C
I thought the whole issue was about trying to mention users in other repos.
It's about copying the username to anywhere - I mentioned another use case in this comment:
@karlhorky: 2. copying the username to some other location such as the URL, etc
You keep skipping the "select username with 1-px accuracy" step, I'd say that's a non-trivial step if we want to action complexity.
But it is confusing for users (copying text yields something other than the visual) and has a relatively complicated implementation. I think it doesn't improve the current situation too much, and does so in a weird, unexpected way which probably doesn't help many users.
After thinking about the tradeoffs and what you are trying to achieve with avoiding duplication, I think the least confusing path forward with the best tradeoffs would be:
if name matches, hide the real name and show only username
But that means gabriellamonte would remain ambiguous.
I think at the very least it should capitalize the words GabriellaMonte, given `gabriellamonte (Gabriella Monte)"
Ultimately show-names is just an optimization over the native popup:
So in my view, if you don't like the changes made by the feature, you can disable it, and still be able to find out the real name on hover. At the moment I don't completely agree that it downgrades the experience given the number of alternatives.
The choice I have to make here is whether to downgrade the UX of show-names itself to restore very specific workflows. For now I'll keep it as is.
I would entertain an issue to extend quick-mention to add one more button below it: copy username.
But that means gabriellamonte would remain ambiguous
It wouldn't be ambiguous for the username, because that is the username. The username being ambiguous is IMO worse than the real name being ambiguous, because the username is part of the service interface, whereas the real name is part of the human interface (less important for interacting with GitHub).
Ultimately show-names is just an optimization over the native popup:
Then probably best facsimile would be to copy the popup (duplication). It's the least ambiguous, best for design and UX consistency:
karlhorky (Karl Horky)
I think the resulting solution trying to avoid the small bit of duplication is making show-names and Refined GitHub diverge in confusing ways from the GitHub design.
Also, regarding the duplication: because of the ambiguities we've talked about above, it's not actually duplication, since both username and real name are useful, unique pieces of information.
Activity
fregante commentedon Jul 15, 2025
Why are you copying it? We have
quick-mentionor you can @karlhorky commentedon Jul 15, 2025
Yeah, the autosuggest and
quick-mentionare nice features! They don't cover every scenario though.I'm not sure I remember the exact scenarios where it was problematic enough that I disabled the feature.
But IIRC, two cases:
So it's actually a slightly bigger issue: the feature breaks the UX of copying to anywhere else.
karlhorky commentedon Jul 15, 2025
In case the point of this
isUsernameAlreadyFullName()call is to avoid the duplication like this:Then I would suggest another alternative that would avoid disrupting the UX via changed text content in the top left "username position" of comments:
isUsernameAlreadyFullName()is true, then do not show the real name eithereg:
Although I think the duplication is not so bad (and arguably, more consistent from the design perspective)
fregante commentedon Jul 15, 2025
Fair, but I'd rather further facilitate copying with a button than degrade that feature and show
NewYork (New York)karlhorky commentedon Jul 15, 2025
Hmm, copying with a button would be almost ok 🤔 It would actually possibly speed up my particular use case
But it feels like it still breaks the UX expectation that the username text content is in a consistent position in the interface.
Aside from the pure UX expectation, IIRC I've also heard it from GitHub users: I've seen feedback asking for consistent positions of content from GitHub users on new designs introduced by the GitHub team.
karlhorky commentedon Jul 15, 2025
@fregante I assume you have an issue with hiding the real name and only showing usernames in the matching case?
Eg. only the username:
instead of either the real name:
or the username and real name (w. duplication):
I would suggest adding it as a "feature option" but I think this concept philosophically doesn't exist in Refined GitHub.
fregante commentedon Jul 15, 2025
Correct. It's on or off. At most customizable via CSS
Yeah I got requests to add such buttons for almost every part of the UI. Copying text especially out of links is very inconvenient. The problem is causing additional visual noise and content shift.
karlhorky commentedon Jul 15, 2025
interesting, do you mean because of the precise mouse work of highlighting the username?
one alternative I sometimes use:
Copyin Chrome in the vanilla GitHub "usernames as links" - although this interaction doesn't work with
show-namesdanwinship commentedon Jul 17, 2025
Yeah, I just disabled
show-namesbecause it means I can't search for some people's comments by username (and searching by username is just way more intuitive for me than searching by real name, plus there are people I interact with sporadically where I remember their username but not their real name (or not the correct spelling of their real name), plus there are people where I know their real name but GitHub doesn't, so I'd have to remember to not use their real name when searching for them, etc).(If it "showed" their username invisibly I'd be fine with that as long as Ctrl+F still found it.)
fregante commentedon Jul 18, 2025
I'm not sure what broken workflows these examples show.
I mean, you see "Gabriella Monte" and then what do you want to do that you cannot do?
fregante commentedon Jul 18, 2025
As for the copy-pastability and ctrl-f-ability I think there's a solution:
<span style="margin-left:3px"></span>span+::before { content: "'" }<span class="sr-only">-</span>This basically preserves the
textContentfor both copy-paste and search. Visually it would still look different.I'd accept a PR with a function that generates the appropriate DOM and is fully tested, but we can't work on this given the amount of actual bugs.
This specific issue has several workarounds so it's rather minor:
quick-mentionand copy-pastekarlhorky commentedon Jul 18, 2025
A user cannot reliably (deterministically) derive the username from the displayed real name because of the possible collisions.
I think for this reason alone, it shouldn't be special-cased, and the username and real name should be shown in all cases.
To be clear, I actually support the feature of showing the real name. But this extra "UI simplification" is actually a regression.
I'm assuming that the objection to showing both the username and real name is that it's perceived as duplication:
But in these examples, it's actually useful information, to disambiguate the usernames:
vs
karlhorky commentedon Jul 18, 2025
All of these workarounds have downsides:
quick-mentionand copy-paste@and the space in the textareaThis wouldn't be so bad if it only happened once in a while, but this can be required multiple times a day.
It feels like this "UI simplification" part of the
show-namesfeature:karlhorky commentedon Jul 18, 2025
Trying to follow this suggestion. For this users:
I'm guessing this would result in the following:
That would kind of resolve what I'm talking about, but the visual looks unusual, and is wrong in a few ways:
Or did you mean something like this:
That looks better, but it's incorrect (leads to 404) eg
https://github.com/frégante:karlhorky commentedon Jul 18, 2025
@fregante would you accept a PR showing only the username in
show-namesin the case that username matches the real name viaisUsernameAlreadyFullName?That would keep the GitHub design the same and avoid duplication. It would slightly weaken the feature in the case that the username matches the real name, but sidestep the problems with collisions and ambiguity.
Also, arguably, almost all the value of
show-namesis when the real name is very different than the username.Eg. this diff:
source/features/show-names.tsxfor (const element of elements) { - if (isUsernameAlreadyFullName(username, fullName)) { - element.textContent = fullName; - } else { + if (!isUsernameAlreadyFullName(username, fullName)) { appendName(element, fullName); } }fregante commentedon Jul 18, 2025
You got me ✋😀🤚
I don't see how? Either you want to use the username immediately and leave a comment, in which case it's faster, OR the textarea is empty so it's a matter of:
Which is arguably faster and safer than carefully trying to select the linked username (also without spaces, mind you) and pressing ctrl-c
Now I wonder where you use usernames, because I thought the whole issue was about trying to mention users in other repos.
You keep skipping the "select username with 1-px accuracy" step, I'd say that's a non-trivial step if we want to action complexity.
btw I'm just entertaining the conversation, I know that it's not ideal, but just trying to find solutions alternative to just showing the same name twice.
I forgot about the accent normalization.
Yeah I suppose we can limit the scope of
isUsernameAlreadyFullNameand apply the replacements I suggested earlier:span3.1. maybe only when they match the space?
So
gabriellamontebecomesGabriellaMonteGabriella<spacer>Monteand
gabriella-montebecomes:Gabriella<opacity-0>-</opacity-0>Monteand
gabri-ella-montebecomes:Gabri-ella<opacity-0>-</opacity-0>MonteThe first 2 steps are pretty straightforward, even if this means
billoreillywon't receive this treatment.fregante commentedon Jul 18, 2025
I still think that your specific issue would be better solved with a copy button, even though I would not like the extra noise. Maybe on hover
karlhorky commentedon Jul 18, 2025
It's about copying the username to anywhere - I mentioned another use case in this comment:
With the username-only option, this becomes right-click -> Copy with a good hit target size as mentioned in this comment:
fregante commentedon Jul 21, 2025
Would this work as defined?
karlhorky commentedon Jul 21, 2025
It would achieve 2 things:
But it is confusing for users (copying text yields something other than the visual) and has a relatively complicated implementation. I think it doesn't improve the current situation too much, and does so in a weird, unexpected way which probably doesn't help many users.
After thinking about the tradeoffs and what you are trying to achieve with avoiding duplication, I think the least confusing path forward with the best tradeoffs would be:
show-namesreplacement of usernames w. real names breaks UX expectations, leads to ambiguity #8561 (comment)fregante commentedon Jul 21, 2025
But that means
gabriellamontewould remain ambiguous.I think at the very least it should capitalize the words
GabriellaMonte, given `gabriellamonte (Gabriella Monte)"Ultimately
show-namesis just an optimization over the native popup:So in my view, if you don't like the changes made by the feature, you can disable it, and still be able to find out the real name on hover. At the moment I don't completely agree that it downgrades the experience given the number of alternatives.
The choice I have to make here is whether to downgrade the UX of
show-namesitself to restore very specific workflows. For now I'll keep it as is.I would entertain an issue to extend
quick-mentionto add one more button below it:copy username.karlhorky commentedon Jul 21, 2025
It wouldn't be ambiguous for the username, because that is the username. The username being ambiguous is IMO worse than the real name being ambiguous, because the username is part of the service interface, whereas the real name is part of the human interface (less important for interacting with GitHub).
Then probably best facsimile would be to copy the popup (duplication). It's the least ambiguous, best for design and UX consistency:
I think the resulting solution trying to avoid the small bit of duplication is making
show-namesand Refined GitHub diverge in confusing ways from the GitHub design.Also, regarding the duplication: because of the ambiguities we've talked about above, it's not actually duplication, since both username and real name are useful, unique pieces of information.