feat(simulator): Update simulator to alert if the event name is bad #164
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Add alert to simulator so that if the user enters an event name that is invalid (but not empty), it alerts them that it is invalid.
Motivation and Context
Related to #163 we'd like to know when we make the event that the name is valid / invalid. similarly, if we open a model or edit a model, we'd like to be alerted if there are bad event names already present in the model.
How has this been tested?
Opening a good model, adding a bad even name, seeing the error. Also validated that the alert shows when opening a model if the model has a bad even name in it. Of course also tested with multiple bad event names (therefore multiple alerts).
Screenshots (if appropriate, e.g. schematic, board, console logs, lab pictures):
Event name marked in red (existing behavior): showing that it is invalid:
And alert when saving it:
Types of changes
Checklist:
Software