Files
cal.diy/packages/emails
ad5d645347 feat: Implement editable OOO events feature (#15932)
* feat: Implement edit ooo feature

Signed-off-by: Souptik Datta <[email protected]>

* refactor: Refactor button text and gap between buttons

Signed-off-by: Souptik Datta <[email protected]>

* fix: Fix entry create and edit edge cases

Signed-off-by: Souptik Datta <[email protected]>

* chore: Change "edit ooo event" modal title

Signed-off-by: Souptik Datta <[email protected]>

* chore: Add tooltips to entry eidt and delete buttons

Signed-off-by: Souptik Datta <[email protected]>

* feat: Reset form on form close event

Signed-off-by: Souptik Datta <[email protected]>

* refactor: Refactor reset-form function

Signed-off-by: Souptik Datta <[email protected]>

* chore: Rename create or edit OOO as suggested

Signed-off-by: Souptik Datta <[email protected]>

* refactor: Refactor component and function names

Signed-off-by: Souptik Datta <[email protected]>

* feat: Improve ooo events email notifications

Signed-off-by: Souptik Datta <[email protected]>

* fix: Fix email templates

Signed-off-by: Souptik Datta <[email protected]>

* feat: Add e2e test for ooo event edit functionality

Signed-off-by: Souptik Datta <[email protected]>

* refactor: Create separate test for edit ooo event

Signed-off-by: Souptik Datta <[email protected]>

* fix: Remove extra user from redirect user configuration test

Signed-off-by: Souptik Datta <[email protected]>

* chore: code refactor

* remove log

* chore: Update ooo-input-schema uuid data type

Signed-off-by: Souptik Datta <[email protected]>

* fix: Address feedbacks

Signed-off-by: Souptik Datta <[email protected]>

* chore: code splitting and refactor

---------

Signed-off-by: Souptik Datta <[email protected]>
Co-authored-by: Amit Sharma <[email protected]>
Co-authored-by: Anik Dhabal Babu <[email protected]>
2024-08-29 17:28:35 +00:00
..
2023-08-15 11:59:16 -07:00

JSX email templates

  • components Holds reusable patterns
  • templates A template equals a type of email sent

Usage

import { renderEmail } from "@calcom/emails";

await renderEmail("TeamInviteEmail", {
  language: t,
  from: "[email protected]",
  to: "[email protected]",
  teamName: "Team Pro",
  joinLink: "https://cal.com",
});

The first argument is the template name as defined inside templates/index.ts. The second argument are the template props.

Development

You can use an API endpoint to preview the email HTML, there's already one on /apps/web/pages/api/email.ts feel free to change the template to the one you're currently working on.