Display the amount of items in a dashboard filter when that filter does not have a selected value.
This will help users know the items in those lists get filtered when selecting anything in the other filters.
Since filters are paginated, we'll be showing different values based on a set of conditions:
When there's only one page of results, we'll display the total amount of results.
When we have loaded the first page, the page size is 100, and we know there's more pages, we'll display 99+. This ensures we keep the badge as "small" as possible for as long as possible.
When we have loaded more than one page and we know there's still more pages, we'll display the amount of results we have loaded so far, followed with the + sign, like 400+.
When there's multiple pages but we have loaded all of them, we'll display the total amount of results we have loaded.
Display the amount of items in a dashboard filter when that filter does not have a selected value.
This will help users know the items in those lists get filtered when selecting anything in the other filters.
Since filters are paginated, we'll be showing different values based on a set of conditions:
99+
. This ensures we keep the badge as "small" as possible for as long as possible.+
sign, like400+
.In addition, this PR also updates frontend-shared, in order to get a fix for Select toggle buttons.