Skip to content
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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

signup sync with microsoft #10008

wants to merge 3 commits into from

Conversation

guillim
Copy link
Contributor

@guillim guillim commented Feb 4, 2025

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.

MESSAGING_PROVIDER_GMAIL_ENABLED=false
MESSAGING_PROVIDER_MICROSOFT_ENABLED=false
CALENDAR_PROVIDER_GOOGLE_ENABLED=false
CALENDAR_PROVIDER_MICROSOFT_ENABLED=false

design

https://www.figma.com/design/xt8O9mFeLl46C5InWwoMrN/Twenty?node-id=53729-251492&t=1cwVzB0xFAom9PlM-0

@guillim
Copy link
Contributor Author

guillim commented Feb 4, 2025

Both enabled :

Screenshot 2025-02-04 at 17 10 40

None enabled :
Screenshot 2025-02-04 at 17 19 55

One enabled :
Screenshot 2025-02-04 at 17 12 36

Copy link
Contributor

@greptile-apps greptile-apps bot left a 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

Comment on lines 118 to 125
{(isGoogleMessagingEnabled || isGoogleCalendarEnabled) && (
<MainButton
title="Sync with Google"
onClick={() => handleButtonClick('google')}
width={200}
Icon={() => <IconGoogle size={theme.icon.size.sm} />}
/>
)}
Copy link
Contributor

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

@guillim guillim self-assigned this Feb 4, 2025
@guillim
Copy link
Contributor Author

guillim commented Feb 4, 2025

@guillim guillim enabled auto-merge (squash) February 4, 2025 16:21
@guillim guillim added -PR: awaiting review scope: front Issues that are affecting the frontend side only labels Feb 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
-PR: awaiting review scope: front Issues that are affecting the frontend side only
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

1 participant