Review main Merged

96279[FEATURE] Add pagination to dashboard list widgets

Benni Mack CR +2 V +2 Hard +809 −34 updated 10/20/26, 15:18

Commit message

Dashboard widgets listing records are limited to a few rows for
space reasons. The ListWidget can now render a paginator in its
footer, so editors can browse through all items without leaving
the dashboard.

Data providers opt in by implementing the new
PaginatedListDataProviderInterface and return any core paginator for
the requested page and page size. The number of items per page is
a widget setting that editors can change per widget instance. The
new option "itemsPerPage" in the widget registration changes the
default and locks the setting.

The "Latest backend logins" widget is the first widget using the
pagination. Its "limit" setting now defines the logins shown at
once, and older logins can be browsed. Logins of deleted users are
excluded in the query, so they no longer count towards the pages.

Switching pages loads the widget through the existing AJAX route
"dashboard_widget_get" with an additional "page" query argument,
which widgets read from the request of their widget context. The
dashboard widget element keeps the current page across refreshes,
starts over on the first page after the settings were saved, and
restores the focus on the pagination button after the content was
replaced.

Review

  • Code review CR +2 Done
    • Georg Ringer +2
    • Benjamin Kott +1
  • Verified V +2 Done
    • Georg Ringer +2
    • Benjamin Kott +1
    • core-ci +1 CI

Issues 1

Files 19

Review log 1418

  1. Benni Mack uploaded patch set 1 10/01/26, 20:58

  2. core-ci voted on patch set 1 V +1 10/01/26, 21:06 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/109841

  3. Benni Mack marked it ready for review 10/08/26, 19:53

  4. Benni Mack marked it work in progress 10/08/26, 19:54

  5. Benni Mack uploaded patch set 2 V +1 10/09/26, 12:02

  6. Benni Mack marked it ready for review 10/09/26, 12:02

  7. core-ci voted on patch set 2 V -1 10/09/26, 12:20 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/110597

  8. Benni Mack rebased onto patch set 3 V -1 10/09/26, 16:07

  9. core-ci voted on patch set 3 V +1 10/09/26, 16:18 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/110623

  10. Benni Mack uploaded patch set 4 V +1 10/16/26, 10:11

  11. Benni Mack marked it ready for review 10/16/26, 10:11

  12. core-ci voted on patch set 4 V +1 10/16/26, 10:20 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/111348

  13. Guido Schmechel commented on patch set 4 10/16/26, 10:42

    Does it make sense to put the current page number in an input field here? For example: I have a large number of pages and don't want to click through them x times. (Even if it's fast.) Also, there isn't quite enough padding between the pagination and the dashboard content. Try hovering over the element before the pagination. Then you'll see it pretty clearly. And something that might need to be clarified (later): How will the change affect large sys_log tables? Could this be a performance issue? Previously, it was limited. If I understand correctly, we could still adjust that, since 100 was specified as the maximum in the SettingsDefinition. So 100 * itemsPerPage. Or has that already been taken into account?
  14. Benjamin Kott commented on patch set 4 CR +1 V +1 10/16/26, 13:59

    good enough for now
  15. Georg Ringer voted on patch set 4 CR +2 V +2 10/16/26, 17:50

  16. Georg Ringer merged patch set 5 10/16/26, 17:50

  17. Benni Mack commented on patch set 5 10/16/26, 17:55

    Reply

    Hey, I didn't want to leave this unnoticed... this patch is like a wish for 3 years, and we included it now. But: We will take care of your sugesstions separately. Performance should not be a problem in this case, as it is chunked in any case. But please open up a new issue for your ideas, don't worry, we will tackle thm
  18. Guido Schmechel commented on patch set 5 10/20/26, 15:18

    Reply

    Thanks for the explanation! Keep up the good work 😊