mbachtell-nais / crossfeed

External monitoring for organization assets
https://docs.crossfeed.cyber.dhs.gov
Creative Commons Zero v1.0 Universal
1 stars 0 forks source link

Remove the ability to enter empty spaces as only text for name #21

Open mbachtell-nais opened 1 year ago

mbachtell-nais commented 1 year ago

Problem

A user can enter one or more empty strings (e.g. spaces) and this is an acceptable name. This results in a saved search with no name (see Screenshot).

Solution

Require a name be entered in the app.

Screenshots

image

mbachtell-nais commented 1 year ago

It appears that a name is required in the PG table, see Screenshot.

However, if I hit the space bar several times in the app and then save the search it isn't trimming that empty white space and allows me to save the search as an entry with no name.

Need to have the app trim that whitespace and require text.

Screenshot

image

mbachtell-nais commented 1 year ago

It doesn't appear like there are any form libraries installed for node that would easily allow for required data. Perhaps the react-form-with-constraints-material-ui library would be a solution. Will allow for frontend verification of required data and meshing with current material UI build.