Skip to content

chore: improve dormant workspace notification wording #17100

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 26, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
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' ||
E'Dormant workspaces are [automatically deleted](https://coder.com/docs/templates/schedule#dormancy-auto-deletion-enterprise) after {{.Labels.timeTilDormant}} of inactivity.\n' ||
E'To prevent deletion, use your workspace with the link below.' WHERE id = '0ea69165-ec14-4314-91f1-69566ac3c5a0';
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
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.\n\n' ||
E'This workspace will be automatically deleted in {{.Labels.timeTilDormant}} if it remains inactive.\n\n' ||
E'To prevent deletion, activate your workspace using the link below.' WHERE id = '0ea69165-ec14-4314-91f1-69566ac3c5a0';
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,13 @@ Content-Type: text/plain; charset=UTF-8
Hi Bobby,

Your workspace bobby-workspace has been marked as dormant (https://coder.co=
m/docs/templates/schedule#dormancy-threshold-enterprise) because of breache=
d the template's threshold for inactivity.
Dormant workspaces are automatically deleted (https://coder.com/docs/templa=
tes/schedule#dormancy-auto-deletion-enterprise) after 24 hours of inactivit=
y.
To prevent deletion, use your workspace with the link below.
m/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 inac=
tive.

To prevent deletion, activate your workspace using the link below.


View workspace: http://test.com/@bobby/bobby-workspace
Expand Down Expand Up @@ -54,12 +55,13 @@ argin: 8px 0 32px; line-height: 1.5;">
<p>Hi Bobby,</p>
<p>Your workspace <strong>bobby-workspace</strong> has been marked =
as <a href=3D"https://coder.com/docs/templates/schedule#dormancy-threshold-=
enterprise"><strong>dormant</strong></a> because of breached the template&r=
squo;s threshold for inactivity.<br>
Dormant workspaces are <a href=3D"https://coder.com/docs/templates/schedule=
#dormancy-auto-deletion-enterprise">automatically deleted</a> after 24 hour=
s of inactivity.<br>
To prevent deletion, use your workspace with the link below.</p>
enterprise"><strong>dormant</strong></a> due to inactivity exceeding the do=
rmancy threshold.</p>

<p>This workspace will be automatically deleted in 24 hours if it remains i=
nactive.</p>

<p>To prevent deletion, activate your workspace using the link below.</p>
</div>
<div style=3D"text-align: center; margin-top: 32px;">
=20
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@
},
"title": "Workspace \"bobby-workspace\" marked as dormant",
"title_markdown": "Workspace \"bobby-workspace\" marked as dormant",
"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.",
"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."
"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.\n\nThis workspace will be automatically deleted in 24 hours if it remains inactive.\n\nTo prevent deletion, activate your workspace using the link below.",
"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.\n\nThis workspace will be automatically deleted in 24 hours if it remains inactive.\n\nTo prevent deletion, activate your workspace using the link below."
}
Loading