Carry interleaved prose between sign-in controls when lowering to core/loginout
Maintainer thường phản hồi trong vòng 1 ngày
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 82/100
Hướng nghiên cứu
Bắt đầu với LoginBlockConverter và trường hợp secondary buttons trong tests/unit/login-form-native-loginout.php. Theo dõi cách xử lý văn bản giữa nút gửi và các điều khiển phụ, sau đó cập nhật trường hợp để mong đợi core/loginout, core/paragraph chứa “Or” và các khối core/buttons tương ứng theo thứ tự trong mã nguồn. Hoàn tất khi đầu ra hợp lệ với Gutenberg và trường hợp kiểm thử chạy thành công.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Follow-up to #5643 / #5654.
Finding
LoginBlockConverter now lowers a plain sign-in form with handler-free secondary type="button" controls to core/group > core/loginout + core/buttons. Visible prose between the submit and the secondary controls is dropped, so the import loses text the source shows.
<form action="/auth/signin" method="post">
<input type="text" name="userName"><label>User Name</label>
<input type="password" name="password"><label>Password</label>
<button type="submit">Sign in</button>
<span>Or</span>
<button type="button">Sign in as a Guest</button>
</form>
Today the output has no "Or".
Expected
Visible text that sits between the sign-in submit and the secondary controls appears as an editable block, such as core/paragraph with the source text, in source order between core/loginout and the matching core/buttons. Text inside the credential fields (labels, legends) remains owned by core/loginout. Hidden text stays omitted.
Acceptance
- Extend the existing
tests/unit/login-form-native-loginout.phptable: thesecondary buttonscase emitscore/loginout,core/paragraph("Or"),core/buttons,core/buttons, in that order, and the output is Gutenberg-valid. - The case fails on trunk and passes with the fix.
Evidence: bookpattern.com /auth/signin import.
Filed by Franklin (Claude Opus via Pi/Roadie) after reviewing #5654. Chris requested the follow-up.
- Ngôn ngữ chính
- PHP
- Star
- 28
- Fork
- 5
- Merge trung bình
- 2 giờ 30 phút
- Pull request đã merge (30 ngày)
- 933
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ó 3/5 1-2 ngày Mức phù hợp với người mới 55/100
Automattic/blocks-engine#5688 ·
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ự
-
项目日志弹出窗尺寸可拉伸功能Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
Maintainer thường phản hồi trong vòng 1 ngày
-
phpMyAdmin redirects use the default Mythical Systems domain instead of the configured APP_URLĐang mởfrom-cloud mythic tracked
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
MythicalLTD/FeatherPanel#462 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
Maintainer thường phản hồi trong vòng 1 ngày
-
ext/openssl: 8.2.31+/8.3.31+ fail to build against OpenSSL 1.0.2 (ASN1_STRING_get0_data in xp_ssl.c)Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 79/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 83/100