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

fix(auth): adjust button variant based on sign-in-up step #9188

Merged
merged 1 commit into from
Dec 23, 2024

Conversation

AMoreaux
Copy link
Contributor

Update the button variant to dynamically switch between 'secondary' and 'primary' based on the current step in the sign-in-up flow. Ensures the UI reflects the correct state, improving user experience and consistency.

Update the button variant to dynamically switch between 'secondary' and 'primary' based on the current step in the sign-in-up flow. Ensures the UI reflects the correct state, improving user experience and consistency.
@AMoreaux AMoreaux self-assigned this Dec 23, 2024
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 modifies the MainButton component's visual state in the authentication flow to provide better user feedback by dynamically adjusting the button variant based on the current sign-in/sign-up step.

  • Updates SignInUpGlobalScopeForm.tsx to set button variant to 'secondary' for initial step and 'primary' for password step
  • Button text changes from 'Continue' to 'Sign Up' when transitioning to password step
  • Maintains visual consistency with existing Google/Microsoft auth buttons in the same form

1 file(s) reviewed, 1 comment(s)
Edit PR Review Bot Settings | Greptile

Comment on lines 126 to 127
signInUpStep === SignInUpStep.Password ? 'Sign Up' : 'Continue'
}
Copy link
Contributor

Choose a reason for hiding this comment

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

logic: Button shows 'Sign Up' in Password step but SignInUpMode could be SignIn - this may confuse users

Copy link
Member

@FelixMalfait FelixMalfait left a comment

Choose a reason for hiding this comment

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

Perfect!

@FelixMalfait FelixMalfait merged commit 093f627 into main Dec 23, 2024
22 checks passed
@FelixMalfait FelixMalfait deleted the fix/main-button-state branch December 23, 2024 10:30
Copy link

Thanks @AMoreaux for your contribution!
This marks your 35th PR on the repo. You're top 1% of all our contributors 🎉
See contributor page - Share on LinkedIn - Share on Twitter

Contributions

samyakpiya pushed a commit to samyakpiya/twenty that referenced this pull request Dec 28, 2024
)

Update the button variant to dynamically switch between 'secondary' and
'primary' based on the current step in the sign-in-up flow. Ensures the
UI reflects the correct state, improving user experience and
consistency.
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