Repository navigation
Description
The goal
After someone registers, every choice in the "Add to calendar" menu should put the class in
their calendar in one step, with every session at the right time. Today Apple Calendar only
downloads a file, and Outlook and Yahoo receive only the next session of a weekly class, not
the series. This helps every registrant, whatever calendar they use.
Why it matters
"The Add to Calendar buttons don't actually add them to your calendar, they just download a
file." On a Mac the file sits in Downloads and often never gets opened. Someone who adds a
weekly class to Outlook gets one session and then nothing, so they stop coming. A session the
organiser cancels stays in everyone's calendar.
What success looks like
- Apple Calendar (Mac, iPhone, iPad): one choice opens Calendar with a "subscribe" prompt. No file to find (Built; not checked by hand, dropped at close, 2026-11-18.)
- Google Calendar: one choice, and the class appears under "Other calendars" with all its sessions (Built; not checked by hand, dropped at close, 2026-11-18.)
- Outlook.com and Office 365: one choice opens a subscribe prompt, not a one-event form, and at least three future sessions of a weekly class appear. Checked on both, with a personal account and a work account (Moved to feat(calendar): subscribe from the Outlook.com and Office 365 rows #428, 2026-11-18.)
- Yahoo: still one choice, and the menu says plainly that it adds only the next session (The menu notes were dropped at close, 2026-11-18. Yahoo still adds the next session.)
- Every session shows at the right local time, including after the clocks change: a 6pm London class still reads 6pm for a session after the next change, in Apple Calendar and in Google Calendar (Built: the feed carries
DTSTART;TZIDand aVTIMEZONE, asserted since fix(events): stamp the ICS feed's DTSTAMP and LAST-MODIFIED in UTC SahajCloud#1161. Not checked by hand; that check was dropped at close, 2026-11-18.) - Where the calendar keeps itself up to date (Apple, Google, Outlook), a session the organiser cancels disappears within a day, without the person doing anything (Built for Apple and Google; not checked by hand, dropped at close, 2026-11-18. Outlook follows feat(calendar): subscribe from the Outlook.com and Office 365 rows #428.)
- A class the organiser cancels outright disappears the same way, within a day (Built: the 90-day cancelled answer; not checked by hand, dropped at close, 2026-11-18.)
- A class's calendar address cannot be worked out from the class. Only someone handed the link can subscribe, and trying a neighbouring class's address gets nothing
- An online class never shows its private joining link in a calendar anyone but the registrant can reach. The file emailed to that one person still carries it, for their own calendar
- People using other calendar apps can still download the file, from the last item in the menu
- On a site that frames the atlas with restrictions, the menu either works or says why — checked on one real host page (Dropped at close, 2026-11-18.)
Not included
- A calendar of every class in a region or city. This covers the one class a person registered for.
- The calendar file attached to the confirmation email, which stays as it is.
- Making a calendar pick up a change faster than that service chooses to. Each one re-reads on its own schedule and nothing we send changes that.
- Counting the visits calendar services make to us in any site's usage figures. Those visits carry no site's key, so nothing counts them; We know accurately how much each client site uses the atlas SahajCloud#1015 owns that number.
- Removing Yahoo or the download from the menu.
Decisions
- Use the subscribe approach for Apple Calendar → yes (Ardnived, 2026-11-05)
- Extend one-click adding to every calendar choice, where the service allows it → yes (Ardnived, 2026-11-05)
- Which services subscribe, rather than add a single entry? → Apple, Google and Outlook (Ardnived, 2026-11-06)
- What do subscribing services do for a one-time class? → subscribe anyway (Ardnived, 2026-11-06)
- Keep a separate "Download .ics file" choice? → yes, as the last item (Ardnived, 2026-11-06)
- Should a class's calendar address be guessable from the class, or an unguessable link? → an unguessable link, handed out with the class (Ardnived, 2026-11-11)
- What should that address answer once a class is cancelled or taken down? → keep answering for 90 days, saying the class is cancelled, so it clears itself out of people's calendars (Ardnived, 2026-11-11)
- Does the private joining link stay in the calendar file attached to the confirmation email? → yes, and the success line narrows to calendars other people can reach (Ardnived, 2026-11-11)
- What carries on once this goal closes? → Only the Outlook subscribe rows (feat(calendar): subscribe from the Outlook.com and Office 365 rows #428). The menu notes and the hand checks are dropped. (Ardnived, 2026-11-18)
Open questions
None. Every decision above is settled.
Notes
The menu redesign this builds on: #366 (merged).
Yahoo has no address that subscribes in one click. Its one-click choice stays limited to the next session, unless the service turns out to offer one.
A subscribed calendar is its own calendar, so someone who opens the emailed file and subscribes can see the class twice. Keeping the link in the attachment leaves that as it is.
Related: sydevs/SahajCloud#1015, which owns the usage figures these visits will not appear in.
Children, producer first:
- SahajCloud — a public calendar file address for each event, and the new menu wording
- SahajAtlasWeb — the menu's choices use that address (blocked by 1)
Technical notes
TL;DR
- Shipped and merged 2026-11-12: feat(events): serve a token-addressed calendar feed for a class SahajCloud#1134 (the feed) and feat(calendar): subscribe to a class's feed from the calendar menu #395 (the menu). Apple and Google subscribe to a per-class
webcal://feed at an unguessable signed address, which answers "cancelled" for 90 days after a takedown and carries no joining link. - Outstanding: Outlook never got a verified subscribe address, no row says whether it keeps itself up to date, and the DST line rests on a
VTIMEZONEthe live feed does not emit. - Standing risk: the feed is unauthenticated by construction — no key gate, no origin check, no counter. The token is the whole access control, and a stateless token cannot be withdrawn one at a time. Taking the class down is the per-class withdrawal, which is what the 90-day cancelled answer is for.
What shipped (2026-11-12)
Checked read-only against production cloud.sydevelopers.com on 2026-11-12.
| Success line | State | Evidence |
|---|---|---|
| Apple subscribes | Built, unclicked | the webcal:// row, opensPage: false (AddToCalendar.tsx) |
| Google subscribes | Built, unclicked | calendar/r?cid=<the webcal address, encoded> (ics.ts:435) |
| Outlook subscribes | Not shipped | both rows kept rru=addevent, one session (ics.ts:479) |
| Yahoo says "next session only" | Not shipped | #1134's review dropped both copy keys, so no row carries a sub-label at all |
| DST holds | At risk | the live feed carries no VTIMEZONE — below |
| A cancellation clears itself | Built, unobserved | 90-day STATUS:CANCELLED, SEQUENCE from whole seconds of updatedAt |
| The address cannot be guessed | Met | one character changed in the token → 404; the same path without .ics → 404 |
| No joining link in the feed | Met | event 1326 carries an onlineUrl; its feed has no LOCATION, no DESCRIPTION and no hit for it |
| The download is last | Met | the one <button>, after the five anchors |
| A framed host page | Unchecked | docs/embedding.md carries the new flags; the sandboxed-page click was never run |
⚠ BEGIN:VTIMEZONE is absent from every production feed (events 1324 and 1326, fetched 2026-11-12). buildEventCalendar passes timezone: { name, generator: getVtimezoneComponent } (icsBuilder.ts:163), and tests/int/event-calendar-feed.int.spec.ts:139 asserts the component and is green — so the test environment emits it and the deployed one does not. The same builder serves the confirmation email's attachment, which has shipped without it for as long. icsBuilder.ts:13-18 is where this repo records that Apple can float a bare TZID to local time and drift a weekly class by an hour across a DST change, which is the goal's DST line.
⚠ The two menu sub-labels never shipped. #1134's review dropped calendar_keeps_updated and calendar_next_session_only with their schema entries, the seed line and the data migration, so the widget's sync carried nothing. Copy is CMS-owned — the widget may not hand-edit a string or translations.en.json — so restoring the Yahoo line starts with a SahajCloud ticket, not a widget change.
Per-provider routes
| Provider | One-click route | Series | Self-updating | Confidence |
|---|---|---|---|---|
| Apple | webcal://<host>/api/events/calendar/<token>.ics |
Yes | ~hourly | High |
calendar.google.com/calendar/r?cid=… — the same webcal:// address, percent-encoded |
Yes | Subscribe only, ~8–24h | High | |
| Outlook.com / Office 365 | outlook.{live.com,office.com}/calendar/0/addfromweb?url=…, else …/calendar/0/deeplink/compose?path=/calendar/action/compose&rru=addsubscription&url=… |
Unverified | ~3–24h | Low |
| Yahoo | none exists; its ?v=60 link stays, one session |
No | No | High |
⚠ Neither Outlook shape is verified, and neither shipped. Microsoft documents neither. The one dated source for addfromweb (jamesdoc.com, 2024-01) gives url=webcal://… and no name, a second says Outlook on the web takes https:// there and not webcal://, and a Microsoft Q&A thread reports the add-event modal opening instead. Both hosts answer 417 to every path, a bogus one included (2026-11-06), and the page is a signed-in SPA, so only a human click settles it. Try addfromweb first, then the rru=addsubscription sibling of the rru=addevent link the menu already ships, each with both the webcal:// and the https:// form of url=. A shape is settled only by a subscribe dialog listing more than one session, signed in on each host.
Those intervals are client-controlled — Apple's is a user setting, Google publishes none, and [MS-OXCICAL] says an importer SHOULD ignore X-PUBLISHED-TTL. Send both hints and rest no success line on them. The honest promise is within a day.
What still binds
| Fact | Why it still matters | Evidence |
|---|---|---|
| The email attachment keeps the joining link | Settled, and the feed must never carry it. The two documents also use different UIDs, so someone who opens the attachment and subscribes sees the class twice |
sendRegistrationConfirmation.ts:74-81 |
| A taken-down class keeps its row, for good | trash: true, and the nightly sweep trashes by setting deletedAt. Nothing hard-deletes an event, which is what lets the feed answer "cancelled" for 90 days |
Events.ts:128, ExpireEvents.ts:99,112 |
| The feed is metered by nothing | countClientRead returns unless the caller is a clients user, and a calendar server carries no key. sydevs/SahajCloud#1015 owns that number |
plugins/usage/hooks.ts:512 |
allow-popups covers four menu rows, allow-downloads the last one alone |
A sandboxed host frame can also refuse a webcal: protocol handler whatever flags it carries |
docs/embedding.md |
Sub-issues
Collapse Sub-issuesSub-issues
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Projects
- StatusShow more project fieldsDone
Activity
Ardnived commentedon Nov 6, 2026
@sydevs-bot implement
sydevs-bot commentedon Nov 6, 2026
🤖 no session running
approved by Ardnived
recent dispatches
Written by the sydevs dispatcher. Sessions never edit this comment.
sydevs-bot commentedon Nov 6, 2026
Reviewed from three angles. The plan holds; three decisions are yours.
What changed
webcal:links are refused today and render as plain text, the email's attached file carries the private joining link, and the feed needs a fixed id or every refresh re-creates the entry.Your call — see
## Open questions: the feed's address shape, what it answers once a class is cancelled, and whether the joining link stays in the emailed file. Reply@sydevs-bot revise 1A 2A 3A, or in your own words.Your
implementwaits while those are open. Once answered,@sydevs-bot implementfiles one ticket per repo and starts them.🤖 Written by the sydevs autonomous loop — see what this is
Generated by Claude Code
Ardnived commentedon Nov 11, 2026
@sydevs-bot revise 1A 2A 3A
sydevs-bot commentedon Nov 11, 2026
All three answers are folded into the body. Nothing is open now.
What changed
Outlook's subscribe route is still unverified. A signed-in click settles it during the build.
Next:
@sydevs-bot implementfiles one ticket per repo and starts them. Your earlierimplementwas refused while questions were open, so it needs typing again.🤖 Written by the sydevs autonomous loop — see what this is
Generated by Claude Code
7 remaining items
sydevs-bot commentedon Nov 11, 2026
Planned. Two tickets, one per repo, in merge order:
Your
implementapproves both. The build starts now, on both together; 2 merges after 1 is deployed.Two things worth knowing
🤖 Written by the sydevs autonomous loop — see what this is
Generated by Claude Code
sydevs-bot commentedon Nov 11, 2026
Approved 2 implementation ticket(s). sydevs/SahajCloud#1131, #393 build together now, and merge in order.
🤖 sydevs dispatcher
sydevs-bot commentedon Nov 12, 2026
Both children are built and open as drafts, in merge order:
Two things need a person, and neither waits on a decision
Everything else is built, including the 90-day cancelled answer that clears a withdrawn class and the joining link staying out of the feed.
🤖 Written by the sydevs autonomous loop — see what this is
Generated by Claude Code
sydevs-bot commentedon Nov 12, 2026
Both children merged today. Three of the eleven success lines are confirmed against production, and two did not ship at all.
Confirmed — a class's calendar address cannot be worked out from the class, an online class's joining link appears nowhere in its feed, and the download sits last in the menu.
Built, one click each from confirmed — the Apple and Google subscribe rows, and a cancellation clearing itself.
Did not ship
VTIMEZONE, though the test that asserts one is green.Left open.
@sydevs-bot implementplans what is missing.🤖 Written by the sydevs autonomous loop — see what this is
Generated by Claude Code
Ardnived commentedon Nov 18, 2026
Answered in the terminal by @Ardnived:
VTIMEZONE.Closing as completed with the Sahaj Atlas launch milestone.