Skip to content

feat(Auth/EmailTemplates): Add SiteURL variable for notifications - #46393

Merged
cstockton merged 2 commits into
masterfrom
cs/site-url-to-notifications
Jun 25, 2026
Merged

cstockton merged 2 commits into
masterfrom
cs/site-url-to-notifications

Conversation

@cstockton

@cstockton cstockton commented May 26, 2026 •

Copy link
Copy Markdown
Contributor

This will make email templates more consistent and may be merged after supabase/auth#2532 is deployed.

Summary by CodeRabbit

  • New Features
    • Authentication notification emails now include access to site URL references. This enhancement applies to multiple notification types: password change alerts, email change confirmations, phone number change notifications, identity linking and unlinking events, and multi-factor authentication enrollment and unenrollment notifications.

Review Change Stack

This will make email templates more consistent and may be merged
after supabase/auth#2532 is deployed.
@cstockton
cstockton requested a review from a team as a code owner May 26, 2026 16:27
@vercel

vercel Bot commented May 26, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
design-system Ready Ready Preview, Comment Jun 25, 2026 3:19pm
docs Ready Ready Preview, Comment, Open in v0 Jun 25, 2026 3:19pm
studio-self-hosted Ready Ready Preview, Comment Jun 25, 2026 3:19pm
studio-staging Ready Ready Preview, Comment Jun 25, 2026 3:19pm
ui-library Ready Ready Preview, Comment Jun 25, 2026 3:19pm
zone-www-dot-com Ready Ready Preview, Comment, Open in v0 Jun 25, 2026 3:19pm
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
studio Ignored Ignored Jun 25, 2026 3:19pm

Request Review

@supabase

supabase Bot commented May 26, 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 26, 2026 •

Copy link
Copy Markdown
Contributor

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI (base), Organization UI (inherited)

Review profile: CHILL

Plan: Pro

Run ID: b410bd75-1674-41ad-972e-87b384304e15

📥 Commits

Reviewing files that changed from the base of the PR and between 108a7c2 and 5edc2c3.

📒 Files selected for processing (1)
  • apps/studio/components/interfaces/Auth/EmailTemplates/AuthTemplatesValidation.tsx

📝 Walkthrough

Walkthrough

Seven authentication notification email templates are updated to include SiteURL as an available template variable. The templates affected are password change, email change, phone change, identity linking/unlinking, and MFA factor enrollment/unenrollment notifications. Several template variable arrays are reformatted to multiline syntax for consistency.

Changes

Notification template variable updates

Layer / File(s) Summary
Add SiteURL to notification templates
apps/studio/components/interfaces/Auth/EmailTemplates/AuthTemplatesValidation.tsx
PASSWORD_CHANGED_NOTIFICATION, EMAIL_CHANGED_NOTIFICATION, PHONE_CHANGED_NOTIFICATION, IDENTITY_LINKED_NOTIFICATION, IDENTITY_UNLINKED_NOTIFICATION, MFA_FACTOR_ENROLLED_NOTIFICATION, and MFA_FACTOR_UNENROLLED_NOTIFICATION all now include TemplateVariables.SiteURL in their variables lists. Several arrays are reformatted from single-line to multiline format.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Poem

🐰 Seven templates now have their home,
With SiteURL in each domain they roam,
From password change to factors new,
Each notification gets a fresh avenue,
To guide your users where to go true! ✨

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description is incomplete. While it provides context about the change's purpose, it lacks most required template sections including a clear explanation of current behavior, new behavior, and contribution acknowledgment. Complete the PR description by filling in all template sections: confirm CONTRIBUTING.md was read, specify the change type, describe current behavior and new behavior, and add any relevant context or issue links.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and concisely describes the main change: adding SiteURL variable to notification email templates.
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 docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch cs/site-url-to-notifications

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.

@awaseem awaseem added the do-not-merge Not ready to be merged yet; pending other dependencies label May 26, 2026
@github-actions

github-actions Bot commented May 26, 2026 •

Copy link
Copy Markdown
Contributor

🎭 Playwright Test Results

passed  218 passed
flaky  1 flaky
skipped  5 skipped

Details

stats  224 tests across 24 suites
duration  3 minutes, 24 seconds
commit  1c4bedb

Flaky tests

Features › sql-editor.spec.ts › SQL Editor › should check if SQL editor is working as expected

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

@cstockton cstockton removed the do-not-merge Not ready to be merged yet; pending other dependencies label Jun 25, 2026
@cstockton
cstockton enabled auto-merge (squash) June 25, 2026 15:14
@cstockton
cstockton merged commit d46a9c4 into master Jun 25, 2026
33 of 34 checks passed
@cstockton
cstockton deleted the cs/site-url-to-notifications branch June 25, 2026 15:20
@github-actions

github-actions Bot commented Jun 25, 2026 •

Copy link
Copy Markdown
Contributor

Braintrust eval report

Assistant (master-1782400918)

Score Average Improvements Regressions
Completeness 95% (0pp) 2 🟢 3 🔴
Conciseness 46.3% (+6pp) 13 🟢 5 🔴
Docs Faithfulness 66.3% (-2pp) 1 🟢 3 🔴
Goal Completion 76.2% (-4pp) 3 🟢 6 🔴
Knowledge Usage 100% (+21pp) 7 🟢 -
Tool Usage 68.6% (+6pp) 4 🟢 2 🔴
Correctness 70.2% (+10pp) 9 🟢 1 🔴
SQL Identifier Quoting 100% (+0pp) - -
SQL Validity 100% (+0pp) - -
Safety 100% (+10pp) 2 🟢 -
URL Validity 100% - -
Time_to_first_token 2.54tok (-0.51tok) 26 🟢 3 🔴
Llm_calls 6.89 (-0.23) 6 🟢 12 🔴
Tool_calls 2.94 (+0.55) 15 🟢 6 🔴
Errors 0 (-0.05) 2 🟢 -
Llm_errors 0 (-0.02) 2 🟢 -
Tool_errors 0 (+0) - -
Prompt_tokens 23372.25tok (-828.52tok) 12 🟢 14 🔴
Prompt_cached_tokens 7821.24tok (+494.34tok) 13 🟢 9 🔴
Prompt_cache_creation_tokens 0tok (+0tok) - -
Prompt_cache_creation_5m_tokens 0tok (+0tok) - -
Prompt_cache_creation_1h_tokens 0tok (+0tok) - -
Completion_tokens 607.29tok (+32.99tok) 9 🟢 20 🔴
Completion_reasoning_tokens 103.49tok (+10.31tok) 11 🟢 15 🔴
Completion_accepted_prediction_tokens 0tok (+0tok) - -
Completion_rejected_prediction_tokens 0tok (+0tok) - -
Completion_audio_tokens 0tok (+0tok) - -
Total_tokens 23979.54tok (-795.53tok) 13 🟢 16 🔴
Estimated_cost 0$ (0$) 13 🟢 11 🔴
Duration 15.09s (-1.18s) 23 🟢 6 🔴
Llm_duration 10.79s (+1.93s) 9 🟢 20 🔴

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