MemePlace / Frontend

Frontend Repo
3 stars 0 forks source link

Community sidebar only shows 10 total. Intended? #130

Open Niustein opened 6 years ago

Niustein commented 6 years ago

I'm not sure if this is intended, are we planning on only showing 10 communities?

I guess you wouldn't want to show EVERY single community, but knowing the existence of a community solely through search also seems like it could potentially be problematic.

Do we want to sort the communities list by most Favorited? or most populated (# of memes) etc?

Step7750 commented 6 years ago

It is intended, it only shows top communities sorted by favourite amount. If you have a better way of community discovery, feel free to suggest it.

Niustein commented 6 years ago

So I was thinking about this a little bit.

Initially, would it look awkward if we sorted the shown communities by favorites and had a scroll bar that's sorted by favorites without the 10 limit? It would allow for communities to get discovered beyond the first 10 and could always be changed later if it grows.

I believe like reddit, having a "random" community button might be really helpful, especially for media like memes that are able to be digested so quickly.

Step7750 commented 6 years ago

I think what you're looking for is infinite scrolling for the communities on the left bar. The back end API supports pagination on top comunities so nothing would have to be done there.

You should be able to use https://github.com/orizens/ngx-infinite-scroll to aid in this.

Implementing random would have to be done server side unless it was only picking from already loaded communities in the side list.