Skip to content

Commit 1c8189c

Browse files
authored
🎨 Updates email templates and increases invitation credits limit (#5450)
1 parent f2c7c67 commit 1c8189c

File tree

41 files changed

+448
-275
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+448
-275
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ endif
131131

132132
## DOCKER BUILD -------------------------------
133133
#
134-
# - all builds are inmediatly tagged as 'local/{service}:${BUILD_TARGET}' where BUILD_TARGET='development', 'production', 'cache'
134+
# - all builds are immediatly tagged as 'local/{service}:${BUILD_TARGET}' where BUILD_TARGET='development', 'production', 'cache'
135135
# - only production and cache images are released (i.e. tagged pushed into registry)
136136
#
137137
SWARM_HOSTS = $(shell docker node ls --format="{{.Hostname}}" 2>$(if $(IS_WIN),NUL,/dev/null))

packages/models-library/src/models_library/api_schemas_webserver/product.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ class GetProduct(OutputSchema):
6464

6565
class ExtraCreditsUsdRangeInt(ConstrainedInt):
6666
ge = 0
67-
lt = 200
67+
lt = 500
6868

6969

7070
class GenerateInvitation(InputSchema):

packages/notifications-library/src/notifications_library/templates/base.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@
2424
</style>
2525
</head>
2626
<body>
27+
<div class="container">
2728
{% block content %}
2829
{% endblock %}
30+
</div>
2931
</body>
3032
</html>
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{% extends 'base.html' %}
2+
{% block title %} {% include 'on_account_form.email.subject.txt' %} {% endblock %}
3+
{% block content %}
4+
<p>Dear Support team
5+
6+
<p>
7+
We have received the following request form for an account in {{ product.display_name }} from {{ host }}
8+
</p>
9+
10+
<pre>
11+
{{ dumps(request_form) }}
12+
</pre>
13+
14+
<p>
15+
Some details about the requested product follow:
16+
</p>
17+
18+
<pre>
19+
{{ dumps(product_info) }}
20+
</pre>
21+
22+
<p>
23+
To validate the request form, here you can get further info on this request:
24+
</p>
25+
26+
<pre>
27+
{{ dumps(ipinfo) }}
28+
</pre>
29+
30+
<p>TIP: Use https://ipinfo.io/ to find out more information on the ip</p>
31+
32+
{% endblock %}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
Dear Support team,
2+
3+
We have received the following request form for an account in {{ product.display_name }} from {{ host }}:
4+
5+
{{ dumps(request_form) }}
6+
7+
Some details about the requested product follow:
8+
9+
{{ dumps(product_info) }}
10+
11+
To validate the request form, here you can get further info on this request:
12+
13+
{{ dumps(ipinfo) }}
14+
15+
TIP: Use https://ipinfo.io/ to find out more information on the IP.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Request for an Account in {{ host }}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{% extends 'base.html' %}
2+
{% block title %} {% include 'on_change_email.email.subject.txt' %} {% endblock %}
3+
{% block content %}
4+
<p>Dear {{ user.first_name }},</p>
5+
<p>
6+
You have requested to change the email address linked to your {{ product.display_name }} account.
7+
Please follow the on-screen information in the link below:
8+
</p>
9+
10+
<p>
11+
<a href="{{ link }}">{{ link }}</a>
12+
</p>
13+
14+
<p>Please don't hesitate to contact us at {{ product.support_email }} if you need further help.
15+
</p>
16+
<p>Best Regards,</p>
17+
<p>The <i>{{ product.display_name }}</i> Team</p>
18+
{% endblock %}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
Dear {{ user.first_name }},
2+
3+
You have requested to change the email address linked to your {{ product.display_name }} account. Please follow the on-screen information in the link below:
4+
5+
{{ link }}
6+
7+
Please don't hesitate to contact us at {{ product.support_email }} if you need further help.
8+
9+
Best Regards,
10+
The {{ product.display_name }} Team
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Change of Your Sign-In Email Address on {{ host }}
Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
<p>
2-
Dear {{ user.first_name }} <br><br>
3-
Please find below the Two-factor Authentication sign-in code for your {{ host }} account.
4-
</p>
1+
{% extends 'base.html' %}
2+
{% block title %} {% include 'on_new_code.email.subject.txt' %} {% endblock %}
3+
{% block content %}
4+
<p>Dear {{ user.first_name }},</p>
5+
<p>Please find below the Two-factor Authentication sign-in code for your {{ host }} account.</p>
56

67
<p>
78
Your code is: <b> {{ code }} </b>
89
</p>
910

10-
<p>
11-
Please don't hesitate to contact us at {{ product.support_email }} if you need further help.<br><br>
12-
Best regards <br>
13-
The <i>{{ product.display_name }}</i> Team
14-
</p>
11+
<p>Please don't hesitate to contact us at {{ product.support_email }} if you need further help.</p>
12+
<p>Best Regards,</p>
13+
<p>The <i>{{ product.display_name }}</i> Team</p>
14+
{% endblock %}
Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
Dear {{ user.first_name }},
1+
Dear {{ user.first_name }},
22

3-
Please find below the Two-factor Authentication sign-in code for your {{ host }} account.
3+
Please find below the Two-factor Authentication sign-in code for your {{ host }} account.
44

5-
Your code is: {{ code }}
5+
Your code is: {{ code }}
66

7-
Please don't hesitate to contact us at {{ product.support_email }} if you need further help.
8-
Best regards
9-
The {{ product.display_name }} Team
7+
Please don't hesitate to contact us at {{ product.support_email }} if you need further help.
8+
9+
Best Regards,
10+
The {{ product.display_name }} Team
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{% extends 'base.html' %}
2+
{% block title %} {% include 'on_new_invitation.email.subject.txt' %} {% endblock %}
3+
{% block content %}
4+
<p>Dear {{ user.first_name }},</p>
5+
<p>Thank you for your interest in {{ product.display_name }}. We are pleased to provide you with a one-time invitation link to register on the platform.</p>
6+
<p>Click <a href="{{ link }}">here</a> to access the registration page.</p>
7+
<p>Please follow the on-screen information and proceed with your registration.</p>
8+
<p>If any problem should occur, please feel free to contact us at {{ product.support_email }}.</p>
9+
<p>Enjoy {{ product.display_name }}!</p>
10+
<p>Best Regards,</p>
11+
<p>The <i>{{ product.display_name }}</i> Team</p>
12+
{% endblock %}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
Dear {{ user.first_name }},
2+
3+
Thank you for your interest in {{ product.display_name }}. We are pleased to provide you with a one-time invitation link to register on the platform.
4+
5+
Click here to access the registration page: {{ link }}
6+
7+
Please follow the on-screen information and proceed with your registration.
8+
9+
If any problem should occur, please feel free to contact us at {{ product.support_email }}.
10+
11+
Enjoy {{ product.display_name }}!
12+
13+
Best Regards,
14+
The {{ product.display_name }} Team
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Request for an Account in {{ product.display_name }}
Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
{% extends 'base.html' %}
22

3-
{% block title %}Payment Confirmation{% endblock %}
3+
{% block title %} {% include 'on_payed.email.subject.txt' %} {% endblock %}
44

55
{% block content %}
6-
<div class="container">
7-
<p>Dear {{ user.first_name }},</p>
8-
<p>We are delighted to confirm the successful processing of your payment of <strong>{{ payment.price_dollars }}</strong> <em>USD</em> for the purchase of <strong>{{ payment.osparc_credits }}</strong> <em>credits</em>. The credits have been added to your {{ product.display_name }} account, and you are all set to utilize them.</p>
9-
<p>For more details you can view or download your <a href="{{ payment.invoice_url }}">receipt</a></p>
10-
<p>Should you have any questions or require further assistance, please do not hesitate to reach out to our <a href="mailto:{{ product.support_email }}">customer support team</a>.</p>
11-
<p>Best Regards,</p>
12-
<p>{{ product.display_name }} support team<br>{{ product.vendor_display_inline }}</p>
13-
</div>
6+
7+
<p>Dear {{ user.first_name }},</p>
8+
<p>We are delighted to confirm the successful processing of your payment of <strong>{{ payment.price_dollars }}</strong> <strong><em>USD</em></strong> for the purchase of <strong>{{ payment.osparc_credits }}</strong> <strong><em>credits</em></strong>.
9+
The credits have been added to your {{ product.display_name }} account, and you are all set to utilize them.</p>
10+
<p>For more details you can view or download your <a href="{{ payment.invoice_url }}">receipt</a>.</p>
11+
<p>Please don't hesitate to contact us at {{ product.support_email }} if you need further help.</p>
12+
<p>Best Regards,</p>
13+
<p>The <i>{{ product.display_name }}</i> Team</p>
14+
1415
{% endblock %}
Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
1-
Dear {{ user.first_name }},
1+
Dear {{ user.first_name }},
22

3-
We are delighted to confirm the successful processing of your payment of **{{ payment.price_dollars }}** *USD* for the purchase of **{{ payment.osparc_credits }}** *credits*. The credits have been added to your {{ product.display_name }} account, and you are all set to utilize them.
3+
We are delighted to confirm the successful processing of your payment of {{ payment.price_dollars }} USD for the purchase of {{ payment.osparc_credits }} credits. The credits have been added to your {{ product.display_name }} account, and you are all set to utilize them.
44

5-
To view or download your detailed receipt, please click the following link {{ payment.invoice_url }}
5+
For more details you can view or download your receipt: {{ payment.invoice_url }}.
66

7-
Should you have any questions or require further assistance, please do not hesitate to reach out to our {{ product.support_email }}" customer support team.
8-
Best Regards,
7+
Please don't hesitate to contact us at {{ product.support_email }} if you need further help.
98

10-
{{ product.display_name }} support team
11-
{{ product.vendor_display_inline }}
9+
Best Regards,
10+
The {{ product.display_name }} Team
Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,11 @@
1-
<p>
2-
Dear {{ user.first_name }} <br><br>
3-
Thank you for your interest in {{ product.display_name }}. You have successfully registered for {{ host }}.<br>
4-
Please activate your account via the link below:
5-
</p>
6-
7-
<p>
8-
<a href="{{ link }}">{{ link }}</a>
9-
</p>
10-
11-
<p>
12-
Please don't hesitate to contact us at {{ product.support_email }} if you need further help.<br><br>
13-
Best regards <br>
14-
The <i>{{ product.display_name }}</i> Team
15-
</p>
1+
{% extends 'base.html' %}
2+
{% block title %} {% include 'on_registered.email.subject.txt' %} {% endblock %}
3+
{% block content %}
4+
<p>Dear {{ user.first_name }},</p>
5+
<p>Thank you for your interest in {{ product.display_name }}. You have successfully registered for {{ host }}.</p>
6+
<p>Please activate your account via the link below:</p>
7+
<p><a href="{{ link }}">{{ link }}</a></p>
8+
<p>Please don't hesitate to contact us at {{ product.support_email }} if you need further help.</p>
9+
<p>Best Regards,</p>
10+
<p>The <i>{{ product.display_name }}</i> Team</p>
11+
{% endblock %}
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
Dear {{ user.first_name }}:
1+
Dear {{ user.first_name }},
22

33
Thank you for your interest in {{ product.display_name }}. You have successfully registered for {{ host }}.
4-
Please activate your account via the link below:
54

5+
Please activate your account via the link below:
66
{{ link }}
77

88
Please don't hesitate to contact us at {{ product.support_email }} if you need further help.
99

10-
Best regards
11-
The <i>{{ product.display_name }}</i> Team
10+
Best Regards,
11+
The {{ product.display_name }} Team
Lines changed: 20 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,23 @@
1-
<p>
2-
Dear {{ user.first_name }} <br><br>
3-
Someone has requested a password reset for your {{ host }} account.<br>
4-
Please set a new password via the link below:
5-
</p>
1+
{% extends 'base.html' %}
2+
{% block title %} {% include 'on_reset_password.email.subject.txt' %} {% endblock %}
3+
{% block content %}
4+
<p>Dear {{ user.first_name }},</p>
65

7-
<p>
8-
<a href="{{ link }}">{{ link }}</a>
9-
</p>
6+
<p>A request to reset your {{ host }} password has been made.</p>
7+
{% if success %}
108

11-
<p>
12-
If you don't wish to reset your password, disregard this email and no action will be taken.
13-
</p>
9+
<p>To complete the process, please click the link below:</p>
10+
<p><a href="{{ link }}">{{ link }}</a></p>
1411

15-
<p>
16-
Please don't hesitate to contact us at {{ product.support_email }} if you need further help.<br><br>
17-
Best regards <br>
18-
The <i>{{ product.display_name }}</i> Team
19-
</p>
12+
{% else %}
13+
14+
<p>It could not be completed due to the following reason:</p>
15+
<p><strong> {{ reason }} </strong></p>
16+
17+
{% endif %}
18+
19+
<p>If you did not request this, please contact us immediatly at {{ product.support_email }} for security reasons.</p>
20+
21+
<p>Best Regards,</p>
22+
<p>The <i>{{ product.display_name }}</i> Team</p>
23+
{% endblock %}
Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
Dear {{ user.first_name }},
22

3-
Someone has requested a password reset for your {{ host }} account.
4-
Please set a new password via the link below:
5-
3+
A request to reset your {{ host }} password has been made.
4+
{% if success %}
5+
To complete the process, please click the link below:
66
{{ link }}
7-
8-
If you don't wish to reset your password, disregard this email and no action will be taken.
9-
10-
Please don't hesitate to contact us at {{ product.support_email }} if you need further help.
11-
Best regards
12-
The {{ product.display_name }}Team
7+
{% else %}
8+
It could not be completed due to the following reason:
9+
{{ reason }}
10+
{% endif %}
11+
If you did not request this, please contact us immediately at {{ product.support_email }} for security reasons.
12+
13+
Best Regards,
14+
The {{ product.display_name }} Team
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{% extends 'base.html' %}
2+
{% block title %} {% include 'on_unregister.email.subject.txt' %} {% endblock %}
3+
{% block content %}
4+
<p>Dear {{ user.first_name }},</p>
5+
<p>
6+
We have received your account closure request, and we want to say thank you for being a part of our platform. While
7+
we're sad to see you go, we respect your decision.
8+
</p>
9+
<p>
10+
Your studies and data will be securely retained for {{ retention_days }} days.
11+
Within that period if you ever decide to return, you can reactivate your account by sending us an email to {{
12+
product.support_email }}. Afterwards it will be completely deleted from our system.
13+
</p>
14+
15+
<p>
16+
Our support team is here to help with anything you need. Please feel free to contact us to {{ product.support_email }}
17+
in case of questions or any required assistance.
18+
</p>
19+
20+
<p>
21+
We wish you all the best in your future endeavors.
22+
</p>
23+
24+
<p>Best Regards,</p>
25+
<p>The <i>{{ product.display_name }}</i> Team</p>
26+
{% endblock %}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
Dear {{ user.first_name }},
2+
3+
We have received your account closure request, and we want to say thank you for being a part of our platform. While we're sad to see you go, we respect your decision.
4+
5+
Your studies and data will be securely retained for {{ retention_days }} days. Within that period, if you ever decide to return, you can reactivate your account by sending us an email to {{ product.support_email }}. Afterwards, it will be completely deleted from our system.
6+
7+
Our support team is here to help with anything you need. Please feel free to contact us at {{ product.support_email }} in case of questions or any required assistance.
8+
9+
We wish you all the best in your future endeavors.
10+
11+
Best Regards,
12+
The {{ product.display_name }} Team
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Closing Your Account in {{ host }}

0 commit comments

Comments
 (0)