feat(onboarding-email): new PauseAI UK welcome emails - #1128
Merged
Merged
Conversation
Port the two welcome emails PauseAI UK now sends, one for volunteers and one for everyone else, into the UK override in the plain layout. Every link is fixed in code at the chapter's request; the events list is dated and needs editing as each event passes. A newline inside a block's text now renders as a line break, so an event's RSVP link sits on its own line, and the plain-text renderer strips bold markers from list items as it already did for paragraphs. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
✅ Deploy Preview for pauseai ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

What
Replaces both PauseAI UK welcome emails in the UK override with the copy the chapter now sends, ported from two MailerSend test sends by the chapter's director on 2026-09-15. Volunteers get the version that asks them to join WhatsApp up front; everyone else gets the version that mentions WhatsApp only in the footer. Both stay in the plain layout.
Decisions
chapterOverrides.ts.Renderer changes
<br>in HTML (markdown.ts), so "RSVP here" sits under each event and the signature stacks as two lines.**bold**from list items (text.ts), matching what it already did for paragraphs. No existing copy used bold in a list.Tests
The test that checked a row link carrying its own markdown is untouched now moved from the UK to Sweden, which still splices row links into a sentence. New assertion for two-line list items.
How verified
vitest run src/lib/server/onboardingEmail: 18 passed.eslintclean;svelte-checkreports no errors in the changed module.renderOnboardingEmailand compared against the source emails./onboarding-email-previewon the deploy preview, which defaults to United Kingdom / Volunteer.🤖 Generated with Claude Code