-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
signup sync with microsoft #10008
base: main
Are you sure you want to change the base?
signup sync with microsoft #10008
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR Summary
This PR implements Microsoft email and calendar sync functionality during the onboarding process, with environment variable controls for feature availability.
- Added Microsoft sync button in
/packages/twenty-front/src/pages/onboarding/SyncEmails.tsx
with conditional rendering based on environment variables - Introduced visibility settings in
/packages/twenty-front/src/modules/onboarding/components/onboardingSyncEmailsOptions.tsx
for controlling data sharing levels - Implemented
useSignInWithMicrosoft
hook in/packages/twenty-front/src/modules/auth/sign-in-up/hooks/useSignInWithMicrosoft.ts
for handling Microsoft authentication - Added skip functionality through
skipSyncEmailOnboardingStep
mutation for users who don't want to sync
1 file(s) reviewed, 1 comment(s)
Edit PR Review Bot Settings | Greptile
{(isGoogleMessagingEnabled || isGoogleCalendarEnabled) && ( | ||
<MainButton | ||
title="Sync with Google" | ||
onClick={() => handleButtonClick('google')} | ||
width={200} | ||
Icon={() => <IconGoogle size={theme.icon.size.sm} />} | ||
/> | ||
)} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
style: Consider combining the Google and Microsoft button logic into a reusable component to reduce code duplication
We want users to be able to sync their emails with microsoft duting signup
We also want to respect the env ariables that decide if we allow messaging and calendar providers.
design
https://www.figma.com/design/xt8O9mFeLl46C5InWwoMrN/Twenty?node-id=53729-251492&t=1cwVzB0xFAom9PlM-0