tournesol
tournesol copied to clipboard
[front] feat: multi-page lists navigation
The pagination component should allow to quickly access any page.
Common usecases would be:
- access old comparisons
- watch page 5 of tournesol all time best two days after having watched page 1,2,3,4
- intentionally find videos with lower scores
We talked also about having the pagination at the end and at the top of video lists to not force the users to scroll down to access the pages.
I could be a good addition, what do you think @lfaucon ?
Yes
(a) For instance, the Django admin works as follow:
- you can always access the two first pages
- you can always access the two last pages
- you can always access the next three pages
- you can always access the previous three pages
(b) There is also a more complex behaviour, when the user is less than 6 pages close to the first or the last page, all the remaining pages are displayed.
What about implementing the behaviour (a) to start? Then we could add -100 / -10 / +10 / +100 additional buttons to navigate more quickly, or maybe a text input allowing to type a page number.
If we don't add a text input, the - X / + X buttons can be useful especially when navigation big lists like the all time recommendations, the rate-later list, the comparisons list, etc.
We agreed to implement behavior (a) and add additional -100 / -10 / +10 / +100 buttons to navigate faster, or perhaps a text input to type a page number.