mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-15 06:52:04 +00:00
Merge origin/main (v1.44.2) into fix/v145-sheet-motion
next stays on main's 16.4.2 (the RCE and Server Actions advisories) with its two companions; release's newer dev tools and its own additions are kept. The lockfile is release's, re-resolved. pt-BR, which main does not have, takes the one key main added.
This commit is contained in:
commit
9c8972bc96
86 files changed
+5051
-487
No files matched your search
@@ -15,6 +15,7 @@ import {
|
||||
} from "@/lib/profile/height-unit-display";
|
||||
import { useTranslations } from "@/lib/i18n/context";
|
||||
import { apiGet, apiPut } from "@/lib/api/api-fetch";
|
||||
import { useAboutMeSaveTimeoutMs } from "@/hooks/use-ai-capability";
|
||||
import { localizedApiError } from "@/lib/api/localized-error";
|
||||
import {
|
||||
AnamnesisCard,
|
||||
@@ -153,6 +154,7 @@ export function BaselineForm({
|
||||
allergies: "",
|
||||
});
|
||||
const [baseAboutMe, setBaseAboutMe] = useState("");
|
||||
const saveTimeoutMs = useAboutMeSaveTimeoutMs();
|
||||
|
||||
useEffect(() => {
|
||||
let active = true;
|
||||
@@ -229,7 +231,9 @@ export function BaselineForm({
|
||||
// collapsed card never round-trips).
|
||||
const aboutMeBody = buildAnamnesisAboutMeBody(baseAboutMe, anamnesis);
|
||||
if (aboutMeBody) {
|
||||
await apiPut("/api/coach/about-me", aboutMeBody);
|
||||
await apiPut("/api/coach/about-me", aboutMeBody, {
|
||||
signal: AbortSignal.timeout(saveTimeoutMs),
|
||||
});
|
||||
}
|
||||
}
|
||||
await onConfirmed();
|
||||
|
||||
Reference in new issue
Block a user