-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix pagination issue with dispute count in task list on overview page (…
…#4388) * Expose an API to get dispute status counts. * Action type, action, and type for dispute status counts. * Fix the order of dispute routes. * Fix reference to api client. * Make sure passed statuses parameter to the dispute/status_counts API are valid statuses. * Front-end changes to fetch from dispute/status_counts API and display the number of disputes that need response to the task list on the overview page. * Fix 'Maximum update depth exceeded' error. * Pass number of total disputes, so we can have a complete state for the task list. - Remove accepting parameter statuses in dispute/status_counts API. - Fix task list unit test. * Use camel case to as the state property to store dispute status counts data. * Fix pslam error about the return type of the dispute status counts API. * Changelog for dispute task list pagination and grammar fix. * Change changelog entry because grammar fix and link change to the awaiting_response disputes list filter is done in another PR, #4414. * Unit test for dispute reducer, resolver, and selector. * Unit test for disputes rest controller. * Use number of disputes needing response to decide singular or plurality of the sentence in dispute task list and use the number of total disputes if there is 0 dispute needing response. * Only show dispute task list if there is only awaiting response disputes. * Pass the number of disputes needing response from PHP as part of wcpaySettings instead of fetching it asynchronously from the frontend. * Remove statusCounts from test. Co-authored-by: James Allan <[email protected]>
- Loading branch information
1 parent
0b67331
commit 147a4fc
Showing
6 changed files
with
48 additions
and
121 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Significance: patch | ||
Type: fix | ||
|
||
Correctly show the number of disputes that need to be responded in task list. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters