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(ui): Add email link strategy for SignIn #3715

Merged
merged 4 commits into from
Jul 15, 2024
Merged

Conversation

joe-bell
Copy link
Contributor

@joe-bell joe-bell commented Jul 15, 2024

Description

Enable <SignIn.Strategy name='email_link'> with resend functionality

CleanShot 2024-07-15 at 15 50 04@2x
CleanShot 2024-07-15 at 15 49 47@2x

Note

Whilst the UI works as expected, no email will be sent due to the lack of a redirect_url. This will be tackled in a follow-up ticket once addressed upstream

Additional Changes

I switched all the aria-labels for the pencil icon to "Start again" as this felt more appropriate; this might be a good candidate for extraction later. I'll create a follow-up ticket to translate in our polishing milestone

Checklist

  • npm test runs as expected.
  • npm run build runs as expected.
  • (If applicable) JSDoc comments have been added or updated for any package exports
  • (If applicable) Documentation has been updated

Type of change

  • 🐛 Bug fix
  • 🌟 New feature
  • 🔨 Breaking change
  • 📖 Refactoring / dependency upgrade / documentation
  • other:

Copy link

changeset-bot bot commented Jul 15, 2024

🦋 Changeset detected

Latest commit: bce364b

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 0 packages

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@joe-bell joe-bell changed the title feat(ui): Add email link strategy feat(ui): Add email link strategy for SignIn Jul 15, 2024
Copy link
Member

@alexcarpenter alexcarpenter left a comment

Choose a reason for hiding this comment

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

Non-blocking comment on localization but LGTM

@@ -208,7 +208,7 @@ export function SignInComponentLoaded() {
<button
type='button'
className='text-accent-9 focus-visible:ring-default size-4 rounded-sm outline-none focus-visible:ring-2'
aria-label='Edit email address'
aria-label='Start again'
Copy link
Member

Choose a reason for hiding this comment

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

Are there localized values for these already by chance?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not yet! Already created a follow-up ticket to come back to this (and other areas) before we ship!

https://linear.app/clerk/issue/DES-1118/common-ensure-all-componentscommonprimitives-are-compatible-with-i18n

@joe-bell joe-bell enabled auto-merge (squash) July 15, 2024 15:20
@joe-bell joe-bell merged commit df1f823 into main Jul 15, 2024
16 checks passed
@joe-bell joe-bell deleted the joe-bell/SDKI-72 branch July 15, 2024 19:32
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