@mcfarhat This is awaiting the results of our discussion about how the pagination should appear mirrored and where it should not.
I have also a couple of questions :
In Voters History:
The pagination will never appear on this dialogue because of the conditions applied on pagination line 185 {votesHistory && votesHistory?.votes_history?.length > PAGE_SIZE && ( where votesHistory?.votes_history?.length is not reachable and should be votesHistory?.votes_history?.length
The limit in the hook \hooks\api\common\useWitnessVotesHistory.ts is set to 100 which makes it the same as page size and hence no pagination will appear
For this page, another ticket will be opened based on @mcfarhat 's feedback. Should we increase the limit here and allow paginating results?
Pagination is working as expected but will not appear unless the block has more than 2000 operations
Per the config file blockPagePaginationSize.There is a comment there // Temporary 2000 until cache problem solved.
Let me know if we need further action here. Maybe limit the blockPagePaginationSize config to 100, or have feedback if the cache issue is fixed or not.
@ABW@jlachor would appreciate your feedback as to why the pagination is currently rendered in this mirrored mode.
As we are doing several fixes to pagination, we want to make it coherent across the app, but also more user-friendly if possible.
So if there is a reason why the mirrored mode is useful, we are happy to keep it and use it all across, otherwise, we will switch to the standard mode alongside making improvements and fixes to the pagination layout across the app.
hey @delrifai , let us proceed to adjust our block explorer implementation so as we avoid mirrored implementation of pagination and use the traditional sense (1, 2...) instead of (last, ... 1)
Also let us make sure as you highlighted that first, last buttons work as intended, and we have a unified pagination experience across block explorer