Pagination is not working correctly for jobs index view refactor

Tabs and pagination don't play nice

pagination.mov

There are two issues with the tabs and pagination that may be related. Firstly, if at any point you switch tabs the pagination stops working completely. Hitting, "Prev" or "Next" causes an error and we go into a broken empty state. If you stay on the same tab, this doesn't happen.

Secondly, if you paginate then change tabs the pagination persists. This didn't break the UI in my testing, but it may do with a slightly different configuration. If you have a running job for example and paginate the "all jobs" tab past that job, the running jobs tab will likely show 0 jobs.

Proposal

  • Increase amount of jobs returned
  • Introduce infinite scrolling instead of page based pagination
Edited by Payton Burdette