feat(providers): improve provider structure

Merged
JE
3mo ago
+2398-1749

Description

Briefly describe what you did and why.

Screenshots / Recordings

Add screenshots or recordings here to help reviewers understand your changes.

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • UI/UX update
  • Docs update
  • Refactor / Cleanup

Related Areas

  • Authentication
  • Calendar UI
  • Data/API
  • Docs

Testing

  • Manual testing performed
  • Cross-browser testing (if UI changes)
  • Mobile responsiveness verified (if UI changes)

Checklist

  • I’ve read the CONTRIBUTING guide
  • My code works and is understandable and follows the project's style guidelines
  • I have performed a self-review of my code
  • I have commented my code, particularly in complex areas
  • I have updated the documentation
  • Any dependent changes are merged and published

Notes

(Optional) Add anything else you'd like to share.

By submitting, I confirm I understand and stand behind this code. If AI was used, I’ve reviewed and verified everything myself.


Summary by cubic

Reorganized calendar providers into clear parse/format modules, added solid recurrence/conference handling, and tightened types across Google and Microsoft. This reduces bugs, supports delta “removed” events, and makes provider code easier to maintain.

  • Refactors

    • Split @repo/providers Google/Microsoft code into parse and format modules for calendars, events, freebusy; moved conference helpers to conferences.
    • Added Microsoft recurrence parse/format, normalized time zones, and supported DeltaRemovedEvent in all delta APIs.
    • Made Microsoft event updates accept Partial<Event>; CalendarProviderEventsListOptions.timeZone is now required; sendUpdate defaults to true in events create.
    • Replaced loose truthy checks with strict logic, cleaned up memoization, and simplified error toasts/logs across apps.
    • Event form attendees no longer require an email, and recurrence editing preserves rscale/skip rules so Microsoft day-31 semantics are kept intact.
  • Migration

    • Update imports to new helpers: parseConferenceData -> parseConference, toGoogleCalendarEventInput -> formatEventInput, Microsoft event helpers to events/format and events/parse.
    • Always pass timeZone to CalendarProvider.events.list.
    • When updating Microsoft events, send Partial<Event>; handle delta results that may include removed items.
    • Use @repo/providers/lib isMeeting if needed; old meetings util was removed.