From 3c73ef5c6fd66da08022f8058c55601d63cccd87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Bombeck?= Date: Thu, 21 May 2026 17:40:51 +0200 Subject: [PATCH] chore(cleanup): drop five unused imports flagged by eslint MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The insights page kept `CorrelationResult` + `DataSummary` type imports left over from an earlier refactor, and the slim summaries slice still referenced `RollupGranularity`, `aggregateWmyBuckets`, and `RollupBucketRow` after the v1.4.37.2 GROUP BY rewrite folded that work into the narrow aggregate. Pure deletions — both helpers stay exported for the test suite that still exercises them. --- src/app/insights/page.tsx | 2 -- src/lib/analytics/summaries-slice.ts | 8 ++------ 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/src/app/insights/page.tsx b/src/app/insights/page.tsx index 3d9009746..191c9433d 100644 --- a/src/app/insights/page.tsx +++ b/src/app/insights/page.tsx @@ -16,8 +16,6 @@ import { HeroStrip } from "@/components/insights/hero-strip"; import { useInsightsAdvisorQuery } from "@/components/insights/use-insights-advisor"; import { useCoachLaunch } from "@/lib/insights/coach-launch-context"; import { useAnalyticsQuery } from "@/lib/queries/use-analytics-query"; -import type { CorrelationResult } from "@/lib/insights/correlations"; -import type { DataSummary } from "@/lib/analytics/trends"; /** * v1.4.33 IW2 — defer the three below-the-fold mother-page blocks diff --git a/src/lib/analytics/summaries-slice.ts b/src/lib/analytics/summaries-slice.ts index 961a4a194..83b8c9f56 100644 --- a/src/lib/analytics/summaries-slice.ts +++ b/src/lib/analytics/summaries-slice.ts @@ -53,7 +53,7 @@ * 100`. Slope `direction` is derived from `slope`'s sign with the * same 0.01-units-per-day "stable" threshold the JS helper uses. */ -import type { MeasurementType, RollupGranularity } from "@/generated/prisma/client"; +import type { MeasurementType } from "@/generated/prisma/client"; import { prisma } from "@/lib/db"; import type { DataSummary } from "@/lib/analytics/trends"; @@ -64,11 +64,7 @@ import { isFullyCovered, probeRollupCoverage, } from "@/lib/rollups/measurement-coverage"; -import { - aggregateWmyBuckets, - readBestGranularityRollups, - type RollupBucketRow, -} from "@/lib/rollups/measurement-read-wmy"; +import { readBestGranularityRollups } from "@/lib/rollups/measurement-read-wmy"; const DAY_MS = 24 * 60 * 60 * 1000;