Skip to content

[SSF-182] Admin, Volunteer, & Pantry Dashboard Backend#158

Open
amywng wants to merge 3 commits intomainfrom
acw/SSF-182-dashboards-backend
Open

[SSF-182] Admin, Volunteer, & Pantry Dashboard Backend#158
amywng wants to merge 3 commits intomainfrom
acw/SSF-182-dashboards-backend

Conversation

@amywng
Copy link
Copy Markdown
Member

@amywng amywng commented Apr 17, 2026

ℹ️ Issue

Closes SSF-182

📝 Description

  • created endpoint GET /api/users/admin/recent-pending-applications to return 4 most recent pantry/FM apps
    • getRecentPendingApplications in users service and controller w/ corresponding tests
  • created endpoint GET /api/volunteers/:id/my-recent-orders to return 2 most recent orders
    • getRecentOrders in volunteers service and controller w/ corresponding tests
  • moved /api/requests/:pantryId/all to /api/pantries/:pantryId/requests and renamed service function to findAllForPantry(pantryId) in requests service
    • removed requests controller method and corresponding tests
  • added pantry name and assignee info to return for GET /api/pantries/:pantryId/orders

✔️ Verification

tests pass and verified on postman

Copy link
Copy Markdown
Collaborator

@Yurika-Kan Yurika-Kan left a comment

Choose a reason for hiding this comment

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

first round review~~

looking super good! thanks amy :)

return this.volunteersService.findOne(userId);
}

@Roles(Role.VOLUNTEER, Role.ADMIN)
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

can we check that the id is an existing user (volunteer/admin) w a checkownership block on this route?

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