Skip to content

feat(calendar): subscribe from the Outlook.com and Office 365 rows #428

Description

@Ardnived

Summary

The Outlook.com and Office 365 rows in the "Add to calendar" menu still add one session of a weekly class, so someone who uses Outlook gets the next class and then nothing. Apple and Google already subscribe to the class's own calendar feed. This makes both Outlook rows subscribe to that feed too, so every session appears and a cancelled one clears itself.

Approach

  • src/lib/ics.ts:472 buildOutlookCalendarUrl composes a single-event deeplink/compose link. Add a subscribe builder beside it that takes the class's feed address (the https:// form, not webcal:), using Outlook's add-from-web route: https://outlook.live.com/calendar/0/addfromweb?url=<feed>&name=<title> and the same path on outlook.office.com.
  • src/components/molecules/AddToCalendar/AddToCalendar.tsx:50-61 calendarLinkTargets: the two Outlook rows use the subscribe link when the class has a feed address, and keep today's single-session link when it has none — the same fallback the Apple and Google rows follow.
  • Update the comment blocks that say Outlook has no verified subscribe route (AddToCalendar.tsx:36-40, ics.ts above buildOutlookCalendarUrl) and the story description (AddToCalendar.stories.tsx:50).
  • ⚠ The route has never been checked with a signed-in account: both hosts refuse every scripted path. If either answers with an add-event form rather than a subscribe prompt, that row keeps the single-session link and the PR says which.

Acceptance criteria

  • For a class with a feed address, the Outlook.com and Office 365 rows link to Outlook's add-from-web route with the class's https:// feed address.
  • For a class without one, both rows keep today's single-session link.
  • Signed in, each row opens a subscribe prompt, and at least three future sessions of a weekly class appear afterwards — checked on a personal account and a work account.

Verification checklist

  • pnpm test:unit covers both builders: the feed address is percent-encoded onto url, and a class with no feed address falls back to the compose link.
  • Signed in to a personal Outlook.com account, clicking the Outlook.com row on a weekly class in a PR preview opens a subscribe prompt, and three future sessions appear.
  • Signed in to a work (Microsoft 365) account, the Office 365 row does the same.

Notes

Left over from the roadmap goal #368, which closed on 2026-11-18 with Outlook still adding one session. The feed itself is sydevs/SahajCloud#1131; the menu rows shipped in #393. The menu notes saying which choices stay up to date, and the hand tests of the Apple, Google and cancellation rows, were dropped at that close.

Activity

  1. added this to the Sahaj Atlas v3.1 milestone on Nov 18, 2026
  2. added theissue type on Nov 18, 2026
  3. Ardnived commented on Nov 18, 2026

    @Ardnived
    ContributorAuthor

    @sydevs-bot implement

  4. added
    bot:working
    on Nov 18, 2026
  5. sydevs-bot commented on Nov 18, 2026

    @sydevs-bot
    Contributor

    🤖 no session running
    approved by Ardnived

    recent dispatches
    • 18:06Z implement · attempt 1 · session · done
    • 18:06Z implement · attempt 1 · session

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

  6. moved this from Awaiting to Working in SYDevelopers Technical Roadmapon Nov 18, 2026
  7. removed
    bot:working
    on Nov 18, 2026
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

    Hold Until

    None yet

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions