developer-blog-content icon indicating copy to clipboard operation
developer-blog-content copied to clipboard

Using Data Views in your plugin/preparing for the future

Open bph opened this issue 1 year ago • 1 comments

Discussed in https://github.com/WordPress/developer-blog-content/discussions/232

Originally posted by annezazu March 4, 2024 With Data Views making its first entry into the WordPress sphere in 6.5 in a fairly contained way, it feels like a good time to start talking about what's to come and ensuring plugin authors can start reusing what's being done in Core to level up their own designs/flows. I think this would make for a good developer blog post perhaps going through what's available in core, how to follow along, and what components are available to use.

bph avatar Jun 07 '24 16:06 bph

@juanmaguitar with the creation of the issue, only the description came over from the discussion. Please refer to the discussion for additional comment on the topic

  • #232

bph avatar Jun 07 '24 16:06 bph

I'm currently working on this blog post. This project is the foundation of the one I plan to explain in the blog post.

juanmaguitar avatar Aug 07 '24 14:08 juanmaguitar

I'm working on the draft here: https://docs.google.com/document/d/1BwsiVbo1T46KYpb0N-dCV0y3REC0_YFKNH3D0yPo8Cs/edit

(still not ready for review)

juanmaguitar avatar Aug 16 '24 13:08 juanmaguitar

The draft is ready for a first review: https://docs.google.com/document/d/1BwsiVbo1T46KYpb0N-dCV0y3REC0_YFKNH3D0yPo8Cs/edit

juanmaguitar avatar Aug 22 '24 15:08 juanmaguitar

I'll do a drive-by in a few hours!

marybaum avatar Aug 22 '24 18:08 marybaum

I added quite a few comments but ran out of steam (it's a long one!). There's feedback from @marybaum and @eidolonnight in the doc too, but I'll wait for one of them to wrap up editing before moving to the next step.

Overall, I'm really excited about getting this published on the Dev Blog!

justintadlock avatar Aug 22 '24 21:08 justintadlock

I did want to point out one thing that was inconsistent throughout the article: When referring to "Data Views," I believe there are two ways you'll want to spell it, depending on the context.

When talking about the feature, I'd refer to it as "Data Views."

When specifically talking about the component (the code), I'd refer to it as DataViews.

Data Views, DataViews, Dataviews, and Dataview were all used at different points and in different contexts. It would help to bring consistency to it.

justintadlock avatar Aug 22 '24 21:08 justintadlock

Done! With copious explanations—read or not, as you like.

marybaum avatar Aug 22 '24 21:08 marybaum

Thanks, @eidolonnight @marybaum and @justintadlock, for the review and the feedback. I have done a revision of the article taking all the feedback received into account. The article is ready for another review: https://docs.google.com/document/d/1BwsiVbo1T46KYpb0N-dCV0y3REC0_YFKNH3D0yPo8Cs/edit#heading=h.vof9d4754tud

juanmaguitar avatar Aug 23 '24 14:08 juanmaguitar

When talking about the feature, I'd refer to it as "Data Views." When specifically talking about the component (the code), I'd refer to it as DataViews.

I have reviewed the code to address this. I think I've changed all references to DataViews (or Data Views) to be consistent but I'll do another check before the article is published.

juanmaguitar avatar Aug 23 '24 14:08 juanmaguitar

Looks good! I did just catch one extra comma between a subject and verb, and added a missing full stop at the end of a sentence.

marybaum avatar Aug 23 '24 16:08 marybaum

@juanmaguitar seems you are getting ready to publish your first post on the Developer Blog. I am so excited!

Here are your checklist for this last step :-)

Pre-publishing checklist:

  • [x] Post Title and subheaders in sentence case
  • [x] Are Category or Categories selected?
  • [x] Are Tags identifies?
  • [x] Is there an explicit Excerpt?
  • [x] Are all images files uploaded to the media library
  • [x] Do all images have an alt-text?
  • [x] For TOC us the Pattern under Developer Blog > Table of contents
  • [x] Assign or upload a featured image
  • [x] Props added? (See Guidelines)
  • [x] add copy for a social post as comment to this issue (example) 🙌 Publish! 📗

Post-publishing checklist

  • [x] add Props for reviews to #props channel in WP Slack (Example) (use Slack handles)
  • [x] Add the label "post to social" to the issue
  • [x] close the issue with a comment to link to the published post
  • [x] close the accompanying discussion with the link to the published post.

bph avatar Aug 27 '24 08:08 bph

Social copy:

Learn how to create a React app in the admin UI using a plugin that displays and interacts with data through the DataViews WordPress component.

juanmaguitar avatar Aug 27 '24 12:08 juanmaguitar

Post published! https://developer.wordpress.org/news/2024/08/27/using-data-views-to-display-and-interact-with-data-in-plugins/

juanmaguitar avatar Aug 27 '24 12:08 juanmaguitar

Scheduled for social on September 3.

justintadlock avatar Sep 02 '24 20:09 justintadlock