Sale price
€0,00
Regular price
€1.000,00
As a user navigating a paginated list of work items,
I want the pagination controls to display the number of remaining work items at the “End” link,
So that I can easily understand how many items are left to view as I navigate through the pages.
Acceptance Criteria:
- Display Remaining Work Items at “End” Link
- The pagination controls should include “Start,” “Prev,” “Next,” and “End.”
- The “End” link should display the total number of work items remaining in the list (e.g., “End (50 items remaining)”).
- The count of remaining items should reflect the number of work items on subsequent pages, excluding the current page.
- Dynamic Update on Navigation
- When the user clicks the “Next” button, the number of remaining work items displayed at the “End” link should decrease by the number of items shown on the current page.
- When the user clicks the “Prev” button, the number of remaining work items displayed at the “End” link should increase by the number of items on the previous page.
- The count should never be negative and should be zero when the user is on the last page.
- Edge Cases
- If the user is on the first page, the “Start” and “Prev” buttons should be disabled, and the “End” link should show the total number of work items across all subsequent pages.
- If the user is on the last page, the “Next” and “End” buttons should be disabled, and the “End” link should show “0 items remaining.”
- If there is only one page of work items, the pagination controls should either be hidden or show “0 items remaining” at the “End” link, with all navigation buttons disabled.
- Performance and Usability
- The remaining items count should update instantly upon clicking “Next” or “Prev” without noticeable delay.
- The display format should be clear and concise, using the user’s locale for number formatting (e.g., “1.000 items remaining” in the Netherlands/European context).
- The pagination controls should remain consistent in design and layout across all pages.
Assumptions:
- The system already has a backend that provides the total number of work items and supports pagination.
- Each page displays a fixed number of work items (e.g., 10 items per page).
- The UI framework supports dynamic updates to text labels in pagination controls.
Notes:
- Consider providing a tooltip or aria-label for accessibility, explaining that the “End” link shows the number of remaining items.
- If the total number of work items changes dynamically (e.g., due to filtering or new items), the “End” link should reflect the updated count.