pixiebrix-extension icon indicating copy to clipboard operation
pixiebrix-extension copied to clipboard

Add condition snippets to the Page Editor

Open twschiller opened this issue 3 years ago • 0 comments

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

image

References

  • See Condition Snippet wireframe in Balsamiq

twschiller avatar Aug 26 '22 14:08 twschiller