Concordium / concordium-scan

CCDScan
Apache License 2.0
3 stars 14 forks source link

CCDScan - pagination feature improvements #32

Open SRConcordium opened 1 year ago

SRConcordium commented 1 year ago

Description Applies to all sidebars e.g. Transactions, Account Statement, Token etc. options in CCDScan, add these improvements for pagination (when number of entries are high) e.g. https://ccdscan.io/accounts?dcount=1&dentity=account&daddress=3kKn2kz9YHrkrKUcBZF9NUJbg8LqGzcBbLwzH1VPE5g2fTbY9z

  1. Add pagination numbers to highlight which particular page user is viewing currently.
  2. Put some spacing between Previous and Next buttons, right now it appears as same button.
  3. Add "Last" button (on right most side) to allow user to navigate to the last page directly.

Steps to Reproduce https://ccdscan.io/accounts?dcount=1&dentity=account&daddress=3kKn2kz9YHrkrKUcBZF9NUJbg8LqGzcBbLwzH1VPE5g2fTbY9z Expected Result

Actual Result

Versions

Pagination_Tokens

ghost commented 9 months ago

Pagination offset has been added for better UX https://github.com/Concordium/concordium-scan/pull/114

This issue could migrate all current pagination to use above.