Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

fix: register recording viewer invitation email

Richie McIlroy23ea86add05e
diff --git a/emails/CATALOG.md b/emails/CATALOG.md
index ccc962d4b..a2e5358d2 100644
--- a/emails/CATALOG.md
+++ b/emails/CATALOG.md
@@ -608,6 +608,7 @@ These are repository send paths and retained templates, not confirmation of prod
| --- | --- | --- | --- |
| Login verification code | Web or mobile email authentication request | The person signing in | [otp-email](../packages/database/emails/otp-email.tsx) |
| Organization invitation | An organization invitation is issued through the web action or public API | The invited teammate | [organization-invite](../packages/database/emails/organization-invite.tsx) |
+| Recording viewer invitation | A recording owner invites someone to view the recording | The invited viewer | [video-viewer-invite](../packages/database/emails/video-viewer-invite.tsx) |
| Requested download links | The person requests download links by email | The requesting email address | [download-link](../packages/database/emails/download-link.tsx) |
| First shareable recording | Desktop API creates the first eligible shareable recording | The recording owner | [first-shareable-link](../packages/database/emails/first-shareable-link.tsx) |
| New comment notification | An eligible comment notification is created | The notification recipient | [new-comment](../packages/database/emails/new-comment.tsx) |
@@ -632,6 +633,12 @@ An invitation is not permission to send promotions.
Send source: [apps/web/actions/organization/send-invites.ts](../apps/web/actions/organization/send-invites.ts), [apps/web/app/api/v1/[...route]/route.ts](../apps/web/app/api/v1/%5B...route%5D/route.ts).
+### Recording viewer invitation
+
+Transactional viewing access; does not subscribe the viewer to marketing.
+
+Send source: [apps/web/actions/videos/viewer-invites.ts](../apps/web/actions/videos/viewer-invites.ts).
+
### Requested download links
Uses the existing Resend marketing sender flag; Loops audience filters do not govern this send.
diff --git a/emails/application.ts b/emails/application.ts
index fed7fbd3f..331f0947b 100644
--- a/emails/application.ts
+++ b/emails/application.ts
@@ -34,6 +34,16 @@ export const applicationEmails: ApplicationEmail[] = [
"apps/web/app/api/v1/[...route]/route.ts",
],
},
+ {
+ id: "video-viewer-invite",
+ name: "Recording viewer invitation",
+ trigger: "A recording owner invites someone to view the recording",
+ recipients: "The invited viewer",
+ notes:
+ "Transactional viewing access; does not subscribe the viewer to marketing.",
+ template: "video-viewer-invite",
+ sources: ["apps/web/actions/videos/viewer-invites.ts"],
+ },
{
id: "download-link",
name: "Requested download links",