non core block: layout-shell@div[data-bg-effect-name][data-has-ssr-src][data-image-info][data-motion-part]
Maintainers usually reply within 1 day
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
Research direction
Start with the PHP transformer in the blocks-engine checkout and reproduce the finding using the reduced page and predicate command in the issue. Trace how the wow-image element is transformed and identify a core-block representation that preserves its rendering. The issue considers the defect fixed when the page uses core blocks and renders with pixel parity; the collateral gate is referenced as emits.mjs and gates/collateral.mjs.
Written by the indexing model from the issue text.
Description
Finding
editability/non_core_block on layout-shell@div[data-bg-effect-name][data-has-ssr-src][data-image-info][data-motion-part], seen in 2 route/width cell(s) of an imported site:
| route | width | evidence |
|---|---|---|
/about/ |
1440 | {"route":"/about/","count":3,"of":129} |
/ |
1440 | {"route":"/","count":1,"of":339} |
Reduced page (507 bytes)
Reduced from 448939 bytes in 88 predicate calls.
<!DOCTYPE html><html><head></head><body><wow-image data-image-info="{"displayMode":"fit","imageData":{"width":138,"height":26,"uri":"/media/c837a6_1f682fef9fae4fe6974f26e1d8173148-mv2.png","name":"logo","displayMode":"fit"}}" data-motion-part="BG_IMG undefined" data-bg-effect-name="" data-has-ssr-src=""><img src="/media/c837a6_1f682fef9fae4fe6974f26e1d8173148-mv2.png"></wow-image></body></html>
Reproduce
The predicate exits 0 while the defect reproduces (checked against blocks-engine trunk a06112e4). Run it from a static-site-importer checkout at 8b698851, with the reduced page saved as reduced.html:
PREDICATE_TARGET='{"subject":"layout-shell@div[data-bg-effect-name][data-has-ssr-src][data-image-info][data-motion-part]","route":"/about/","width":1440,"evidence":{"route":"/about/","count":3,"of":129}}' \
WORDPRESS_PATH=<wordpress with static-site-importer active> WP_CLI='studio wp' \
node tools/import-loop/predicates/non_core_block.mjs <blocks-engine>/php-transformer reduced.html
predicates/non_core_block.mjs
// Exit 0 while the Blocks Engine output of a page still emits the generated
// block <prefix>/<subject>, a block outside WordPress core. An editor can only
// change its structure through the importer's own block, not with core tools.
// The defect is gone when the same content is built from core blocks and the
// page renders exactly as before; the acceptance gate holds the whole import to
// pixel parity (see emits.mjs, gates/collateral.mjs).
import { exitWhileEmitted } from './emits.mjs';
exitWhileEmitted();
Loop signature: 8d00ff44daea
AI disclosure: filed by the static-site import findings loop (Homeboy workflow on the Lab). The finding, reduction, and body are generated by deterministic scripts; Claude (Anthropic) wrote those scripts with Chris Huber.
- Dominant language
- PHP
- Stars
- 25
- Forks
- 3
- Avg merge
- 2h 29m
- Merged PRs (30d)
- 931
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Automattic/blocks-engine
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Automattic/blocks-engine#4874 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 79/100
Automattic/blocks-engine#4836 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Automattic/blocks-engine#775 ·
Maintainers usually reply within 1 day
-
Shared-chrome CSS factoring merges device-document stylesheets, so phones render the desktop widthOpen
Difficulty 4/5 3-5 days Newbie friendliness 48/100
Automattic/blocks-engine#4894 ·
Maintainers usually reply within 1 day
-
non core block: layout-shell@a[data-testid][href][target]Possibly taken A pull request linked to this issue is open or already merged. Open
Difficulty 4/5 3-5 days Newbie friendliness 46/100
Automattic/blocks-engine#4888 ·
Maintainers usually reply within 1 day
All issues in Automattic/blocks-engine
Similar issues
-
sync-en
Difficulty 1/5 1-3 hours Newbie friendliness 84/100
Maintainers usually reply within 1 day
-
sync-en
Difficulty 1/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 83/100
GSA/digital-gov-drupal#569 ·
Maintainers usually reply within 2 days
-
feature-request-triage
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
Codeinwp/wp-menu-icons#360 ·
-
[Type] Bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 5 days