mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-17 07:42:23 +00:00
Merge branch 'feat/ai-routes-insights-coach' into release/v1.39.0
# Conflicts: # src/app/api/insights/correlations/__tests__/route.test.ts # src/app/api/insights/correlations/route.ts
This commit is contained in:
commit
9c7ddc13b3
163 files changed
+5450
-2064
No files matched your search
@@ -188,6 +188,7 @@ import type { EncounterDTO } from "@/lib/encounters/dto";
|
||||
import { queryKeys } from "@/lib/query-keys";
|
||||
import type { DailyDigest } from "@/lib/daily/digest";
|
||||
import type { MeasurementReminder } from "@/hooks/use-measurement-reminders";
|
||||
import { DIGEST_AI_AVAILABLE } from "@/__tests__/helpers/ai-capability-fixtures";
|
||||
|
||||
function render(
|
||||
access: AccountAccess,
|
||||
@@ -344,6 +345,7 @@ describe("the medication card menu", () => {
|
||||
|
||||
const DIGEST: DailyDigest = {
|
||||
generatedAt: "2026-08-03T06:00:00.000Z",
|
||||
ai: DIGEST_AI_AVAILABLE,
|
||||
phase: "final",
|
||||
sleepPending: false,
|
||||
score: null,
|
||||
|
||||
@@ -20,6 +20,7 @@ import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
|
||||
import { I18nProvider } from "@/lib/i18n/context";
|
||||
import { TodayHero } from "../today-hero";
|
||||
import type { DailyDigest } from "@/lib/daily/digest";
|
||||
import { DIGEST_AI_AVAILABLE } from "@/__tests__/helpers/ai-capability-fixtures";
|
||||
|
||||
function render(node: React.ReactNode, locale: "en" | "de" = "en") {
|
||||
const client = new QueryClient();
|
||||
@@ -35,6 +36,7 @@ const ARRIVED_AT = "2026-07-16T05:41:00.000Z";
|
||||
function digest(over: Partial<DailyDigest> = {}): DailyDigest {
|
||||
return {
|
||||
generatedAt: "2026-07-16T06:00:00.000Z",
|
||||
ai: DIGEST_AI_AVAILABLE,
|
||||
phase: "final",
|
||||
sleepPending: false,
|
||||
score: { value: 82, band: "green", delta: 3 },
|
||||
|
||||
@@ -7,6 +7,7 @@ import { TodayHero } from "../today-hero";
|
||||
import type { DailyDigest } from "@/lib/daily/digest";
|
||||
import type { PriorityItem } from "@/lib/daily/priority-item";
|
||||
import { SCORE_VERSION } from "@/lib/analytics/score/types";
|
||||
import { DIGEST_AI_AVAILABLE } from "@/__tests__/helpers/ai-capability-fixtures";
|
||||
|
||||
// The hero now wires the coach check-in card's keep / let-go taps through
|
||||
// `useCoachCheckinAction`, so it needs a QueryClient in the tree.
|
||||
@@ -51,6 +52,7 @@ const syncItem: PriorityItem = {
|
||||
function digest(over: Partial<DailyDigest> = {}): DailyDigest {
|
||||
return {
|
||||
generatedAt: "2026-07-16T06:00:00.000Z",
|
||||
ai: DIGEST_AI_AVAILABLE,
|
||||
phase: "final",
|
||||
sleepPending: false,
|
||||
score: {
|
||||
|
||||
Reference in new issue
Block a user