Files
agendula/app/src/test/resources/vtodo
Jean-Luc Makiolaandmakiolaj 1d6c2a0d59
Release — F-Droid repo + Gitea/Codeberg release + Play / detect (push) Successful in 7s
Release — F-Droid repo + Gitea/Codeberg release + Play / release (push) Skipped
Release — F-Droid repo + Gitea/Codeberg release + Play / play (push) Skipped
Renovate / renovate (push) Successful in 1m1s
fix: sync task reminders as VALARMs (#52) (#81)
Reminders set in Agendula never reached the server, so a Mac or any other client saw none, and alarms set there never rang here. Reminders now sync as VALARMs in both directions.

**What syncs**
- Alarms Agendula can fire exactly as written become reminders: DISPLAY/AUDIO, relative to start or due, or absolute on a non-recurring task.
- Everything else stays in the residue and round-trips untouched: Apple default alarms, location alarms, repeating alarms, RFC 9074 snoozes, and triggers after their anchor.
- An unchanged alarm is re-emitted verbatim. An edited one is authored fresh under its existing uid. All-day leads go out as whole days.
- `ACKNOWLEDGED` is only added once a reminder is past the planner's missed-reminder grace period.

**Behaviour changes**
- Default reminders are stored on the task when it first gets a due date, so other clients see them. While untouched, they swap with the other default when the task flips between timed and all-day.
- Removing a task's alarms in another app turns them off here instead of falling back to the default. Tasks from clients that never write alarms keep the default.
- "All occurrences" reminder edits now reach occurrences that still had the series' old reminders.
- `.ics` import keeps VALARMs as reminders.

**Database v3**
- Alarms gain a `uid` and `raw` VALARM. Tasks gain `reminders_off`.
- The migration lifts claimable alarms out of the residue. It queues a one-time upload for tasks with local-only reminders on writable, non-confidential lists.

**Testing**
- Unit tests: full 662, offline 489. All instrumented tests pass on the emulator, including the migration. Lint is clean for both flavours.
- Not covered: the repository has no unit-test harness, so storing defaults at creation and the timed/all-day swap have no automated tests. Nothing has been checked against a real Mac yet.

Closes #52

Co-authored-by: Jean-Luc Makiola <business@jeanlucmakiola.de>
Reviewed-on: https://codeberg.org/jlmakiola/agendula/pulls/81
2026-10-19 20:09:55 +02:00
..
2026-09-24 16:36:49 +02:00
2026-10-10 15:06:07 +02:00
2026-10-10 15:06:07 +02:00
2026-09-24 16:36:49 +02:00
2026-09-24 16:36:49 +02:00
2026-09-24 16:36:49 +02:00
2026-09-24 16:36:49 +02:00
2026-09-24 16:36:49 +02:00
2026-09-24 16:36:49 +02:00
2026-09-24 16:36:49 +02:00
2026-09-24 16:36:49 +02:00
2026-09-24 16:36:49 +02:00
2026-09-24 16:36:49 +02:00
2026-09-24 16:36:49 +02:00
2026-09-24 16:36:49 +02:00
2026-09-24 16:36:49 +02:00
2026-09-24 16:36:49 +02:00
2026-09-24 16:36:49 +02:00
2026-09-24 16:36:49 +02:00

VTODO fixture corpus

The mapper's specification, not its regression net. Every file here is a shape that was found in the wild and that a plausible implementation gets wrong. A clean, server-generated VTODO catches nothing and is deliberately absent.

RoundTripTest asserts every fixture survives parse → map → write → serialise with no property lost, compared as a canonical multiset modulo an allowlist (PRODID, DTSTAMP, LAST-MODIFIED, SEQUENCE, VTIMEZONE bodies, fold positions, parameter quoting).

File What it is for
nextcloud-shared-confidential.ics A CLASS:CONFIDENTIAL task as Nextcloud rewrites it on GET from a shared calendar — DUE, STATUS, COMPLETED, PERCENT-COMPLETE, PRIORITY and RELATED-TO already stripped, ETag left untouched. Re-PUTting this destroys the owner's task
recurring-master-overrides.ics Master plus two RECURRENCE-ID overrides in one resource, sharing a UID
valarm-unknown-nested.ics Unknown properties inside a VALARM — the case a flat property-per-row model cannot represent. An Apple default alarm, so it stays in the residue
valarm-claimed-apple.ics The same Apple alarm without X-APPLE-DEFAULT-ALARM, so it is claimed as a reminder: RELATED=START on a task with only DUE (Apple's non-conformant shape) reads as a before-due lead, and the original must come back verbatim through the row's raw
unknown-component.ics An entirely unknown sub-component
unknown-tzid.ics A TZID no device tzdb knows, with its own VTIMEZONE
uid-special-chars.ics A UID containing / and @ — the href sanitiser must not assume it is filename-safe
rrule-due-no-dtstart.ics RRULE + DUE and no DTSTART: no well-defined RECURRENCE-ID, undefined in RFC 5545, ubiquitous in the wild
moz-alarm-props.ics X-MOZ-LASTACK / X-MOZ-SNOOZE-TIME. Dropping them causes documented Thunderbird alarm storms
apple-sort-order.ics X-APPLE-SORT-ORDER — preserve, never interpret
floating-time.ics DTSTART with neither Z nor TZID. Readable, not reproducible: it must round-trip from the residue, not be rewritten as a guess
completion-model-a.ics Completion as a RECURRENCE-ID override, master stays open — jtx Board, Thunderbird. The model we write
completion-model-b.ics Master's DUE advanced in place, completion cleared — tasks.org, Evolution, Nextcloud in practice
completion-model-c.ics STATUS:COMPLETED on the master, killing the series — Nextcloud Tasks ≤ 0.17. Always a bug; we read it, we never write it
completion-model-d.ics The completed occurrence detached as a new task with a new UID — OpenTasks
quoted-param-colon.ics A quoted parameter value containing a colon and a comma. The value separator is the first colon outside quotes
mixed-value-types.ics DTSTART;VALUE=DATE with a timed DUE. One is_all_day flag cannot author both, so the odd one out must stay in the residue rather than be flattened to a date
malformed-scalars.ics PRIORITY:11, PERCENT-COMPLETE:150, SEQUENCE:x, STATUS:X-DEFERRED, CLASS:X-INTERNAL — values no spec allows. Clamping or defaulting any of them is a silent rewrite of somebody's data
two-timezones.ics DTSTART and DUE in different zones. One timezone column cannot author both
folded-utf8.ics A line folded mid-emoji-adjacent, to prove folding counts octets and splits on character boundaries
categories-shapes.ics One CATEGORIES line with an escaped comma inside a value — the one shape the column claims, so it is re-authored and must come out identical
categories-split.ics One line per tag, a LANGUAGE parameter and a space after a comma. Read for display, but none of it is ours to rewrite