Skip to content

People can add a class to their calendar in one click, whichever calendar they use #368

Closed
2 of 2 issues completed

Description

@Ardnived

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;TZID and a VTIMEZONE, 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:

  1. SahajCloud — a public calendar file address for each event, and the new menu wording
  2. 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 VTIMEZONE the 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
Google 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

Sub-issues

2 of 2 Issues completed
Loading 2 sub-issues

Activity

  1. added theissue type on Nov 6, 2026
  2. Ardnived commented on Nov 6, 2026

    @Ardnived
    ContributorAuthor

    @sydevs-bot implement

  3. added
    bot:working
    on Nov 6, 2026
  4. sydevs-bot commented on Nov 6, 2026

    @sydevs-bot
    Contributor

    🤖 no session running
    approved by Ardnived

    recent dispatches
    • 18:17Z revise-roadmap · attempt 1 · session · done
    • 18:17Z revise-roadmap · attempt 1 · session
    • 22:52Z implement · attempt 1 · session · done
    • 22:52Z implement · attempt 1 · session
    • 22:25Z implement-roadmap · attempt 1 · session · done

    Written by the sydevs dispatcher. Sessions never edit this comment.

  5. sydevs-bot commented on Nov 6, 2026

    @sydevs-bot
    Contributor

    Reviewed from three angles. The plan holds; three decisions are yours.

    What changed

    • Outlook's subscribe route is unverified, not medium confidence: both hosts answer 417 to every path, bogus ones included, so only a signed-in click settles it. The notes say what to click.
    • No service honours a refresh hint, so the success lines now promise "within a day".
    • Nothing to buy: the calendar library already ships every property this needs, and the edge cache already purges on every write.
    • Three facts that will bite: 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 implement waits while those are open. Once answered, @sydevs-bot implement files one ticket per repo and starts them.

    🤖 Written by the sydevs autonomous loop — see what this is


    Generated by Claude Code

  6. removed
    bot:working
    on Nov 6, 2026
  7. moved this from Working to Awaiting in SYDevelopers Technical Roadmapon Nov 6, 2026
  8. Ardnived commented on Nov 11, 2026

    @Ardnived
    ContributorAuthor

    @sydevs-bot revise 1A 2A 3A

  9. added this to the Sahaj Atlas launch milestone on Nov 11, 2026
  10. added
    bot:working
    on Nov 11, 2026
  11. moved this from Awaiting to Working in SYDevelopers Technical Roadmapon Nov 11, 2026
  12. sydevs-bot commented on Nov 11, 2026

    @sydevs-bot
    Contributor

    All three answers are folded into the body. Nothing is open now.

    What changed

    • The feed gets an unguessable address, so nobody can work out a class's calendar link from the class. The link rides the event read the widget already makes.
    • A cancelled class keeps answering for 90 days, saying it is cancelled, then stops. Checked: nothing ever deletes a class outright, so there is always a record to answer from.
    • The emailed file keeps the joining link. That success line now covers only calendars other people can reach.
    • Worth knowing: one person's link cannot be withdrawn on its own. Taking the class down is the only way, which is exactly what the 90-day answer does.

    Outlook's subscribe route is still unverified. A signed-in click settles it during the build.

    Next: @sydevs-bot implement files one ticket per repo and starts them. Your earlier implement was refused while questions were open, so it needs typing again.

    🤖 Written by the sydevs autonomous loop — see what this is


    Generated by Claude Code

  13. 7 remaining items

  14. sydevs-bot commented on Nov 11, 2026

    @sydevs-bot
    Contributor

    Planned. Two tickets, one per repo, in merge order:

    1. feat(events): serve a token-addressed calendar feed for a class SahajCloud#1131 — the calendar feed at an unguessable address, the field that hands a class its address, and the two new menu strings.
    2. feat(calendar): subscribe to a class's feed from every menu row #393 — the menu: Apple, Google and both Outlooks subscribe, Yahoo keeps its one session, the download moves last. Blocked by 1.

    Your implement approves both. The build starts now, on both together; 2 merges after 1 is deployed.

    Two things worth knowing

    • The menu's new wording turned out to be CMS work, so it is in 1, not 2. Nothing in the atlas can write a visitor-facing string.
    • Outlook still has no verified subscribe address. There are now two shapes to try, and the second is a sibling of one the menu already uses successfully. If neither subscribes, the Outlook rows keep today's single-session link, labelled like Yahoo's — that is what your decisions already say for a service with no subscribe route, so nothing waits on you. It would cost the Outlook line in "What success looks like", and the PR will say so.

    🤖 Written by the sydevs autonomous loop — see what this is


    Generated by Claude Code

  15. removed
    bot:working
    on Nov 11, 2026
  16. sydevs-bot commented on Nov 11, 2026

    @sydevs-bot
    Contributor

    Approved 2 implementation ticket(s). sydevs/SahajCloud#1131, #393 build together now, and merge in order.

    🤖 sydevs dispatcher

  17. added
    bot:working
    on Nov 11, 2026
  18. sydevs-bot commented on Nov 12, 2026

    @sydevs-bot
    Contributor

    Both children are built and open as drafts, in merge order:

    1. feat(events): serve a token-addressed calendar feed for a class SahajCloud#1134 — the feed, its unguessable address, the field that hands one out, and the two new menu strings.
    2. feat(calendar): subscribe to a class's feed from the calendar menu #395 — the menu itself. Merges after 1 is deployed.

    Two things need a person, and neither waits on a decision

    • Outlook is unverified, not settled. Both hosts refuse every path a script can try, so only a signed-in click tells a subscribe dialog from an add-event form. Those two rows keep today's single-session link meanwhile — what your decisions already say for a service with no subscribe route. It costs the Outlook success line.
    • The two new sub-labels are not wired, and cannot be from the widget: they are CMS copy, and that sync reads production. Once 1 deploys, one commit on 2 runs the sync and adds them. The Yahoo line waits on the same thing.

    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

  19. removed
    bot:working
    on Nov 12, 2026
  20. moved this from Working to Pending in SYDevelopers Technical Roadmapon Nov 12, 2026
  21. added
    bot:working
    on Nov 12, 2026
  22. moved this from Pending to Working in SYDevelopers Technical Roadmapon Nov 12, 2026
  23. sydevs-bot commented on Nov 12, 2026

    @sydevs-bot
    Contributor

    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

    • Outlook.com and Office 365 still add one session. No subscribe address could be settled without a signed-in Microsoft account.
    • No row says whether it keeps itself up to date. Those two sub-labels were CMS copy, and feat(events): serve a token-addressed calendar feed for a class SahajCloud#1134 dropped the keys, so the Yahoo line has nothing to say it with.
    • The clocks-change line rests on nothing. The live feed carries no VTIMEZONE, though the test that asserts one is green.

    Left open. @sydevs-bot implement plans what is missing.

    🤖 Written by the sydevs autonomous loop — see what this is


    Generated by Claude Code

  24. removed
    bot:working
    on Nov 12, 2026
  25. moved this from Working to Awaiting in SYDevelopers Technical Roadmapon Nov 12, 2026
  26. Ardnived commented on Nov 18, 2026

    @Ardnived
    ContributorAuthor

    Answered in the terminal by @Ardnived:

    Closing as completed with the Sahaj Atlas launch milestone.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Fields

    Priority

    Medium

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions