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

Add WordPress Playground blueprint #78

Merged
merged 7 commits into from
Sep 23, 2024
Merged

Conversation

chriszarate
Copy link
Member

@chriszarate chriszarate commented Sep 19, 2024

This adds a working blueprint for WordPress Playground. This is not an alternative dev environment, since Playground still does not support cURL transport, object cache, etc. But it is a useful way to explore the capabilities of the plugin.

Try it with this link, which points to the blueprint.json in this PR:

https://playground.wordpress.net/?blueprint-url=https://raw.githubusercontent.com/Automattic/remote-data-blocks/8110ff9b3ed36823935bcfccabf0510c9a665051/blueprint.json

It works via #75, which ships a static example API that does not rely on HTTP transport. A single Remote Data Block is available, "Conference Event":

Screen.Recording.2024-09-19.at.15.32.48.mov

"pluginZipFile": {
"caption": "Installing Remote Data Blocks",
"resource": "url",
"url": "https://github-proxy.com/proxy/?repo=Automattic/remote-data-blocks&release=ae7f58e&asset=remote-data-blocks.zip"
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
"url": "https://github-proxy.com/proxy/?repo=Automattic/remote-data-blocks&release=ae7f58e&asset=remote-data-blocks.zip"
"url": "https://github-proxy.com/proxy/?repo=Automattic/remote-data-blocks&release=latest&asset=remote-data-blocks.zip"

Copy link
Member Author

Choose a reason for hiding this comment

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

I wish, doesn't work

Copy link
Contributor

Choose a reason for hiding this comment

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

Hmm... thought @stoph was using that somewhere.

Copy link
Member

Choose a reason for hiding this comment

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

It's working for me, able to download the zip file with latest in the url.

Copy link
Member Author

Choose a reason for hiding this comment

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

@mehmoodak But is the downloaded file non-empty or unzippable? I think @stoph was working on a fix.

Copy link
Member

Choose a reason for hiding this comment

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

It's empty 😓

@mhsdef
Copy link
Contributor

mhsdef commented Sep 19, 2024

maybe worth tossing a step to set the site title to something non-generic? (in case of multiple open windows, for example)

{
      "step": "setSiteOptions",
      "options": {
        "blogname": "Remote Data Blocks"
      }
}

@chriszarate chriszarate merged commit e5e8bba into trunk Sep 23, 2024
9 checks passed
@chriszarate chriszarate deleted the add/wp-playground-blueprint branch September 23, 2024 17:39
@jarekmorawski
Copy link

Thanks for making this happen! I can't seem to get the resources to load; it's stuck at Loading.... Is that expected?

image

@mehmoodak
Copy link
Member

@jarekmorawski is this happening on a particular remote block or all remote blocks?

@chriszarate
Copy link
Member Author

I synced quickly with Jarek, the issue happens when editing content via the Site Editor as opposed to the regular post editor. Will investigate

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

Successfully merging this pull request may close these issues.

4 participants