Opened 7 months ago
Last modified 5 months ago
#7487 new enhancement
Feature to help plugin developers create blueprints for previews
Reported by: | tellyworth | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Component: | Plugin Directory | Keywords: | |
Cc: |
Description
We should encourage plugin developers to create blueprint files for their plugins, so as to enable the Live Preview button (see #7251).
A simple starting point for this would be to create a tool that will automatically generate a blueprint.json file. The plugin developer can then download the json file, make any necessary changes, and commit it to the assets folder (as described in https://make.wordpress.org/meta/2023/11/22/plugin-directory-preview-button-revisited/).
Further improvements on this are easy to imagine, but I would propose starting simply and then iterating.
Attachments (7)
Change History (14)
@
7 months ago
Screenshot showing the Test In Playground and Download Blueprint buttons added by the draft patch. These are only visible for a plugin's authors, and only when the plugin does not already have a published blueprint.json for previews.
@
6 months ago
The new patch uses a different UX. Instead of a simple button, a notification is displayed to plugin authors/committers with explicit instructions to test the sample blueprint and download a copy to commit to their assets folder.
@
6 months ago
Screenshot showing the .3.diff version. This has a dismiss button, and improved styling of the notice.
#1
@
6 months ago
Minor tweaks in the .4.diff patch:
- Capitalize the Dismiss button
- Make dismissal permanent
- Use pretty printing when generating the blueprint
Note that the permanent Dismiss button will need some further revision, since there should be some way to undo that or remind the developer again in future.
This ticket was mentioned in Slack in #meta by courtneyengle. View the logs.
6 months ago
#5
@
6 months ago
Surfacing this Blueprints v2 spec conversation here: https://github.com/WordPress/blueprints/issues/6
It won't come together for a few more weeks or months and even then v1 will continue to work. I just wanted to make sure everyone here is aware.
#6
@
6 months ago
This issue was reported about the new page: https://github.com/WordPress/wordpress-playground/issues/1110
Initial draft patch for discussion and review