diff --git a/packages/email-templates/src/index.ts b/packages/email-templates/src/index.ts index c370090cb5b..66c038c9a47 100644 --- a/packages/email-templates/src/index.ts +++ b/packages/email-templates/src/index.ts @@ -18,6 +18,11 @@ import LockTemplates from './templates/locks' import bases from './templates/base/index' import custom from './templates/custom' import nextAuthCode from './templates/nextAuthCode' +import eventCollectionCreated from './templates/eventCollectionCreated' +import eventApprovedInCollection from './templates/eventApprovedInCollection' +import eventDeniedInCollection from './templates/eventDeniedInCollection' +import eventSubmittedToCollectionManager from './templates/eventSubmittedToCollectionManager' +import eventSubmittedToCollectionSubmitter from './templates/eventSubmittedToCollectionSubmitter' export interface EmailTemplateProps { nowrap?: boolean subject: string @@ -43,6 +48,11 @@ type Template = | 'certificationKeyAirdropped' | 'custom' | 'nextAuthCode' + | 'eventCollectionCreated' + | 'eventApprovedInCollection' + | 'eventDeniedInCollection' + | 'eventSubmittedToCollectionManager' + | 'eventSubmittedToCollectionSubmitter' export const EmailTemplates: Record = { confirmEmail, @@ -63,6 +73,11 @@ export const EmailTemplates: Record = { inviteEvent, eventDeployed, nextAuthCode, + eventCollectionCreated, + eventApprovedInCollection, + eventDeniedInCollection, + eventSubmittedToCollectionManager, + eventSubmittedToCollectionSubmitter, } const templates: Record = {} diff --git a/packages/email-templates/src/templates/eventApprovedInCollection.ts b/packages/email-templates/src/templates/eventApprovedInCollection.ts new file mode 100644 index 00000000000..2d87c1da385 --- /dev/null +++ b/packages/email-templates/src/templates/eventApprovedInCollection.ts @@ -0,0 +1,28 @@ +export default { + subject: + 'The event "{{eventName}}" has been approved for "{{collectionName}}"', + html: `

Event Approved

+ +

+ Congratulations! The event "{{eventName}}" has been approved and added to the "{{collectionName}}" collection. +

+ + {{eventDetailsLight + eventName + eventDate + eventUrl + }} + +

+ You can view this event in the collection and share the collection link to promote the event. +

+ +

+ View the collection +

+ +

+ If you have any questions or need further assistance, reply to this email. +

+ `, +} diff --git a/packages/email-templates/src/templates/eventCollectionCreated.ts b/packages/email-templates/src/templates/eventCollectionCreated.ts new file mode 100644 index 00000000000..772ea50e618 --- /dev/null +++ b/packages/email-templates/src/templates/eventCollectionCreated.ts @@ -0,0 +1,36 @@ +export default { + subject: 'Your event collection "{{collectionName}}" is live!', + html: `

Your Event Collection is Live!

+ +

+ Congratulations! Your event collection "{{collectionName}}" has been successfully created. Start by sharing it with your community and add events. +

+ + {{collectionDetailsLight + collectionName + collectionUrl + }} + +

+ Next Steps: +

+ +
    +
  • Share your collection
    + Use this link to share your collection: {{collectionUrl}}
  • + +
  • Customize Settings
    + Update the description, images, and social links in your collection settings.
  • + +
  • Add Events
    + Add new events by creating them, using existing event URLs, or selecting from your existing events.
  • + +
  • Manage Contributors
    + Assign additional managers to help curate and approve events.
  • +
+ +

+ Need assistance? Reply to this email, and we’ll be happy to help. +

+ `, +} diff --git a/packages/email-templates/src/templates/eventDeniedInCollection.ts b/packages/email-templates/src/templates/eventDeniedInCollection.ts new file mode 100644 index 00000000000..9556b14acf5 --- /dev/null +++ b/packages/email-templates/src/templates/eventDeniedInCollection.ts @@ -0,0 +1,20 @@ +export default { + subject: + 'The event "{{eventName}}" was not approved for "{{collectionName}}"', + html: `

Event Submission Update

+ +

+ Unfortunately, the event "{{eventName}}" was not approved for the "{{collectionName}}" collection. +

+ + {{eventDetailsLight + eventName + eventDate + eventUrl + }} + +

+ Thank you for your interest in contributing to this collection. +

+ `, +} diff --git a/packages/email-templates/src/templates/eventSubmittedToCollectionManager.ts b/packages/email-templates/src/templates/eventSubmittedToCollectionManager.ts new file mode 100644 index 00000000000..512dd401abb --- /dev/null +++ b/packages/email-templates/src/templates/eventSubmittedToCollectionManager.ts @@ -0,0 +1,27 @@ +export default { + subject: 'New event "{{eventName}}" submitted to "{{collectionName}}"', + html: `

New Event Submitted

+ +

+ A new event titled "{{eventName}}" has been submitted to the "{{collectionName}}" collection. +

+ + {{eventDetailsLight + eventName + eventDate + eventUrl + }} + +

+ Please review and approve or reject the event. +

+ +

+ Go to the collection dashboard +

+ +

+ Need assistance? Reply to this email, and we’ll be happy to help. +

+ `, +} diff --git a/packages/email-templates/src/templates/eventSubmittedToCollectionSubmitter.ts b/packages/email-templates/src/templates/eventSubmittedToCollectionSubmitter.ts new file mode 100644 index 00000000000..2bab2edb443 --- /dev/null +++ b/packages/email-templates/src/templates/eventSubmittedToCollectionSubmitter.ts @@ -0,0 +1,25 @@ +export default { + subject: + 'The event "{{eventName}}" has been submitted to "{{collectionName}}"', + html: `

Event Submission Received

+ +

+ Thank you for submitting your event "{{eventName}}" to the collection "{{collectionName}}". +

+ + {{eventDetailsLight + eventName + eventDate + eventUrl + }} + +

+ Your event is now pending approval. You will receive a notification once it has been reviewed. +

+ + +

+ If you have any questions, feel free to reply to this email. +

+ `, +}