OdyseeTeam / odysee-frontend

The code that runs odysee.com
https://odysee.com
MIT License
209 stars 65 forks source link

Add sort and search on uploads page - Improvement attempt #3105

Closed keikari closed 3 months ago

keikari commented 3 months ago

Adds sort/search on Uploads page.
Also now when changing filtering options, the page number resets to 1.

Filters require all claims to be fetched to work, so using them won't be great with large accounts. (Option to toggle on/off)

Stuff is on large part copy/pasted from playlists page, and edited to work with this.

Not sure if this is too messy. Logic is that if !isFilteringEnabled do things old way, else do things different way. (Different way is similar to what happens on playlists page)

Images Desktop ![2024-05-30_12-36](https://github.com/OdyseeTeam/odysee-frontend/assets/34790748/71d86eeb-eccd-42db-aa5f-6ce420cbadd4) ![2024-05-30_12-37](https://github.com/OdyseeTeam/odysee-frontend/assets/34790748/99e86e70-a15b-4b6d-94ae-52552a205cf0) ![2024-05-30_13-11](https://github.com/OdyseeTeam/odysee-frontend/assets/34790748/2fd60878-e884-4556-824c-29d33b29617e)
Images Mobile ![2024-05-30_13-12_1](https://github.com/OdyseeTeam/odysee-frontend/assets/34790748/9ed8b8eb-6390-46cc-805a-9f83584cc403) ![2024-05-30_13-12](https://github.com/OdyseeTeam/odysee-frontend/assets/34790748/54c19a70-8e77-4574-9c84-c2751a8ad946)
tzarebczan commented 3 months ago

This is awesome, some creators will love it...long time coming. Let's give it a good test, and if it looks good, we can ship it.