Skip to content

Commit

Permalink
email templates update + customization (for 1.9.7) (#1654)
Browse files Browse the repository at this point in the history
Same as #1653 (part of #1652) but without doc update for 1.9.7 release:
- Update invite email template per request from Camille
- Make it possible to customize templates w/o a new release via Helm
chart.

---------
Co-authored-by: Tessa Walsh <[email protected]>
  • Loading branch information
ikreymer authored Apr 8, 2024
1 parent 67188f5 commit cc01300
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 17 deletions.
48 changes: 32 additions & 16 deletions chart/email-templates/invite
Original file line number Diff line number Diff line change
Expand Up @@ -12,28 +12,35 @@ Welcome to Browsertrix Cloud!
{% endif %}

{% if is_new %}
<p>You can now set up your account using the link below.</p>
<p>We're excited you're here and can't wait to help you get started crawling! You can now set up your account using the link below.</p>

<p style="font-weight: bold; padding: 12px; background-color: lightgrey"><a href="{{ invite_url }}">Click here to create an account.</a></p>
{% else %}
<p style="font-weight: bold; padding: 12px; background-color: lightgrey"><a href="{{ invite_url }}">Click here to accept this invite.</a></p>
{% endif %}

<p>When you first access your account, you’ll be directed to your Dashboard. It contains information you may want to view frequently including: Storage Usage, Crawling Info, Collections, and Monthly Usage History. From there, you can click <i>+ Create New</i> to create your first Crawl Workflow!
<p>Here's what you should do first off to get the most value out of your experience:</p>

<p>
Step 1: Create your login credentials<br/>
Step 2: Review the <a href="https://docs.browsertrix.cloud/user-guide/">Browerstrix User Guide</a><br/>
Step 3: <a href="https://docs.browsertrix.cloud/user-guide/org-settings/">Invite additional users</a> from your organization
</p>

<p>For more info, check out the <b><a href="https://docs.browsertrix.cloud/user-guide/">Browsertrix Cloud User Guide</a></b></p>
<p>When you first access your account, you'll be directed to your Dashboard. It contains information you may want to view frequently including: Storage Usage, Crawling Info, Collections, and Monthly Usage History. From there, you can click <b>+ Create New</b> to <a href="https://docs.browsertrix.cloud/user-guide/workflow-setup/">create your first Crawl Workflow</a>!</p>

<p>To help you get up to speed, here are the top three questions our users normally have on the first day:</p>

<p>
We want you to get the most from your Browsertrix Cloud experience!
How do I <a href="https://docs.browsertrix.cloud/user-guide/workflow-setup/">crawl my first website</a>?<br/>
How do I create a <a href="https://docs.browsertrix.cloud/user-guide/browser-profiles/">browser profile</a>?<br/>
How do I <a href="https://docs.browsertrix.cloud/user-guide/archived-items/#crawl-settings">export my archived items</a>?
</p>

<p>Let us know if you need any questions or feedback.</p>
You can connect with our team at <a href="mailto:{{ support_email }}">{{ support_email }}</a></p>
</p>
<p>If you need any assistance, please direct your questions to <a href="mailto:{{ support_email }}">{{ support_email }}</a></p>

<p><i>The Webrecorder Team</i></p>
<p>Best Regards,</p>
<p>The Webrecorder Team</p>
</body>
</html>
~~~
Expand All @@ -46,19 +53,28 @@ You have been invited by {{ sender }} to join their organization, "{{ org_name }

{% else %}

You can join by clicking here: {{ invite_url }}
{% endif %}

When you first access your account, you’ll be directed to your Dashboard. It contains information you may want to view frequently including: Storage Usage, Crawling Info, Collections, and Monthly Usage History.
We're excited you're here and can't wait to help you get started crawling! You can now set up your account using the link below.

For more info, check out Browsertrix Cloud User Guide at: https://docs.browsertrix.cloud/user-guide/
{{ invite_url }}
{% endif %}

Here's what you should do first off to get the most value out of your experience:

If you ever need to reset your password, go here: {{ origin }}/log-in/forgot-password
Step 1: Create your login credentials
Step 2: Review the Browerstrix User Guide (https://docs.browsertrix.cloud/user-guide/)
Step 3: Invite additional users from your organization (https://docs.browsertrix.cloud/user-guide/org-settings/)

When you first access your account, you'll be directed to your Dashboard.
It contains information you may want to view frequently including: Storage Usage, Crawling Info, Collections, and Monthly Usage History.
From there, you can click +Create New to create your first Crawl Workflow! (https://docs.browsertrix.cloud/user-guide/workflow-setup/)

We want you to get the most from your Browsertrix Cloud experience. Let us know if you need any questions or feedback.
You can connect with our team at {{ support_email }}.
To help you get up to speed, here are the top three questions our users normally have on the first day:

How do I crawl my first website? (https://docs.browsertrix.cloud/user-guide/workflow-setup/)
How do I create a browser profile? (https://docs.browsertrix.cloud/user-guide/browser-profiles/)
How do I export my archived items? (https://docs.browsertrix.cloud/user-guide/archived-items/#crawl-settings)

If you need any assistance, please direct your questions to {{ support_email }}.

Best Regards,
The Webrecorder Team
6 changes: 5 additions & 1 deletion chart/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -145,4 +145,8 @@ metadata:
namespace: {{ .Release.Namespace }}

data:
{{ (.Files.Glob "email-templates/*").AsConfig | indent 2 }}
{{- $email_templates := .Values.email.templates | default dict }}
{{- range tuple "failed_bg_job" "invite" "password_reset" "validate" }}
{{ . }}: |
{{ ((get $email_templates . ) | default ($.Files.Get (printf "%s/%s" "email-templates" . ))) | indent 4 }}
{{- end }}

0 comments on commit cc01300

Please sign in to comment.