Ot.food request form #5
Merged
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.
ℹ️ Issue
https://trello.com/c/uO6ma0UD
📝 Description
Allows SSF to display their menu to pantries, and for pantries to submit food requests with a desired delivery date, any dietary restrictions, and extra notes.
Also added chakra theme file which copies the colors from the official SSF page. Not used for this ticket.
Created food-request page, integrated Chakra (React UI Library) into frontend, used react-router-dom form actions to handle the form data.
✔️ Verification
🏕️ (Optional) Future Work / Notes
had to create dummy menu data since there isn't an API call to get SSF menu items yet (and also supported allergens).
Formatted the form data into a JSON using react-router-dom form API which seems a bit messy, haven't made the POST API call to update the food request table since it doesn't exist yet.
FUTURE: will need to specify what the format of the form data json is in when sent to backend. May want more detailed menu call (maybe like lists of allergens in each item, item-specific limits, etc). Form item section might also need to be organized differently or collapsible.