Ordenação alfabética de nomes de usuário

Isso foi levantado por um de nossos membros e parece fazer sentido.

Atualmente, a seção de Usuários pode ser ordenada por diversos critérios (de Visitas a Visualizações, até Respostas), exceto pelo que considero um dos mais importantes: por nome de usuário. Não há como ordenar a lista de usuários (alfabeticamente) pelo nome de usuário.

Da mesma forma, ao usar a pesquisa geral e filtrar usando o prefixo ‘@’, é exibida uma lista de nomes de usuários existentes, mas essa também não é ordenada alfabeticamente — imagino que mostre primeiro os mais ativos. Agora, eu concordo com isso, mas, com isso, parece não ser possível ter uma lista alfabética de nomes de usuários em nenhum lugar.

Portanto, uma solicitação de recurso: seria possível incluir o nome de usuário como critério de ordenação na tabela da seção de Usuários? Imagino que o cabeçalho da coluna “Nome de Usuário” se torne “Nome de Usuário” e que o número de resultados possa ser movido para cima, talvez ao lado do filtro de intervalo de tempo ou, ao lado da caixa de pesquisa.

6 curtidas

I agree that at a certain forum size having an extra sort option here by username and name can make sense.

Getting the UX right is tricky, feel free to shoot off any visual mockups so we can evaluate.

3 curtidas

Here’s a simple mockup just to help visualize this:

The alignment of the Username header follows what other tables with users do in Discourse, like in the admin users list (where it is already possible to sort by username, but this is for the users).

The only other change is moving the number of results to the left of the filtering box where I think it is actually more easy to find than right now.

In small viewports it shouldn’t be a problem as the table columns are already larger than the size needed by the filtering controls at the top.

2 curtidas

I am not against adding this, I wonder what @codinghorror thinks.

Additionally if prioritize username in ux is unchecked, that title should be “Name” not username and it should be “filter by name” no “filter by username”.

6 curtidas

I don’t see any difference between the mockup and what happens now on the users page?

I’d need to see at least one enterprise customer asking for this before we proceed.

2 curtidas

Diff here is that currently you can not click on the “Users XYZ” column to sort by username/user:

image

Fair enough this thing can wait. I don’t feel any rush here at all and this can wait.

To be honest it is only ever really something you would want on enormous communities where 100s of users are called “Jane”

Given we don’t really have a go ahead (and the proposal strips a feature - total user count) I am going to withhold the pr-welcome tag for now.

5 curtidas

The table header on the first column changes to ‘Username’ (or Name, as per settings) and the number of results is moved next to the search box. Better mockup below.

The proposal does not strip any feature: the total user count is still there, only moved to the left of the filtering box where it is easier to find when searching:

The current state, just for ease of comparison:

8 curtidas

Is it possible to have this looked into one more time please? I know this is not high priority, but I think it may have been dismissed due of a misunderstanding of what was being proposed. This would not strip any feature away. Please see my previous post for the details. Thanks.

2 curtidas

OK I am putting a pr-welcome on your mockup, if someone from the community can swing it accounting for mobile and ensuring indexes are right then we can do this.

8 curtidas

Um PR para isso foi mesclado na master

7 curtidas