compass icon indicating copy to clipboard operation
compass copied to clipboard

✨ Render recurring grid events (readonly)

Open tyler-dane opened this issue 1 year ago • 2 comments

User Story

As a user, I want to view the recurring events I made in Google Calendar in Compass, so that I can see all my events in one place and get a more complete understanding of my schedule.

Acceptance Criteria

  • [x] Renders recurring all day events
  • [x] Renders recurring timed events
  • [x] When clicking a recurring event is rendered that says "You can't edit recurring events in Compass yet."
  • [ ] When a recurring event is changed in Google Calendar, it's updated correctly in Compass

Editing and creating recurring events are out-of-scope. Those are part of #226 and #230

Implementation Guidance

Currently the first instance of a recurring event is rendered, but subsequent instances are not rendered. To get all instances, you may just need to update the .list query to set singleEvents to true, which will expand recurring events into instances and only return single one-off events and instances of recurring events, but not the underlying recurring events themselves. This will result in only changing one instance of a recurring event.

  • NOTE: After this change, users may need to resync their calendar data in order to get all their recurring events. See if there's an easy way to get recurring events to work without requiring the user to do anything

Resources

https://developers.google.com/calendar/api/concepts/events-calendars#recurring_events

To better understand how Google Calendar implements recurring events:

  1. Create some recurring events in your Google Calendar
  2. Go to Google Calendar's API explorer and sign in with the same account you created the events in
  3. Select events > list from the method dropdown
  4. Select false for the single events dropdown
  5. See the recurrence object in the result set
Image

tyler-dane avatar Jan 25 '25 13:01 tyler-dane

I can work on this,

should rendering them located in the left sidebar? I guess there are only recurring events and timed events (apart from someday events), and we would like to see them all under their respective headings in the sidebar..?

MrPand-21 avatar Jan 25 '25 15:01 MrPand-21

Hey @MrPand-21, thanks for volunteering. This is actually a potentially complicated one that isn't fully documented very well here. I'm afraid we shouldn't have you start on it given those two factors. I will continue to refine it. If you're still really keen on this one, we can revisit after you wrap up #229

tyler-dane avatar Jan 26 '25 01:01 tyler-dane

Descoped custom RRule feature into #383, so closing this

tyler-dane avatar May 04 '25 22:05 tyler-dane