Skip to content

Organization display names are not respected #6138

Open
@netthier

Description

@netthier

Current Behavior

On GitHub, organizations and users have two names.
Not sure what the correct terminology is, but one of them shows up in places like URLs and commits (for me that's 'netthier') and the other one, the display name, shows up in other places such as the profile or e-mails (which in my case is 'nett_hier' instead).
While my crates.io user page shows the former name, I'm listed with the latter name in any crates where I'm the owner:
image
vs
image

However, for organizations, the former name is used in both cases, as can be seen in the above screenshot.

Expected Behavior

As can be seen here, the display name of the organization is "SenseLabs", not "senselabsde": https://github.com/SenseLabsDE
My expectation would be that the organization owning the crate here is rendered as SenseLabs or SenseLabs/crate-owners instead (I'm not sure what the ideal way to include the team name here is) for consistency reasons.
Another option would be to allow making the display name of a team freely configurable.
Since the display name of a user on crates.io can be set to anything by simply changing it on GitHub and logging in again, the same should be possible for organizations.
A third option would be to at least respect the casing (i.e. "SenseLabsDE" instead of "senselabsde"), as that is what GitHub does in URLs as well.

Steps To Reproduce

  1. Create an organization with a display name different from the "proper" name
  2. Create a team in said organization
  3. Invite that team as an owner on a crate
  4. Be saddened by the way the organization name is displayed

Environment

(Not applicable)

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-frontend 🐹C-enhancement ✨Category: Adding new behavior or a change to the way an existing feature works

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions