Skip to content

update stats chart to match figma#120

Merged
thaninbew merged 2 commits intomainfrom
98-Chart-on-Admin-Dashboard-Overview
Apr 16, 2026
Merged

update stats chart to match figma#120
thaninbew merged 2 commits intomainfrom
98-Chart-on-Admin-Dashboard-Overview

Conversation

@ItsEricSun
Copy link
Copy Markdown
Contributor

Description

Updated DonorStatsChart to match figma.
Updated /api/donations/stats endpoint to also take in optional start and end date so that the chart can use this endpoint to get the corresponding donation data
Added a YearMonthPicker component for the custom date picker for the stats chart
Added popover shadcn component

Changes Made

  • Backend changes
  • Frontend changes
  • Database schema changes
  • Configuration updates
  • Other

Testing & Verification

  • Unit tests pass
  • Manual testing completed
  • No breaking changes

Verification Steps:

On /chart page:
image
image
Selecting a specific month:
image
image
Only the data for that specific month is displayed:
image

Related Issues

Closes #98

Comment thread apps/frontend/src/components/YearMonthPicker.tsx Outdated
Comment thread apps/frontend/src/components/YearMonthPicker.tsx Outdated
Comment thread apps/backend/src/donations/donations.controller.ts
@ItsEricSun ItsEricSun self-assigned this Apr 16, 2026
@thaninbew
Copy link
Copy Markdown
Collaborator

cracked as always! LGTMMM!

note: gotta talk to design abt the date thing tho, it feels a lil confusing imo.

@thaninbew thaninbew merged commit 625f8cc into main Apr 16, 2026
4 checks passed
@thaninbew thaninbew deleted the 98-Chart-on-Admin-Dashboard-Overview branch April 16, 2026 23:21
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.

Chart on Admin Dashboard Overview

3 participants