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

Docs: Guide "WordPress Playground for Plugin Developers" #1664

Closed
juanmaguitar opened this issue Jul 31, 2024 · 9 comments
Closed

Docs: Guide "WordPress Playground for Plugin Developers" #1664

juanmaguitar opened this issue Jul 31, 2024 · 9 comments
Labels
[Type] Documentation Improvements or additions to documentation

Comments

@juanmaguitar
Copy link
Collaborator

juanmaguitar commented Jul 31, 2024

As part of #1602 there are plans to create a guides section where specific guides to tackle specific needs can be added to the docs.

Screenshot 2024-07-31 at 15 52 32

I think a "WordPress Playground for Plugins Developers" guide could be a good candidate. These are some of the initial ideas that I think could be included as guidance for plugin developers to leverage WordPress Playground for their work.

Playground for Plugin Developers

see blueprint.json
{
	"landingPage": "/wp-admin/post.php?post=1&action=edit",
	"steps": [
		{
			"step": "installPlugin",
			"pluginZipFile": {
			"resource": "url",
			"url": "https://raw.githubusercontent.com/WordPress/block-development-examples/deploy/zips/post-meta-modal-2502fb.zip"
			}
		},
		{
			"step": "login",
			"username": "admin",
			"password": "password"
		}
	]
}

Which key ideas should be reflected in this guide for Plugin Developers?
cc: @richtabor @ndiego @justintadlock @bph @ryanwelcher

@juanmaguitar juanmaguitar added the [Type] Documentation Improvements or additions to documentation label Jul 31, 2024
@juanmaguitar juanmaguitar changed the title Docs: Guide "WordPress Playground for Theme Developers" Docs: Guide "WordPress Playground for Plugin Developers" Jul 31, 2024
@richtabor
Copy link
Member

Some ideas/scenarios:

  • if my plugin has dependencies on other plugins.
  • if I have a plugin settings view or onboarding wizard I want to auto-redirect to.
  • if I have plugin options I want to configure ahead of time (like license keys/unlocking a "pro" demo).

@brandonpayton brandonpayton moved this from Inbox to Future work in Playground Board Jul 31, 2024
@bph
Copy link
Collaborator

bph commented Aug 1, 2024

The Blueprint Gallery has a few blueprints that should be beneficial for above scenarios:

@adamziel
Copy link
Collaborator

adamziel commented Aug 1, 2024

Here's a Playground-based plugin development workflow:

Plugin.dev.-.GitHub.integration.pull.update.export.PR.mp4

@adamziel
Copy link
Collaborator

adamziel commented Aug 1, 2024

Also the current Blueprints builder might be useful to mention until we have a block-based one:

Blueprints.builder.mp4

@adamziel
Copy link
Collaborator

adamziel commented Aug 1, 2024

Pull Request previews and GitHub proxy are also likely of interest here.

@adamziel
Copy link
Collaborator

adamziel commented Aug 1, 2024

@akirk built Blueprint building UI that makes building plugin previews easy. It would be great to showcase that, maybe have a video, and showcase how to put together a simple plugin preview.

@juanmaguitar
Copy link
Collaborator Author

Here's a Playground-based plugin development workflow:

@adamziel, is this option currently enabled (or is it working)?
I have tried this option in Brave (Chrome), Firefox, and Safari and this option is always disabled.

Screenshot 2024-08-09 at 11 28 24

@adamziel
Copy link
Collaborator

adamziel commented Aug 9, 2024

@juanmaguitar Chrome may be the only browser that supports it today. I know Brave is Chrome based, but I think you need Chrome specifically.

bgrgicak pushed a commit that referenced this issue Sep 12, 2024
As both #1664
and #1663
require info about how to provide content for a demo in Playground I
think it's best to create a separate guide with this topic that can be
referenced from these guides

This PR belong to a set of three guides that are meant to be published
together
- WordPress Playground for Theme Developers
#1732
- WordPress Playground for Plugin Developers
#1750
- Providing content for your demo
#1747
juanmaguitar added a commit that referenced this issue Sep 12, 2024
This PR addresses
#1664

This PR belong to a set of three guides that are meant to be published
together
- WordPress Playground for Theme Developers
#1732
- WordPress Playground for Plugin Developers
#1750
- Providing content for your demo
#1747

_Note: There was an older version of this PR at
#1745 that was
closed_

---------

Co-authored-by: Birgit Pauli-Haack <[email protected]>
@juanmaguitar
Copy link
Collaborator Author

Closing this issue as per #1747 and #1750

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Type] Documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

4 participants