Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Developer: Logan Costello
Closes #{ISSUE NUMBER HERE}
Pull Request Summary
Refactored CreateEditEvent into CreateEvent and Edit Event.
EditEvent takes event as input.
EditEvent fills in the fields from the event when opened.
Added start and end time to both components
Added volunteer event switch to both components
Added Only my group allowed switch to both components (only available when volunteer event is true. volunteer event being false makes this switch false and disabled.
Implemented validation for all fields (switches are inherently selected already, so they don't require it)
Note: the components have an event type, but the event schema does not. One of these will likely need to change in the future to accommodate each other. If this is an unintended issue, I can fix it.
Modifications
Created CreateEvent and EditEvent
Deleted CreateEditEvent
Testing Considerations
Tested manually all possibilities I could think of
Pull Request Checklist
Screenshots/Screencast
Screen.Recording.2024-02-14.at.8.27.39.PM.mov