Skip to content

Jx/ssf 202 dashboard stats#183

Open
jxuistrying wants to merge 2 commits into
mainfrom
jx/SSF-202-dashboard-stats
Open

Jx/ssf 202 dashboard stats#183
jxuistrying wants to merge 2 commits into
mainfrom
jx/SSF-202-dashboard-stats

Conversation

@jxuistrying
Copy link
Copy Markdown

ℹ️ Issue

Closes #202

📝 Description

Write a short summary of what you added. Why is it important? Any member of C4C should be able to read this and understand your contribution -- not just your team members.

I connected frontend ui to stats endpoint to display top 4 stats on dashboards

Briefly list the changes made to the code:

  1. Added interface for stats responses
  2. Added getUserStats(userId) method to ApiClient to call stats endpoint
  3. Updated adminDashboard.tsx, volunteerDashboard.tsx, and pantryDashboard.tsx to display stats

✔️ Verification

logged in with admin and volunteer accounts to check that the stats is displayed on the dashboard
image
image

🏕️ (Optional) Future Work / Notes

I couldn't log in as a valid pantry user still so I still have to check if the pantry stats is displayed but the stats should be working

@jiang-h-y jiang-h-y self-requested a review May 24, 2026 20:01
@Yurika-Kan Yurika-Kan self-assigned this May 25, 2026
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