feat(providers): improve provider structure
Merged
JE
3mo ago+2398+2398+0123456789012345678901234567890123456789-1749-1749-0123456789012345678901234567890123456789
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/providersGoogle/Microsoft code intoparseandformatmodules for calendars, events, freebusy; moved conference helpers toconferences. - Added Microsoft recurrence parse/format, normalized time zones, and supported
DeltaRemovedEventin all delta APIs. - Made Microsoft event updates accept
Partial<Event>;CalendarProviderEventsListOptions.timeZoneis now required;sendUpdatedefaults 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/skiprules so Microsoft day-31 semantics are kept intact.
- Split
-
Migration
- Update imports to new helpers:
parseConferenceData->parseConference,toGoogleCalendarEventInput->formatEventInput, Microsoft event helpers toevents/formatandevents/parse. - Always pass
timeZonetoCalendarProvider.events.list. - When updating Microsoft events, send
Partial<Event>; handle delta results that may include removed items. - Use
@repo/providers/libisMeetingif needed; old meetings util was removed.
- Update imports to new helpers: