WordPress.org

Make WordPress Core

Opened 2 months ago

Last modified 2 days ago

#49715 assigned enhancement

Alternate views for WP List Tables

Reported by: joedolson Owned by: audrasjb
Milestone: 5.5 Priority: normal
Severity: normal Version:
Component: Administration Keywords: has-patch needs-testing dev-feedback 2nd-opinion
Focuses: ui, accessibility Cc:

Description

Currently, the WP List Table supports two views: default and "excerpts". This distinction is confusing and doesn't easily allow for other differences between the two views.

As a way to create more flexibility in WP List Tables, we'd like to implement mechanisms for users to choose different views, similar to what's found in Gmail, e.g.: Compact, Default, Comfortable.

This would give us a lot more flexibility in being able to resolve issues where conflicts arise between design, space, and accessibility, because we could offer views where everything is spelled out in a spacious way and also views where information is more compact. As long as the user is able to choose a persistent view that gives them all the information they need, the alternate views can use designs that disclose less detail.

Example tickets that would be impacted include:

#48751
#32170
#35391

Attachments (4)

49715.diff (5.8 KB) - added by audrasjb 2 weeks ago.
First pass: Allow user to switch between Compact (default) and Extended modes for posts types list tables
Capture d’écran 2020-05-15 à 01.28.29.png (183.1 KB) - added by audrasjb 2 weeks ago.
49715.diff – "extended" mode displays excerpt (proposal) and row actions (not hidden for better accessibility)
49715.1.diff (8.0 KB) - added by audrasjb 7 days ago.
Add compact/extended view support for comments
49715.2.diff (8.7 KB) - added by audrasjb 7 days ago.
Provide alternate table views (compact/extended) for Posts, users, media and comments screens

Download all attachments as: .zip

Change History (18)

This ticket was mentioned in Slack in #accessibility by joedolson. View the logs.


2 months ago

This ticket was mentioned in Slack in #accessibility by joedolson. View the logs.


7 weeks ago

This ticket was mentioned in Slack in #core by audrasjb. View the logs.


6 weeks ago

This ticket was mentioned in Slack in #accessibility by nrqsnchz. View the logs.


6 weeks ago

This ticket was mentioned in Slack in #accessibility by afercia. View the logs.


5 weeks ago

#6 @afercia
5 weeks ago

  • Milestone changed from Awaiting Review to 5.5
  • Owner set to audrasjb

This ticket was mentioned in Slack in #accessibility by afercia. View the logs.


3 weeks ago

@audrasjb
2 weeks ago

First pass: Allow user to switch between Compact (default) and Extended modes for posts types list tables

@audrasjb
2 weeks ago

49715.diff – "extended" mode displays excerpt (proposal) and row actions (not hidden for better accessibility)

#8 @audrasjb
2 weeks ago

  • Keywords has-patch needs-refresh needs-testing dev-feedback 2nd-opinion needs-design-feedback added

49715.diff is a first pass:

  • it replaces default list mode with compact mode. I didn't change list value for better backward compatibility, so it's only a wording change.
  • it replaces optional excerpt mode with extended mode. I added some code to handle user settings migration.
  • when selected, extended mode displays post excerpt (it's a proposal, I'm not sure we want to display excerpts at all) and row actions (not hidden for better accessibility).

Todo:

  • Same for taxonomy terms
  • Same for users
  • Same for media
  • Check multisite/network related screens

This ticket was mentioned in Slack in #accessibility by afercia. View the logs.


13 days ago

@audrasjb
7 days ago

Add compact/extended view support for comments

@audrasjb
7 days ago

Provide alternate table views (compact/extended) for Posts, users, media and comments screens

#10 @audrasjb
7 days ago

  • Keywords needs-refresh needs-design-feedback removed

49715.2.diff provides alternate table views (compact/extended) for Posts, users, media and comments screens.

Former list (default) and excerpt views are replaced with compact (by default) and extended views. Users can switch from one view to another using screen options.

#11 @audrasjb
7 days ago

Note: we still need to add multisite support, but I'd like to get a review of the current workaround before moving forward on this :)

This ticket was mentioned in Slack in #accessibility by audrasjb. View the logs.


6 days ago

#13 @afercia
2 days ago

Thanks @audrasjb for the patches! Looking into 49715.2.diff I noticed a few things worth discussing in the next weekly accessibility meeting:

  • Related to #48751, my understanding is that the proposal was to make the "row actions" visible by default. Instead, with this patch they're visible in the non-default view.
  • I see the same user setting is used for all the various tables e.g. Posts, Comments, Users. What is users want to set a different view for each table? Should a specific user setting be provided for each table?
  • Minor: there are a few PHPCS issues to fix, mainly related to alignments.

Provide alternate table views (compact/extended) for Posts, users, media and comments screens

I can't see changes in the media table :)

#14 @afercia
2 days ago

One more thing: worth considering to make these table views useful for plugins and expose a CSS class on the table element. Something like table-view-{mode} may work.

For the future, maybe consider to add a filter to extend / manipulate the modes.

Note: See TracTickets for help on using tickets.