fix: pass isRecurring/recurringEventId for Google and Outlook events

Google and Outlook event mappings were missing isRecurring and
recurringEventId fields, so the modal never showed recurring delete
options and displayed recurring events as "Repeat: Never".

v1.62.2

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
mARTin 2026-03-23 23:49:40 +01:00
parent c00f691f1f
commit c302a036bb
4 changed files with 11 additions and 1 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "my-weekly-todo-list", "name": "my-weekly-todo-list",
"version": "1.62.1", "version": "1.62.2",
"description": "A web-based weekly task management application that organizes to-dos and calendar events in a single, intuitive weekly view", "description": "A web-based weekly task management application that organizes to-dos and calendar events in a single, intuitive weekly view",
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {

View File

@ -169,6 +169,10 @@ interface CalendarEvent {
calendarColor?: string; calendarColor?: string;
editable?: boolean; editable?: boolean;
recurringEventId?: string; recurringEventId?: string;
isRecurring?: boolean;
description?: string;
location?: string;
url?: string;
} }
interface SomedayList { interface SomedayList {

View File

@ -367,6 +367,8 @@ export const getCalendarEvents = async (
start: event.start, start: event.start,
end: event.end, end: event.end,
location: event.location, location: event.location,
recurringEventId: event.recurringEventId,
isRecurring: !!event.recurringEventId,
source: 'google' as const, source: 'google' as const,
calendarId, calendarId,
calendarTitle: calendarData?.summary || calendarData?.title || 'Google Calendar', calendarTitle: calendarData?.summary || calendarData?.title || 'Google Calendar',
@ -625,6 +627,8 @@ export const getCalendarEvents = async (
start: event.start, start: event.start,
end: event.end, end: event.end,
location: event.location || '', location: event.location || '',
recurringEventId: event.recurringEventId,
isRecurring: event.isRecurring ?? false,
source: 'outlook' as const, source: 'outlook' as const,
calendarId, calendarId,
calendarTitle: calendarData?.title || 'Outlook Calendar', calendarTitle: calendarData?.title || 'Outlook Calendar',

View File

@ -227,6 +227,8 @@ export const getUpcomingEvents = async (
location: event.location?.displayName, location: event.location?.displayName,
htmlLink: event.webLink, htmlLink: event.webLink,
allDay: event.isAllDay, allDay: event.isAllDay,
recurringEventId: event.seriesMasterId || undefined,
isRecurring: event.type === 'occurrence' || event.type === 'exception' || event.type === 'seriesMaster',
reminders: event.isReminderOn && event.reminderMinutesBeforeStart != null reminders: event.isReminderOn && event.reminderMinutesBeforeStart != null
? [{ method: 'popup', minutes: event.reminderMinutesBeforeStart }] ? [{ method: 'popup', minutes: event.reminderMinutesBeforeStart }]
: undefined, : undefined,