Skip to content

fix(): add loader on signup #12714

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

Merged
merged 1 commit into from
Jun 19, 2025
Merged

fix(): add loader on signup #12714

merged 1 commit into from
Jun 19, 2025

Conversation

AMoreaux
Copy link
Contributor

Fix #12713

@AMoreaux AMoreaux self-assigned this Jun 18, 2025
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

Enhanced signup form reliability by adding loading state and proper error handling during user registration.

  • Modified handleCredentialsSignUp in packages/twenty-front/src/modules/auth/hooks/useAuth.ts to return signUp mutation Promise for better error handling
  • Added loading state check using form.formState.isSubmitting in SignInUpGlobalScopeForm.tsx to prevent duplicate submissions
  • Updated MainButton component disabled state to prevent race conditions during signup process

2 files reviewed, no comments
Edit PR Review Bot Settings | Greptile

Copy link
Contributor

🚀 Preview Environment Ready!

Your preview environment is available at: http://bore.pub:40157

This environment will automatically shut down when the PR is closed or after 5 hours.

@AMoreaux AMoreaux enabled auto-merge (squash) June 19, 2025 14:04
@AMoreaux AMoreaux requested a review from FelixMalfait June 19, 2025 14:04
@AMoreaux AMoreaux merged commit c48b80d into main Jun 19, 2025
58 checks passed
@AMoreaux AMoreaux deleted the fix/12713 branch June 19, 2025 14:07
abdulrahmancodes pushed a commit to abdulrahmancodes/twenty that referenced this pull request Jun 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

QueryFailedError: duplicate key value violates unique constraint "UQ_USER_EMAIL"
2 participants