add example to FAQ block#24
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 2cb1ce4. Configure here.
| "name": "blockparty/faq-answer", | ||
| "attributes": { | ||
| "answer": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua." | ||
| } |
There was a problem hiding this comment.
Non-existent answer attribute used in FAQ answer example
Medium Severity
The blockparty/faq-answer block doesn't have an answer attribute in its schema—its only attribute is isAccordion. The answer block renders its content via InnerBlocks (accepting core/paragraph, core/heading, etc.), so the example's "answer" attribute will be silently ignored and the block preview will show an empty answer panel. The content needs to be provided as a nested core/paragraph inner block with a content attribute instead.
Reviewed by Cursor Bugbot for commit 2cb1ce4. Configure here.


Note
Low Risk
Low risk: only updates
block.jsonmetadata to include an editor example; no runtime logic or data handling changes.Overview
Adds an
exampledefinition to theblockparty/faqblock metadata so the editor can render a representative preview.The example prepopulates an accordion FAQ with a nested
faq-itemcontaining afaq-questionandfaq-answerusing placeholder text.Reviewed by Cursor Bugbot for commit 2cb1ce4. Bugbot is set up for automated code reviews on this repo. Configure here.