Add total litter collected display to user profile

- Updated backend userService to calculate total litter collected across all attended events
- Added totalLitterCollected field to UserProfile interface
- Added new statistics card showing total litter collected in kg
- Updated profile grid layout to accommodate 5 statistics cards
- Displays litter collected with 1 decimal place precision
This commit is contained in:
2025-11-18 19:03:43 +00:00
parent 3d7b84f376
commit 3a6db92699
22 changed files with 1462 additions and 128 deletions

View File

@@ -0,0 +1,4 @@
-- AlterTable
ALTER TABLE `event_registrations`
ADD COLUMN `litter_collected` DECIMAL(10, 2) NULL,
ADD COLUMN `contribution_note` TEXT NULL;