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:
parent
c00f691f1f
commit
c302a036bb
@ -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": {
|
||||||
|
|||||||
@ -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 {
|
||||||
|
|||||||
@ -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',
|
||||||
|
|||||||
@ -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,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user