5.0 Distribution Tracking & Dashboards - FatinaAlTaherr/HopeConnect GitHub Wiki
Overview
The dashboard system provides tailored views for donors and orphanages to track donations, impact, and performance metrics.
Donor Dashboard
DonorDashboardController
Personalized donor analytics.
- Endpoints:
GET /dashboard/donor/summary
:- Total donated amount
- Donation count statistics
- Recent donation list
GET /dashboard/donor/updates
:- All updates for donor's contributions
GET /dashboard/donor/impact
:- Category-based impact breakdown
- Supported orphanage count
DTOs
DonorSummaryDTO
totalDonated
: Lifetime contribution sumtotalDonations
: All-time countcompletedDonations
: Successful donationsrecentDonations
: Latest 5 contributions
RecentDonationDTO
id
: Donation referencecategory
: Donation purposeamount
: Contribution valuestatus
: Current statedate
: When given
Orphanage Dashboard
OrphanageDashboardController
Orphanage-specific analytics.
- Endpoints:
GET /dashboard/orphanage/summary
:- Total funds received
- Donation volume metrics
- Recent donations list
- Average rating
GET /dashboard/orphanage/category
:- Category-based funding breakdown
POST /dashboard/orphanage/updates
:- Add progress updates for donors
DTOs
DonationSummaryDTO
id
: Donation referencedonorName
: Contributor identityamount
: Donation valuecategory
: Funding purposedate
: When received
DonationUpdateResponseDTO
message
: Confirmation texttitle
: Update headlinedescription
: Detailed contentimageUrl
: Visual reference
Workflows
Donor Experience
- View personalized dashboard
- Track individual donations
- See impact metrics
- Receive updates on contributions
- Submit orphanage reviews
Orphanage Experience
- Monitor donation intake
- Categorize funding sources
- Provide donor updates
- Track delivery statuses
- Manage donor relationships
Security
- All endpoints require authentication
- Donor views restricted to own data
- Orphanage views restricted to own organization
- Role-based access control enforced