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

Input Field validation #234

Open
Ronnie018 opened this issue Jan 12, 2023 · 5 comments
Open

Input Field validation #234

Ronnie018 opened this issue Jan 12, 2023 · 5 comments
Assignees
Labels
good first issue Good for newcomers help wanted Extra attention is needed

Comments

@Ronnie018
Copy link
Member

Ronnie018 commented Jan 12, 2023

Description, please be as detailed as possible:

The fields in the aplication need validators to check for problems before sending data to the database;
This validations can include:

  • null or undefined fields;
  • fields without valid text (spaces cannot validade);
  • Be creative; if you think of something that can be checked, include this;

Some fields that need to be validated:

  • Login and Sign-in Forms;
  • Posts;
  • Comment editions;
  • Messages (if page is done);

Tips:

  • New comments (see code in src/components/Posts/comments/addComments/index.jsx) already have a basic validation that can be found in the services folder (src/services/validators/messagingValidations);
  • All validations should be in the validators folder;

I'm using short circuit validation (example below) but, feel free to use another pattern.

example

@Ronnie018 Ronnie018 added help wanted Extra attention is needed good first issue Good for newcomers labels Jan 12, 2023
@michael251194
Copy link

Hello, can you attribute me this issue ? please

@Ronnie018
Copy link
Member Author

Hello, can you attribute me this issue ? please

Hey @michael251194 , thank you for the interest in this project, if you need have any problems with the repo or need any help with something we are here to help

@Ronnie018
Copy link
Member Author

Hey @michael251194, how's the field validation goin? need any help?

@michael251194
Copy link

Hey @michael251194, how's the field validation goin? need any help?

Hey @Ronnie018, it's ok at the moment thanks !

@4-Leafs-Code
Copy link
Member

@michael251194, I'm just checking in. Is there anything I can do to help?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants