Skip to content

show-names replacement of usernames w. real names breaks UX expectations, leads to ambiguity #8561

Closed as not planned

Description

@karlhorky

Hi, first of all, thanks again for Refined GitHub, it's an amazing extension that I continue to recommend.

Description

I tried enabling the show-names feature again and found out again why I disabled it:

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:

  1. 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
  2. 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.

How to replicate the issue + URL

Extension version

25.7.1

Browser(s) used

macOS Chrome 138.0.7204.101

Token ⚠️

  • I set a token in the options page. I understand that some features require a token to work.

Activity

  1. fregante commented on Jul 15, 2025

    @fregante
    Member

    before copying it into tags in comments

    Why are you copying it? We have quick-mention or you can @ Image

  2. karlhorky commented on Jul 15, 2025

    @karlhorky
    ContributorAuthor

    Yeah, the autosuggest and quick-mention are 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:

    1. the username didn't show up in the autosuggest because the username was in a different issue than the one that I was writing in
    2. copying the username to some other location such as the URL, etc

    So it's actually a slightly bigger issue: the feature breaks the UX of copying to anywhere else.

  3. karlhorky commented on Jul 15, 2025

    @karlhorky
    ContributorAuthor

    In case the point of this isUsernameAlreadyFullName() call is to avoid the duplication like this:

    karlhorky (Karl Horky)
    

    Then I would suggest another alternative that would avoid disrupting the UX via changed text content in the top left "username position" of comments:

    • If isUsernameAlreadyFullName() is true, then do not show the real name either

    eg:

    karlhorky
    

    Although I think the duplication is not so bad (and arguably, more consistent from the design perspective)

  4. fregante commented on Jul 15, 2025

    @fregante
    Member

    Fair, but I'd rather further facilitate copying with a button than degrade that feature and show NewYork (New York)

  5. karlhorky commented on Jul 15, 2025

    @karlhorky
    ContributorAuthor

    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.

  6. karlhorky commented on Jul 15, 2025

    @karlhorky
    ContributorAuthor

    @fregante I assume you have an issue with hiding the real name and only showing usernames in the matching case?

    Eg. only the username:

    karlhorky
    

    instead of either the real name:

    Karl Horky
    

    or the username and real name (w. duplication):

    karlhorky (Karl Horky)
    

    I would suggest adding it as a "feature option" but I think this concept philosophically doesn't exist in Refined GitHub.

  7. fregante commented on Jul 15, 2025

    @fregante
    Member

    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.

  8. karlhorky commented on Jul 15, 2025

    @karlhorky
    ContributorAuthor

    Copying text especially out of links is very inconvenient.

    interesting, do you mean because of the precise mouse work of highlighting the username?

    one alternative I sometimes use:

    • right-click on username + Copy

    in Chrome in the vanilla GitHub "usernames as links" - although this interaction doesn't work with show-names

    Image
  9. danwinship commented on Jul 17, 2025

    @danwinship

    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.)

  10. fregante commented on Jul 18, 2025

    @fregante
    Member

    The username can mismatch the real name, leading to ambiguity of the username (see examples below)

    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?

  11. fregante commented on Jul 18, 2025

    @fregante
    Member

    As for the copy-pastability and ctrl-f-ability I think there's a solution:

    • add spaces via <span style="margin-left:3px"></span>
    • add punctuation via span + ::before { content: "'" }
    • hide dashes via <span class="sr-only">-</span>

    This basically preserves the textContent for 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:

    • disable the feature
    • use quick-mention and copy-paste
    • right click and copy the URL to get the real username
  12. karlhorky commented on Jul 18, 2025

    @karlhorky
    ContributorAuthor

    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?

    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:

    karlhorky (Karl Horky)
    

    But in these examples, it's actually useful information, to disambiguate the usernames:

    gabriellamonte (Gabriella Monte)
    

    vs

    gabriel-lamonte (Gabriel Lamonte)
    
  13. karlhorky commented on Jul 18, 2025

    @karlhorky
    ContributorAuthor

    This specific issue has several workarounds so it's rather minor:

    • disable the feature
    • use quick-mention and copy-paste
    • 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)
    • use quick-mention and copy-paste
      • 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:

    1. works against ergonomics
    2. changes the design of GitHub in an unexpected way
  14. karlhorky commented on Jul 18, 2025

    @karlhorky
    ContributorAuthor

    As for the copy-pastability and ctrl-f-ability I think there's a solution:

    • add spaces via <span style="margin-left:3px"></span>
    • add punctuation via span + ::before { content: "'" }
    • hide dashes via <span class="sr-only">-</span>

    This basically preserves the textContent for both copy-paste and search. Visually it would still look different.

    Trying to follow this suggestion. For this users:

    GitHub username Real‑name on profile
    roberto-ates Robérto Ates

    I'm guessing this would result in the following:

    Visual:
    roberto ates
    
    Copied:
    roberto-ates
    

    That would kind of resolve what I'm talking about, but the visual looks unusual, and is wrong in a few ways:

    • no capital letters
    • no accent

    Or did you mean something like this:

    Visual:
    Robérto Ates
    
    Copied:
    Robérto-Ates
    

    That looks better, but it's incorrect (leads to 404) eg https://github.com/frégante:

    Image
  15. karlhorky commented on Jul 18, 2025

    @karlhorky
    ContributorAuthor

    @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:

    Image

    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);
    			}
    		}
  16. fregante commented on Jul 18, 2025

    @fregante
    Member
    • due to inherent coupling

    You got me ✋😀🤚

    use quick-mention and copy-paste

    • 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:

    1. click
    2. ctrl-a
    3. 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:

    1. capitalize letters
    2. add spaces via spacer span
    3. maybe hide dashes?
      3.1. maybe only when they match the space?

    So gabriellamonte becomes

    1. GabriellaMonte
    2. Gabriella<spacer>Monte

    and gabriella-monte becomes:

    1. Gabriella<opacity-0>-</opacity-0>Monte

    and gabri-ella-monte becomes:

    1. Gabri-ella<opacity-0>-</opacity-0>Monte

    The first 2 steps are pretty straightforward, even if this means billoreilly won't receive this treatment.

  17. fregante commented on Jul 18, 2025

    @fregante
    Member

    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

  18. karlhorky commented on Jul 18, 2025

    @karlhorky
    ContributorAuthor

    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.

    With the username-only option, this becomes right-click -> Copy with a good hit target size as mentioned in this comment:

    @karlhorky: one alternative I sometimes use:

    • right-click on username + Copy

    in Chrome in the vanilla GitHub "usernames as links" - although this interaction doesn't work with show-names

  19. fregante commented on Jul 21, 2025

    @fregante
    Member

    we can limit the scope of isUsernameAlreadyFullName

    Would this work as defined?

  20. karlhorky commented on Jul 21, 2025

    @karlhorky
    ContributorAuthor

    It would achieve 2 things:

    • make the visual depiction match the current one
    • change the copied text to the username

    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:

  21. fregante commented on Jul 21, 2025

    @fregante
    Member
    • 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:

    Image

    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.

  22. karlhorky commented on Jul 21, 2025

    @karlhorky
    ContributorAuthor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions