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
+3
View File
@@ -68,6 +68,7 @@ type Handlers struct {
WebWidgetOffline *v1.WebWidgetOfflineHandler
Analytics *v1.AnalyticsHandler
LiveReport *v1.LiveReportHandler
YearInReview *v1.YearInReviewHandler
DashboardApp *v1.DashboardAppHandler
Portal *v1.PortalHandler
Category *v1.CategoryHandler
@@ -1877,6 +1878,8 @@ func registerV2Routes(g *gin.RouterGroup, h *Handlers) {
liveReports.GET("/conversation_metrics", h.LiveReport.ConversationMetrics)
liveReports.GET("/grouped_conversation_metrics", h.LiveReport.GroupedConversationMetrics)
}
accountScoped.GET("/year_in_review", h.YearInReview.Show)
}
}
}
+1
View File
@@ -72,6 +72,7 @@ func TestRegisterRoutesBootsWithChatwootParityConflictGroups(t *testing.T) {
"GET /hc/:slug/:locale/categories/:category_slug",
"GET /hc/:slug/articles/:article_slug",
"GET /api/v2/accounts/:account_id/reports/summary",
"GET /api/v2/accounts/:account_id/year_in_review",
"GET /api/v2/accounts/:account_id/live_reports/grouped_conversation_metrics",
"GET /webhooks/twitter",
"POST /webhooks/twitter",