feat(reports): align year in review

This commit is contained in:
2026-06-06 20:36:13 +08:00
parent e2fdb8a171
commit 4a7df91556
11 changed files with 504 additions and 9 deletions
+2
View File
@@ -609,6 +609,7 @@ func Bootstrap(env string) (*App, error) {
// Analytics services (P11 — Reports/Analytics)
analyticsService := service.NewAnalyticsService(reportingEventRepo, reportingEventsRollupRepo)
analyticsService.SetWorkerPool(workerPool)
yearInReviewService := service.NewYearInReviewService(db)
summaryReportService := service.NewSummaryReportService(reportingEventsRollupRepo)
dashboardAppService := service.NewDashboardAppService(dashboardAppRepo)
platformAppService := service.NewPlatformAppService(platformAppRepo, accessTokenRepo, permissibleRepo)
@@ -772,6 +773,7 @@ func Bootstrap(env string) (*App, error) {
Copilot: v1.NewCopilotHandler(copilotService),
Analytics: v1.NewAnalyticsHandler(analyticsService),
LiveReport: v1.NewLiveReportHandler(analyticsService),
YearInReview: v1.NewYearInReviewHandler(yearInReviewService),
DashboardApp: v1.NewDashboardAppHandler(dashboardAppService),
Portal: v1.NewPortalHandler(portalService),
Category: v1.NewCategoryHandler(categoryService, portalService),