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

Confirm food delivered and Request Forms Dashboard #21

Open
wants to merge 18 commits into
base: main
Choose a base branch
from

Conversation

dburkhart07
Copy link

ℹ️ Issue

Closes Confirm food delivered and Request Forms

📝 Description

I added a confirm delivery modal button and integrated that into the dashboard. The dashboard consists of a requestId, date requested, status, fulfilled by (which I did not really use as of much yet), expected delivery date (which as of now is set when the food is delivered), and an action section, containing the modal button. I allowed for proper navigation of pantryIds as well to make it so the dashboard's information is based entirely on the requests associated with the specified pantryId in the path. This form also utilizes the food request modal button to allow for users to make new food requests (or the last one that they did, based on the most recent request id). In terms of the backend, I extended the food-requests API to get a specific request id associated with a food request form, and update the delivery date, feedback, and photos for it accordingly. In order to do all of this, I had to add dummy data for the pantry and user to allow for food requests to be made (which as of right now, defaults it to pantryId 1).

Briefly list the changes made to the code:

  1. Added confirm delivery form button popup modal
  2. Added new food requests functionality in request forms
  3. Created interactive dashboard, utilizing APIs to get accurate, pantry-specific information from database.

✔️ Verification

What steps did you take to verify your changes work? These should be clear enough for someone to be able to clone the branch and follow the steps themselves.

I verified the frontend by providing specific routes in the app.tsx file, where going to /request-forms/1 where 1 is the pantryId (works for any valid pantryId in the database), and practiced creating new food requests (and doing it based on the previous requests), as well as confirming the deliveries and making sure the UI updated accordingly. To verify the backend, I checked with the database to make sure that, when the UI was updating, the backend was also displaying corresponding information.

Provide screenshots of any new components, styling changes, or pages.
image
image
Prefilled options on the previous request:
image
image

🏕️ (Optional) Future Work / Notes

The only thing that I was unable to finish for this (and will continue to work on), is the photo paths in specific. I was able to get the user to be able to upload multiple photos (which are still not displaying all of the names of the uploaded photos, which was another feature I wanted to add), but the are just entered into the database as the name and extension (eg: "photo1.png").

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.

2 participants