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-emails): improve template selection and naming consistency #27759

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Unique-Usman
Copy link

@Unique-Usman Unique-Usman commented Jul 2, 2024

What kind of change does this PR introduce?

frontend fix

  • Update initial menu to be context-aware and display the correct option ("Confirm signup") when the user has not confirmed their email
  • Standardize casing for email template tab names ("Confirm signup" and "Magic Link")

#27475

Screenshot from 2024-07-02 17-43-56

@Unique-Usman Unique-Usman requested a review from a team as a code owner July 2, 2024 21:44
Copy link

vercel bot commented Jul 2, 2024

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

1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
design-system ⬜️ Ignored (Inspect) Visit Preview Jul 2, 2024 9:45pm

Copy link

vercel bot commented Jul 2, 2024

@Unique-Usman is attempting to deploy a commit to the Supabase Team on Vercel.

A member of the Team first needs to authorize it.

@@ -7,7 7,7 @@ const CONFIRMATION: FormSchema = {
$schema: JSON_SCHEMA_VERSION,
id: 'CONFIRMATION',
type: 'object',
title: 'Confirm signup',
title: 'Confirm SignUp',
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe use Sign Up?

Copy link
Contributor

@Hallidayo Hallidayo left a comment

Choose a reason for hiding this comment

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

Hi @Unique-Usman - thank you the pull request and great work so far well done 👍

Left a few comments for you.

@@ -157,7 158,7 @@ const UserDropdown = ({
}}
>
<Mail size={14} />
<p>Send magic link</p>
<p>{isUserConfirmed ? "Send magic link": "Send confirm sign up link"}</p>
Copy link
Contributor

Choose a reason for hiding this comment

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

I think the email that gets sent out needs to be different as well as at the moment the same magic link email gets emailed even if the Send confirm sign up link is showing.

Copy link
Author

Choose a reason for hiding this comment

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

@Hallidayo , thanks for the review, https://github.com/orgs/supabase/discussions/27425 from this issues it state that, it sends the confirmation when the email is not yet confirmed. Also, this is the mutation function sending the email
https://github.com/supabase/supabase/blob/master/apps/studio/components/interfaces/Auth/Users/UserDropdown.tsx#L57 and there not appear which function is sending the confirm sign up.

@Unique-Usman
Copy link
Author

@Hallidayo, bringing your attention to this.

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