eeg_portal/eeg_frontend/src/app/services
Bernhard Müller 4b7b26231f feat(community): add member consumption dashboard with coverage preview
Backend:
- ConsumptionDashboardService: aggregates consumption and community
  feed-in data with daily/hourly granularity based on date range
- Coverage calculation: min(consumption, communityFeedIn) per interval
- Ownership check on dashboard endpoint
- 6 new aggregate queries in MeteringDataRepository
- findActiveMeteringPointIdsByCommunityId in MembershipRepository
- 6 unit tests for ConsumptionDashboardService

Frontend:
- Apache ECharts via ngx-echarts for chart visualization
- ConsumptionDashboardComponent with metering point selector,
  date range picker, quick-range buttons (7/30/90 days)
- Chart: blue bars (consumption), green bars (covered), orange
  line (community feed-in), tooltip with coverage percentage
- Summary cards: total consumption, coverage %, feed-in, covered kWh
- Warning when user has no community membership
- Route /dashboard/consumption (MEMBER only)

Tests: 143/143 passing
2026-07-22 13:23:58 +02:00
..
auth.spec.ts generalized dashboard for member and admin 2026-07-05 10:49:46 +02:00
auth.ts refactor(frontend): replace hardcoded localhost URLs with environment config 2026-07-22 07:50:38 +02:00
consumption.ts feat(community): add member consumption dashboard with coverage preview 2026-07-22 13:23:58 +02:00
dashboard.ts feat(dashboard): add pending memberships card to admin overview 2026-07-22 10:59:01 +02:00
membership.ts refactor(frontend): replace hardcoded localhost URLs with environment config 2026-07-22 07:50:38 +02:00
metering-point.ts refactor(frontend): replace hardcoded localhost URLs with environment config 2026-07-22 07:50:38 +02:00
notification.ts refactor(frontend): replace hardcoded localhost URLs with environment config 2026-07-22 07:50:38 +02:00
toast.ts feat(frontend): add responsive design, form validation, toast service and error handling 2026-07-21 12:08:39 +02:00
user.ts refactor(frontend): replace hardcoded localhost URLs with environment config 2026-07-22 07:50:38 +02:00