You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Do new example blocks need hidden: true? Rule says yes, all 630 existing blocks say no #5206
Decision needed: should new doc site example blocks be hidden: true at first, or not?
The conflict..github/instructions/templates.instructions.md says to flag any new block whose .doc.mjs is not hidden: true. But 0 of 630 existing component blocks are hidden. Every one shipped visible.
So either the rule means page templates only, or 630 blocks broke it.
Why it matters now. PR #5203 adds BottomSheetSnapPoints, a new block. I made it visible to match the other 630. If the rule was meant to apply, that PR needs a one-line change.
Dug into this a bit further since it's a quick check: the "0 of 630" isn't just legacy debt predating the rule. The hidden-staging line in templates.instructions.md was added in #3783 on 2026-07-10, and blocks have kept landing visible since, not just from before that date. For example, the Button block's .doc.mjs was added 2026-07-31, three weeks after the rule already existed in the instructions file, and it's still not hidden: true today. That's true across the board, not one or two stragglers.
That reads less like "630 blocks broke the rule" and more like the rule's wording ("a new template/block ... is not hidden: true") is broader than what's actually been practiced the whole time it's existed. If block-hiding were the real intent, it seems like it would have shown up in at least some of the blocks added after 2026-07-10.
Given that, I'd lean A: treat the rule as page-templates-only and narrow the instructions wording (drop or clarify "/block" in that sentence) rather than retroactively hiding 630 blocks or asking new PRs like #5203 to be the first to comply with a rule nothing else has followed. Happy to send the one-line instructions edit if that's the preferred direction, just didn't want to open it unprompted given this is explicitly a "pick one" decision for a maintainer.
Activity
HelloOjasMutreja commentedon Aug 19, 2026
Dug into this a bit further since it's a quick check: the "0 of 630" isn't just legacy debt predating the rule. The hidden-staging line in
templates.instructions.mdwas added in #3783 on 2026-07-10, and blocks have kept landing visible since, not just from before that date. For example, theButtonblock's.doc.mjswas added 2026-07-31, three weeks after the rule already existed in the instructions file, and it's still nothidden: truetoday. That's true across the board, not one or two stragglers.That reads less like "630 blocks broke the rule" and more like the rule's wording ("a new template/block ... is not hidden: true") is broader than what's actually been practiced the whole time it's existed. If block-hiding were the real intent, it seems like it would have shown up in at least some of the blocks added after 2026-07-10.
Given that, I'd lean A: treat the rule as page-templates-only and narrow the instructions wording (drop or clarify "/block" in that sentence) rather than retroactively hiding 630 blocks or asking new PRs like #5203 to be the first to comply with a rule nothing else has followed. Happy to send the one-line instructions edit if that's the preferred direction, just didn't want to open it unprompted given this is explicitly a "pick one" decision for a maintainer.