BotFlow icon indicating copy to clipboard operation
BotFlow copied to clipboard

Remove empty balloons when inserting/editing utters

Open rodmaia opened this issue 4 years ago • 3 comments

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

rodmaia avatar Feb 11 '21 13:02 rodmaia

Working on a solution to this problem.

FranciscoHeronildo avatar Feb 18 '21 23:02 FranciscoHeronildo

@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.

rodmaia avatar Feb 19 '21 00:02 rodmaia

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

Miguel-Alves avatar Apr 08 '21 14:04 Miguel-Alves