Skip to content

Pagination for Admin Overview displays waaay too many page numbers #231

@M1niplayer

Description

@M1niplayer

Here on my test setup in admin/expenses/
Image
That's a lot of pages

There's like 15000 utlägg right now in production DB and there should be 25 utlägg per page ? 15000/25 = 600 pages.
That's a lot of pages

It would be nice if only first and last page, previous and next 2 pages, and a textbox for specifying a specific page were shown. Also maybe have the highlighted page be bold.
Bonusförfrågan from Douglas - A dice icon that, when pressed, will give you a random page! 🚀

E.g,

  • You're at page 7, pages -> "1 ... 5 6 7 8 9 ... [ textbox ] ... 600"
  • You're at page 50, pages -> "1 ... 48 49 50 51 52 ... [ textbox ] ... 600"
  • You're at page 1, pages -> "1 2 3 4 5 ... [textbox] ... 600"
  • You're at page 600, pages -> "1 ... [textbox] 596 597 598 599 600"
  • You press the dice icon and get page 251. You might see 25 ancient utlägg, and one might see one utlägg that really catches your eye. One utlägg that where Douglas might have bought 25 real!!!! elephants for Vårbalen (what an awesome vårbal!). That might have happened.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions