Commit b2e33ce
Add UTM to email links (#498)
* Localize email templates to Russian
Translated all user-facing text in email templates from English to Russian, including subjects, button labels, and message bodies. Updated pluralization and formatting to use Russian language rules and improved consistency across all notification types.
* Update workers/email/src/templates/emails/assignee/html.twig
Co-authored-by: Peter <[email protected]>
* Update text.twig
* Update workers/email/src/templates/emails/sign-up/html.twig
Co-authored-by: Peter <[email protected]>
* Update text.twig
* Update workers/email/src/templates/emails/payment-failed/html.twig
Co-authored-by: Peter <[email protected]>
* Update workers/email/src/templates/emails/payment-success/html.twig
Co-authored-by: Peter <[email protected]>
* Update text.twig
* Update workers/email/src/templates/emails/events-limit-almost-reached/html.twig
Co-authored-by: Peter <[email protected]>
* Update wording in events limit notification emails
Refined the message in both HTML and text templates for the 'events limit almost reached' email to clarify staying informed about all incidents.
* Update assignee email templates wording
Revised the message in both HTML and text email templates to clarify that the recipient is assigned as responsible for fixing a bug in the project, instead of just processing an event.
* Update subject.twig
* Update workers/email/src/templates/emails/days-limit-almost-reached/html.twig
Co-authored-by: Peter <[email protected]>
* Refine event email templates formatting
Improved the formatting of the unsubscribe text in the HTML template by consolidating it into a single line. Updated the text template to conditionally display the event type with a colon only if it exists, enhancing clarity in event listings.
* Update event-info.twig
* Update workers/email/src/templates/emails/days-limit-almost-reached/html.twig
Co-authored-by: Peter <[email protected]>
* Update text.twig
* Update workers/email/src/templates/emails/days-limit-almost-reached/subject.twig
Co-authored-by: Peter <[email protected]>
* Update workers/email/src/templates/emails/event/text.twig
Co-authored-by: Peter <[email protected]>
* Improve event type and title display in email templates
Updated both HTML and text email templates to conditionally display the event type followed by the event title only if the type exists, improving clarity and formatting.
* Update workers/email/src/templates/emails/events-limit-almost-reached/html.twig
Co-authored-by: Peter <[email protected]>
* Update text.twig
* Update event email templates button and link text
Changed the button label and link text from 'Просмотреть событие' to 'Просмотреть детали' in both HTML and text event email templates for improved clarity.
* Update Russian email templates for events limit notice
Improved the wording in both HTML and text versions of the 'events limit almost reached' email templates in Russian for better clarity and tone.
* Update days-limit email templates with renewal info
Added conditional messaging in both HTML and text email templates to inform users if their subscription will be auto-renewed or if they need to attach a card or pay manually, based on the presence of a subscription ID.
* Update email templates branding and footer text
Replaces 'Российский трекер ошибок' and 'Сделан в CodeX' with 'Мониторинг ошибок' in all email templates and layout. This unifies and simplifies the branding across all notification emails.
* Fix placement of plan suspension notice in email templates
Moved the warning about error monitoring suspension to appear only when appropriate in both HTML and text versions of the days-limit-almost-reached email. This ensures the message is shown in the correct context for users without an active subscription.
* Unify unsubscribe text in email templates
Standardized the wording of unsubscribe and notification preference instructions across all email templates for consistency and clarity.
* Update Russian email templates wording and formatting
Changed button labels from 'Просмотреть' to 'Смотреть' for consistency across assignee, event, and several-events templates. Improved formatting in events-limit-almost-reached and sign-up HTML templates by adding line breaks for better readability.
* Prefill email in login link for sign-up email
Updated the login button in the sign-up email template to include the email as a query parameter, allowing the login form to be prefilled for the user.
* Update workers/email/src/templates/emails/assignee/html.twig
Co-authored-by: Peter <[email protected]>
* Prefill email in sign-up email login link
Updated the login link in the sign-up email template to include the email as a query parameter, allowing the login form to be prefilled for new users.
* Simplify days-limit-almost-reached email templates
Removed conditional logic for subscription status in both HTML and text email templates. Now always informs the user that the subscription will be renewed in the specified number of days.
* Update days-limit email templates with clearer renewal info
Revised both HTML and text email templates to clarify the need to link a card for automatic renewal or pay for the next month manually. Added a warning that error monitoring will be suspended if the plan is not renewed.
* Fix event type display when type is undefined in email templates
Updated event email templates to use the default filter for event type, preventing display issues when the type is undefined or missing. This ensures consistent formatting in both HTML and text versions of event notification emails.
* Refactor event type display in email templates
Replaced inline ternary logic with Twig if statements for displaying event types in event email templates. This improves readability and consistency across HTML and text versions.
* Update workspace invite subject variable name
Changed the variable in the workspace invite email subject from 'name' to 'workspaceName' for improved clarity and consistency.
* Remove duplicate event title block in email template
Deleted a redundant table row displaying the event title and icon above the main event title block in the event email template to avoid duplicate information.
* Update html.twig
* fix some styles
* Update backtrace.twig
* Update event-info.twig
* few more fixes
* Update backtrace.twig
* Update subject.twig
* Add environment prefix to email sender name
Non-production environments now include the environment name in the email sender name to help distinguish emails sent from staging or development.
* Revert "Add environment prefix to email sender name"
This reverts commit 29adaa6.
* Add user email to sign-up email template variables
Introduces an 'email' field to the sign-up template variables and updates the email template to use this value for the login button link. This ensures the correct email is prefilled in the login URL.
* Add UTM parameters to email template links
Appends UTM parameters to all actionable links in email templates for better tracking of user engagement from transactional emails. Each template now sets a relevant utm_campaign value, and links are updated accordingly in both HTML and text versions.
* Fix typos and update payment instructions in email templates
Corrected a typo in the renewal message and updated the payment settings instruction in both HTML and text versions of the days-limit-almost-reached email templates.
---------
Co-authored-by: Peter <[email protected]>1 parent aad4b02 commit b2e33ce
File tree
23 files changed
+62
-25
lines changed- workers/email/src/templates/emails
- assignee
- block-workspace
- blocked-workspace-reminder
- days-limit-almost-reached
- events-limit-almost-reached
- event
- password-reset
- payment-failed
- payment-success
- several-events
- sign-up
- workspace-invite
23 files changed
+62
-25
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
8 | 10 | | |
9 | 11 | | |
10 | 12 | | |
| |||
27 | 29 | | |
28 | 30 | | |
29 | 31 | | |
30 | | - | |
| 32 | + | |
31 | 33 | | |
32 | 34 | | |
33 | 35 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
1 | 3 | | |
2 | 4 | | |
3 | 5 | | |
| |||
6 | 8 | | |
7 | 9 | | |
8 | 10 | | |
9 | | - | |
| 11 | + | |
10 | 12 | | |
11 | 13 | | |
12 | 14 | | |
| |||
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
8 | 10 | | |
9 | 11 | | |
10 | 12 | | |
| |||
39 | 41 | | |
40 | 42 | | |
41 | 43 | | |
42 | | - | |
| 44 | + | |
43 | 45 | | |
44 | 46 | | |
45 | 47 | | |
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
1 | 3 | | |
2 | 4 | | |
3 | 5 | | |
4 | 6 | | |
5 | | - | |
| 7 | + | |
6 | 8 | | |
7 | 9 | | |
8 | 10 | | |
| |||
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
8 | 10 | | |
9 | 11 | | |
10 | 12 | | |
| |||
39 | 41 | | |
40 | 42 | | |
41 | 43 | | |
42 | | - | |
| 44 | + | |
43 | 45 | | |
44 | 46 | | |
45 | 47 | | |
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
34 | | - | |
| 35 | + | |
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
1 | 3 | | |
2 | 4 | | |
3 | 5 | | |
4 | 6 | | |
5 | 7 | | |
6 | 8 | | |
7 | | - | |
| 9 | + | |
8 | 10 | | |
9 | 11 | | |
10 | 12 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
55 | 56 | | |
56 | 57 | | |
57 | 58 | | |
58 | | - | |
| 59 | + | |
59 | 60 | | |
60 | 61 | | |
61 | 62 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
10 | 12 | | |
11 | 13 | | |
12 | 14 | | |
| |||
23 | 25 | | |
24 | 26 | | |
25 | 27 | | |
26 | | - | |
| 28 | + | |
27 | 29 | | |
28 | 30 | | |
29 | 31 | | |
| |||
0 commit comments