Team Report Service
Component Detail
Service Layer
medium complexity
mobilebackend
2
Dependencies
2
Dependents
7
Entities
0
Integrations
Description
Core business logic service that fetches and aggregates team activity data from the backend REST API, applying the coordinator's association scope and the current filter parameters. Manages Riverpod provider state for the team report and orchestrates export requests to the server-side export endpoint.
team-report-service
Responsibilities
- Fetch aggregated team activity data scoped to coordinator's association_id
- Apply filter parameters (date range, activity type, peer mentor) in API calls
- Compute or relay per-mentor totals for display in the UI
- Initiate server-side CSV or PDF export and handle download/share flow
- Expose Riverpod AsyncNotifier for reactive report state management
Interfaces
getTeamReport(ReportFilters filters)
getPeerMentorActivityDetail(String peerMentorId, ReportFilters filters)
exportReport(ReportFilters filters, ExportFormat format)
getActivityTypesForFilter()
getPeerMentorsForFilter(String associationId)
refreshReport()
Relationships
Dependencies (2)
Components this component depends on
Dependents (2)
Components that depend on this component
Related Data Entities (7)
Data entities managed by this component