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

feat: New UI for SignUp / Login #16802

Merged
merged 43 commits into from
Sep 26, 2024
Merged

feat: New UI for SignUp / Login #16802

merged 43 commits into from
Sep 26, 2024

Conversation

hbjORbj
Copy link
Contributor

@hbjORbj hbjORbj commented Sep 24, 2024

What does this PR do?

  • Fixes CAL-4365, 4366
  • Design: Checked with Ciaran ✅
  • Logic updates:
  1. Decouple google sign-in from email sign-up form values (disabled prop or searchQueryParams that is added to Google auth url no longer depend on sign-up form values)
  2. When signup URL link has token param, display the email form w/o a back button
  3. Email form will have a button saying "Create Account with SAML" if user clicked the "SAML" button rather than "Continue with email"
  4. "Create Account with SAML" is disabled if email / username isn't there
  5. Remove password field for SAML signup

Mandatory Tasks (DO NOT REMOVE)

  • I have self-reviewed the code (A decent size PR without self-review might be rejected).
  • N/A - I have added a Docs issue here if this PR makes changes that would require a documentation change. If N/A, write N/A here and check the checkbox.
  • I confirm automated tests are in place that prove my fix is effective or that my feature works.

How should this be tested?

  • Test /signup and /auth/login

@hbjORbj hbjORbj mentioned this pull request Sep 24, 2024
Copy link
Contributor

github-actions bot commented Sep 24, 2024

Hey there and thank you for opening this pull request! 👋🏼

We require pull request titles to follow the Conventional Commits specification and it looks like your proposed title needs to be adjusted.

Details:

Unknown release type "Draft" found in pull request title "Draft: feat: New UI for SignUp / Login". 

Available types:
 - feat: A new feature
 - fix: A bug fix
 - docs: Documentation only changes
 - style: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)
 - refactor: A code change that neither fixes a bug nor adds a feature
 - perf: A code change that improves performance
 - test: Adding missing tests or correcting existing tests
 - build: Changes that affect the build system or external dependencies (example scopes: gulp, broccoli, npm)
 - ci: Changes to our CI configuration files and scripts (example scopes: Travis, Circle, BrowserStack, SauceLabs)
 - chore: Other changes that don't modify src or test files
 - revert: Reverts a previous commit

@keithwillcode keithwillcode added consumer core area: core, team members only labels Sep 24, 2024
@dosubot dosubot bot added ui area: UI, frontend, button, form, input ✨ feature New feature or request labels Sep 24, 2024
@graphite-app graphite-app bot requested a review from a team September 24, 2024 20:14
Copy link

graphite-app bot commented Sep 24, 2024

Graphite Automations

"Add consumer team as reviewer" took an action on this PR • (09/24/24)

1 reviewer was added to this PR based on Keith Williams's automation.

Copy link

vercel bot commented Sep 24, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

2 Skipped Deployments
Name Status Preview Comments Updated (UTC)
cal ⬜️ Ignored (Inspect) Visit Preview Sep 26, 2024 6:50pm
calcom-web-canary ⬜️ Ignored (Inspect) Visit Preview Sep 26, 2024 6:50pm

@hbjORbj hbjORbj marked this pull request as draft September 24, 2024 20:17
@hbjORbj hbjORbj changed the title Draft: feat: New UI for SignUp / Login feat: New UI for SignUp / Login Sep 24, 2024
@hbjORbj
Copy link
Contributor Author

hbjORbj commented Sep 26, 2024

In our current logic, SAML button is coupled with the email form. They must be on the same page, or we need to change the logic. Talking with Ciaran now

disabled={
!!formMethods.formState.errors.username ||
!!formMethods.formState.errors.email ||
!formMethods.getValues("email") ||
Copy link
Contributor Author

Choose a reason for hiding this comment

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

added

return;
}
{/* Form Container */}
{displayEmailForm && (
Copy link
Contributor Author

Choose a reason for hiding this comment

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

flag

/>

{/* Password */}
{!isSamlSignup && (
Copy link
Contributor Author

Choose a reason for hiding this comment

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

flag

!!formMethods.formState.errors.username ||
!!formMethods.formState.errors.email ||
!formMethods.getValues("email") ||
!formMethods.getValues("username") ||
Copy link
Contributor Author

Choose a reason for hiding this comment

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

added

@hbjORbj hbjORbj merged commit 90f6c7e into main Sep 26, 2024
38 checks passed
@hbjORbj hbjORbj deleted the feature/new-signup-flow branch September 26, 2024 19:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
authentication area: authentication, auth, google sign in, password, SAML, password reset, can't log in consumer core area: core, team members only ✨ feature New feature or request ready-for-e2e ui area: UI, frontend, button, form, input
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants