From 01f3374ab05db763781e3df8307ac58c6100162a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Bombeck?= Date: Thu, 4 Jun 2026 01:56:45 +0200 Subject: [PATCH] fix(insights): make TRAJECTORY_TYPES a distinct array, not an alias --- src/lib/insights/derived/registry.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lib/insights/derived/registry.ts b/src/lib/insights/derived/registry.ts index 9f7ddb804..5be074b33 100644 --- a/src/lib/insights/derived/registry.ts +++ b/src/lib/insights/derived/registry.ts @@ -310,7 +310,9 @@ export function isVitalsBaselineType(type: string): boolean { * conservative 7–14-day OLS projection is honest; the engine gates anything * without a real trend out to `insufficient` regardless. */ -export const TRAJECTORY_TYPES: MeasurementType[] = VITALS_BASELINE_TYPES; +// A distinct array (not an alias of VITALS_BASELINE_TYPES) so the trajectory +// set can diverge later and stays a single, non-duplicate export. +export const TRAJECTORY_TYPES: MeasurementType[] = [...VITALS_BASELINE_TYPES]; /** `true` when the type is a metric the trajectory engine supports. */ export function isTrajectoryType(type: string): boolean {