Skip to content

Do new example blocks need hidden: true? Rule says yes, all 630 existing blocks say no #5206

Open

Description

@imdreamrunner

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.

What to do: pick one.

Either answer is quick. The point is that reviewers keep hitting this and there is no written answer.

Filed from #5203, where a reviewer note would have gone unread.

Activity

  1. added
    documentation
    on Aug 19, 2026
  2. HelloOjasMutreja commented on Aug 19, 2026

    @HelloOjasMutreja
    Contributor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentation

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions