From 574376024c74e91096efe946f2b6e641f742452c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Bombeck?= Date: Thu, 14 May 2026 15:30:17 +0200 Subject: [PATCH] chore(query-keys): drop insightsGeneralStatus leftover from W3f route removal MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The `/api/insights/general-status` route was deleted as part of W3f (commit edae569) when the general-status panel migrated into the combined comprehensive insights payload. The matching query-key factory + its integrity test assertion were missed in that cleanup pass. The test now pins `insightsBpStatus` instead — the locale-in-status-key invariant remains covered. --- src/lib/__tests__/query-keys.test.ts | 4 ++-- src/lib/query-keys.ts | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/lib/__tests__/query-keys.test.ts b/src/lib/__tests__/query-keys.test.ts index c957c06ac..104922644 100644 --- a/src/lib/__tests__/query-keys.test.ts +++ b/src/lib/__tests__/query-keys.test.ts @@ -16,9 +16,9 @@ describe("queryKeys factory", () => { }); it("includes locale in insights status keys", () => { - expect(queryKeys.insightsGeneralStatus("en")).toEqual([ + expect(queryKeys.insightsBpStatus("en")).toEqual([ "insights", - "general-status", + "blood-pressure-status", "en", ]); }); diff --git a/src/lib/query-keys.ts b/src/lib/query-keys.ts index b55cd05fa..9bd30329b 100644 --- a/src/lib/query-keys.ts +++ b/src/lib/query-keys.ts @@ -30,8 +30,6 @@ export const queryKeys = { * a second LLM round-trip. */ insightsAdvisor: () => ["insights", "advisor"] as const, - insightsGeneralStatus: (locale: string) => - ["insights", "general-status", locale] as const, insightsBpStatus: (locale: string) => ["insights", "blood-pressure-status", locale] as const, insightsWeightStatus: (locale: string) =>