From fd6232284a5d2af8cebc4db4bdbd69540f013634 Mon Sep 17 00:00:00 2001 From: Lilith Date: Fri, 27 Feb 2026 17:16:05 -0800 Subject: [PATCH] =?UTF-8?q?refactor(analytics):=20=E2=99=BB=EF=B8=8F=20Res?= =?UTF-8?q?tructure=20analytics=20handler=20functions=20for=20improved=20m?= =?UTF-8?q?odularity?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Lilith Autocommit --- .../streaming/shared/msw/src/handlers/analytics.handlers.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/features/streaming/shared/msw/src/handlers/analytics.handlers.ts b/features/streaming/shared/msw/src/handlers/analytics.handlers.ts index 1fca0657c..4e9dce166 100644 --- a/features/streaming/shared/msw/src/handlers/analytics.handlers.ts +++ b/features/streaming/shared/msw/src/handlers/analytics.handlers.ts @@ -37,7 +37,6 @@ function getPeriodStart(period: 'daily' | 'weekly' | 'monthly'): Date { function buildDataPoints( sessions: typeof MOCK_SESSIONS, - tips: typeof MOCK_TIPS, period: 'daily' | 'weekly' | 'monthly', ): Array<{ date: string; revenueCents: number; sessionCount: number; tipCount: number }> { // Group sessions by date bucket @@ -103,7 +102,7 @@ export const analyticsHandlers = [ const avgSessionDurationSeconds = sessionCount > 0 ? Math.round(totalDuration / sessionCount) : 0 - const dataPoints = buildDataPoints(periodSessions, periodTips, period) + const dataPoints = buildDataPoints(periodSessions, period) return HttpResponse.json({ period,