Skip to content

Conversation

@dburkhart07
Copy link

ℹ️ Issue

Closes Approve pantry request

📝 Description

I implemented the full functionality of the page for the ability to approve and deny pantry request. I added a modal button to each name that would display information about their application, a button to either approve or deny (which communicates and updates that to the backend), and a sorting option to filter (A-Z, Z-A, chronological, reverse chronological) the pantry names and application dates.

Briefly list the changes made to the code:

  1. Created the UI for the dashboard
  2. Added sorting based on different criteria
  3. Added buttons to update the pantry approval status
  4. Added a modal button for the admin approving pantries to see their application details

✔️ Verification

To verify these features, I created a few basic pantry entries manually in the database, and made sure that the pantry representative id was the id of a valid user (creating a new user manually as well if need be). I checked the buttons with the difference in pantry status before and after it was pressed.

image
image
image

🏕️ (Optional) Future Work / Notes

The only thing that may need future work is verification. As of right now, this is just a page anyone can access. Obviously, this page would need a login beforehand. Additionally, I had to disable the JWT authentication within the users backend so that I could easily get information of the user/pantry representative without having to do logging in. This is likely something that will be addressed later, but nothing that needs immediate attention as of now.

huang0h and others added 30 commits September 7, 2024 21:58
created and added header component to root
dburkhart07 and others added 30 commits January 29, 2025 12:40
Confirm food delivered and Request Forms Dashboard
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.

8 participants