Skip to content

ToDo: Fix count when not filtered

Sascha Eggenberger requested to merge todos-fix-count into master

What does this MR do and why?

This MR adds a fix to show the correct count when ToDo's are not filtered and there are more than 20 open ToDos (paging).
It also adds a readable empty message if no results have been found.

Screenshots or screen recordings

Before After
Count with multiple pages count_before Count with multiple pages count_after
Filtered results count filtered_before Filtered results count filtered_after
Filtered results empty message empty_message_before Filtered results empty message empty_after

How to set up and validate locally

  1. http://gdk.test:3000/dashboard/todos should show total of all open ToDos
  2. Filter ToDos
  3. Count should change to count of filtered results
  4. Filter again until no results are found
  5. A message should appear that no results have been found

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to UX Paper Cuts 16.5 → Cleanup (#424403 - closed), ToDo badge: Fix count when list is filtered (!132510 - merged)

Closes #427152 (closed)

Edited by Sascha Eggenberger

Merge request reports