Skip to content

add block example#42

Open
MarieComet wants to merge 1 commit into
developfrom
feat/add-example
Open

add block example#42
MarieComet wants to merge 1 commit into
developfrom
feat/add-example

Conversation

@MarieComet
Copy link
Copy Markdown
Contributor

@MarieComet MarieComet commented May 19, 2026

Capture d’écran 2026-05-19 à 14 49 47

Note

Low Risk
Low risk: this only adds a Gutenberg example configuration to block.json for editor preview, without changing runtime logic or data handling.

Overview
Adds a predefined Gutenberg block example for blockparty/accordion, including nested accordion-item/summary/panel inner blocks and sample paragraph content, with the first item configured to be open by default for preview purposes.

Reviewed by Cursor Bugbot for commit 4f28db7. Bugbot is set up for automated code reviews on this repo. Configure here.

Copy link
Copy Markdown

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 4f28db7. Configure here.

"name": "blockparty/accordion-item",
"attributes": {
"openByDefault": true
},
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Non-existent attribute referenced in block example

Low Severity

The openByDefault attribute is specified on the blockparty/accordion-item inner block in the example, but this attribute doesn't exist as a registered attribute for that block. The item's block.json defines no attributes at all. The open-first-item behavior is controlled solely by the parent's firstItemOpenByDefault attribute (which is already correctly set in the example). The openByDefault attribute will be silently ignored, making it misleading dead configuration.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 4f28db7. Configure here.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant