Skip to content

SSF-123 Admin Pantry Application Review Frontend#107

Open
Juwang110 wants to merge 7 commits intomainfrom
jw/SSF-123-pantry-application-review-frontend
Open

SSF-123 Admin Pantry Application Review Frontend#107
Juwang110 wants to merge 7 commits intomainfrom
jw/SSF-123-pantry-application-review-frontend

Conversation

@Juwang110
Copy link

ℹ️ Issue

Closes https://vidushimisra.atlassian.net/jira/software/projects/SSF/boards/1?selectedIssue=SSF-123

📝 Description

This short PR simply updates the Admin Pantry Application Review Frontend to match the new design. I added sorting logic based on date applied and filtering logic based on pantry name. The view details link goes to the corresponding pantry application details page.

/approve-pantries

✔️ Verification

I verified the design matches the figma and the approve/deny pantry flow still works as intended. I verified the data displayed on the frontend matches the db.

Screenshot 2026-02-15 201515

🏕️ (Optional) Future Work / Notes

This PR is based off of #91 so it is subject to change.

Copy link
Member

@maxn990 maxn990 left a comment

Choose a reason for hiding this comment

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

Gonna approve since this matches figma and code looks good!

Just had one thought though-

I noticed there is no check to see if there are zero pending applications, is there anything we want to display in this case? I didn't see anything on figma pertaining to this @madisonweiss @Yurika-Kan @sam-schu

@madisonweiss
Copy link

madisonweiss commented Feb 17, 2026

Gonna approve since this matches figma and code looks good!

Just had one thought though-

I noticed there is no check to see if there are zero pending applications, is there anything we want to display in this case? I didn't see anything on figma pertaining to this @madisonweiss @Yurika-Kan @sam-schu

Hi! This is a good point - it'll probably just be the empty table but I'll ask Priya right now.

await ApiClient.updatePantry(application.pantryId, 'approve');
navigate('/approve-pantries');
} catch (err) {
alert('Error approving application: ' + err);
Copy link

@madisonweiss madisonweiss Feb 17, 2026

Choose a reason for hiding this comment

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

Can we replace all chakra alerts with Chakra UI alert components to keep in line with this PR?

Copy link
Author

Choose a reason for hiding this comment

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

Since my other PR defines and uses my new FloatingAlert component, I'll refactor this if that PR gets merged into main first, or I will refactor that PR if this gets merged into main first

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.

5 participants

Comments