Files
federated-calendar/PLAN.md
T
davidandClaude Opus 5.5 5d1b8d51a8
package / package (push) Successful in 1m48s
Update the plan and test plan for invitations
PLAN.md records the SEQUENCE and DTSTAMP work and that invitations with
a conference now load in Gmail and Thunderbird, and keeps checking the
Join button by hand as its own task.

TEST.md tests that a new event's invitation starts at SEQUENCE 0, that
updates raise it once with a newer DTSTAMP, that the CONFERENCE line has
no FEATURE or LABEL, and that Gmail shows its Yes / No / Maybe card. A
new section says how to check an invitation's iCalendar when a mail app
won't offer Accept, including importing it into Google Calendar.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 10:09:40 -07:00

74 lines
4.1 KiB
Markdown

# Plan
Tasks still to do on Federated Calendar. Tick a box when its work lands, and
remove a feature's section once all of it has shipped.
## Add a Jitsi conference to an event
Let the person editing an event add a Jitsi video conference with one click,
instead of making a room and pasting its link by hand. People invited to the
event get the link in their invitation, and the event popover already shows a
**Join** button for a URL in the location (`set_up_location_label()` in
`src/gui/gcal-event-popover.c`).
### Decisions
- [x] Which Jitsi server: the Core's own. Every Federated Core runs Jitsi.
- [x] How we learn the Core's Jitsi address: it's `https://jitsi.<domain>`
on every Core, derived from `CORE_DOMAIN`. No CoreDesktop change needed.
- [x] Which calendars get the option: Core calendars only, since the
server is the Core's. `gcal_federated_core_get_organizer()` already
tells us which calendars are on a Core. Hide the button on others.
- [x] Where the link goes: in the description, so it travels with the
invitation to every mail client, and in the iCalendar `CONFERENCE`
property (RFC 7986) for clients that read it. The location stays free
for a physical place.
### Work
- [x] Room names: generate an unguessable name (e.g. a random word triple
plus a short random suffix) with a function in `src/federated/` and
a unit test in `tests/`.
- [x] Server lookup: a function in `src/federated/gcal-federated-core.c`
that returns `https://jitsi.<CORE_DOMAIN>` for a Core calendar, using
the `CoreConf` that `load_core_conf()` already reads, with a unit test.
- [x] Event editor UI: an "Add Video Conference" button in the event
editor (probably beside the location in
`src/gui/event-editor/gcal-summary-section.blp`). Once added, show the
link with Copy and Remove buttons instead.
- [x] Saving: when the event is saved, add the link to the description
and a `CONFERENCE` property to the event's iCalendar component, so
that it reaches attendees in the invitation. Keep it stable across
later edits and updates, and take both out again on Remove.
- [x] Check that Nextcloud keeps the `CONFERENCE` property and puts it in
the invitations it sends. It does: the `event.ics` attachment has it
as we wrote it. But with `FEATURE=AUDIO,VIDEO` Gmail showed "Unable
to load event" and no RSVP buttons, and Google Calendar wouldn't
import the file. A bare `CONFERENCE;VALUE=URI:` works, so we write
only that.
- [x] Invitation updates: start a new event's invitation at `SEQUENCE:0`,
raise `SEQUENCE` at most once per save (and only for a change of
date, time or recurrence), and set `DTSTAMP` to the time of saving,
so that mail apps can tell an update from an invitation they've
already seen. `gcal_event_prepare_to_save()` does this; the setters
still commit EDS's sequence, because EDS won't clone a component with
a raise pending.
- [x] Reading: detect Jitsi links in existing events (`CONFERENCE`,
description and location) so that the editor shows "conference added" rather
than offering to add a second one, and so that the popover's Join
button finds them (`gcal_util_extract_meeting_url()` in
`src/utils/gcal-utils.c` only knows Google Meet and Teams).
- [ ] Recurring events: check that the link applies to the whole series
and to "this and future" edits. "All events" now copies the
conference to the series, and the other choices save the edited
occurrence with it. Still to try on a Core, including occurrences
that were edited on their own before.
- [x] Accessibility and translation: labels and tooltips are translatable
and the new widgets are reachable by keyboard and screen reader.
- [x] Docs: describe the feature in `README.md`, and add a `NEWS` entry.
- [x] Test by hand on a Core calendar: add a conference, invite someone,
and check the invitation email. Invitations with a conference load,
with RSVP buttons, in both Gmail and Thunderbird.
- [ ] Check by hand that the popover's Join button opens the room
([TEST.md](TEST.md) 4.7).