Skip to content

Export reusable Blueprints from a site - #6180

Draft
richtabor wants to merge 1 commit into
trunkfrom
add-reusable-blueprint-export
Draft

richtabor wants to merge 1 commit into
trunkfrom
add-reusable-blueprint-export

Conversation

@richtabor

Copy link
Copy Markdown
Contributor

Related issues

Related to #1875. Explores a portable-recipe alternative to #5864.

How AI was used in this PR

Codex implemented this prototype and ran the checks below at Rich's direction. The approach and implementation need human review.

Proposed Changes

A site designer can export a reusable Blueprint from WordPress Studio and use it to create a fresh site with the design, published starter content, and referenced media. The bundle is a WordPress Blueprint recipe: it does not carry the source site's database, user accounts, or connections. It includes active block themes, Site Editor templates and styles, navigation, and active WordPress.org plugins. Simple and variable WooCommerce products and common product settings are supported.

This is a draft proof of concept across the CLI, desktop IPC, and browser connector. It currently requires a block theme and WordPress.org-hosted plugins. To avoid silently losing content or design, it refuses sites with installed Font Library fonts, unsupported published post types, or downloadable products. Drafts, comments, and most plugin settings are excluded. The bundle's author and description need review before a library submission; submission to the library has not been tested.

Testing Instructions

  1. Create a site using a block theme; add a published page, image, and navigation. Open its site menu and select Export → Export Blueprint.
  2. Create a new WordPress Studio site from the ZIP through Add site → Import. Confirm the page, image, navigation, and design are present, with a new database and admin account.
  3. For a store fixture, add a simple and a variable WooCommerce product and confirm their prices and variations in the new site. Try a site with an unsupported published content type or an installed Font Library font and confirm export fails without overwriting the destination.

Validation: the CLI round-trip suite passed for running and stopped sites, including child themes, images, navigation, custom CSS, simple and variable products, privacy markers, and unsupported-content failures. A generated bundle was also installed in WordPress Playground. The export menu was checked in the desktop and browser builds in light and dark, and keyboard navigation was checked in the browser. The native desktop save dialog and a library submission have not been exercised end to end. npm run typecheck, npm run knip, modified-file lint/format checks, and 258 targeted UI tests passed.

Screenshots

Before After
Light Export menu before, light Export menu after, light
Dark Export menu before, dark Export menu after, dark

Pre-merge Checklist

  • Have you checked for TypeScript, React or other console errors?

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Auto-approved: richtabor is a trusted author.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant