-
Notifications
You must be signed in to change notification settings - Fork 4
Closed
Description
Branches: FormValidation
Task at Hand
-
Start: Pull from master branch, then create and enter your new branch
FormValidation
.- From here, navigate to frontend folder, and run
yarn run dev
. Navigate to thelocalhost:3000
. Try to create a new empty meeting, as you can see, our system recognizes that we don't have enough information to create a meeting, yet no information is outputted for the user. This is counter-intuitive from user standpoint, they would expect some form of error to pop up when create meeting is not successful. Let's fix this!
- From here, navigate to frontend folder, and run
-
Add validation for the following atoms. You can find all of these in the '\components\atoms` folder. Refer to one we have done for DatePicker for desired design.
- TextField: All of the "Meeting title", "Email", and "Description" are required. Let us output an error if the user clicks on the text field and un-clicks it yet the field is still empty.
- Dropdown: Since we are assuming that our meeting is hybrid by default; then if they click on any of the dropbox and un-click it, and yet the dropdown box is still the default option, output an error.
- Upload: Same as above.
- TimePicker: Fix it so that "Time is required" only pops up after the user has clicked and un-clicked the box.
- If the user opts for Create Meeting yet not all the required field is satisfied, we should output an error as well.
-
Confirm that your code and pull request follow the Pull Request Checklist. ### Acceptance Criteria
- Implement validation for TextField
- Implement validation for Dropdown
- Implement validation for Upload
- Fix validation for TimePicker
- Create Meeting should correctly output an error when the user try to create an unfinished meeting.
Notes
Metadata
Metadata
Assignees
Labels
No labels