pixiebrix-extension
pixiebrix-extension copied to clipboard
Add condition snippets to the Page Editor
Context
- Conditions require that people write Nunjucks templates with logic
- It's often the first time they have to write a template with logic
- We have some existing templating docs, but they're not focused on conditions
- In the future, we will introduce a Condition Builder that support conditions without Nunjucks
Implementation Sketch
- Add a condition widget
- Apply condition widget to "Condition" field
- Apply condition widget to "If-Else" condition field
Discussion/Open Questions
- What set of snippets to include
- Show a modal with placeholders?
Wireframes

References
- See Condition Snippet wireframe in Balsamiq