rwieruch / favesound-redux

🎶 A SoundCloud Client in React + Redux running in production. Live Demo and Source Code to explore React + Redux as a beginner.
http://www.robinwieruch.de/the-soundcloud-client-in-react-redux/
1.59k stars 249 forks source link

Add date filtering to browse/KEYWORD view #96

Open ohadschn opened 6 years ago

ohadschn commented 6 years ago

SoundCloud's default sorting algorithm, as well as sorting by plays/likes/reposts heavily favor old tracks (since they had a lot of time to gain popularity). For example, the first track on the main favesound page is four years old!

It would be great to have the option to filter by date, like SoundCloud allows ("past year", "past month" and so forth).

This isn't an issue when logging in, because the home feed is sorted by date by default.

VikasDayananda commented 6 years ago

Hey @rwieruch , can you assign me to this?

rwieruch commented 6 years ago

Sure. Looking forward to your implementation :)

VikasDayananda commented 6 years ago

@rwieruch I went ahead and implemented the data sorting. Currently, we can sort by last "6 months", "a year", or "older than that". We can always add more options to it which fits our data best. Did not include "Past Month" because there is very less or almost no tracks for that filter. Currently, it looks like this. Also, the sort functions only works for first set of activities we see. We will have to scroll through entire data for it to work for all. Any way of improving this? Please suggest.

favesound

VikasDayananda commented 5 years ago

@rwieruch Created PR #127