Skip to content

feat: connect google calendar integration to backend API#227

Merged
sguming merged 10 commits intomainfrom
connect-google-calendar-frontend
Oct 23, 2025
Merged

feat: connect google calendar integration to backend API#227
sguming merged 10 commits intomainfrom
connect-google-calendar-frontend

Conversation

@huiii421
Copy link
Copy Markdown
Contributor

  • Add user session synchronization in StoreProvider
  • Update admin page routing to handle calendar integration params
  • Implement Google Calendar backend integration in 'CalendarIntegrations'
  • Add API URL building utility for calendar endpoints
  • Enable user email caching for calendar authentication flow

@huiii421
Copy link
Copy Markdown
Contributor Author

  • Add Gmail email detection and warning UI for non-Gmail users
  • Implement dual connection status detection (URL params + API validation)
  • Separate login email and Google email state management
  • Add automatic token refresh and Google profile API integration
  • Translate all Chinese text to English
  • Support different email accounts for login vs Google Calendar authorization

@huiii421
Copy link
Copy Markdown
Contributor Author

fix: resolve localStorage data being re-written after calendar deletion

  • Add multi-layer protection mechanism to prevent localStorage overwrites
  • Implement sessionStorage flags to track deletion state (calendar_deleted, calendar_manually_deleted)
  • Add conditional checks before writing to localStorage in all components
  • Skip backend validation (checkValid) when calendar was just deleted
  • Prevent AuthCallbackContent from overwriting manually deleted data
  • Ensure deletion operations are atomic and irreversible
  • Clear deletion flags when user reconnects to calendar

Fixes issue where deleted calendar connections would reappear after page refresh
due to backend token validation and Redux Persist data restoration.

@sguming sguming merged commit 424f322 into main Oct 23, 2025
3 checks passed
@sguming sguming deleted the connect-google-calendar-frontend branch October 23, 2025 14:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants