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

Set up WordPress.org Preview #13516

Closed
swissspidy opened this issue Nov 28, 2023 · 3 comments · Fixed by #13728
Closed

Set up WordPress.org Preview #13516

swissspidy opened this issue Nov 28, 2023 · 3 comments · Fixed by #13728
Labels
P2 Should do soon Type: Task Tasks which do not involve engineering

Comments

@swissspidy
Copy link
Collaborator

swissspidy commented Nov 28, 2023

Task Description

See https://make.wordpress.org/meta/2023/11/22/plugin-directory-preview-button-revisited/ for context.

Need a custom blueprint including kitchen-sink to configure the demo.

A starting point:

{
  "$schema": "https://playground.wordpress.net/blueprint-schema.json",
  "landingPage": "\/wp-admin\/edit.php?post_type=web-story&page=stories-dashboard",
  "phpExtensionBundles": [
    "kitchen-sink"
  ],
  "steps": [
    {
      "step": "login",
      "username": "admin",
      "password": "password"
    },
    {
      "step": "installPlugin",
      "pluginZipFile": {
        "resource": "wordpress.org\/plugins",
        "slug": "web-stories"
      },
    },
    {
      "step": "setSiteOptions",
      "options": {
          "permalink_structure": "/%postname%/"
      }
    },
  ]
}

Example: https://playground.wordpress.net/?plugin=web-stories&php-extension-bundle=kitchen-sink

Possible UX blocker:

@swissspidy swissspidy added Type: Task Tasks which do not involve engineering P3 Nice to have labels Nov 28, 2023
swissspidy added a commit that referenced this issue Nov 28, 2023
@swissspidy
Copy link
Collaborator Author

swissspidy commented Apr 10, 2024

Proposed blueprint from the directory:

{
    "landingPage": "\/wp-admin\/plugins.php",
    "preferredVersions": {
        "php": "8.0",
        "wp": "latest"
    },
    "phpExtensionBundles": [
        "kitchen-sink"
    ],
    "features": {
        "networking": true
    },
    "steps": [
        {
            "step": "installPlugin",
            "pluginZipFile": {
                "resource": "url",
                "url": "https:\/\/downloads.wordpress.org\/plugin\/web-stories.latest-stable.zip"
            },
            "options": {
                "activate": true
            }
        },
        {
            "step": "login",
            "username": "admin",
            "password": "password"
        }
    ]
}

@swissspidy
Copy link
Collaborator Author

@Swanand01 This one would be a low hanging fruit to pick. We can add a blueprint to our .WordPress-org folder and then I can deploy it to the repo.

The above POC probably needs some updating as the format might have changed in the meantime

@swissspidy swissspidy added P2 Should do soon and removed P3 Nice to have labels Jun 17, 2024
@Swanand01
Copy link
Collaborator

The proposed blueprint already seems to work without any changes, I checked it in the Playground.

I'll go ahead and raise a PR for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P2 Should do soon Type: Task Tasks which do not involve engineering
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants