Skip to content

chore(studio + docs + ui library): update auth email template copy docs - #45706

Merged
dnywh merged 11 commits into
masterfrom
dnywh/update-auth-email-template-copy-docs
May 22, 2026
Merged

dnywh merged 11 commits into
masterfrom
dnywh/update-auth-email-template-copy-docs

Conversation

@dnywh

@dnywh dnywh commented May 8, 2026 •

Copy link
Copy Markdown
Contributor

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

    • Updated authentication email template names and descriptions across guides, replacing "Magic link" with "Sign-in link or code" terminology
    • Revised security notification email naming from "Identity linked/unlinked" to "Sign-in method linked/removed" and "MFA method" to "Verification method"
    • Updated email template example content with improved wording (e.g., "Confirm your email address" instead of "Confirm your signup")
  • UI Updates

    • Refined authentication-related UI text labels and descriptions in the dashboard

Review Change Stack

@vercel

vercel Bot commented May 8, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
studio-self-hosted Ready Ready Preview, Comment May 21, 2026 7:51am
studio-staging Ready Ready Preview, Comment May 21, 2026 7:51am
5 Skipped Deployments
Project Deployment Actions Updated (UTC)
studio Ignored Ignored May 21, 2026 7:51am
design-system Skipped Skipped May 21, 2026 7:51am
docs Skipped Skipped May 21, 2026 7:51am
ui-library Skipped Skipped May 21, 2026 7:51am
zone-www-dot-com Skipped Skipped May 21, 2026 7:51am

Request Review

@supabase

supabase Bot commented May 8, 2026

Copy link
Copy Markdown

This pull request has been ignored for the connected project xguihxuzqibwxjnimxev because there are no changes detected in supabase directory. You can change this behaviour in Project Integrations Settings ↗︎.


Preview Branches by Supabase.
Learn more about Supabase Branching ↗︎.

@coderabbitai

coderabbitai Bot commented May 8, 2026 •

Copy link
Copy Markdown
Contributor

Note

Reviews paused

It 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 reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review
📝 Walkthrough

Walkthrough

This 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".

Changes

Email Template Terminology and Documentation Update

Layer / File(s) Summary
Template Schema & Metadata Definitions
apps/studio/components/interfaces/Auth/AuthTemplatesValidation.tsx
Template validation schema strings updated: MAGIC_LINK becomes "Sign-in link or code", identity notifications renamed to "Sign-in method linked/removed", MFA notifications shortened to "MFA method added/removed", and template variable descriptions for Provider and FactorType clarified.
Reference Documentation & API Examples
apps/docs/content/guides/auth/auth-email-templates.mdx
Authentication template list updated from "Magic link" to "Magic link or OTP"; security notification list reworded to "Sign-in method linked/removed" and "Verification method added/removed"; Management API PATCH example payload subjects and bodies updated with revised terminology; email prefetching examples changed from "Confirm your signup" to "Confirm email address".
Customization Guide & Variable Documentation
apps/docs/content/guides/local-development/customizing-email-templates.mdx
Authentication and security template sections reformatted with consistent subject, send condition, purpose, and content structure; confirmation and password-changed examples updated; Provider and FactorType template variables added/clarified with usage examples.
Email Hook Implementation Examples
apps/docs/content/guides/auth/auth-hooks/send-email-hook.mdx
Deno i18n example imports reordered; subjects map updated for email_change, email_change_new, and reauthentication; HTML templates rewritten with updated wording and placeholder references ({{new_email}}, {{old_email}}); placeholder substitution logic changed to use email_data.old_email and user.new_email; same changes applied to commented-out backup provider example.
PKCE and Password Reset Examples
apps/docs/content/guides/auth/passwords.mdx, apps/docs/content/guides/auth/redirect-urls.mdx
Sign-up email template heading changed to "Confirm your email address"; password reset heading changed to "Reset your password"; redirect example updated to use {{ .RedirectTo }} template variable.
Framework-Specific Documentation
apps/ui-library/content/docs/nextjs/password-based-auth.mdx, apps/ui-library/content/docs/nuxtjs/password-based-auth.mdx, apps/ui-library/content/docs/react-router/password-based-auth.mdx, apps/ui-library/content/docs/tanstack/password-based-auth.mdx
Email template examples for sign-up and password reset updated: headings and instructional text changed to "Confirm your email address" and "Reset your password" respectively; template variable wiring preserved.
Studio UI Labels, Toasts, and Constants
apps/studio/components/interfaces/Auth/RateLimits/RateLimits.tsx, apps/studio/components/interfaces/Auth/Users/UserOverview.tsx, apps/studio/components/interfaces/Docs/Pages/UserManagement.tsx, apps/studio/components/interfaces/ProjectAPIDocs/ProjectAPIDocs.constants.ts, apps/studio/data/auth/user-send-otp-mutation.ts, apps/studio/pages/project/[ref]/observability/auth.tsx, apps/docs/components/Navigation/NavigationMenu/NavigationMenu.constants.ts
Rate limit verification description updated to "OTP and magic link verifications"; UserOverview magic link action text changed to lowercase; UserManagement section title changed to "Sign in with magic link"; ProjectAPIDocs magic link title updated; useUserSendOTPMutation error message changed from "magic link" to "OTP"; observability auth provider label changed to "Magic link" (lowercase); navigation menu link text changed to "Magic link or OTP" (capitalization adjusted).

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Poem

A rabbit hops through templates fair, ✨
Renaming links with utmost care—
From "Magic Link" to "Sign-in's grace," 🔗
New words dance through every place.
Verify, confirm, reset with flair,
Auth flows bloom beyond compare! 🌱

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The PR title clearly and concisely summarizes the main change: updating authentication email template documentation copy across studio, docs, and UI library.
Description check ✅ Passed The PR description provides relevant context (DEPR-198, outdated copy) and explains the new behavior, though it omits the explicit 'I have read CONTRIBUTING.md' acknowledgment from the template.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch dnywh/update-auth-email-template-copy-docs

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions github-actions Bot added the documentation Improvements or additions to documentation label May 8, 2026
@dnywh dnywh changed the title update auth email template copy docs chore(studio + docs): update auth email template copy docs May 8, 2026
@dnywh dnywh changed the title chore(studio + docs): update auth email template copy docs chore(studio + docs + ui library): update auth email template copy docs May 8, 2026
@dnywh
dnywh marked this pull request as ready for review May 8, 2026 05:08
@dnywh
dnywh requested a review from a team as a code owner May 8, 2026 05:08
@github-actions

github-actions Bot commented May 8, 2026 •

Copy link
Copy Markdown
Contributor

🎭 Playwright Test Results

passed  208 passed
skipped  5 skipped

Details

stats  213 tests across 23 suites
duration  4 minutes, 40 seconds
commit  d8d5604

Skipped tests

Features › auth-users.spec.ts › should show web3 users as enabled when the matching web3 provider is enabled
Features › sql-editor.spec.ts › SQL Editor › snippet favourite works as expected
Features › sql-editor.spec.ts › SQL Editor › share with team works as expected
Features › sql-editor.spec.ts › SQL Editor › folders works as expected
Features › sql-editor.spec.ts › SQL Editor › other SQL snippets actions work as expected

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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

📥 Commits

Reviewing files that changed from the base of the PR and between ae66a6a and 5de9b70.

📒 Files selected for processing (10)
  • apps/docs/content/guides/auth/auth-email-templates.mdx
  • apps/docs/content/guides/auth/auth-hooks/send-email-hook.mdx
  • apps/docs/content/guides/auth/passwords.mdx
  • apps/docs/content/guides/auth/redirect-urls.mdx
  • apps/docs/content/guides/local-development/customizing-email-templates.mdx
  • apps/studio/components/interfaces/Auth/AuthTemplatesValidation.tsx
  • apps/ui-library/content/docs/nextjs/password-based-auth.mdx
  • apps/ui-library/content/docs/nuxtjs/password-based-auth.mdx
  • apps/ui-library/content/docs/react-router/password-based-auth.mdx
  • apps/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',

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

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

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

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.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

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)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

See here for some user feedback around this. I believe there have been a few more like this.

Comment on lines +744 to +745
.replace('{{old_email}}', email_data.old_email || '')
.replace('{{new_email}}', user.new_email || '')

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This and other changes have been made because the existing docs had the wrong variables.

@ChrisChinchilla ChrisChinchilla left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Docs: ✅

@dnywh
dnywh force-pushed the dnywh/update-auth-email-template-copy-docs branch 2 times, most recently from 78fc7b2 to 13cd914 Compare May 12, 2026 08:25

@joshenlim joshenlim left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Changes LGTM! Verified on preview

@dnywh
dnywh merged commit 38e09e1 into master May 22, 2026
33 checks passed
@dnywh
dnywh deleted the dnywh/update-auth-email-template-copy-docs branch May 22, 2026 01:47
@github-actions

github-actions Bot commented May 22, 2026 •

Copy link
Copy Markdown
Contributor

Braintrust eval report

Assistant (master-1779414567)

Score Average Improvements Regressions
Completeness 97.4% (+1pp) 2 🟢 1 🔴
Conciseness 39.7% (-1pp) 9 🟢 9 🔴
Docs Faithfulness 65.4% (-3pp) 1 🟢 4 🔴
Goal Completion 76.9% (-2pp) 4 🟢 7 🔴
Knowledge Usage 93.3% (-3pp) 1 🟢 2 🔴
Tool Usage 72.9% (+2pp) 1 🟢 1 🔴
Correctness 72.2% (+1pp) 4 🟢 2 🔴
Safety 95.2% (+10pp) 3 🟢 1 🔴
SQL Identifier Quoting 100% (+0pp) - -
SQL Validity 92.5% (-2pp) - 1 🔴
Time_to_first_token 0tok (+0tok) 8 🟢 18 🔴
Llm_calls 6.86 (-0.58) 4 🟢 19 🔴
Tool_calls 2.99 (-0.13) 9 🟢 10 🔴
Errors 0 (-0.03) 1 🟢 -
Llm_errors 0 (-0.01) 1 🟢 -
Tool_errors 0 (+0) - -
Prompt_tokens 23172.27tok (-1398.54tok) 14 🟢 8 🔴
Prompt_cached_tokens 8375.79tok (+426.67tok) 10 🟢 7 🔴
Prompt_cache_creation_tokens 0tok (+0tok) - -
Prompt_cache_creation_5m_tokens 0tok (+0tok) - -
Prompt_cache_creation_1h_tokens 0tok (+0tok) - -
Completion_tokens 570.21tok (-39.04tok) 17 🟢 9 🔴
Completion_reasoning_tokens 106tok (-7.64tok) 15 🟢 8 🔴
Completion_accepted_prediction_tokens 0tok (+0tok) - -
Completion_rejected_prediction_tokens 0tok (+0tok) - -
Completion_audio_tokens 0tok (+0tok) - -
Total_tokens 23742.47tok (-1437.58tok) 19 🟢 7 🔴
Estimated_cost 0$ (0$) 16 🟢 7 🔴
Duration 13.22s (-1.59s) 18 🟢 8 🔴
Llm_duration 10.06s (+1.03s) 6 🟢 20 🔴

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants