Skip to content

Add classic-to-blocks command - #2789

Open
mtias wants to merge 1 commit into
trunkfrom
add/classic-to-blocks
Open

Add classic-to-blocks command#2789
mtias wants to merge 1 commit into
trunkfrom
add/classic-to-blocks

Conversation

@mtias

@mtias mtias commented Mar 12, 2026

Copy link
Copy Markdown
Member

Introduce a workflow to convert a classic WP theme into a block theme, ensuring the rendering is faithful to the original.

@wpmobilebot

wpmobilebot commented Mar 12, 2026

Copy link
Copy Markdown
Collaborator

📊 Performance Test Results

Comparing 65d4401 vs trunk

app-size

Metric trunk 65d4401 Diff Change
App Size (Mac) 1263.82 MB 1263.83 MB +0.00 MB ⚪ 0.0%

site-editor

Metric trunk 65d4401 Diff Change
load 1896 ms 1876 ms 20 ms ⚪ 0.0%

site-startup

Metric trunk 65d4401 Diff Change
siteCreation 8178 ms 8176 ms 2 ms ⚪ 0.0%
siteStartup 4828 ms 4835 ms +7 ms ⚪ 0.0%

Results are median values from multiple test runs.

Legend: 🟢 Improvement (faster) | 🔴 Regression (slower) | ⚪ No change (<50ms diff)

- **parts/header.html**: Header template part — must match the original header exactly (logo, navigation, any top bars).
- **parts/footer.html**: Footer template part — must match the original footer exactly.

### Conversion rules:

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.

Do you find this useful? I wonder if the LLM is capable of figuring these by itself?

@youknowriad
youknowriad force-pushed the add/classic-to-blocks branch from ded50ee to b1f028b Compare March 16, 2026 09:02
@youknowriad

Copy link
Copy Markdown
Contributor

In my test I ended up with a block theme with multiple HTML blocks instead of Core blocks. I wonder if we should address this or not. The command is a good start anyway.

@mtias

mtias commented Mar 17, 2026

Copy link
Copy Markdown
Member Author

@youknowriad yes, we should definitely iterate on it. I'm thinking we need a /html-to-blocks loop that can be invoked in many of these workflows.

@mtias
mtias force-pushed the add/classic-to-blocks branch from b1f028b to 65d4401 Compare April 6, 2026 09:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants