diff --git a/src/lib/dashboard/bands.ts b/src/lib/dashboard/bands.ts index 8f2d1aed0..d7d7ad397 100644 --- a/src/lib/dashboard/bands.ts +++ b/src/lib/dashboard/bands.ts @@ -135,9 +135,6 @@ export function buildDashboardBands(profile: { }; } -/** - * Snapshot-era alias. The snapshot builder and its parity test still - * import `buildTargetBands`; keep the name pointing at the canonical - * builder so neither has to change. - */ -export const buildTargetBands = buildDashboardBands; +// The snapshot builder re-exports `buildDashboardBands` under the historic +// `buildTargetBands` name (see dashboard/snapshot.ts) so callers and the +// parity test keep working without a duplicate export living in this file. diff --git a/src/lib/dashboard/snapshot.ts b/src/lib/dashboard/snapshot.ts index 228c42814..4a6b809aa 100644 --- a/src/lib/dashboard/snapshot.ts +++ b/src/lib/dashboard/snapshot.ts @@ -78,7 +78,7 @@ import { } from "@/lib/dashboard/meds-today"; import { computeUserHealthScoreFastPath } from "@/lib/analytics/health-score-fast-path"; import { - buildTargetBands, + buildDashboardBands as buildTargetBands, type DashboardTargetBands, } from "@/lib/dashboard/bands"; import type {