CodeYourFuture / CodeYourFuture/scot-min-imece

Complete validation in Add profile and Edit profile

Open
#91 0 comments 0 reactions 1 assignee Claimed by @NataliaCoder View on GitHub
bug
Dominant language
JavaScript
Stars
1
Forks
4
PR merge metrics
No merged PRs in 30d

Description

Front end validation should prevent database errors due to constraints on the profile table (not null, unique, ...)
Currently only first name, last name and phone number are validated at front end. This produces unexpected errors for the final user.

**Handle not null**
- look for all the inputs which correspond to database columns which must not be null or empty string and don't have a default value and mark them with a * in the label (i.e. Last name *) to help the final user understand which inputs are mandatory
- before calling the create/edit api verify that the values are not null or empty string, in that case show an error message

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.