#47495 closed enhancement (fixed)
WP_Privacy_Request_Table should not show views that have a count of 0.
Reported by: | pbiron | Owned by: | pbiron |
---|---|---|---|
Milestone: | 5.5 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Privacy | Keywords: | has-patch commit |
Focuses: | ui, administration | Cc: |
Description
Other core list tables that have a get_views() method do not output a view if the count for that view is 0, e.g., WP_Posts_List_Table
doesn't output "Pending (0)" if there are no posts with $post_status === 'pending'
).
However, WP_Privacy_Requests_Tabl
e does output "Pending (0)" if there are no pending requests.
For consistency's sake, I think WP_Privacy_Requests_Table
should skip views with count of 0.
Attachments (2)
Change History (12)
This ticket was mentioned in Slack in #core-privacy by pbiron. View the logs.
5 years ago
#2
@
5 years ago
- Milestone changed from Awaiting Review to 5.5
- Owner set to pbiron
- Status changed from new to assigned
This ticket was mentioned in Slack in #core-privacy by garrett-eclipse. View the logs.
5 years ago
#4
@
5 years ago
- Focuses ui administration added
- Keywords 2nd-opinion needs-design-feedback added
Thanks @pbiron for the ticket and patch, applying and testing the patch works as outlined.
I am a bit hesitant of moving forward here as I see Requests being more in line with Comments than posts and the Comments list table does display the additional status' for Pending, Approved, Spam and Trash.
In my eyes displaying all status' is helpful to the user experience as it outlines the expected process visually by showing what status buckets the requests will need to pass through.
I'm marking for 2nd-opinion and also flagging to get some design feedback on the UX here. I'm all for consistency so if it's decided to suppress empty status labels then we should also address the Comments list table or potentially vice versa if displaying them is useful for to the user for the interface then resurfacing them on other list tables may be the avenue forward.
This ticket was mentioned in Slack in #core by david.baumwald. View the logs.
5 years ago
#7
@
5 years ago
@garrett-eclipse what do you think?
Personally, I still think views with 0 counts should not be shown. I'm pretty sure that of all the list tables in core, the privacy and comments list tables are the only ones that show views with 0 count. That is: posts, plugins, users, ms sites, ms themes, ms users (the later 3 in multisite) all "hide" views with 0 counts. The terms and links list tables don't support views (which they should, but that's another matter).
But, this is not really that big of a deal, so if the design feedback that has been requested doesn't come in time for this to land in 5.5, it can be punted.
#8
@
5 years ago
- Keywords needs-design-feedback removed
The Design Team discussed this [in Slack today]https://wordpress.slack.com/archives/C02S78ZAL/p1593708788256000. We're in agreement that the 0 count views should be hidden.
Comments list table displaying all status counts even with 0 items.