Skip to content

feat(onboarding-email): new PauseAI UK welcome emails - #1128

Merged
UFO-101 merged 1 commit into
mainfrom
uk-welcome-emails
Sep 16, 2026
Merged

UFO-101 merged 1 commit into
mainfrom
uk-welcome-emails

Conversation

@UFO-101

@UFO-101 UFO-101 commented Sep 16, 2026

Copy link
Copy Markdown
Collaborator

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

  • Every UK link is fixed in code (WhatsApp, events calendar, intro call, campaigns page, socials) at the chapter's request. The UK section no longer reads the National Groups row, so updating a link is an edit to chapterOverrides.ts.
  • The events list is dated. Nothing checks the date, so each of the three events (26 Sep, 20 Oct, 5 Dec) has to be removed once it has happened. They sit in one clearly marked array at the top of the UK section.
  • The lobby-day sentence links Luma directly. The chapter's email used a CiviCRM click-tracking redirect that resolves to the same Luma page.
  • The confirm line and the newsletter line are the skeleton's fixed copy, as for every override.

Renderer changes

  • A newline inside a block's text now becomes <br> in HTML (markdown.ts), so "RSVP here" sits under each event and the signature stacks as two lines.
  • The plain-text renderer now strips **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.
  • eslint clean; svelte-check reports no errors in the changed module.
  • Both versions rendered end to end through renderOnboardingEmail and compared against the source emails.
  • To eyeball: /onboarding-email-preview on the deploy preview, which defaults to United Kingdom / Volunteer.

🤖 Generated with Claude Code

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>
@netlify

netlify Bot commented Sep 16, 2026

Copy link
Copy Markdown

Deploy Preview for pauseai ready!

Name Link
🔨 Latest commit 47a4287
🔍 Latest deploy log https://app.netlify.com/projects/pauseai/deploys/6aa9e00140c02800075f9e0d
😎 Deploy Preview https://deploy-preview-1128--pauseai.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 63 (🟢 up 5 from production)
Accessibility: 91 (no change from production)
Best Practices: 100 (no change from production)
SEO: 82 (no change from production)
PWA: -
View the detailed breakdown and full score reports
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@UFO-101
UFO-101 merged commit c4ee72a into main Sep 16, 2026
9 checks passed
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.

1 participant