Skip to content

Feat: Paginate recent votes list

The past votes list on the dashboard should be paginated to save bandwith and performance.

10 items per page should be sufficient.

Pages should be queried from the server individually.

An interface for the server data could look like this:

{
  totalVotes: number;
  votes: {/*votedata*/}[]
}

This way we get the totalVotes on each request and can update the pagination accordingly.