add block example#42
Conversation
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ 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 | ||
| }, |
There was a problem hiding this comment.
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.
Reviewed by Cursor Bugbot for commit 4f28db7. Configure here.


Note
Low Risk
Low risk: this only adds a Gutenberg
exampleconfiguration toblock.jsonfor editor preview, without changing runtime logic or data handling.Overview
Adds a predefined Gutenberg block
exampleforblockparty/accordion, including nestedaccordion-item/summary/panelinner 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.