Skip to content

Commit 521a13b

Browse files
committed
improve dormant workspace notification wording
1 parent c131d01 commit 521a13b

File tree

4 files changed

+16
-14
lines changed

4 files changed

+16
-14
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
UPDATE notification_templates SET body_template = E'Your workspace **{{.Labels.name}}** has been marked as [**dormant**](https://coder.com/docs/templates/schedule#dormancy-threshold-enterprise) because of {{.Labels.reason}}.\n' ||
2+
E'Dormant workspaces are [automatically deleted](https://coder.com/docs/templates/schedule#dormancy-auto-deletion-enterprise) after {{.Labels.timeTilDormant}} of inactivity.\n' ||
3+
E'To prevent deletion, use your workspace with the link below.' WHERE id = '0ea69165-ec14-4314-91f1-69566ac3c5a0';
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
UPDATE notification_templates SET body_template = E'Your workspace **{{.Labels.name}}** has been marked as [**dormant**](https://coder.com/docs/templates/schedule#dormancy-threshold-enterprise) due to inactivity exceeding the dormancy threshold.' ||
2+
E'This workspace will be automatically deleted in {{.Labels.timeTilDormant}} if it remains inactive.' ||
3+
E'To prevent deletion, activate your workspace using the link below.' WHERE id = '0ea69165-ec14-4314-91f1-69566ac3c5a0';

coderd/notifications/testdata/rendered-templates/smtp/TemplateWorkspaceDormant.html.golden

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,10 @@ Content-Type: text/plain; charset=UTF-8
1313
Hi Bobby,
1414

1515
Your workspace bobby-workspace has been marked as dormant (https://coder.co=
16-
m/docs/templates/schedule#dormancy-threshold-enterprise) because of breache=
17-
d the template's threshold for inactivity.
18-
Dormant workspaces are automatically deleted (https://coder.com/docs/templa=
19-
tes/schedule#dormancy-auto-deletion-enterprise) after 24 hours of inactivit=
20-
y.
21-
To prevent deletion, use your workspace with the link below.
16+
m/docs/templates/schedule#dormancy-threshold-enterprise) due to inactivity =
17+
exceeding the dormancy threshold.This workspace will be automatically delet=
18+
ed in 24 hours if it remains inactive.To prevent deletion, activate your wo=
19+
rkspace using the link below.
2220

2321

2422
View workspace: http://test.com/@bobby/bobby-workspace
@@ -54,12 +52,10 @@ argin: 8px 0 32px; line-height: 1.5;">
5452
<p>Hi Bobby,</p>
5553
<p>Your workspace <strong>bobby-workspace</strong> has been marked =
5654
as <a href=3D"https://coder.com/docs/templates/schedule#dormancy-threshold-=
57-
enterprise"><strong>dormant</strong></a> because of breached the template&r=
58-
squo;s threshold for inactivity.<br>
59-
Dormant workspaces are <a href=3D"https://coder.com/docs/templates/schedule=
60-
#dormancy-auto-deletion-enterprise">automatically deleted</a> after 24 hour=
61-
s of inactivity.<br>
62-
To prevent deletion, use your workspace with the link below.</p>
55+
enterprise"><strong>dormant</strong></a> due to inactivity exceeding the do=
56+
rmancy threshold.This workspace will be automatically deleted in 24 hours i=
57+
f it remains inactive.To prevent deletion, activate your workspace using th=
58+
e link below.</p>
6359
</div>
6460
<div style=3D"text-align: center; margin-top: 32px;">
6561
=20

coderd/notifications/testdata/rendered-templates/webhook/TemplateWorkspaceDormant.json.golden

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,6 @@
2727
},
2828
"title": "Workspace \"bobby-workspace\" marked as dormant",
2929
"title_markdown": "Workspace \"bobby-workspace\" marked as dormant",
30-
"body": "Your workspace bobby-workspace has been marked as dormant (https://coder.com/docs/templates/schedule#dormancy-threshold-enterprise) because of breached the template's threshold for inactivity.\nDormant workspaces are automatically deleted (https://coder.com/docs/templates/schedule#dormancy-auto-deletion-enterprise) after 24 hours of inactivity.\nTo prevent deletion, use your workspace with the link below.",
31-
"body_markdown": "Your workspace **bobby-workspace** has been marked as [**dormant**](https://coder.com/docs/templates/schedule#dormancy-threshold-enterprise) because of breached the template's threshold for inactivity.\nDormant workspaces are [automatically deleted](https://coder.com/docs/templates/schedule#dormancy-auto-deletion-enterprise) after 24 hours of inactivity.\nTo prevent deletion, use your workspace with the link below."
30+
"body": "Your workspace bobby-workspace has been marked as dormant (https://coder.com/docs/templates/schedule#dormancy-threshold-enterprise) due to inactivity exceeding the dormancy threshold.This workspace will be automatically deleted in 24 hours if it remains inactive.To prevent deletion, activate your workspace using the link below.",
31+
"body_markdown": "Your workspace **bobby-workspace** has been marked as [**dormant**](https://coder.com/docs/templates/schedule#dormancy-threshold-enterprise) due to inactivity exceeding the dormancy threshold.This workspace will be automatically deleted in 24 hours if it remains inactive.To prevent deletion, activate your workspace using the link below."
3232
}

0 commit comments

Comments
 (0)