samtecspg / articulate

A platform for building conversational interfaces with intelligent agents (chatbots)
http://spg.ai/projects/articulate/
Apache License 2.0
598 stars 158 forks source link

Add error message when adding pre-made category when existing items aren't deleted #1057

Closed RussellSPG closed 4 years ago

RussellSPG commented 4 years ago

Feature Request

We should have an error message for letting the user know there are existing actions, keywords or whatever that need to be deleted before importing the pre-made category again. Otherwise agent will crash to blank screen with error:

The above error occurred in task Fe
    created by takeLatest(app/CategoryPage/IMPORT_CATEGORY, Fe)
    created by Le
Tasks cancelled due to error:
takeLatest(app/CategoryPage/IMPORT_CATEGORY, Fe)
takeLatest(app/CategoryPage/LOAD_PREBUILT_CATEGORIES, ke)

Tested on Master

wrathagom commented 4 years ago

@dakavisa did this one get addressed already with the changes you made?

dakavisa commented 4 years ago

yeah, there should now be error messages for those cases:

image

If there is still any problem with this let me know @RussellSPG