mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-09 13:01:00 +00:00
chore(query-keys): drop insightsGeneralStatus leftover from W3f route removal
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.
This commit is contained in:
1 parent
94e048f3b5
commit
574376024c
2 files changed
+2
-4
No files matched your search
@@ -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",
|
||||
]);
|
||||
});
|
||||
|
||||
@@ -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) =>
|
||||
|
||||
Reference in new issue
Block a user