Add a Jitsi video conference to events on Core calendars

The event editor offers "Add Video Conference" on the calendars of a
Federated Computer Core. It makes a room with an unguessable name, like
BraveOttersSing-k3f9x2m7, on the Core's Jitsi at jitsi.<CORE_DOMAIN>,
and shows its link with Copy and Remove buttons.

The link goes at the end of the event's notes, which reach everyone
invited whatever their mail app, and in an RFC 7986 CONFERENCE property.
Saving puts the link back in the notes if it was taken out, and "All
events" copies the conference to the whole series.

Existing conferences are found in CONFERENCE, or as Jitsi links in the
notes or location, so the editor doesn't offer a second one and the
popover shows a Join button. The popover now keeps showing a place in
the location alongside a meeting.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-28 07:28:20 -07:00
co-authored by Claude Opus 5.5
parent 0304695ab2
commit 3c118fbb9d
23 changed files with 1809 additions and 61 deletions
+16 -9
View File
@@ -26,31 +26,38 @@ event get the link in their invitation, and the event popover already shows a
### Work
- [ ] Room names: generate an unguessable name (e.g. a random word triple
- [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/`.
- [ ] Server lookup: a function in `src/federated/gcal-federated-core.c`
- [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.
- [ ] Event editor UI: an "Add Video Conference" button in the event
- [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.
- [ ] Saving: when the event is saved, add the link to the description
- [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.
- [ ] Check that Nextcloud keeps the `CONFERENCE` property and puts it in
the invitations it sends.
- [ ] Reading: detect Jitsi links in existing events (`CONFERENCE`,
the invitations it sends. Its source says it stores events as they
are and attaches the whole event as `event.ics`, but the email body
shows only the description (with our link), location and `URL`, not
`CONFERENCE`. Still to see on a Core: whether sabre/vobject's iTip
broker keeps `CONFERENCE` in that attachment.
- [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.
- [ ] Accessibility and translation: labels and tooltips are translatable
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.
- [ ] Docs: describe the feature in `README.md`, and add a `NEWS` entry.
- [x] Docs: describe the feature in `README.md`, and add a `NEWS` entry.
- [ ] Test by hand on a Core calendar: add a conference, invite someone,
and check the invitation email and the Join button both open the room.