feat(03-12): GREEN — WR-03 blank edit, WR-03 recurrence, WR-05 zone-consistent, IN-03

WR-03 blank: add occurrence?.uid to reset effect deps so form re-populates
when occurrence resolves in TanStack cache after form opens.

WR-03 recurrence: derive initial recurrence from occurrence?.recurrence
instead of hard-coding 'none'; defaults to 'none' when absent (v1 comment).

WR-05: rewrite parseDateTime to use getFullYear/getMonth/getDate/getHours/
getMinutes (all local accessors) — never mix toISOString() UTC date with
getHours() local time.

IN-03: export todayIso from calendarStore (was private); import into EventForm
and collapse getDefaultStartDate/getDefaultEndDate to todayIso() calls.
This commit is contained in:
Lucas Berger
2026-06-05 20:40:11 -04:00
parent 02e312acdc
commit f0f1361fba
3 changed files with 47 additions and 30 deletions
+2 -2
View File
@@ -118,8 +118,8 @@ function initialCalendarRange(): { start: string; end: string } {
}
}
/** Today as an ISO date string (YYYY-MM-DD). */
function todayIso(): string {
/** Today as an ISO date string (YYYY-MM-DD). Exported for use in EventForm (IN-03). */
export function todayIso(): string {
return new Date().toISOString().slice(0, 10)
}