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

Add Event to Published Schedule Form + Validation #12

Closed
ThatMegamind opened this issue Jan 3, 2024 · 0 comments · Fixed by #17
Closed

Add Event to Published Schedule Form + Validation #12

ThatMegamind opened this issue Jan 3, 2024 · 0 comments · Fixed by #17
Assignees
Labels

Comments

@ThatMegamind
Copy link
Collaborator

ThatMegamind commented Jan 3, 2024

Instructions

  • Events are added to the Published Schedule by taking existing events from the Catalog and adding additional information to them. In this task, you’ll be creating the basic frontend skeleton of the form that implements this functionality.
  • The form should list the following information from the Catalog about the event as non-editable fields: Title, Host
  • The form should include the following additional information as editable input fields: Confirmed?, Start Time, End Time, Cohort (Grad Year), Notes
  • Add validation to the form using Yup

Notes

  • Refer to DB Model for which fields to include
    • For any fields with ENUM values, use dropdowns
    • For any fields marked NOT NULL, make the fields required
  • Refer to PNP code example for how to implement Yup into a form
  • The design for this form hasn’t been finalized yet, so don’t worry too much about it yet
  • Make your best approximation for validation

Acceptance Criteria

  • Place the form in a new file located in src/components/AddEventToPublishedScheduleForm/AddEventToPublishedScheduleForm.jsx
  • Input validation should exist for all fields as needed
  • The user cannot submit the form if violating any input validation
    After submitting the form, the form data should be console logged (we’ll send it to the backend later)

Resources

As always, feel free to message Michael and Michelle if you have any questions!

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

Successfully merging a pull request may close this issue.

3 participants