A design proposal, not code. Meet-ups (a place and a time) and meetings (a call with an agenda) can already be made in any private chat, group or community topic, and people already answer them there. What is missing is one place that shows them all. This adds a Calendar to the Community tab in the app and to the Community page on the web. It gathers what is already in your chats and adds nothing new to send. new marks what the app does not have today.
The calendar reads the meet-ups and meetings already in your chats. The server, the wire protocol and the message formats stay as they are.
Plans are sealed chat messages. Each device builds its calendar from what it can read, so the server can't tell that a calendar exists.
Going, Maybe and Can't come in the calendar send the same answer as the card in the chat. Change your mind there or here, and the newest answer counts.
To its chat, to its call when it starts, and for a meet-up to its place in the World and a walk there.
Monday 19 October, 9:41. You are in a direct chat with Sanne, the group Fietsclub, and two communities (Gorecht buurt and oosterparkwijk).
meeting::Plan): title, time, agenda and everybody's answers. Opened from the calendar, it comes up as a sheet.Accept / TentativeAccept / Reject as the card does.The same calendar on cartopolis.org, as a row on the Community page beside the chats. A screen this wide gets a week of hours, with the plan you picked open on the right.
Every date in the calendar comes from a message already sent in a chat. Nothing is added to the protocol. One new piece is needed in the app: somewhere to keep the plans.
| Today | What the calendar does | |
|---|---|---|
| Meeting | meeting::Plan, an ActivityStreams Event: title, start, an end if one was given, the agenda. Answers are Accept, TentativeAccept or Reject naming the plan's id; each person's newest answer counts. | Shows the title, the start and the end. With no end it uses the agenda's minutes, and with no agenda one hour. Answers go out through the same path the chat card uses. |
| Meet-up | A Point with Meetup { start_ms } and a place. "I'm going" is a second point at the same place and time (same_meetup). | Shows the place's name (or the caption if it has none), the start, and the walking time from you. The only answer is I'm going. |
| Kept in the app | Chat lines live in memory only. After a restart only the encryption keys are left (platform::storage, Data), so a plan from last week is gone. | new A small list of dated items next to the chat keys in platform::storage, updated as lines arrive and answers change. Items more than 30 days past are dropped. This also keeps "I'm going" location sharing working across a restart, which it does not today. |
| Kept on the web | Every chat it has read, in IndexedDB (history, up to 5,000 messages per chat). | Read from that history, so nothing new needs storing. The web already reminds about meetings ten minutes before; the reminder moves to the calendar. |
| A new device | It reads only what was said after it joined a chat, plus the shared history of the last 300 messages. | Its calendar fills from the same sources, so a plan made before the device joined shows up only if it is in that shared history. |
An "Add to my calendar" button (an .ics file, or Android's calendar) is what people expect. But it copies a private plan out of the encryption, into Google or Apple's sync. Proposal: leave it out of v1. If it's added later, make it one item at a time and say where the copy goes.
Push today only wakes the phone for an incoming call, and the server can't know when a sealed plan starts. A reminder with the app closed would need the phone to set its own alarm (Android AlarmManager) when a plan arrives. Proposal: v1 reminds only while the app is running, as the web does; the alarm comes next.
A meet-up only has "I'm going", so people who can't come say nothing. Giving meet-ups the meeting's three answers is a change to the message format: older builds would show the new answer as an extra message. Proposal: keep it as it is for now.
Every member of a community is in every topic, so a busy community puts every topic's plans in every member's calendar. Proposal: show everything by default, with the per-community switch in H ("only the plans I answered").
"Every Thursday at 20:00" does not exist: a plan has one start. A repeat would be a new field in the plan. Older builds would see only the first date. Not in v1.