mozilla / pontoon

Mozilla's Localization Platform
https://pontoon.mozilla.org
BSD 3-Clause "New" or "Revised" License
1.46k stars 527 forks source link

Allow user to set a vanity URL for their profile #2483

Closed flodolo closed 2 years ago

flodolo commented 2 years ago

Reference: specs

In order to share a profile more easily, users should be able to set up a vanity URL — a unique identifier, easier to remember, that can be used in the URL instead of the random ID assigned by Pontoon.

mathjazz commented 2 years ago

@flodolo @eemeli We should finish the discussion started in the brainstorming doc: whether the user should set aa vanity_url or a username field.

My take: it should be a username, because that's consistent with popular platforms. It also allows us to use that field in other places, e.g. user presentation in the UI when (Display) Name not set and in user mentions (where display name is causing problems due to spaces).

flodolo commented 2 years ago

I'm still of the idea that the profile URL should be a separate thing from the username (and we'd benefit from the latter in mentions).

The counter-example, talking about popular platforms, is LinkedIn, where you can set your own vanity URL.

mathjazz commented 2 years ago

AFAICT, there's no concept of username in LinkedIn. Which makes sense - they are a professional networking site, and job seekers want to be identified with real names and photos. So Profile URL is the only option for them.

It's not exactly the same on Pontoon. Many of our users don't give away their real identify, as we can see by their display names and avatars. So having a username makes sense. And when you have it, why have a separate URL field?

Exposing all three fields (display name, username and a custom profile URL) would be quite unique and quite complex to reason about.

flodolo commented 2 years ago

It's not exactly the same on Pontoon. Many of our users don't give away their real identify, as we can see by their display names and avatars. So having a username makes sense. And when you have it, why have a separate URL field?

As explained in the original conversations, if the idea is to use this profile URL to promote yourself professionally, you might not want to use the username you use internally (unclenachoduh would be a good example, but even flod).

mathjazz commented 2 years ago

We'd still show unclenachoduh on the profile page if we introduce usernames, so having a different URL wouldn't really prevent the potential embarrassment. :)

I also assume a very small minority would use a profile URL that is different than a username, and the remaining vast majority would be confused.

flodolo commented 2 years ago

Fair point.

With that said, I'm not going to be convinced that having two separate fields is a bad idea, because I only see pros from the user perspective, even if it might only benefit a subset (and I also don't see how that would be confusing). But I will accept your decision on what to implement.

mathjazz commented 2 years ago

Thanks. Opened #2594.

eemeli commented 2 years ago

I'd prefer starting off with a single "username" that's used only in the vanity URL, because that's conceptually simpler and avoids us needing to set up two interconnected namespaces.