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

Added blueprint for showcasing custom plugin #57

Open
wants to merge 9 commits into
base: trunk
Choose a base branch
from

Conversation

Lovor01
Copy link

@Lovor01 Lovor01 commented Jun 21, 2024

This is more elaborate example, which shows how to upload media files, plugin and theme from own server and how to set the basic starting options to showcase plugin. WXR is used for importing content. There is also a readme file with explanations.

Copy link

Test using WordPress Playground

The changes in this pull request can previewed and tested using a WordPress Playground instance.

WordPress Playground is an experimental project that creates a full WordPress instance entirely within the browser.

Some things to be aware of

  • The Plugin and Theme Directories cannot be accessed within Playground.
  • All changes will be lost when closing a tab with a Playground instance.
  • All changes will be lost when refreshing the page.
  • A fresh instance is created each time the link below is clicked.
  • Every time this pull request is updated, a new ZIP file containing all changes is created. If changes are not reflected in the Playground instance,
    it's possible that the most recent build failed, or has not completed. Check the list of workflow runs to be sure.

For more details about these limitations and more, check out the Limitations page in the WordPress Playground documentation.

Test this pull request with WordPress Playground.

"step": "installPlugin",
"pluginZipFile": {
"resource": "url",
"url": "https://makeiteasypopup.makeiteasy.hr/makeiteasy-popup.zip"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it be possible to use paths from this GitHub repo or at least WordPress.org?

In case something changes with the domain, we would still like for the blueprint to work.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, I'll rewrite blueprint as soon as I can.

@bph
Copy link
Collaborator

bph commented Oct 28, 2024

@Lovor01 Let me know how we can help getting your blueprint into the gallery. Are there any blockers (apart from time) we can assist you with?

@Lovor01
Copy link
Author

Lovor01 commented Oct 28, 2024

Birgit, thank you for bringing this up. There are no other blockers, except my time. I will try to make this priority and finish this week.

@Lovor01
Copy link
Author

Lovor01 commented Oct 28, 2024

I updated blueprints and uploaded required files, it should work now with github hosted files. I also improved readme file to instruct reader how he can replicate and modify this solution for his needs. Please let me know if anything else is a problem to merge this.

@bgrgicak
Copy link
Contributor

@Lovor01 Sorry for waiting on a review for so long.

The PR looks good to me, it's just missing the meta data in the Blueprint which is required to display it correctly in the Gallery.

@Lovor01
Copy link
Author

Lovor01 commented Nov 23, 2024

I added meta data; I was not aware of it, since I didn't find info about it in wordpress playground docs, I found info only in "contributing" markdown file in blueprints directory. If info really does not exist in docs, I suggest adding it.

Copy link
Contributor

@bgrgicak bgrgicak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Lovor01 I left a few comments related to the meta data.

I also noticed that the Blueprint doesn't work because the URLs point to https://raw.githubusercontent.com/wordpress/blueprints/trunk/... and these paths don't exist.
Could you please update the paths to point to your fork?
For example

https://raw.githubusercontent.com/WordPress/blueprints/trunk/blueprints/showcase-plugin-with-media/assets/2024.zip

to

https://raw.githubusercontent.com/Lovor01/blueprints/trunk/blueprints/showcase-plugin-with-media/assets/2024.zip

"meta": {
"title": "Showcase plugin",
"description": "Offer full demo of plugin with media included",
"author": "lovor",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The author maps to the GitHub username.

Suggested change
"author": "lovor",
"author": "Lovor01",

{
"$schema": "https://playground.wordpress.net/blueprint-schema.json",
"meta": {
"title": "Showcase plugin",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Lovor01 the metadata will be used to display the Blueprint title and description, so it would be worth using something more descriptive like you did in the readme.

Suggested change
"title": "Showcase plugin",
"title": "Showcase custom plugin from own server with media files and custom theme",

"$schema": "https://playground.wordpress.net/blueprint-schema.json",
"meta": {
"title": "Showcase plugin",
"description": "Offer full demo of plugin with media included",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Lovor01 what would be a better description here? You can see here how the Blueprint is shown in the gallery.

Screenshot 2024-12-04 at 08 27 38

@@ -0,0 +1,33 @@
# Showcase custom plugin from own server with media files and custom theme
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Blueprints in the Gallery usually don't have readmes, we store the description in the Blueprint.

Copy link
Contributor

@bgrgicak bgrgicak Dec 4, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm wondering what added value a readme could provide and how users could discover it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Needs review
Development

Successfully merging this pull request may close these issues.

4 participants