사용자 카드 디렉터리

How would I go about changing the default sort to “visits” rather than “likes received”?

Thanks!

1개의 좋아요

hi! this component is great! We found though a weird behavior while showing the number of followers

You can check yourself here: https://librecv.org/u/

1개의 좋아요

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 Discourse Follow. This is something that will need to be fixed in that plugin.

4개의 좋아요

Indeed, I use that plugin - would be great that can be fixed :slight_smile:

1개의 좋아요

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?

1개의 좋아요

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?

3개의 좋아요

That’s encouraging.

So a different model is being passed to each instance?

Currently the same data seems to be repeated on each card

2개의 좋아요

Yeah the user object should be different for each one… in theory

Which specific outlet are you using?

1개의 좋아요

Yeah, I’m not yet convinced that’s actually happening, but would be delighted if I were wrong.

On Directory:

image

On solitary card clicked up from Topic list:

image

Perhaps I’m missing a best practice here, not sure.

2개의 좋아요

I suspect it’s being caused by this:

https://github.com/paviliondev/discourse-follow/blob/master/assets/javascripts/discourse/components/follow-statistic.js.es6#L11-L16

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 :thinking:

If you use a standard ember computed property, I think things will work much better.

6개의 좋아요

Aha! That’s a very helpful line of enquiry, thank you. I’ll take a look at refactoring that.

5개의 좋아요

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.

5개의 좋아요

I am able to replicate this issue. Filtering by group works, but filtering by username has no effect.

3개의 좋아요

This is done, Discourse Follow should now work with this TC.

4개의 좋아요

Hey. The user cards are beautiful. Thanks for making this.
Can we add an option that hides the user statistics?

1개의 좋아요

I’m seeing—I’m guessing here—something wrong with string translations?

https://forum.moversmindset.com/u

2개의 좋아요

Thanks @craigconstantine, we have a fix in the pipeline. I’ll let you know once it’s merged and ready for you to update.

5개의 좋아요

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 :wrench: button at the top of the directory), and also adds a theme setting to disable the statistics altogether if you prefer.

3개의 좋아요

…it’s fixed.Thanks!

2개의 좋아요

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..

2개의 좋아요