fix(12.2): close code-review blockers on uploads, JSON caps, and pivot fill

Keep form save behind in-flight uploads, make retries idempotent via X-Upload-Id, cap remaining JSON bodies, and surface pending pivot type errors instead of zeroing them.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Jakub Zych
2026-10-02 23:10:48 +02:00
parent 6bfc0faa8a
commit 516f9c9025
22 changed files with 533 additions and 96 deletions

View File

@@ -287,7 +287,13 @@ export function boundValue(
return day
}
const wall = new CalendarDateTime(day.year, day.month, day.day, end ? 23 : 0, end ? 59 : 0, end ? 59 : 0)
return ignoreTimezone ? wall : toZoned(wall, getLocalTimeZone())
if (ignoreTimezone) {
return wall
}
// The server checks the saved instant's UTC calendar date. Build the
// bound as a UTC instant so a local midnight just after the UTC day
// change is refused, and a local evening still on that UTC day is allowed.
return toTimeZone(toZoned(wall, 'UTC'), getLocalTimeZone())
}
/**