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

Blueprint meta: Add "More Information" type field #43

Open
flexseth opened this issue Apr 26, 2024 · 4 comments
Open

Blueprint meta: Add "More Information" type field #43

flexseth opened this issue Apr 26, 2024 · 4 comments

Comments

@flexseth
Copy link

flexseth commented Apr 26, 2024

Recently I was working on a Blueprint from the Gallery, and wasn't sure if I had changed the code or if something wasn't working correctly. If there was a link to more info about the blueprint, that would be helpful!

Suggesting a new meta value, name TBD. Currently the standard is lowercase..

  • url
  • link
  • blueprint-url
  • blueprint-URI
  • more-info
  • origin

The source of truth and more information about the blueprint.

The URL could link to part of a repository for more info or a raw blueprint.json file (for simpler blueprints)


Sample

Run unit, accessibility, and theme review tests

"meta": {
        "title": "Theme Ready",
        "description": "Runs all theme tests and reports back",
        "author": "WP.org Themes Team",
        "categories": [
          "themes",
          "content"
        ],
        "link": "themetest.playground.wordpress.net"
      }, 
"steps": {
      ...
}

Where themetest.playground.wordpress.net provides more information about what the blueprint does

@flexseth flexseth changed the title Blueprint meta: Add Blueprint URL field (link to source of truth) Apr 26, 2024
@adamziel
Copy link
Contributor

Where themetest.playground.wordpress.net provides more information about what the blueprint does

what information could it provide beyond what’s in the meta section?

@flexseth
Copy link
Author

flexseth commented May 5, 2024

Essentially I was thinking about a "More information" type field...

Use case

Let's say you found a Blueprint somewhere and want to work on it. You copy the code, do some modifications, but for some reason forget where the blueprint came from (this actually happened to me)

Having somewhat of a canonical link to the blueprint - where did it come from - would be a way to get back to more info on the steps provided. As blueprints grow in complexity, I'm just envisioning users wanting to know more about the steps involved. IE:

  • do I need this step?
  • What does this step do?
  • OH! OK, it downloads a custom plugin as a .zip file from GitHub...
  • and installs it - aha!

Blueprints documentation

Ideally, blueprint authors would find some way to document what the steps actually do, so if someone wanted to do something similar, they wouldn't have too much trouble.

Similar to the Plugin URI header field for plugins

Plugin URI: The home page of the plugin, which should be a unique URL, preferably on your own website. This must be unique to your plugin. You cannot use a WordPress.org URL here.

Thinking of those who are new to blueprints, giving a trail of breadcrumbs back to where they came from.

(Could be a GitHub repo)

... more info on Plugin Headers

Notes from my findings on possible structure for the new meta

@flexseth flexseth changed the title Blueprint meta: Add Blueprint URL field May 5, 2024
@flexseth flexseth changed the title Blueprint meta: Add Blueprint "More Information" type field May 5, 2024
@ironnysh
Copy link
Collaborator

ironnysh commented May 6, 2024

That's basically an extension of the discussion we had in issue #3 🙂

@flexseth
Copy link
Author

Maybe a link meta field?

link: Canonical link to the blueprint design, more information, or the actual blueprint JSON file.

Description: A link to a GitHub repo (README), link to a raw JSON file on someone's website, or a link to a full description about what the blueprint does, etc.

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