ScottishCovidResponse / rampvis-ui

This is a React based RAMP VIS visualisation interface. This client uses the REST API: https://github.com/ScottishCovidResponse/rampvis-api
BSD 2-Clause "Simplified" License
7 stars 6 forks source link

Table pagination #105

Closed saifulkhan closed 2 years ago

saifulkhan commented 2 years ago

e.g., https://vis.scrc.uk/plot

kachkaev commented 2 years ago

What do we want to change about pagination? This is how it currently looks in prod:

Screenshot 2021-11-20 at 18 56 59
saifulkhan commented 2 years ago

Actually, currently, the page https://vis.scrc.uk/plot is fetching table data from https://vis.scrc.uk/api/v1/template/pages/all/plot and it takes a time to load all data. Ideally the page should call paginated data using pageIndex and pageSize as query parameter, e.g., https://vis.scrc.uk/api/v1/template/pages/all/plot/?pageIndex=0&pageSize=50 . I don't know how to do that in React.