Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

validation #37

Open
atherdon opened this issue May 17, 2018 · 9 comments
Open

validation #37

atherdon opened this issue May 17, 2018 · 9 comments
Assignees

Comments

@atherdon
Copy link
Collaborator

https://github.com/25th-floor/spected

@atherdon atherdon mentioned this issue May 27, 2018
@chauhannishith
Copy link
Contributor

What type of validation are you talking about in our form

@atherdon
Copy link
Collaborator Author

first of all - we cannot submit an empty form.
also i think allowedIngredients field is required, because without this field - we'll need to return all info at database

@atherdon
Copy link
Collaborator Author

let's mark this like an open thing. i mean we need validation, for sure. so implement checking if form not empty and add ability to set required fields. also maybe we need to have some notifications, like : "please fill form", etc....

@atherdon
Copy link
Collaborator Author

hold on. i think antd have validation stuff.
@rahuldcoder can you advice us? because we're drowning here :)

@rahuldcoder
Copy link
Collaborator

Okay I'll check it out and tell u asap.Will that be fine

@atherdon
Copy link
Collaborator Author

atherdon commented May 28, 2018 via email

@chauhannishith
Copy link
Contributor

I still think that this is unnecessary stuff because ingredients, allergy, diet, holiday are unnecessary stuff and not everyone wants to search a specific stuff

  • people might be ready for any ingredients and we can't make them select all one by one
  • if someone has an allergy then they will select it themselves only because it affects them
  • for diet, not everyone has a choice and those who have a choice we already have a solution for them
  • people might want to search something which they have never tried and if we have a long list of cuisines then that will also affect the search
  • regarding holidays I am not sure how it works around the globe but a dish can't be specific to holidays

The only thing I can think of keeping as required is course but in that also we have two options(which according to me one is enough) and we are only going to display the cuisines that user wants, am I right? then why are we asking the user which cuisines they don't want

@chauhannishith
Copy link
Contributor

https://ant.design/components/form/ contains validation example which we can use

@chauhannishith
Copy link
Contributor

if you are thinking regarding hundreds of recepies that the server will bombard then we can do some stuff like google and only display one page at a time so that the load from server is also reduced and the user also only sees a few at a time

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants