Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DataViews component #55083

Open
youknowriad opened this issue Oct 5, 2023 · 20 comments
Open

DataViews component #55083

youknowriad opened this issue Oct 5, 2023 · 20 comments
Labels
[Feature] Data Views Work surrounding upgrading and evolving views in the site editor and beyond [Type] Overview Comprehensive, high level view of an area of focus often with multiple tracking issues

Comments

@youknowriad
Copy link
Contributor

youknowriad commented Oct 5, 2023

In light of the discussions in #53233 and #50430 it became clear that we need to work new powerful views, that support several features:

  • Rendering table layouts to show posts, pages, templates,.. CPTs.
  • Rendering grid/gallery layouts to show the same entities (or other entities, think patterns, media) in a Grid format.
  • Allow a high level of customizations: Filtering, searching, pagination, grouping, sorting, hiding and showing fields/columns...
  • Allow actions and bulk actions.
  • Potentially allow users to create and save custom views.
  • Potentially allow users to edit data/content inline.
  • Potentially allow users to create new fields inline.
  • Offer strong extensibility APIs for plugins to be able to customize everything: adding new layouts, adding new fields, hiding/showing fields, adding actions and bulk actions.
  • Potentially have the ability to offer the same kind of views for frontend (new connected blocks with filtering/customization capabilities)

We might not get to everything right away but I'm creating this issue to track and coordinate the initial steps (non exhaustive) for this ambitious undertaking.

Iterations

WordPress 6.5

Stable:

  • "Side Editor > Pages > Manage all pages": table and grid layouts + default views in the sidebar.
  • "Site Editor > Templates > Manage all templates": table and grid layouts + default views in the sidebar.
  • "Site Editor > Patterns": grid layout.
  • "Site Editor > Patterns > Manage all template parts" : table and grid layouts + default views in the sidebar.

Experimental (enable the "new admin views" experiment with the Gutenberg plugin active):

  • "Side Editor > Pages > Manage all pages": has also list layout + custom views in the sidebar.
  • "Site Editor > Templates > Manage all templates": has also list layout.
  • "Site Editor > Patterns > Manage all template parts" : has also list layout.
Task list

DataViews component

A11y

Bugs

Related

Site Editor

Sidebar
Pages
Templates
Patterns
Template parts

WordPress 6.6

Goals #59659:

  • "Site Editor > Pages": use dataviews with list layout by default.
  • "Site Editor > Templates": use dataviews with grid layout by default.
  • "Site Editor > Patterns": add table layout + consolidate patterns & template parts.

The focus for the DataViews package is making the list layout stable as well as polishing every interaction and APIs to support the above goals.

Backlog

See also issues and PRs tagged with the [Feature] Data Views label.

Layout API

Field API

  • Refactor to allow rendering to be generated using a field type.
  • Defining the API for field and field types registration.
  • Data view: Custom field creation #55102
  • Handle better when/how we render the Placeholder in grid view. If the field needs to provide a component that uses hooks etc.., the actual field could render nothing, but the mediaField?.rendercall would return a React element. Currently we only check for null.

Other components:

@youknowriad youknowriad added the [Type] Overview Comprehensive, high level view of an area of focus often with multiple tracking issues label Oct 5, 2023
@annezazu annezazu added the [Feature] Data Views Work surrounding upgrading and evolving views in the site editor and beyond label Oct 9, 2023
@oandregal
Copy link
Member

For the 6.6 iteration, the whole of the activity is happening elsewhere.

For example, #59659 tracks migrating all index pages to use DataViews (which was listed here in the 6.5 cycle), tracking tasks for components (filters, bulk actions, etc.), and other related efforts, such as #59689.

I've updated this issue description for 6.6 to reflect the major areas of the DataViews component, leaving any other thing out, as they already have their own tracking issue.

@oandregal oandregal changed the title DataViews: Improve all the table and list views in the site editor and further DataViews component Apr 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Data Views Work surrounding upgrading and evolving views in the site editor and beyond [Type] Overview Comprehensive, high level view of an area of focus often with multiple tracking issues
Projects
None yet
Development

No branches or pull requests

5 participants