From 37b65fa9c8b14645646f1b089d946fbf28dc9f54 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Bombeck?= Date: Tue, 20 Oct 2026 03:34:47 +0200 Subject: [PATCH] refactor(settings): take the backfill-ended type from its source The integration status shape hand-copied the published entry with a looser type field; it now imports the type the status routes publish. --- src/components/settings/integrations/shared.tsx | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/components/settings/integrations/shared.tsx b/src/components/settings/integrations/shared.tsx index 6cb9c0dd4..c5c558ef3 100644 --- a/src/components/settings/integrations/shared.tsx +++ b/src/components/settings/integrations/shared.tsx @@ -10,6 +10,7 @@ import { useQuery } from "@tanstack/react-query"; import { apiGet } from "@/lib/api/api-fetch"; +import type { GoogleHealthBackfillEndedEntry } from "@/lib/google-health/backfill-progress"; import type { ConnectionHealth } from "@/lib/integrations/connection-health"; import type { MetricFreshnessEntry } from "@/lib/integrations/sync-verdict"; import { queryKeys } from "@/lib/query-keys"; @@ -58,11 +59,7 @@ export interface IntegrationStatusViewModel { * Google Health: data types whose history backfill ended before the start * of their history, with where and why. */ - backfillEnded?: Array<{ - type: string; - endsAt: string; - reason: "horizon" | "no_progress"; - }>; + backfillEnded?: GoogleHealthBackfillEndedEntry[]; /** * Polar / Oura / Strava: usable credentials resolve (BYO or the shared * app). Greys out "Connect" when false.