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:
Marc-André Bombeck committed 2026-10-22 16:43:28 +02:00
commit 9c8972bc96
86 files changed
+5051 -487

No files matched your search

+5 -1
View File
@@ -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();