zoomcal-jeffemmett/backlog/tasks/task-8 - Implement-calendar...

773 B

id title status assignee created_date updated_date labels dependencies priority
task-8 Implement calendar sync functionality Done
2026-01-02 14:29 2026-01-02 17:00
medium

Description

Wire up the 'Sync all calendars' button to trigger a re-sync of all Google Calendar sources via the backend API

Implementation Notes

  • Added syncAllSources() function to api.ts that fetches active sources and syncs each in parallel
  • Updated CalendarSidebar with sync button handler:
    • Shows loading spinner during sync
    • Shows success (green) or error (red) status
    • Invalidates React Query cache to refetch events and sources
    • Auto-resets to idle state after 3 seconds