Steps to replicate the issue (include links if applicable):
- Sort the wish index page by any header.
- Go to a different page other than first page
- Sort again
What happens?:
- The wish index page is sorted by it does NOT go to first page
What should have happened instead?:
- The wish index page is sorted and it goes to the first page
Derived Requirement
Update the wish index table sorting behavior so that when a user changes the sorting order:
- The table should reset to the first page automatically.
- Sorting should correctly apply across all pages, not just the current one.
- Pagination state should only persist when navigating pages, not when changing the sort order.
Test Steps
Test Case 1: Sorting on First Page
- Go to Wish Index.
- On the first page, sort the table by a header (e.g., “Title”).
- ✅❓❌⬜ AC1: Sorting is applied correctly and user remains on the first page (no unexpected navigation)..
Test Case 2: Sorting After Navigating to Another Page
- Go to the Wish Index page.
- Navigate to page 2 or beyond.
- Sort the table by a header (e.g., “Status” or “Support Count”).
- ✅❓❌⬜ AC2: Sorting is applied correctly and table automatically jumps back to page 1
Test Case 3: Sorting by Multiple Headers Sequentially
- On the wish index, sort by “Title,” then sort by “Created.”
- ✅❓❌⬜ AC3: Each sort correctly applies and after each sort, the user is on the first page
QA Results - Meta Beta
| AC | Status | Details |
|---|---|---|
| 1 | ✅ | T405387#11230028 |
| 2 | ✅ | T405387#11230028 |
| 3 | ✅ | T405387#11230028 |