enable saving Criteria for re-use in other lists
Closed this issue · 0 comments
bicarbon8 commented
Description
the current process of adding criteria to a list involves clicking the Add New Criteria button at the bottom of a list of Criteria when in List Edit Mode. this should be modified as follows:
- update Add New Criteria button to contain a dropdown allowing selection of saved Criteria
- saved Criteria should be listed by their name
- saved Criteria cannot have multiple with the same name
- MUST also be able to select an empty criteria to be added so users can still create new Criteria for their lists
How saving Criteria should work
- users should be able to save their criteria as a template to be selected when using the above Add New Criteria button by clicking a save icon on the criteria after they've specified all the values. the icon will be disabled until all fields have values.
- deleting a pre-defined Criteria should be done by clicking a delete icon on a criteria in the dropdown which will present the user with a confirmation modal and then remove the entry from the dropdown
- if a user saves a Criteria and then modifies the type or values, the save toggle will become disabled as this is no longer a match for the saved Criteria type. attempting to re-save without changing the name will result in a validation error being displayed (names must be unique)