Yeah, Iām not yet convinced thatās actually happening, but would be delighted if I were wrong.
On Directory:
On solitary card clicked up from Topic list:
Perhaps Iām missing a best practice here, not sure.
Yeah, Iām not yet convinced thatās actually happening, but would be delighted if I were wrong.
On Directory:
On solitary card clicked up from Topic list:
Perhaps Iām missing a best practice here, not sure.
I suspect itās being caused by this:
Iām not entirely sure what this code is trying to achieve⦠but it looks like itās looking up .card-content .metadata
, and then appending itself? to every matching element
If you use a standard ember computed property, I think things will work much better.
Aha! Thatās a very helpful line of enquiry, thank you. Iāll take a look at refactoring that.
User Card Directory seems to have lost the ability to filter by username. When the component is enabled, typing in the search field has no effect.
When the component is disabled, filtering works as expected.
I am able to replicate this issue. Filtering by group works, but filtering by username has no effect.
Hey. The user cards are beautiful. Thanks for making this.
Can we add an option that hides the user statistics?
Iām seeingāIām guessing hereāsomething wrong with string translations?
Thanks @craigconstantine, we have a fix in the pipeline. Iāll let you know once itās merged and ready for you to update.
The fix is now merged. @craigconstantine please can you try updating the theme component, and let us know how you get on.
@Green_Your_Lab, this recent change allows the statistics to be customized (using the button at the top of the directory), and also adds a theme setting to disable the statistics altogether if you prefer.
ā¦itās fixed.Thanks!
Looks great! Nice work.
Seeing the new user list nav at the top is making me wish for a card/list toggle. Is such a thing possible?
I know this is extra icing, but Iād love some more configurability, to e.g. not show badges but to show groups. And to display/hide other user details like birthday, location and timezone. And to not show myself twice in user lists. This is dependent on the main user list functionality, howeverā¦
Awesome. Thanks.
Iāve used unchecked the user statistics on the component and also using the tool icon. But it still shows:
Any options to get rid of the posted and read time?
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ā.
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 )
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.
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.
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?
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
This works well in the desktop view, but the button to switch back from table view to card view is missing in mobile view.