Conversation
| // Lean on the Query API parameters and the Blueprint API to | ||
| // create the new site. | ||
| const newUrl = new URL(window.location.href); | ||
| const defaultBlueprint = |
There was a problem hiding this comment.
We'll need to bring that over to the Blueprints gallery: https://github.com/WordPress/blueprints
There was a problem hiding this comment.
Yep, thanks. Waiting for the blueprint to be polished by @fellyph. I will move it there ASAP and update the URL here.
There was a problem hiding this comment.
yay, thank you for moving it!
|
Technically, that seems to be a good to load that Blueprint. I left one note about the origin. Also the failed |
|
This is a good start, thank you @zaerl! Here's a few things that stood out to me: Clicking "Learn more" loads the documentation site inside the Playground iframe. Let's give it Changing the WordPress version or the PHP version in the picker resets the content to the default empty WordPress site.
I understand why that happens technically, but it's a confusing user experience. At first I thought we could add a "load demo content" checkbox into that form, but the demo content doesn't look that good with older WordPress versions – I assume the default theme plays a big role in that:
I wonder what would be a useful thing to do here 🤔 cc @akirk @fellyph |
|
Thinking about this more, perhaps the |
|
#2468 will take care of opening external links in a new window. I think we're good to merge this one! I'll mark it as a breaking change since any private Playground deployment will now use that default Blueprint. It may or may not be a problem in practice – if it is, let's make it customizable during build. @fellyph any idea on how can we stay proactive and keep this Blueprint up to date with new WordPress releases without having to rely on our memory? It seems like we'll need to take manual action to update it when WordPress 6.9 is released. Perhaps we could start early and maintain a separate Blueprint for the beta / nightly release? |


Motivation for the change, related issues
See #2236
Set new default demo page if no other options are provided by the user and Playground is not running inside an
<iframe>.Set to https://raw.githubusercontent.com/fellyph/blueprints-demos/refs/heads/main/demos/blueprint-import-wxr.json for testing.
Implementation details
Testing Instructions (or ideally a Blueprint)
npm run devimport-*, a theme, a plugin on the URL. It should not openTry in an
iframe