Repository navigation
chore(studio + docs + ui library): update auth email template copy docs - #45706
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
5 Skipped Deployments
|
|
This pull request has been ignored for the connected project Preview Branches by Supabase. |
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
📝 WalkthroughWalkthroughThis PR standardizes email template terminology and example content across Supabase authentication documentation and studio UI. Template names shift from "Magic link" to "Sign-in link or code", security notifications use "Sign-in method" and "Verification method" instead of identity/MFA-specific names, and email examples adopt consistent heading text like "Confirm your email address" and "Reset your password". ChangesEmail Template Terminology and Documentation Update
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
🎭 Playwright Test ResultsDetails
Skipped testsFeatures › auth-users.spec.ts › should show web3 users as enabled when the matching web3 provider is enabled |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@apps/docs/content/guides/auth/auth-hooks/send-email-hook.mdx`:
- Around line 691-692: The email templates email_change and email_change_new use
the {{new_email}} placeholder but the replacement chain in the send-email hook
uses email_data.new_email (which is undefined); update the replacement call in
the replacement chain (the .replace('{{new_email}}', ... ) invocation in the
send-email hook) to use the new email from the user object (e.g. user.new_email
|| '') or otherwise derive new email from user.new_email instead of
email_data.new_email so the {{new_email}} placeholder is populated; apply the
same fix for the other occurrences mentioned (around the other template
replacements).
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI (base), Organization UI (inherited)
Review profile: CHILL
Plan: Pro
Run ID: d582216d-9521-43b9-9ffa-d24453e24e42
📒 Files selected for processing (10)
apps/docs/content/guides/auth/auth-email-templates.mdxapps/docs/content/guides/auth/auth-hooks/send-email-hook.mdxapps/docs/content/guides/auth/passwords.mdxapps/docs/content/guides/auth/redirect-urls.mdxapps/docs/content/guides/local-development/customizing-email-templates.mdxapps/studio/components/interfaces/Auth/AuthTemplatesValidation.tsxapps/ui-library/content/docs/nextjs/password-based-auth.mdxapps/ui-library/content/docs/nuxtjs/password-based-auth.mdxapps/ui-library/content/docs/react-router/password-based-auth.mdxapps/ui-library/content/docs/tanstack/password-based-auth.mdx
| type: 'object', | ||
| title: 'Magic link', | ||
| purpose: 'Allow users to sign in via a one-time link sent to their email', | ||
| title: 'Sign-in link or code', |
There was a problem hiding this comment.
hmm i might need some context on why we're moving away with the language "magic link"
it's a fairly common terminology that most users are familiar i think, so might cause some friction
also there's other parts of the dashboard that use the language "magic link" as well e.g here
There was a problem hiding this comment.
Good catch! There’s actually quite a bit of confusion around the term “magic link” from what I found. I will try to dig up the resolved comments but in the meantime, see the section here and its linked comment’s issue with user feedback.
There was a problem hiding this comment.
If you still feel strongly: we could keep “magic link” in the Supabase user facing terms and “sign-in link” in the end user terms (i.e. the email body and subject)
There was a problem hiding this comment.
See here for some user feedback around this. I believe there have been a few more like this.
…github.com/supabase/supabase into dnywh/update-auth-email-template-copy-docs
| .replace('{{old_email}}', email_data.old_email || '') | ||
| .replace('{{new_email}}', user.new_email || '') |
There was a problem hiding this comment.
This and other changes have been made because the existing docs had the wrong variables.
78fc7b2 to
13cd914
Compare
joshenlim
left a comment
There was a problem hiding this comment.
Changes LGTM! Verified on preview
Braintrust eval report
|
What kind of change does this PR introduce?
Docs update. Part of DEPR-198.
What is the current behaviour?
Auth email template examples and Studio template labels still reflect older default copy in a few places.
What is the new behaviour?
Updates Auth docs, local development docs, related snippets, Studio template labels, and UI Library examples to match the updated default Auth email copy.
Summary by CodeRabbit
Documentation
UI Updates