feat(11-03): surface reminderLeadMinutes on CalendarOccurrence + GET select (D-10)

- Add reminderLeadMinutes: number | null to CalendarOccurrence interface (D-06)
- Import classifyValarms in expand.ts; derive series-level value once per VEVENT
- Add reminderLeadMinutes to both non-recurring and recurring occurrence construction
- Add reminderLeadMinutes to GET /api/events select for edit-mode pre-population
This commit is contained in:
Lucas Berger
2026-06-13 22:21:42 -04:00
parent 7df11d2780
commit e1714316be
2 changed files with 28 additions and 0 deletions
+2
View File
@@ -177,6 +177,8 @@ eventsRouter.get('/', zValidator('query', eventsQuerySchema), async (c) => {
userId: users.id,
userColor: users.color,
ownerName: users.displayName,
// Phase 11 Plan 03: surface reminderLeadMinutes for edit-mode pre-population (D-06/D-10)
reminderLeadMinutes: calendarEvents.reminderLeadMinutes,
})
.from(calendarEvents)
.innerJoin(calendars, eq(calendarEvents.calendarId, calendars.id))