non core block: layout-shell@div[data-bg-effect-name][data-has-ssr-src][data-image-info][data-motion-part]
Maintainer thường phản hồi trong vòng 1 ngày
Một pull request liên quan đã được merge.
- #4910 của @chubes4 — đã merge
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 35/100
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- PHP
- Star
- 25
- Fork
- 3
- Merge trung bình
- 2 giờ 20 phút
- Pull request đã merge (30 ngày)
- 934
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của Automattic/blocks-engine
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
Automattic/blocks-engine#4943 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
Automattic/blocks-engine#4942 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
Automattic/blocks-engine#4921 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Automattic/blocks-engine#775 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 28/100
Automattic/blocks-engine#5170 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của Automattic/blocks-engine
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
Maintainer thường phản hồi trong vòng 1 ngày
-
docs good first issue php
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 90/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Area: UI Priority: High Status: Available Type: Maintenance
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
Maintainer thường phản hồi trong vòng 1 ngày
-
fix(flexi-content): wrap editor aria-labels with i18nCó thể đã có người làm @Ankitavasudev đã nhận hôm nay. Đang mởfirst-timers-only focus: accessibility focus: blocks focus: i18n good first issue hacktoberfest help wanted type: bug up-for-grabs winter-of-code
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 90/100
noruzzamans/gslider-blocks#697 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100