BotFlow
BotFlow copied to clipboard
Remove empty balloons when inserting/editing utters
When inserting or editing an utter you can have balloons that are completely empty or that only have a [space] character inside. These balloons should be:
- ignored by the front-end validation
- not saved to the database
- removed from the utter if present upon loading
A confirmation message should appear upon save saying "Balões vazios foram removidos".
With the exception of utters whose entire content is a single empty balloon. In that case, validation should continue preventing to save that utter.
Tasks
- [x] TBD
Acceptance criteria
- [x] Empty balloons are no longer present after saving
- [x] Empty balloons are not saved to the database
- [x] Empty balloons are not loaded from the database
- [x] Confirmation message is visible upon saving
Working on a solution to this problem.
@FranciscoHeronildo assign the issue to yourself if you are working on it 😉
Let me know if you can expose your dev environment to the web. I’d like to test it to ensure the original idea on the issue makes sense.
I have concluded this issue. Now, empty content is no longer saved or loaded to the database. And when saving or editing an utter, they are ignored by the front-end validation. Also, there is a confirmation message displayed to user stating this removal of empty content