Skip to content

Conversation

@CerberusLatrans
Copy link

@CerberusLatrans CerberusLatrans commented Oct 4, 2024

ℹ️ 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

Screenshot 2024-10-04 at 3 00 38 AM
Screenshot 2024-10-04 at 3 03 00 AM

🏕️ (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.

Copy link

@fanzzz368 fanzzz368 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good

@fanzzz368 fanzzz368 requested a review from huang0h October 9, 2024 02:32
Copy link

@denniwang denniwang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@CerberusLatrans CerberusLatrans merged commit b3dc6fd into main Oct 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants