Skip to content

fix(signinup): several issues #12698

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 3 commits into from
Jun 18, 2025
Merged

fix(signinup): several issues #12698

merged 3 commits into from
Jun 18, 2025

Conversation

AMoreaux
Copy link
Contributor

  • Fixed an issue where you have invitations in your available workspaces for signup.
  • Corrected the URL display in the browser when hovering over the twenty logo on the sign-in/up form.
  • The workspace list is now displayed when you are logged into the default domain.

@AMoreaux AMoreaux requested a review from charlesBochet June 18, 2025 10:22
@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

Comprehensive updates to workspace authentication and domain handling during sign-in/up flow.

  • Added defaultUrl to useReadDefaultDomainFromConfiguration hook to maintain URL parameters and protocol during domain redirection
  • Enhanced UserWorkspaceService to handle null workspaceSSOIdentityProviders and include both personal invite token and workspace's inviteHash
  • Updated Logo component to use dynamic defaultUrl instead of hardcoded AppPath.SignInUp
  • Fixed workspace selection logic in SignInUpGlobalScopeFormEffect to properly handle multiple available workspaces
  • Simplified state management in SignInUp component by leveraging useAuth hook

5 files reviewed, 1 comment
Edit PR Review Bot Settings | Greptile

@@ -6,6 +6,7 @@ import { UndecoratedLink } from 'twenty-ui/navigation';
import { REACT_APP_SERVER_BASE_URL } from '~/config';
import { useRedirectToDefaultDomain } from '~/modules/domain-manager/hooks/useRedirectToDefaultDomain';
import { AppPath } from '~/modules/types/AppPath';
import { useReadDefaultDomainFromConfiguration } from '@/domain-manager/hooks/useReadDefaultDomainFromConfiguration';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

style: Import path should use '~' alias instead of '@' for consistency with other imports

Copy link
Contributor

github-actions bot commented Jun 18, 2025

🚀 Preview Environment Ready!

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

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

@charlesBochet charlesBochet merged commit 9612a49 into main Jun 18, 2025
55 checks passed
@charlesBochet charlesBochet deleted the fix/TWENTY-SERVER-6D5 branch June 18, 2025 11:13
Copy link

sentry-io bot commented Jun 18, 2025

Suspect Issues

This pull request was deployed and Sentry observed the following issues:

  • ‼️ TypeError: Cannot read properties of undefined (reading 'reduce') GetCurrentUser View Issue

Did you find this useful? React with a 👍 or 👎

abdulrahmancodes pushed a commit to abdulrahmancodes/twenty that referenced this pull request Jun 18, 2025
- Fixed an issue where you have invitations in your available workspaces
for signup.
- Corrected the URL display in the browser when hovering over the twenty
logo on the sign-in/up form.
- The workspace list is now displayed when you are logged into the
default domain.
Copy link

sentry-io bot commented Jun 18, 2025

Sentry Issue: TWENTY-SERVER-6DE

ijreilly added a commit that referenced this pull request Jun 19, 2025
Weiko pushed a commit that referenced this pull request Jun 19, 2025
This reverts commit 9612a49.

(Causes a google auth sign-up issue)
ijreilly added a commit that referenced this pull request Jun 19, 2025
This reverts commit 9612a49.

(Causes a google auth sign-up issue)
ehconitin pushed a commit to ehconitin/twenty that referenced this pull request Jun 19, 2025
This reverts commit 9612a49.

(Causes a google auth sign-up issue)
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