Annuaire des cartes utilisateur

Awesome. Thanks.
I’ve used unchecked the user statistics on the component and also using the tool icon. But it still shows:
image

Any options to get rid of the posted and read time?

1 « J'aime »

Did you do a hard refresh in your web browser? I noticed this too.

I also noticed that fields can show up twice in user cards if you have the custom user field set to “show on user card”.

1 « J'aime »

Certainly possible, but would require a fair bit of refactoring. Right now this component literally replaces all the template code for the regular user directory.

This is currently possible via CSS, and we could potentially automate those CSS changes via some theme settings.

There’s a theme setting to hide the current user, which should help with that issue

By “User statistics”, I mean the bar along the bottom of each user card. See the screenshot in the OP for an example. In your screenshot, it looks like the statistics bar is not present.

As in, it will appear on the user card, and also in the ‘statistics’ at the bottom of the card? If it’s already on the user card, then I’d suggest removing it as one of the statistics (using the :wrench:)

2 « J'aime »

Yes, that makes sense. Or deselect the “show on user card” setting for the user field.

It’s not possible apparently to not show any of the statistics columns and only display the cards without any statistics. This is not a problem, just something I noticed. :slight_smile:

1 « J'aime »

There is a theme setting which should be labelled “show statistics under each user card”. If you turn that off, the bar at the bottom should completely disappear.

Admittedly it is confusing for this to be buried in the theme settings, while the column selection is available right there on the directory page… but we’re kinda limited by the theme component framework there. :cry:

2 « J'aime »

Since the list view has become more useful (New Leaderboard/User Directory Features 🎉), would you consider adding a button that allows users to switch between the list view and the card view?

8 « J'aime »

There is now a toggle, and the default view can be configured in the theme component’s settings. I’ve installed it here on Meta, and set the default view to “table”. If you visit https://meta.discourse.org/u, you should now see a toggle in the top right

6 « J'aime »

This works well in the desktop view, but the button to switch back from table view to card view is missing in mobile view.

3 « J'aime »

Thanks David, Just checking - There’s no way to remove the line in the main card that show the user’s join date, last post date and read time?

It would be great to have an option to remove this line as well.

We want to give our users more privacy. We want to have a user directory to allow members to find each other for private messaging, but we don’t want publish how often they interact on the site.

Thanks!

3 « J'aime »

I’m afraid there’s no option to remove that information from Discourse core. However, if you’re happy with a purely cosmetic fix, it can be hidden from the user card using some custom css in a theme. For example:

.card-row.metadata-row {
  display: none;
}

(note that users could still technically access the information using their browser’s developer tools)

5 « J'aime »

Thank you very much!

4 « J'aime »

Ce sont MAGNIFIQUES. Lorsque je suis connecté, je peux filtrer l’annuaire des utilisateurs par groupe. L’annuaire public des utilisateurs pourrait-il également être filtré par groupe ?

Quand je ne suis pas connecté

Quand je suis connecté

Nos groupes sont publics

5 « J'aime »

J’ai vient d’installer ce composant, et il est superbe ! Cependant, sur Safari et Chrome (bureau) ou même sur mobile, cliquer sur un avatar ou un nom ne m’envoie pas vers la page de l’utilisateur. Seuls l’avatar et le titre de la carte semblent inactifs ; les liens du site web, les liens des badges et les liens de tri des métadonnées en bas des cartes semblent tous fonctionner. Je n’ai aucun problème avec les cartes utilisateur “pop-up” sur les sujets ou via la vue du tableau des utilisateurs ; celles-ci mènent toujours à la page de l’utilisateur comme prévu.

Dans le répertoire des cartes utilisateur, je vois

<a href="/u/username" class="user-profile-link">
  <span id="discourse-user-card-title" class="name-username-wrapper">Nom d'utilisateur</span>
  <!-- -->
</a>

en inspectant le code source, mais cliquer sur le titre de la carte active simplement l’état de focus (Chrome) et rien de plus. Je n’obtiens même pas d’état de focus sur Safari, mais j’obtiens un curseur pointeur. Curieusement, je peux ouvrir les liens avec un clic de commande ou via le menu d’options (clic droit / appui long sur mobile). Je rencontre le même effet sur https://discourse.theme-creator.io/u, donc cela ne semble pas être unique à notre site discourse.

3 « J'aime »

Merci @Kayla - ce problème sera résolu par ce changement :

Vous devriez voir un bouton de mise à jour sur le composant de thème dans votre panneau d’administration - faites-nous savoir si vous rencontrez toujours des problèmes après la mise à jour.

6 « J'aime »

Les liens de l’avatar et du titre de la carte fonctionnent désormais comme prévu. Merci @david !

4 « J'aime »

Vous voudrez peut-être jeter un œil à la page d’aperçu qui ne fonctionne pas correctement @david

2 « J'aime »

Salut David,
Les tests se sont bien déroulés.
Thème Air

Récemment, dans la carte utilisateur Répertoire, si vous cliquez sur message, elle se vide au lieu d’initier un message direct. Je n’ai ce problème que dans le répertoire utilisateur. Cela fonctionne bien dans les sujets.

2 « J'aime »

Lorsqu’il est combiné avec ce composant de thème : Usercard Redesign Experiment
La carte utilisateur reste vide dans la vue du répertoire.

4 « J'aime »

J’aime bien comme ça. Sinon, le répertoire serait vraiment bruyant à parcourir.

Et pourtant, ça pourrait être un bug :wink:

3 « J'aime »


Pour une raison quelconque, cela semble tout buggé lors de la vérification des statistiques de l’utilisateur en mode carte, et pourquoi cela se produit-il ?

3 « J'aime »