From e5fb5d7994ce37c17d1212dc63fb939845e885ec Mon Sep 17 00:00:00 2001 From: callumalpass Date: Fri, 20 Nov 2026 14:09:06 +1100 Subject: [PATCH 1/3] fix: dragging a projected recurring occurrence to another day moves only that occurrence (#2631) A drop of a projected (dashed) occurrence went through planCalendarEdit as a series-time edit, which keeps DTSTART's date, so the day was discarded while the notice reported the drop position. Use planCalendarOccurrenceChoice, as the TaskNotes app does: - another day, or between the all-day row and a time slot: create the occurrence note at the drop position (undo deletes it); the rule is unchanged - same day, another time: series DTSTART time edit, with a notice saying so - same day and time: no write Update the calendar and recurring-task docs and the release notes. --- docs/features/recurring-tasks.md | 8 +- docs/releases/unreleased.md | 2 + docs/views/calendar-views.md | 11 +- ...sue-2631-projected-occurrence-drop.spec.ts | 192 ++++++++++++++++++ src/bases/calendarMutations.ts | 67 +++++- src/bases/calendarPatternGesture.ts | 41 ++++ src/i18n/locales/de/messages.po | 10 + src/i18n/locales/en/messages.po | 10 + src/i18n/locales/es/messages.po | 10 + src/i18n/locales/fr/messages.po | 10 + src/i18n/locales/it/messages.po | 10 + src/i18n/locales/ja/messages.po | 10 + src/i18n/locales/ko/messages.po | 10 + src/i18n/locales/pt/messages.po | 10 + src/i18n/locales/ru/messages.po | 10 + src/i18n/locales/zh/messages.po | 10 + 16 files changed, 405 insertions(+), 16 deletions(-) create mode 100644 e2e/issues/issue-2631-projected-occurrence-drop.spec.ts create mode 100644 src/bases/calendarPatternGesture.ts diff --git a/docs/features/recurring-tasks.md b/docs/features/recurring-tasks.md index ce9341ce8..14cd0f11a 100644 --- a/docs/features/recurring-tasks.md +++ b/docs/features/recurring-tasks.md @@ -104,7 +104,7 @@ Good uses include: - A maintenance task where each visit needs photos, links, or a checklist - A recurring meeting where every occurrence should have its own time entries and completion state -To create one manually, right-click a recurring task card or calendar occurrence and choose **Open or create occurrence note**. The Task Action Palette also exposes **Open or create occurrence note** for recurring tasks. If a matching note already exists for the same parent and date, TaskNotes opens it instead of creating a duplicate. +To create one manually, right-click a recurring task card or calendar occurrence and choose **Open or create occurrence note**. Dragging a pattern instance to another day in the calendar also creates its occurrence note. The Task Action Palette also exposes **Open or create occurrence note** for recurring tasks. If a matching note already exists for the same parent and date, TaskNotes opens it instead of creating a duplicate. An occurrence note is an ordinary TaskNotes task. It appears in views, can be edited like any other task, and shows an occurrence pill that links back to the recurring parent. On the calendar, a materialized occurrence replaces the matching virtual parent occurrence for the same parent/date pair, so you do not see both the generated instance and the note-backed instance at the same time. @@ -147,7 +147,7 @@ Leaving the global template empty preserves the existing filename behavior. Task Right-click a recurring parent and open **Occurrence notes** to choose its policy: -- **Create manually**: occurrence notes are only created by explicit action. +- **Create manually**: occurrence notes are only created by explicit action, such as the menu command or dragging a pattern instance to another day. - **Create next after completion**: after you complete a materialized occurrence note, TaskNotes creates the next occurrence note. - **Rolling window**: defined by the TaskNotes spec, but not automated in the plugin yet. @@ -213,12 +213,12 @@ TaskNotes captures this identity when rescheduling through its controls or task ## Calendar Drag and Drop -Calendar interactions follow the same model distinction: drag the concrete next item to reschedule execution, or drag a pattern instance to redefine the recurrence anchor. +Calendar interactions follow the same model distinction: drag the concrete next item to reschedule execution, or drag a pattern instance to change the series' time or move that one instance. Recurring tasks can show: - **Next occurrence** (solid border): dragging updates only `scheduled` -- **Pattern instances** (dashed border): dragging updates `DTSTART` and future pattern instances +- **Pattern instances** (dashed border): dragging to another time on the same day updates the time in `DTSTART`, which moves every later pattern instance. Dragging to another day, or between the all-day row and a time slot, creates an occurrence note for that instance at the drop position and leaves the rule unchanged. See [Calendar Views](../views/calendar-views.md#drag-and-drop-behavior). - **Materialized occurrence notes**: dragging updates the occurrence note's own `scheduled` or `due` date like a normal task, without changing the parent's recurrence rule In list mode and the Agenda, the card for a pattern instance shows that instance's scheduled date as read-only text and leaves out the task's due date. To give one instance its own dates, create an occurrence note for it. diff --git a/docs/releases/unreleased.md b/docs/releases/unreleased.md index 9c45ebfb1..7b32b2d4d 100644 --- a/docs/releases/unreleased.md +++ b/docs/releases/unreleased.md @@ -16,6 +16,8 @@ Example: ``` ## Fixed +- (#2631) Fixed dragging a later occurrence of a recurring task (dashed border) to another day in the calendar. The drop kept the occurrence on its original day, sometimes changed the time or removed the time from the recurrence rule for every later occurrence, and showed a notice saying the occurrence had moved. A drop on another day, or between the all-day row and a time slot, now moves only that occurrence by creating its occurrence note, and leaves the recurrence rule unchanged. A drop at another time on the same day still changes the series' time, and the notice now says so. A drop at the same day and time changes nothing. See [Calendar Views](https://tasknotes.dev/views/calendar-views/#drag-and-drop-behavior). + - Thanks to @martin-forge for reporting - (#2602) Fixed the time range shown while dragging to create a timeblock, task or time entry in the calendar being hidden behind existing events. The selection now draws above existing events, so its time range can be read while dragging over them. - Thanks to @RumiaKitinari for reporting - (#768) Fixed calendar view appearing empty in week and day views due to invalid time configuration values diff --git a/docs/views/calendar-views.md b/docs/views/calendar-views.md index 0373c235d..74c43f412 100644 --- a/docs/views/calendar-views.md +++ b/docs/views/calendar-views.md @@ -126,10 +126,13 @@ The calendar provides different behaviors depending on which type of recurring e **Dragging Pattern Instances (Dashed Border)**: -- Updates the DTSTART time in the recurrence rule -- Changes when all future pattern instances appear -- Does not affect the independently scheduled next occurrence -- Notice: "Updated recurring pattern time. All future instances now appear at this time." +What a drop changes depends on where the instance lands: + +- **Same day, another time**: updates the time in the recurrence rule's `DTSTART`, so every later pattern instance appears at the new time. The independently scheduled next occurrence keeps its own time. Notice: "Recurring pattern time changed to 14:00. Later occurrences now appear at this time; the next occurrence keeps its own time." +- **Another day, or between the all-day row and a time slot**: moves only that instance. TaskNotes creates an [occurrence note](../features/recurring-tasks.md#materialized-occurrence-notes) for the instance's date, scheduled where you dropped it, and leaves the recurrence rule unchanged. Notice: "Moved the Nov 29, 2026 occurrence to Nov 30, 2026 09:00. Other occurrences are unchanged." Undo deletes the new occurrence note. +- **Same day and time**: nothing changes. + +Resizing a pattern instance changes the task's time estimate, which every instance uses. #### Flexible Scheduling diff --git a/e2e/issues/issue-2631-projected-occurrence-drop.spec.ts b/e2e/issues/issue-2631-projected-occurrence-drop.spec.ts new file mode 100644 index 000000000..ec3272ee7 --- /dev/null +++ b/e2e/issues/issue-2631-projected-occurrence-drop.spec.ts @@ -0,0 +1,192 @@ +import { test, expect, type Page } from '@playwright/test'; +import { launchObsidian, closeObsidian, type ObsidianApp } from '../obsidian'; + +// #2631: dragging a projected (dashed) occurrence of a recurring task to another +// day showed " · <new day>" but left it on its original day, and could +// rewrite the series' DTSTART. A cross-day drop now creates that occurrence's +// note at the drop position; a same-day time change still edits the series. +let instance: ObsidianApp; +const stamp = Date.now(); +const prefix = `Issue 2631 ${stamp}`; +const folder = `e2e-2631-${stamp}`; +const basePath = `${folder}/Week.base`; +const created: string[] = [basePath]; +// Next occurrence Sunday 10 Jan 2027; the dragged projection is Sunday 17 Jan. +const SUNDAY = '2027-01-17'; +const MONDAY = '2027-01-18'; + +const taskPath = (name: string) => `${folder}/${prefix} ${name}.md`; + +async function createTask(page: Page, name: string, hour: string) { + const path = taskPath(name); + created.push(path); + await page.evaluate(async ({ path, title, hour }) => { + await (window as any).app.vault.create(path, `--- +title: ${title} +status: open +priority: normal +tags: [task] +scheduled: 2027-01-10T${hour}:00 +recurrence: DTSTART:20270103T${hour}0000Z;FREQ=WEEKLY;BYDAY=SU +--- +`); + }, { path, title: `${prefix} ${name}`, hour }); + await expect.poll(() => page.evaluate(async path => + Boolean(await (window as any).app.plugins.plugins.tasknotes.cacheManager.getTaskInfo(path)), path)).toBe(true); + return path; +} + +/** Calendar items for a task path: [start, recurringKind]. */ +async function items(page: Page, path: string): Promise<string[]> { + return page.evaluate(({ path, basePath }) => { + const app = (window as any).app; + const view = app.workspace.getLeavesOfType('bases') + .find((leaf: any) => leaf.view.file?.path === basePath)?.view.controller.view; + if (!view?.calendar) return []; + return Array.from(view.calendar.store.all()) + .map((entry: any) => entry.item) + .filter((item: any) => item.data?.taskInfo?.path === path || + String(item.data?.taskInfo?.recurrence_parent ?? '').includes(path.replace(/\.md$/, ''))) + .map((item: any) => `${String(item.start).slice(0, 16)} ${item.data?.modelEntry?.recurringKind ?? 'note'}`) + .sort(); + }, { path, basePath }); +} + +async function frontmatter(page: Page, path: string) { + return page.evaluate(path => { + const app = (window as any).app; + return app.metadataCache.getFileCache(app.vault.getAbstractFileByPath(path))?.frontmatter; + }, path); +} + +/** Occurrence notes of a parent; they live in the tasks folder, not next to it. */ +async function occurrenceNotes(page: Page, parentPath: string) { + const notes = await page.evaluate(async parent => { + const plugin = (window as any).app.plugins.plugins.tasknotes; + return (await plugin.cacheManager.getAllTasks()) + .filter((task: any) => task.occurrence_date && String(task.recurrence_parent ?? '').includes(parent)) + .map((task: any) => ({ path: task.path, scheduled: task.scheduled, occurrence_date: task.occurrence_date })); + }, parentPath.replace(/\.md$/, '')); + for (const note of notes) if (!created.includes(note.path)) created.push(note.path); + return notes; +} + +/** Drags the projected Sunday item of `name` with a real pointer. */ +async function drag(page: Page, name: string, target: { day: string; hour?: number; allDay?: boolean }) { + const title = `${prefix} ${name}`; + const event = page.locator('.tnc-item').filter({ hasText: title }) + .and(page.locator(`[data-id^="recurring-"][data-id$="-${SUNDAY}"]`)); + // The calendar re-renders after each edit, so take the item's box once it settles. + let box: { x: number; y: number; width: number; height: number } | null = null; + await expect.poll(async () => { + box = await event.boundingBox({ timeout: 1000 }).catch(() => null); + return Boolean(box); + }).toBe(true); + if (!box) throw new Error(`No projected item for ${title}`); + const geometry = await page.evaluate(({ from, to }) => { + const column = (date: string) => Array.from(document.querySelectorAll(`.tnc-tg-cols [data-date="${date}"]`)) + .map(el => el.getBoundingClientRect()).find(rect => rect.height > 100); + const fromCol = column(from)!; + const toCol = column(to)!; + // The all-day row is one layer across the week; the column picks the day. + const allDay = document.querySelector('.tnc-tg-allday .tnc-allday-layer')!.getBoundingClientRect(); + return { fromX: fromCol.x, toX: toCol.x, hour: fromCol.height / 24, top: fromCol.y, allDay }; + }, { from: SUNDAY, to: target.day }); + const startX = box.x + box.width / 2; + const startY = box.y + 6; + const endX = startX + (geometry.toX - geometry.fromX); + const endY = target.allDay + ? geometry.allDay.y + geometry.allDay.height / 2 + : target.hour === undefined ? startY : startY + (target.hour - Number(name === 'filter' ? 11 : 9)) * geometry.hour; + await page.mouse.move(startX, startY); + await page.mouse.down(); + await page.mouse.move(startX + 4, startY + 4, { steps: 3 }); + await page.mouse.move(endX, endY, { steps: 15 }); + await page.mouse.up(); +} + +test.beforeAll(async () => { + instance = await launchObsidian(); + const page = instance.page; + await page.evaluate(async ({ folder, prefix, basePath }) => { + const app = (window as any).app; + app.plugins.plugins.tasknotes.settings.googleCalendarExport.enabled = false; + await app.vault.createFolder(folder); + await app.vault.create(basePath, `filters: + and: + - file.name.startsWith("${prefix}") +views: + - type: tasknotesCalendar + name: Week + calendarView: timeGridWeek + firstDay: 0 + showScheduled: true + showDue: true + showRecurring: true + showTimeEntries: false + showTimeblocks: false + showPropertyBasedEvents: false +`); + }, { folder, prefix, basePath }); +}); + +test.afterAll(async () => { + if (!instance) return; + try { + await instance.page.evaluate(async paths => { + const app = (window as any).app; + for (const path of paths) { + const file = app.vault.getAbstractFileByPath(path); + if (file) await app.vault.delete(file, true); + } + }, [...created, folder]); + } finally { await closeObsidian(instance); } +}); + +test('dropping a projected occurrence on another day moves only that occurrence', async () => { + const page = instance.page; + const water = await createTask(page, 'water', '09'); + const filter = await createTask(page, 'filter', '11'); + const post = await createTask(page, 'post', '09'); + await page.evaluate(async basePath => { + const app = (window as any).app; + await app.workspace.getLeaf(false).openFile(app.vault.getAbstractFileByPath(basePath)); + }, basePath); + await expect.poll(() => page.evaluate(basePath => Boolean((window as any).app.workspace.getLeavesOfType('bases') + .find((leaf: any) => leaf.view.file?.path === basePath)?.view.controller.view?.calendar), basePath)).toBe(true); + await page.evaluate(({ basePath, day }) => (window as any).app.workspace.getLeavesOfType('bases') + .find((leaf: any) => leaf.view.file?.path === basePath).view.controller.view.calendar.gotoDate(day), + { basePath, day: SUNDAY }); + await expect.poll(() => items(page, water)).toEqual([`${SUNDAY}T09:00 pattern`]); + + // Another day, same time: an occurrence note on Monday; the rule is untouched. + await drag(page, 'water', { day: MONDAY }); + await expect.poll(() => occurrenceNotes(page, water)).toEqual([ + expect.objectContaining({ occurrence_date: SUNDAY, scheduled: `${MONDAY}T09:00` }), + ]); + expect((await frontmatter(page, water)).recurrence).toBe('DTSTART:20270103T090000Z;FREQ=WEEKLY;BYDAY=SU'); + await expect.poll(() => items(page, water)).toEqual([`${MONDAY}T09:00 note`]); + const moved = page.locator('.tn-toast').filter({ hasText: `${prefix} water` }); + await expect(moved).toContainText('occurrence to'); + await expect(moved).toContainText('Other occurrences are unchanged.'); + // Undo removes the occurrence note, so the projection is back on Sunday. + await moved.getByRole('button', { name: 'Undo', exact: true }).click(); + await expect.poll(() => occurrenceNotes(page, water)).toEqual([]); + await expect.poll(() => items(page, water)).toEqual([`${SUNDAY}T09:00 pattern`]); + + // Same day, another time: the series' time changes, and the notice says so. + await drag(page, 'filter', { day: SUNDAY, hour: 14 }); + await expect.poll(async () => (await frontmatter(page, filter)).recurrence) + .toBe('DTSTART:20270103T140000Z;FREQ=WEEKLY;BYDAY=SU'); + expect((await frontmatter(page, filter)).scheduled).toBe('2027-01-10T11:00'); + expect(await occurrenceNotes(page, filter)).toEqual([]); + await expect(page.locator('.tn-toast').filter({ hasText: `${prefix} filter` })) + .toContainText('Recurring pattern time changed to 14:00'); + + // Another day's all-day row: a date-only occurrence note; the rule keeps its time. + await drag(page, 'post', { day: MONDAY, allDay: true }); + await expect.poll(() => occurrenceNotes(page, post)).toEqual([ + expect.objectContaining({ occurrence_date: SUNDAY, scheduled: MONDAY }), + ]); + expect((await frontmatter(page, post)).recurrence).toBe('DTSTART:20270103T090000Z;FREQ=WEEKLY;BYDAY=SU'); +}); diff --git a/src/bases/calendarMutations.ts b/src/bases/calendarMutations.ts index bdbda59cf..687e869ff 100644 --- a/src/bases/calendarMutations.ts +++ b/src/bases/calendarMutations.ts @@ -3,7 +3,10 @@ import type { TaskInfo } from "../types"; import type { CalendarEventChange } from "./calendarEngine"; import { format } from "date-fns"; import { formatUIDate } from "../i18n/formatters"; -import { formatTime } from "../utils/dateUtils"; +import { formatTime, parseDateToLocal } from "../utils/dateUtils"; +import { msg } from "@lingui/core/macro"; +import { uiText } from "../i18n/runtime"; +import { planCalendarPatternGesture } from "./calendarPatternGesture"; import { TFile } from "obsidian"; import { handleTimeblockDrop, @@ -276,22 +279,70 @@ async function applyTaskCalendarGesture( const start = info.event.start.toISOString(); const current = await context.plugin.cacheManager.getTaskInfo(taskInfo.path); if (!current) throw new Error(`Missing task: ${taskInfo.path}`); + const change = { + kind, + start, + end: info.event.end?.toISOString(), + allDay: info.event.allDay, + }; + const timeFormat = (context.options.timeFormat ?? context.plugin.settings.calendarViewSettings?.timeFormat) === "12" ? "12" : "24"; + const when = (value: string) => { + const date = parseDateToLocal(value); + return `${formatUIDate(date, "PP")}${value.includes("T") ? ` ${formatTime(date, timeFormat)}` : ""}`; + }; + // A projected occurrence follows the series' rule, so the drop position is not + // what changes: either this occurrence becomes a note, or the series time moves. + const pattern = planCalendarPatternGesture(current, modelEntry, change, context.timezone); + if (pattern?.kind === "unchanged") { + info.revert(); + return; + } + if (pattern?.kind === "occurrence") { + info.revert(); + const occurrence = await context.plugin.taskService.materializeOccurrence( + current, + pattern.occurrenceDate, + pattern.overrides + ); + await context.refreshTask(current); + const moved = uiText( + msg({ + message: "Moved the {from} occurrence to {to}. Other occurrences are unchanged.", + context: "calendar recurring occurrence drop feedback", + }), + { + from: formatUIDate(parseDateToLocal(pattern.occurrenceDate), "PP"), + to: when(occurrence.scheduled ?? pattern.overrides.scheduled ?? pattern.occurrenceDate), + } + ); + showTaskUndo( + [() => context.plugin.taskService.deleteTask(occurrence)], + false, + 1, + context.plugin.app.vault, + `${current.title} · ${moved}` + ); + return; + } const result = await captureTaskUndo(context.plugin, current, () => context.plugin.taskService.applyCalendarEdit( current, modelEntry, - { - kind, - start, - end: info.event.end?.toISOString(), - allDay: info.event.allDay, - }, + change, context.timezone )); if (result.task) { await context.refreshTask(result.task); const feedback = kind === "resize" && info.event.end ? calendarResizeFeedback(result.task.title, info.event.start, info.event.end) - : `${result.task.title} · ${formatUIDate(info.event.start, "PP")}${info.event.allDay ? "" : ` ${formatTime(info.event.start, (context.options.timeFormat ?? context.plugin.settings.calendarViewSettings?.timeFormat) === "12" ? "12" : "24")}`}`; + : pattern?.kind === "series-time" + ? `${result.task.title} · ${uiText( + msg({ + message: "Recurring pattern time changed to {time}. Later occurrences now appear at this time; the next occurrence keeps its own time.", + context: "calendar recurring pattern drop feedback", + }), + { time: formatTime(info.event.start, timeFormat) } + )}` + : `${result.task.title} · ${formatUIDate(info.event.start, "PP")}${info.event.allDay ? "" : ` ${formatTime(info.event.start, timeFormat)}`}`; showTaskUndo(result.undo ? [result.undo] : [], false, 1, context.plugin.app.vault, feedback); } else info.revert(); diff --git a/src/bases/calendarPatternGesture.ts b/src/bases/calendarPatternGesture.ts new file mode 100644 index 000000000..ecb9d0894 --- /dev/null +++ b/src/bases/calendarPatternGesture.ts @@ -0,0 +1,41 @@ +import { + planCalendarOccurrenceChoice, + type CalendarChange, + type CalendarEntry, + type CalendarOccurrenceChoice, +} from "@tasknotes/model/calendar"; +import type { TaskInfo } from "../types"; + +export type CalendarPatternGesture = + /** The drop would change nothing: same day, same time. */ + | { kind: "unchanged" } + /** Same day, another clock time: the series' DTSTART time moves. */ + | { kind: "series-time" } + /** Resizing changes the series' duration. */ + | { kind: "series-duration" } + /** Another day, or between the all-day row and a time: only this occurrence moves. */ + | ({ kind: "occurrence" } & CalendarOccurrenceChoice["occurrence"]); + +/** + * How a gesture on a projected (dashed) occurrence of a recurring task applies. + * Returns undefined for every other calendar entry. + * + * A series edit keeps DTSTART's date, so it cannot move an occurrence to another day, + * and a projection takes its all-day/timed form from `scheduled`, not DTSTART. Those + * drops therefore become an occurrence note instead (#2631). + */ +export function planCalendarPatternGesture( + task: TaskInfo, + entry: CalendarEntry, + change: CalendarChange, + timezone: string +): CalendarPatternGesture | undefined { + const choice = planCalendarOccurrenceChoice({ task, entry, change, timezone }); + if (!choice) return undefined; + if (change.kind === "resize") return { kind: "series-duration" }; + const { occurrenceDate, overrides } = choice.occurrence; + const sameDay = overrides.scheduled?.slice(0, 10) === occurrenceDate; + if (sameDay && choice.series === undefined) return { kind: "unchanged" }; + if (sameDay && choice.series === "time") return { kind: "series-time" }; + return { kind: "occurrence", occurrenceDate, overrides }; +} diff --git a/src/i18n/locales/de/messages.po b/src/i18n/locales/de/messages.po index b06568f92..129a9cbf8 100644 --- a/src/i18n/locales/de/messages.po +++ b/src/i18n/locales/de/messages.po @@ -7378,6 +7378,11 @@ msgctxt "interaction move feedback" msgid "Moved {count, plural, one {# task} other {# tasks}} to {destination}" msgstr "{count, plural, one {# Aufgabe} other {# Aufgaben}} nach {destination} verschoben" +#: src/bases/calendarMutations.ts +msgctxt "calendar recurring occurrence drop feedback" +msgid "Moved the {from} occurrence to {to}. Other occurrences are unchanged." +msgstr "Vorkommen vom {from} nach {to} verschoben. Andere Vorkommen bleiben unverändert." + #: src/services/MdbaseSpecService.ts msgctxt "mdbaseSafety.multiple" msgid "Multiple TaskNotes types: {paths}. Keep one canonical provider or move the others out of the types folder, then reload TaskNotes. TaskNotes kept its last-known-good configuration." @@ -9269,6 +9274,11 @@ msgctxt "notices.interface.parentMissing" msgid "Recurring parent not found" msgstr "Übergeordnete wiederkehrende Aufgabe nicht gefunden" +#: src/bases/calendarMutations.ts +msgctxt "calendar recurring pattern drop feedback" +msgid "Recurring pattern time changed to {time}. Later occurrences now appear at this time; the next occurrence keeps its own time." +msgstr "Uhrzeit des Wiederholungsmusters auf {time} geändert. Spätere Vorkommen erscheinen jetzt zu dieser Uhrzeit; das nächste Vorkommen behält seine eigene Uhrzeit." + #: src/ui/recurringCompletionNotice.ts msgctxt "notices.recurringCompletion.undone" msgid "Recurring task change undone." diff --git a/src/i18n/locales/en/messages.po b/src/i18n/locales/en/messages.po index cfddcd77d..7c247b30f 100644 --- a/src/i18n/locales/en/messages.po +++ b/src/i18n/locales/en/messages.po @@ -7380,6 +7380,11 @@ msgctxt "interaction move feedback" msgid "Moved {count, plural, one {# task} other {# tasks}} to {destination}" msgstr "Moved {count, plural, one {# task} other {# tasks}} to {destination}" +#: src/bases/calendarMutations.ts +msgctxt "calendar recurring occurrence drop feedback" +msgid "Moved the {from} occurrence to {to}. Other occurrences are unchanged." +msgstr "Moved the {from} occurrence to {to}. Other occurrences are unchanged." + #: src/services/MdbaseSpecService.ts msgctxt "mdbaseSafety.multiple" msgid "Multiple TaskNotes types: {paths}. Keep one canonical provider or move the others out of the types folder, then reload TaskNotes. TaskNotes kept its last-known-good configuration." @@ -9271,6 +9276,11 @@ msgctxt "notices.interface.parentMissing" msgid "Recurring parent not found" msgstr "Recurring parent not found" +#: src/bases/calendarMutations.ts +msgctxt "calendar recurring pattern drop feedback" +msgid "Recurring pattern time changed to {time}. Later occurrences now appear at this time; the next occurrence keeps its own time." +msgstr "Recurring pattern time changed to {time}. Later occurrences now appear at this time; the next occurrence keeps its own time." + #: src/ui/recurringCompletionNotice.ts msgctxt "notices.recurringCompletion.undone" msgid "Recurring task change undone." diff --git a/src/i18n/locales/es/messages.po b/src/i18n/locales/es/messages.po index 932517d8d..f55d724d5 100644 --- a/src/i18n/locales/es/messages.po +++ b/src/i18n/locales/es/messages.po @@ -7380,6 +7380,11 @@ msgctxt "interaction move feedback" msgid "Moved {count, plural, one {# task} other {# tasks}} to {destination}" msgstr "{count, plural, one {# tarea movida} other {# tareas movidas}} a {destination}" +#: src/bases/calendarMutations.ts +msgctxt "calendar recurring occurrence drop feedback" +msgid "Moved the {from} occurrence to {to}. Other occurrences are unchanged." +msgstr "La repetición del {from} se movió al {to}. Las demás repeticiones no cambian." + #: src/services/MdbaseSpecService.ts msgctxt "mdbaseSafety.multiple" msgid "Multiple TaskNotes types: {paths}. Keep one canonical provider or move the others out of the types folder, then reload TaskNotes. TaskNotes kept its last-known-good configuration." @@ -9271,6 +9276,11 @@ msgctxt "notices.interface.parentMissing" msgid "Recurring parent not found" msgstr "No se encontró la tarea recurrente principal" +#: src/bases/calendarMutations.ts +msgctxt "calendar recurring pattern drop feedback" +msgid "Recurring pattern time changed to {time}. Later occurrences now appear at this time; the next occurrence keeps its own time." +msgstr "La hora del patrón de repetición cambió a las {time}. Las repeticiones posteriores aparecen ahora a esta hora; la próxima repetición conserva su propia hora." + #: src/ui/recurringCompletionNotice.ts msgctxt "notices.recurringCompletion.undone" msgid "Recurring task change undone." diff --git a/src/i18n/locales/fr/messages.po b/src/i18n/locales/fr/messages.po index 78a88557a..303f8d9e0 100644 --- a/src/i18n/locales/fr/messages.po +++ b/src/i18n/locales/fr/messages.po @@ -7380,6 +7380,11 @@ msgctxt "interaction move feedback" msgid "Moved {count, plural, one {# task} other {# tasks}} to {destination}" msgstr "{count, plural, one {# tâche déplacée} other {# tâches déplacées}} vers {destination}" +#: src/bases/calendarMutations.ts +msgctxt "calendar recurring occurrence drop feedback" +msgid "Moved the {from} occurrence to {to}. Other occurrences are unchanged." +msgstr "Occurrence du {from} déplacée au {to}. Les autres occurrences sont inchangées." + #: src/services/MdbaseSpecService.ts msgctxt "mdbaseSafety.multiple" msgid "Multiple TaskNotes types: {paths}. Keep one canonical provider or move the others out of the types folder, then reload TaskNotes. TaskNotes kept its last-known-good configuration." @@ -9271,6 +9276,11 @@ msgctxt "notices.interface.parentMissing" msgid "Recurring parent not found" msgstr "Tâche récurrente parente introuvable" +#: src/bases/calendarMutations.ts +msgctxt "calendar recurring pattern drop feedback" +msgid "Recurring pattern time changed to {time}. Later occurrences now appear at this time; the next occurrence keeps its own time." +msgstr "Heure du modèle de récurrence changée à {time}. Les occurrences suivantes apparaissent désormais à cette heure ; la prochaine occurrence garde sa propre heure." + #: src/ui/recurringCompletionNotice.ts msgctxt "notices.recurringCompletion.undone" msgid "Recurring task change undone." diff --git a/src/i18n/locales/it/messages.po b/src/i18n/locales/it/messages.po index b37186efc..60d94b7e2 100644 --- a/src/i18n/locales/it/messages.po +++ b/src/i18n/locales/it/messages.po @@ -7380,6 +7380,11 @@ msgctxt "interaction move feedback" msgid "Moved {count, plural, one {# task} other {# tasks}} to {destination}" msgstr "{count, plural, one {# attività spostata} other {# attività spostate}} in {destination}" +#: src/bases/calendarMutations.ts +msgctxt "calendar recurring occurrence drop feedback" +msgid "Moved the {from} occurrence to {to}. Other occurrences are unchanged." +msgstr "Occorrenza del {from} spostata al {to}. Le altre occorrenze non cambiano." + #: src/services/MdbaseSpecService.ts msgctxt "mdbaseSafety.multiple" msgid "Multiple TaskNotes types: {paths}. Keep one canonical provider or move the others out of the types folder, then reload TaskNotes. TaskNotes kept its last-known-good configuration." @@ -9271,6 +9276,11 @@ msgctxt "notices.interface.parentMissing" msgid "Recurring parent not found" msgstr "Attività principale della ricorrenza non trovata" +#: src/bases/calendarMutations.ts +msgctxt "calendar recurring pattern drop feedback" +msgid "Recurring pattern time changed to {time}. Later occurrences now appear at this time; the next occurrence keeps its own time." +msgstr "Orario dello schema di ricorrenza cambiato in {time}. Le occorrenze successive ora compaiono a quest'ora; la prossima occorrenza mantiene il proprio orario." + #: src/ui/recurringCompletionNotice.ts msgctxt "notices.recurringCompletion.undone" msgid "Recurring task change undone." diff --git a/src/i18n/locales/ja/messages.po b/src/i18n/locales/ja/messages.po index ed9bf2069..ffbd8d85a 100644 --- a/src/i18n/locales/ja/messages.po +++ b/src/i18n/locales/ja/messages.po @@ -7379,6 +7379,11 @@ msgctxt "interaction move feedback" msgid "Moved {count, plural, one {# task} other {# tasks}} to {destination}" msgstr "{count, plural, other {# 件のタスク}}を {destination} に移動しました" +#: src/bases/calendarMutations.ts +msgctxt "calendar recurring occurrence drop feedback" +msgid "Moved the {from} occurrence to {to}. Other occurrences are unchanged." +msgstr "{from} の回を {to} に移動しました。ほかの回は変更されていません。" + #: src/services/MdbaseSpecService.ts msgctxt "mdbaseSafety.multiple" msgid "Multiple TaskNotes types: {paths}. Keep one canonical provider or move the others out of the types folder, then reload TaskNotes. TaskNotes kept its last-known-good configuration." @@ -9270,6 +9275,11 @@ msgctxt "notices.interface.parentMissing" msgid "Recurring parent not found" msgstr "元の繰り返しタスクが見つかりません" +#: src/bases/calendarMutations.ts +msgctxt "calendar recurring pattern drop feedback" +msgid "Recurring pattern time changed to {time}. Later occurrences now appear at this time; the next occurrence keeps its own time." +msgstr "繰り返しパターンの時刻を {time} に変更しました。以降の回はこの時刻に表示されます。次の回は独自の時刻のままです。" + #: src/ui/recurringCompletionNotice.ts msgctxt "notices.recurringCompletion.undone" msgid "Recurring task change undone." diff --git a/src/i18n/locales/ko/messages.po b/src/i18n/locales/ko/messages.po index 4d7f8ae70..1f5191f2a 100644 --- a/src/i18n/locales/ko/messages.po +++ b/src/i18n/locales/ko/messages.po @@ -7379,6 +7379,11 @@ msgctxt "interaction move feedback" msgid "Moved {count, plural, one {# task} other {# tasks}} to {destination}" msgstr "{count, plural, other {작업 #개}}를 {destination}(으)로 이동했습니다" +#: src/bases/calendarMutations.ts +msgctxt "calendar recurring occurrence drop feedback" +msgid "Moved the {from} occurrence to {to}. Other occurrences are unchanged." +msgstr "{from} 회차를 {to}(으)로 옮겼습니다. 다른 회차는 바뀌지 않았습니다." + #: src/services/MdbaseSpecService.ts msgctxt "mdbaseSafety.multiple" msgid "Multiple TaskNotes types: {paths}. Keep one canonical provider or move the others out of the types folder, then reload TaskNotes. TaskNotes kept its last-known-good configuration." @@ -9270,6 +9275,11 @@ msgctxt "notices.interface.parentMissing" msgid "Recurring parent not found" msgstr "상위 반복 작업을 찾을 수 없습니다" +#: src/bases/calendarMutations.ts +msgctxt "calendar recurring pattern drop feedback" +msgid "Recurring pattern time changed to {time}. Later occurrences now appear at this time; the next occurrence keeps its own time." +msgstr "반복 패턴 시간을 {time}(으)로 바꿨습니다. 이후 회차는 이제 이 시간에 표시되며, 다음 회차는 자체 시간을 유지합니다." + #: src/ui/recurringCompletionNotice.ts msgctxt "notices.recurringCompletion.undone" msgid "Recurring task change undone." diff --git a/src/i18n/locales/pt/messages.po b/src/i18n/locales/pt/messages.po index 5de1bc792..7bbe7187d 100644 --- a/src/i18n/locales/pt/messages.po +++ b/src/i18n/locales/pt/messages.po @@ -7381,6 +7381,11 @@ msgctxt "interaction move feedback" msgid "Moved {count, plural, one {# task} other {# tasks}} to {destination}" msgstr "{count, plural, one {# tarefa movida} other {# tarefas movidas}} para {destination}" +#: src/bases/calendarMutations.ts +msgctxt "calendar recurring occurrence drop feedback" +msgid "Moved the {from} occurrence to {to}. Other occurrences are unchanged." +msgstr "A ocorrência de {from} foi movida para {to}. As outras ocorrências não mudaram." + #: src/services/MdbaseSpecService.ts msgctxt "mdbaseSafety.multiple" msgid "Multiple TaskNotes types: {paths}. Keep one canonical provider or move the others out of the types folder, then reload TaskNotes. TaskNotes kept its last-known-good configuration." @@ -9272,6 +9277,11 @@ msgctxt "notices.interface.parentMissing" msgid "Recurring parent not found" msgstr "Tarefa recorrente principal não encontrada" +#: src/bases/calendarMutations.ts +msgctxt "calendar recurring pattern drop feedback" +msgid "Recurring pattern time changed to {time}. Later occurrences now appear at this time; the next occurrence keeps its own time." +msgstr "O horário do padrão de recorrência mudou para {time}. As ocorrências seguintes passam a aparecer neste horário; a próxima ocorrência mantém o próprio horário." + #: src/ui/recurringCompletionNotice.ts msgctxt "notices.recurringCompletion.undone" msgid "Recurring task change undone." diff --git a/src/i18n/locales/ru/messages.po b/src/i18n/locales/ru/messages.po index 6d6d70dbb..6eed8d1a7 100644 --- a/src/i18n/locales/ru/messages.po +++ b/src/i18n/locales/ru/messages.po @@ -7380,6 +7380,11 @@ msgctxt "interaction move feedback" msgid "Moved {count, plural, one {# task} other {# tasks}} to {destination}" msgstr "{count, plural, one {# задача перемещена} few {# задачи перемещены} many {# задач перемещены} other {# задачи перемещены}} в {destination}" +#: src/bases/calendarMutations.ts +msgctxt "calendar recurring occurrence drop feedback" +msgid "Moved the {from} occurrence to {to}. Other occurrences are unchanged." +msgstr "Повторение от {from} перенесено на {to}. Остальные повторения не изменились." + #: src/services/MdbaseSpecService.ts msgctxt "mdbaseSafety.multiple" msgid "Multiple TaskNotes types: {paths}. Keep one canonical provider or move the others out of the types folder, then reload TaskNotes. TaskNotes kept its last-known-good configuration." @@ -9271,6 +9276,11 @@ msgctxt "notices.interface.parentMissing" msgid "Recurring parent not found" msgstr "Родительская повторяющаяся задача не найдена" +#: src/bases/calendarMutations.ts +msgctxt "calendar recurring pattern drop feedback" +msgid "Recurring pattern time changed to {time}. Later occurrences now appear at this time; the next occurrence keeps its own time." +msgstr "Время шаблона повторения изменено на {time}. Последующие повторения теперь отображаются в это время; следующее повторение сохраняет своё время." + #: src/ui/recurringCompletionNotice.ts msgctxt "notices.recurringCompletion.undone" msgid "Recurring task change undone." diff --git a/src/i18n/locales/zh/messages.po b/src/i18n/locales/zh/messages.po index 4e5b411d4..d368b4e39 100644 --- a/src/i18n/locales/zh/messages.po +++ b/src/i18n/locales/zh/messages.po @@ -7377,6 +7377,11 @@ msgctxt "interaction move feedback" msgid "Moved {count, plural, one {# task} other {# tasks}} to {destination}" msgstr "已将{count, plural, other { # 个任务}}移至 {destination}" +#: src/bases/calendarMutations.ts +msgctxt "calendar recurring occurrence drop feedback" +msgid "Moved the {from} occurrence to {to}. Other occurrences are unchanged." +msgstr "已将 {from} 的这次重复移至 {to}。其他重复未更改。" + #: src/services/MdbaseSpecService.ts msgctxt "mdbaseSafety.multiple" msgid "Multiple TaskNotes types: {paths}. Keep one canonical provider or move the others out of the types folder, then reload TaskNotes. TaskNotes kept its last-known-good configuration." @@ -9268,6 +9273,11 @@ msgctxt "notices.interface.parentMissing" msgid "Recurring parent not found" msgstr "未找到重复任务的父任务" +#: src/bases/calendarMutations.ts +msgctxt "calendar recurring pattern drop feedback" +msgid "Recurring pattern time changed to {time}. Later occurrences now appear at this time; the next occurrence keeps its own time." +msgstr "重复规则的时间已改为 {time}。之后的重复现在显示在此时间;下一次重复保留其自身的时间。" + #: src/ui/recurringCompletionNotice.ts msgctxt "notices.recurringCompletion.undone" msgid "Recurring task change undone." From c03c2fb15c0b6588ed2f4a74d3609e12d688bf6a Mon Sep 17 00:00:00 2001 From: callumalpass <callumalpass@gmail.com> Date: Fri, 20 Nov 2026 14:20:12 +1100 Subject: [PATCH 2/3] fix: word the series-time drop notice as "Series time" (#2631) Matches the "Series status" label for recurring tasks (#2632). --- docs/views/calendar-views.md | 2 +- .../issue-2631-projected-occurrence-drop.spec.ts | 2 +- src/bases/calendarMutations.ts | 2 +- src/i18n/locales/de/messages.po | 10 +++++----- src/i18n/locales/en/messages.po | 10 +++++----- src/i18n/locales/es/messages.po | 10 +++++----- src/i18n/locales/fr/messages.po | 10 +++++----- src/i18n/locales/it/messages.po | 10 +++++----- src/i18n/locales/ja/messages.po | 10 +++++----- src/i18n/locales/ko/messages.po | 10 +++++----- src/i18n/locales/pt/messages.po | 10 +++++----- src/i18n/locales/ru/messages.po | 10 +++++----- src/i18n/locales/zh/messages.po | 10 +++++----- 13 files changed, 53 insertions(+), 53 deletions(-) diff --git a/docs/views/calendar-views.md b/docs/views/calendar-views.md index 74c43f412..a0e3cd3b4 100644 --- a/docs/views/calendar-views.md +++ b/docs/views/calendar-views.md @@ -128,7 +128,7 @@ The calendar provides different behaviors depending on which type of recurring e What a drop changes depends on where the instance lands: -- **Same day, another time**: updates the time in the recurrence rule's `DTSTART`, so every later pattern instance appears at the new time. The independently scheduled next occurrence keeps its own time. Notice: "Recurring pattern time changed to 14:00. Later occurrences now appear at this time; the next occurrence keeps its own time." +- **Same day, another time**: updates the time in the recurrence rule's `DTSTART`, so every later pattern instance appears at the new time. The independently scheduled next occurrence keeps its own time. Notice: "Series time changed to 14:00. Later occurrences now appear at this time; the next occurrence keeps its own time." - **Another day, or between the all-day row and a time slot**: moves only that instance. TaskNotes creates an [occurrence note](../features/recurring-tasks.md#materialized-occurrence-notes) for the instance's date, scheduled where you dropped it, and leaves the recurrence rule unchanged. Notice: "Moved the Nov 29, 2026 occurrence to Nov 30, 2026 09:00. Other occurrences are unchanged." Undo deletes the new occurrence note. - **Same day and time**: nothing changes. diff --git a/e2e/issues/issue-2631-projected-occurrence-drop.spec.ts b/e2e/issues/issue-2631-projected-occurrence-drop.spec.ts index ec3272ee7..8c740c96b 100644 --- a/e2e/issues/issue-2631-projected-occurrence-drop.spec.ts +++ b/e2e/issues/issue-2631-projected-occurrence-drop.spec.ts @@ -181,7 +181,7 @@ test('dropping a projected occurrence on another day moves only that occurrence' expect((await frontmatter(page, filter)).scheduled).toBe('2027-01-10T11:00'); expect(await occurrenceNotes(page, filter)).toEqual([]); await expect(page.locator('.tn-toast').filter({ hasText: `${prefix} filter` })) - .toContainText('Recurring pattern time changed to 14:00'); + .toContainText('Series time changed to 14:00'); // Another day's all-day row: a date-only occurrence note; the rule keeps its time. await drag(page, 'post', { day: MONDAY, allDay: true }); diff --git a/src/bases/calendarMutations.ts b/src/bases/calendarMutations.ts index 687e869ff..b25e2416f 100644 --- a/src/bases/calendarMutations.ts +++ b/src/bases/calendarMutations.ts @@ -337,7 +337,7 @@ async function applyTaskCalendarGesture( : pattern?.kind === "series-time" ? `${result.task.title} · ${uiText( msg({ - message: "Recurring pattern time changed to {time}. Later occurrences now appear at this time; the next occurrence keeps its own time.", + message: "Series time changed to {time}. Later occurrences now appear at this time; the next occurrence keeps its own time.", context: "calendar recurring pattern drop feedback", }), { time: formatTime(info.event.start, timeFormat) } diff --git a/src/i18n/locales/de/messages.po b/src/i18n/locales/de/messages.po index 129a9cbf8..a0544888f 100644 --- a/src/i18n/locales/de/messages.po +++ b/src/i18n/locales/de/messages.po @@ -9274,11 +9274,6 @@ msgctxt "notices.interface.parentMissing" msgid "Recurring parent not found" msgstr "Übergeordnete wiederkehrende Aufgabe nicht gefunden" -#: src/bases/calendarMutations.ts -msgctxt "calendar recurring pattern drop feedback" -msgid "Recurring pattern time changed to {time}. Later occurrences now appear at this time; the next occurrence keeps its own time." -msgstr "Uhrzeit des Wiederholungsmusters auf {time} geändert. Spätere Vorkommen erscheinen jetzt zu dieser Uhrzeit; das nächste Vorkommen behält seine eigene Uhrzeit." - #: src/ui/recurringCompletionNotice.ts msgctxt "notices.recurringCompletion.undone" msgid "Recurring task change undone." @@ -10086,6 +10081,11 @@ msgctxt "settings.native.separateValuesWithCommas" msgid "Separate values with commas." msgstr "Werte durch Kommas trennen." +#: src/bases/calendarMutations.ts +msgctxt "calendar recurring pattern drop feedback" +msgid "Series time changed to {time}. Later occurrences now appear at this time; the next occurrence keeps its own time." +msgstr "Serienuhrzeit auf {time} geändert. Spätere Vorkommen erscheinen jetzt zu dieser Uhrzeit; das nächste Vorkommen behält seine eigene Uhrzeit." + #: src/settings/native/integrations.ts msgctxt "settings.integrations.calendarSubscriptions.recurringEventRelatedNotesMode.options.series" msgid "Series-wide" diff --git a/src/i18n/locales/en/messages.po b/src/i18n/locales/en/messages.po index 7c247b30f..e67a24284 100644 --- a/src/i18n/locales/en/messages.po +++ b/src/i18n/locales/en/messages.po @@ -9276,11 +9276,6 @@ msgctxt "notices.interface.parentMissing" msgid "Recurring parent not found" msgstr "Recurring parent not found" -#: src/bases/calendarMutations.ts -msgctxt "calendar recurring pattern drop feedback" -msgid "Recurring pattern time changed to {time}. Later occurrences now appear at this time; the next occurrence keeps its own time." -msgstr "Recurring pattern time changed to {time}. Later occurrences now appear at this time; the next occurrence keeps its own time." - #: src/ui/recurringCompletionNotice.ts msgctxt "notices.recurringCompletion.undone" msgid "Recurring task change undone." @@ -10088,6 +10083,11 @@ msgctxt "settings.native.separateValuesWithCommas" msgid "Separate values with commas." msgstr "Separate values with commas." +#: src/bases/calendarMutations.ts +msgctxt "calendar recurring pattern drop feedback" +msgid "Series time changed to {time}. Later occurrences now appear at this time; the next occurrence keeps its own time." +msgstr "Series time changed to {time}. Later occurrences now appear at this time; the next occurrence keeps its own time." + #: src/settings/native/integrations.ts msgctxt "settings.integrations.calendarSubscriptions.recurringEventRelatedNotesMode.options.series" msgid "Series-wide" diff --git a/src/i18n/locales/es/messages.po b/src/i18n/locales/es/messages.po index f55d724d5..1257607d6 100644 --- a/src/i18n/locales/es/messages.po +++ b/src/i18n/locales/es/messages.po @@ -9276,11 +9276,6 @@ msgctxt "notices.interface.parentMissing" msgid "Recurring parent not found" msgstr "No se encontró la tarea recurrente principal" -#: src/bases/calendarMutations.ts -msgctxt "calendar recurring pattern drop feedback" -msgid "Recurring pattern time changed to {time}. Later occurrences now appear at this time; the next occurrence keeps its own time." -msgstr "La hora del patrón de repetición cambió a las {time}. Las repeticiones posteriores aparecen ahora a esta hora; la próxima repetición conserva su propia hora." - #: src/ui/recurringCompletionNotice.ts msgctxt "notices.recurringCompletion.undone" msgid "Recurring task change undone." @@ -10088,6 +10083,11 @@ msgctxt "settings.native.separateValuesWithCommas" msgid "Separate values with commas." msgstr "Separe los valores con comas." +#: src/bases/calendarMutations.ts +msgctxt "calendar recurring pattern drop feedback" +msgid "Series time changed to {time}. Later occurrences now appear at this time; the next occurrence keeps its own time." +msgstr "La hora de la serie cambió a las {time}. Las repeticiones posteriores aparecen ahora a esta hora; la próxima repetición conserva su propia hora." + #: src/settings/native/integrations.ts msgctxt "settings.integrations.calendarSubscriptions.recurringEventRelatedNotesMode.options.series" msgid "Series-wide" diff --git a/src/i18n/locales/fr/messages.po b/src/i18n/locales/fr/messages.po index 303f8d9e0..24f0f5c45 100644 --- a/src/i18n/locales/fr/messages.po +++ b/src/i18n/locales/fr/messages.po @@ -9276,11 +9276,6 @@ msgctxt "notices.interface.parentMissing" msgid "Recurring parent not found" msgstr "Tâche récurrente parente introuvable" -#: src/bases/calendarMutations.ts -msgctxt "calendar recurring pattern drop feedback" -msgid "Recurring pattern time changed to {time}. Later occurrences now appear at this time; the next occurrence keeps its own time." -msgstr "Heure du modèle de récurrence changée à {time}. Les occurrences suivantes apparaissent désormais à cette heure ; la prochaine occurrence garde sa propre heure." - #: src/ui/recurringCompletionNotice.ts msgctxt "notices.recurringCompletion.undone" msgid "Recurring task change undone." @@ -10088,6 +10083,11 @@ msgctxt "settings.native.separateValuesWithCommas" msgid "Separate values with commas." msgstr "Séparez les valeurs par des virgules." +#: src/bases/calendarMutations.ts +msgctxt "calendar recurring pattern drop feedback" +msgid "Series time changed to {time}. Later occurrences now appear at this time; the next occurrence keeps its own time." +msgstr "Heure de la série changée à {time}. Les occurrences suivantes apparaissent désormais à cette heure ; la prochaine occurrence garde sa propre heure." + #: src/settings/native/integrations.ts msgctxt "settings.integrations.calendarSubscriptions.recurringEventRelatedNotesMode.options.series" msgid "Series-wide" diff --git a/src/i18n/locales/it/messages.po b/src/i18n/locales/it/messages.po index 60d94b7e2..30e7b9419 100644 --- a/src/i18n/locales/it/messages.po +++ b/src/i18n/locales/it/messages.po @@ -9276,11 +9276,6 @@ msgctxt "notices.interface.parentMissing" msgid "Recurring parent not found" msgstr "Attività principale della ricorrenza non trovata" -#: src/bases/calendarMutations.ts -msgctxt "calendar recurring pattern drop feedback" -msgid "Recurring pattern time changed to {time}. Later occurrences now appear at this time; the next occurrence keeps its own time." -msgstr "Orario dello schema di ricorrenza cambiato in {time}. Le occorrenze successive ora compaiono a quest'ora; la prossima occorrenza mantiene il proprio orario." - #: src/ui/recurringCompletionNotice.ts msgctxt "notices.recurringCompletion.undone" msgid "Recurring task change undone." @@ -10088,6 +10083,11 @@ msgctxt "settings.native.separateValuesWithCommas" msgid "Separate values with commas." msgstr "Separa i valori con virgole." +#: src/bases/calendarMutations.ts +msgctxt "calendar recurring pattern drop feedback" +msgid "Series time changed to {time}. Later occurrences now appear at this time; the next occurrence keeps its own time." +msgstr "Orario della serie cambiato in {time}. Le occorrenze successive ora compaiono a quest'ora; la prossima occorrenza mantiene il proprio orario." + #: src/settings/native/integrations.ts msgctxt "settings.integrations.calendarSubscriptions.recurringEventRelatedNotesMode.options.series" msgid "Series-wide" diff --git a/src/i18n/locales/ja/messages.po b/src/i18n/locales/ja/messages.po index ffbd8d85a..f6a61d866 100644 --- a/src/i18n/locales/ja/messages.po +++ b/src/i18n/locales/ja/messages.po @@ -9275,11 +9275,6 @@ msgctxt "notices.interface.parentMissing" msgid "Recurring parent not found" msgstr "元の繰り返しタスクが見つかりません" -#: src/bases/calendarMutations.ts -msgctxt "calendar recurring pattern drop feedback" -msgid "Recurring pattern time changed to {time}. Later occurrences now appear at this time; the next occurrence keeps its own time." -msgstr "繰り返しパターンの時刻を {time} に変更しました。以降の回はこの時刻に表示されます。次の回は独自の時刻のままです。" - #: src/ui/recurringCompletionNotice.ts msgctxt "notices.recurringCompletion.undone" msgid "Recurring task change undone." @@ -10087,6 +10082,11 @@ msgctxt "settings.native.separateValuesWithCommas" msgid "Separate values with commas." msgstr "値をカンマで区切ります。" +#: src/bases/calendarMutations.ts +msgctxt "calendar recurring pattern drop feedback" +msgid "Series time changed to {time}. Later occurrences now appear at this time; the next occurrence keeps its own time." +msgstr "シリーズの時刻を {time} に変更しました。以降の回はこの時刻に表示されます。次の回は独自の時刻のままです。" + #: src/settings/native/integrations.ts msgctxt "settings.integrations.calendarSubscriptions.recurringEventRelatedNotesMode.options.series" msgid "Series-wide" diff --git a/src/i18n/locales/ko/messages.po b/src/i18n/locales/ko/messages.po index 1f5191f2a..a7d3f37d8 100644 --- a/src/i18n/locales/ko/messages.po +++ b/src/i18n/locales/ko/messages.po @@ -9275,11 +9275,6 @@ msgctxt "notices.interface.parentMissing" msgid "Recurring parent not found" msgstr "상위 반복 작업을 찾을 수 없습니다" -#: src/bases/calendarMutations.ts -msgctxt "calendar recurring pattern drop feedback" -msgid "Recurring pattern time changed to {time}. Later occurrences now appear at this time; the next occurrence keeps its own time." -msgstr "반복 패턴 시간을 {time}(으)로 바꿨습니다. 이후 회차는 이제 이 시간에 표시되며, 다음 회차는 자체 시간을 유지합니다." - #: src/ui/recurringCompletionNotice.ts msgctxt "notices.recurringCompletion.undone" msgid "Recurring task change undone." @@ -10087,6 +10082,11 @@ msgctxt "settings.native.separateValuesWithCommas" msgid "Separate values with commas." msgstr "값을 쉼표로 구분하세요." +#: src/bases/calendarMutations.ts +msgctxt "calendar recurring pattern drop feedback" +msgid "Series time changed to {time}. Later occurrences now appear at this time; the next occurrence keeps its own time." +msgstr "시리즈 시간을 {time}(으)로 바꿨습니다. 이후 회차는 이제 이 시간에 표시되며, 다음 회차는 자체 시간을 유지합니다." + #: src/settings/native/integrations.ts msgctxt "settings.integrations.calendarSubscriptions.recurringEventRelatedNotesMode.options.series" msgid "Series-wide" diff --git a/src/i18n/locales/pt/messages.po b/src/i18n/locales/pt/messages.po index 7bbe7187d..3bb2c791e 100644 --- a/src/i18n/locales/pt/messages.po +++ b/src/i18n/locales/pt/messages.po @@ -9277,11 +9277,6 @@ msgctxt "notices.interface.parentMissing" msgid "Recurring parent not found" msgstr "Tarefa recorrente principal não encontrada" -#: src/bases/calendarMutations.ts -msgctxt "calendar recurring pattern drop feedback" -msgid "Recurring pattern time changed to {time}. Later occurrences now appear at this time; the next occurrence keeps its own time." -msgstr "O horário do padrão de recorrência mudou para {time}. As ocorrências seguintes passam a aparecer neste horário; a próxima ocorrência mantém o próprio horário." - #: src/ui/recurringCompletionNotice.ts msgctxt "notices.recurringCompletion.undone" msgid "Recurring task change undone." @@ -10089,6 +10084,11 @@ msgctxt "settings.native.separateValuesWithCommas" msgid "Separate values with commas." msgstr "Separe os valores por vírgulas." +#: src/bases/calendarMutations.ts +msgctxt "calendar recurring pattern drop feedback" +msgid "Series time changed to {time}. Later occurrences now appear at this time; the next occurrence keeps its own time." +msgstr "O horário da série mudou para {time}. As ocorrências seguintes passam a aparecer neste horário; a próxima ocorrência mantém o próprio horário." + #: src/settings/native/integrations.ts msgctxt "settings.integrations.calendarSubscriptions.recurringEventRelatedNotesMode.options.series" msgid "Series-wide" diff --git a/src/i18n/locales/ru/messages.po b/src/i18n/locales/ru/messages.po index 6eed8d1a7..5c0b317d8 100644 --- a/src/i18n/locales/ru/messages.po +++ b/src/i18n/locales/ru/messages.po @@ -9276,11 +9276,6 @@ msgctxt "notices.interface.parentMissing" msgid "Recurring parent not found" msgstr "Родительская повторяющаяся задача не найдена" -#: src/bases/calendarMutations.ts -msgctxt "calendar recurring pattern drop feedback" -msgid "Recurring pattern time changed to {time}. Later occurrences now appear at this time; the next occurrence keeps its own time." -msgstr "Время шаблона повторения изменено на {time}. Последующие повторения теперь отображаются в это время; следующее повторение сохраняет своё время." - #: src/ui/recurringCompletionNotice.ts msgctxt "notices.recurringCompletion.undone" msgid "Recurring task change undone." @@ -10088,6 +10083,11 @@ msgctxt "settings.native.separateValuesWithCommas" msgid "Separate values with commas." msgstr "Разделяйте значения запятыми." +#: src/bases/calendarMutations.ts +msgctxt "calendar recurring pattern drop feedback" +msgid "Series time changed to {time}. Later occurrences now appear at this time; the next occurrence keeps its own time." +msgstr "Время серии изменено на {time}. Последующие повторения теперь отображаются в это время; следующее повторение сохраняет своё время." + #: src/settings/native/integrations.ts msgctxt "settings.integrations.calendarSubscriptions.recurringEventRelatedNotesMode.options.series" msgid "Series-wide" diff --git a/src/i18n/locales/zh/messages.po b/src/i18n/locales/zh/messages.po index d368b4e39..6a363d7fc 100644 --- a/src/i18n/locales/zh/messages.po +++ b/src/i18n/locales/zh/messages.po @@ -9273,11 +9273,6 @@ msgctxt "notices.interface.parentMissing" msgid "Recurring parent not found" msgstr "未找到重复任务的父任务" -#: src/bases/calendarMutations.ts -msgctxt "calendar recurring pattern drop feedback" -msgid "Recurring pattern time changed to {time}. Later occurrences now appear at this time; the next occurrence keeps its own time." -msgstr "重复规则的时间已改为 {time}。之后的重复现在显示在此时间;下一次重复保留其自身的时间。" - #: src/ui/recurringCompletionNotice.ts msgctxt "notices.recurringCompletion.undone" msgid "Recurring task change undone." @@ -10085,6 +10080,11 @@ msgctxt "settings.native.separateValuesWithCommas" msgid "Separate values with commas." msgstr "用逗号分隔值。" +#: src/bases/calendarMutations.ts +msgctxt "calendar recurring pattern drop feedback" +msgid "Series time changed to {time}. Later occurrences now appear at this time; the next occurrence keeps its own time." +msgstr "系列时间已改为 {time}。之后的重复现在显示在此时间;下一次重复保留其自身的时间。" + #: src/settings/native/integrations.ts msgctxt "settings.integrations.calendarSubscriptions.recurringEventRelatedNotesMode.options.series" msgid "Series-wide" From c6188fb54431e509d885227d0b58d9747b936c3d Mon Sep 17 00:00:00 2001 From: callumalpass <callumalpass@gmail.com> Date: Fri, 20 Nov 2026 14:25:30 +1100 Subject: [PATCH 3/3] refactor: leave the applyCalendarEdit call as on main so #2633 applies cleanly (#2631) #2633 adds confirmClearInstances to that call. Keeping the call's lines unchanged lets either PR rebase onto the other without conflicts. Also make the #2631 e2e spec poll frontmatter reads, which briefly return undefined while the file is rewritten. --- .../issue-2631-projected-occurrence-drop.spec.ts | 8 ++++---- src/bases/calendarMutations.ts | 14 +++++++------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/e2e/issues/issue-2631-projected-occurrence-drop.spec.ts b/e2e/issues/issue-2631-projected-occurrence-drop.spec.ts index 8c740c96b..cf07c0676 100644 --- a/e2e/issues/issue-2631-projected-occurrence-drop.spec.ts +++ b/e2e/issues/issue-2631-projected-occurrence-drop.spec.ts @@ -164,7 +164,7 @@ test('dropping a projected occurrence on another day moves only that occurrence' await expect.poll(() => occurrenceNotes(page, water)).toEqual([ expect.objectContaining({ occurrence_date: SUNDAY, scheduled: `${MONDAY}T09:00` }), ]); - expect((await frontmatter(page, water)).recurrence).toBe('DTSTART:20270103T090000Z;FREQ=WEEKLY;BYDAY=SU'); + await expect.poll(async () => (await frontmatter(page, water))?.recurrence).toBe('DTSTART:20270103T090000Z;FREQ=WEEKLY;BYDAY=SU'); await expect.poll(() => items(page, water)).toEqual([`${MONDAY}T09:00 note`]); const moved = page.locator('.tn-toast').filter({ hasText: `${prefix} water` }); await expect(moved).toContainText('occurrence to'); @@ -176,9 +176,9 @@ test('dropping a projected occurrence on another day moves only that occurrence' // Same day, another time: the series' time changes, and the notice says so. await drag(page, 'filter', { day: SUNDAY, hour: 14 }); - await expect.poll(async () => (await frontmatter(page, filter)).recurrence) + await expect.poll(async () => (await frontmatter(page, filter))?.recurrence) .toBe('DTSTART:20270103T140000Z;FREQ=WEEKLY;BYDAY=SU'); - expect((await frontmatter(page, filter)).scheduled).toBe('2027-01-10T11:00'); + await expect.poll(async () => (await frontmatter(page, filter))?.scheduled).toBe('2027-01-10T11:00'); expect(await occurrenceNotes(page, filter)).toEqual([]); await expect(page.locator('.tn-toast').filter({ hasText: `${prefix} filter` })) .toContainText('Series time changed to 14:00'); @@ -188,5 +188,5 @@ test('dropping a projected occurrence on another day moves only that occurrence' await expect.poll(() => occurrenceNotes(page, post)).toEqual([ expect.objectContaining({ occurrence_date: SUNDAY, scheduled: MONDAY }), ]); - expect((await frontmatter(page, post)).recurrence).toBe('DTSTART:20270103T090000Z;FREQ=WEEKLY;BYDAY=SU'); + await expect.poll(async () => (await frontmatter(page, post))?.recurrence).toBe('DTSTART:20270103T090000Z;FREQ=WEEKLY;BYDAY=SU'); }); diff --git a/src/bases/calendarMutations.ts b/src/bases/calendarMutations.ts index b25e2416f..42f12a459 100644 --- a/src/bases/calendarMutations.ts +++ b/src/bases/calendarMutations.ts @@ -279,12 +279,7 @@ async function applyTaskCalendarGesture( const start = info.event.start.toISOString(); const current = await context.plugin.cacheManager.getTaskInfo(taskInfo.path); if (!current) throw new Error(`Missing task: ${taskInfo.path}`); - const change = { - kind, - start, - end: info.event.end?.toISOString(), - allDay: info.event.allDay, - }; + const change = { kind, start, end: info.event.end?.toISOString(), allDay: info.event.allDay }; const timeFormat = (context.options.timeFormat ?? context.plugin.settings.calendarViewSettings?.timeFormat) === "12" ? "12" : "24"; const when = (value: string) => { const date = parseDateToLocal(value); @@ -327,7 +322,12 @@ async function applyTaskCalendarGesture( const result = await captureTaskUndo(context.plugin, current, () => context.plugin.taskService.applyCalendarEdit( current, modelEntry, - change, + { + kind, + start, + end: info.event.end?.toISOString(), + allDay: info.event.allDay, + }, context.timezone )); if (result.task) {