michaelplatt07 / recipe-book-react

React version of the RecipeBookUI.
0 stars 0 forks source link

Add ability to send ingredients in multiple formats #18

Open michaelplatt07 opened 3 years ago

michaelplatt07 commented 3 years ago

There is a limitation on the site currently where if the user were to input something like "1 cup rice", the value actually passed into the server would look something like this { "measurement": "", "quantity": "1", "text_friendly_name": "cup rice" } This is caused by the fact that the front end app is getting a list of valid measurements and isn't yet smart enough to look at it and realize that "cup" and "c" (which is the valid measurement from the server) are the same. Need to fix this to be "smart" so it can parse multiple values. Also may want to consider making the back end a bit smarter too.