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 for Posts, Categories and Tags #62371

Open
1 of 5 tasks
youknowriad opened this issue Jun 6, 2024 · 6 comments
Open
1 of 5 tasks

DataViews for Posts, Categories and Tags #62371

youknowriad opened this issue Jun 6, 2024 · 6 comments
Labels
[Feature] Data Views Work surrounding upgrading and evolving views in the site editor and beyond [Feature] Posts/Tags/Categories Screen Bringing Data Views to Posts, Categories and Tags alongside their own Forms/Editors. Needs Design Needs design efforts. [Type] Tracking Issue Tactical breakdown of efforts across the codebase and/or tied to Overview issues.

Comments

@youknowriad
Copy link
Contributor

youknowriad commented Jun 6, 2024

Similarly to the pages, patterns and templates pages in the site editor, we should explore how we can leverage the same DataViews UIs, frame, editor, navigation... to power the Posts section of WP-Admin as part of the Admin redesign project.

There are a lot of challenges here:

  • Reusing the "pages" dataviews without duplicating all the code.
  • Reusing the site editor shell, navigation menus and routing logic
  • Generating forms for categories and tags creation and modification without necessarily creating custom code DataViews: Forms #59745
  • Extensibility DataViews: Extensibility #61084
  • Backward compatibility
  • Transition

There's a lot to cover and a lot of uncertainties, for these reasons, I'm proposing that we start a new experimental page in the Gutenberg plugin, where we explore a new page that could serve as a playground to explore these ideas and address all the blockers.

Task list:

  • Bootstrap a site-editor like shell Bootstrap the dashboard layout #62409
  • Add the "posts" dataviews page. (@ntsekouras)
  • Add the "categories" dataviews page.
  • Add the "tags" dataviews page.
  • Leverage DataViews forms to implement "Add new category" and "Add new tag" (and edit forms as well)
@youknowriad youknowriad added Needs Design Needs design efforts. [Type] Tracking Issue Tactical breakdown of efforts across the codebase and/or tied to Overview issues. [Feature] Data Views Work surrounding upgrading and evolving views in the site editor and beyond labels Jun 6, 2024
@fabiankaegy
Copy link
Member

Thank you for creating this and starting this work :)

I'm really excited about this one! As you mention there are many challenges / open questions. The main things for me are all focussed around what the rollout of the "Site Editor Frame" will mean to a lot of the other areas of the WordPress Admin.

Will this experimental posts screen display the old traditional WP left sidebar? Will it feature the admin bar? Admin notifications etc? Or will it replace the entire screen with the site editor like experience?

So essentially which of these three approaches are we going to take with this?

Table Only Content Area Only Entire Screen
CleanShot 2024-06-06 at 19 36 48@2x CleanShot 2024-06-06 at 19 36 48@2x copy CleanShot 2024-06-06 at 19 36 48@2x copy 2
@youknowriad
Copy link
Contributor Author

Or will it replace the entire screen with the site editor like experience?

This is how I was going to experiment initially. I'm happy to iterate on these things though as the design settles. Would love to have some mockups to base the initial work on but I'm not too concerned.

@youknowriad youknowriad added the [Feature] Posts/Tags/Categories Screen Bringing Data Views to Posts, Categories and Tags alongside their own Forms/Editors. label Jun 7, 2024
@youknowriad
Copy link
Contributor Author

I added some tasks to the issue for folks that want to help. Feel free to graph a task and give it a try.

@ntsekouras
Copy link
Contributor

I can try to do posts page for start.

@dannyreaktiv
Copy link

Hi, I'm really interested in these DataViews-powered pages.

Would there be a way to hook into the edit URL/action for the objects? (For example, to offer a custom edit React-based experience rather than the Block Editor)

@youknowriad
Copy link
Contributor Author

@dannyreaktiv Thanks for your interest. I think your use-case makes sense. I think it's fits more with the routing work / navigation customization and less about dataviews but it's definitely something that should be enabled. (Related issue #60584)

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 [Feature] Posts/Tags/Categories Screen Bringing Data Views to Posts, Categories and Tags alongside their own Forms/Editors. Needs Design Needs design efforts. [Type] Tracking Issue Tactical breakdown of efforts across the codebase and/or tied to Overview issues.
4 participants