Skip to content

Send speaker portal invitation email on creation#137

Merged
denbec merged 1 commit intomainfrom
denbec/athens-v1
Feb 11, 2026
Merged

Send speaker portal invitation email on creation#137
denbec merged 1 commit intomainfrom
denbec/athens-v1

Conversation

@denbec
Copy link
Collaborator

@denbec denbec commented Feb 11, 2026

Summary

  • Extract invitation logic into a reusable helper function
  • Add speakers.items.create action listener to send invitations when speakers are created
  • Previously invitations only fired on manual token updates

Why

The speaker-token hook auto-generates a portal token during speaker creation, but the notification hook only listened on updates. This meant invitations were never sent unless an admin manually updated the speaker record afterward.

Changes

  • New sendInvitationForSpeaker() helper handles the invitation flow for both create and update events
  • create action fires when a new speaker is created, sending the invitation with the auto-generated token
  • update action reuses the same helper, handling manual token regenerations

Extract invitation logic into a reusable helper and add a create action
listener so invitation emails are sent when speakers are first created.
Previously invitations only fired on manual token updates.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@vercel
Copy link

vercel bot commented Feb 11, 2026

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

Project Deployment Actions Updated (UTC)
programmierbar-website Ready Ready Preview, Comment Feb 11, 2026 0:09am

Request Review

@denbec denbec merged commit 76460a7 into main Feb 11, 2026
3 checks passed
@denbec denbec deleted the denbec/athens-v1 branch February 13, 2026 12:41
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