How would I go about changing the default sort to “visits” rather than “likes received”?
Thanks!
How would I go about changing the default sort to “visits” rather than “likes received”?
Thanks!
hi! this component is great! We found though a weird behavior while showing the number of followers
You can check yourself here: LibreCV
I’m afraid that’s not possible at the moment
“Followers” isn’t a concept that exists in Discourse core, so I guess you must be using Official Discourse Follow Plugin. This is something that will need to be fixed in that plugin.
Indeed, I use that plugin - would be great that can be fixed
I could be wrong but believe the repetition of this card breaks its own Plugin Outlets, rendering them useless, but worse, they act unpredictably (or predictably bad?) if you have a dependent Theme Component or Plugin installed. I think it is essentially spamming the template with multiple, identically named plugin outlets?
Can we find a way around that?
I don’t think multiple copies of the same plugin outlet should necessarily be an issue. For example, there are plugin outlets on every single row of a topic list, and things work fine there.
What error/issue are you seeing?
That’s encouraging.
So a different model is being passed to each instance?
Currently the same data seems to be repeated on each card
Yeah the user
object should be different for each one… in theory
Which specific outlet are you using?
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.
This is done, Follow Plugin 👨 should now work with this TC.
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…