feat(coderd/notifications): improve notification format consistency (#14967)

This Pull request addresses the more trivial items in
https://github.com/coder/coder/issues/14893.
These were simple formatting changes that I was able to fix despite
limited context.

Some more changes are required for which I will have to dig a bit deeper
into how the template contexts are populated. I'm happy to add those to
this PR or create a subsequent PR.
This commit is contained in:
Sas Swart
2024-10-10 00:31:12 +02:00
committed by GitHub
parent 26df33ac88
commit 9d02269191
24 changed files with 368 additions and 62 deletions

View File

@ -1,3 +1,5 @@
Hi Bobby
Hi Bobby,
The template **bobby-template** was deleted by **rob**.
The template **bobby-template** was deleted by **rob**.
The template's display name was **Bobby's Template**.

View File

@ -1,2 +1,5 @@
Hi Bobby,
User account **bobby** has been activated.
User account **bobby** has been activated.
The newly activated account belongs to **william tables** and was activated by **rob**.

View File

@ -1,3 +1,5 @@
Hi Bobby,
New user account **bobby** has been created.
New user account **bobby** has been created.
This new user account was created for **William Tables** by **rob**.

View File

@ -1,3 +1,5 @@
Hi Bobby,
User account **bobby** has been deleted.
User account **bobby** has been deleted.
The deleted account belonged to **william tables** and was deleted by **rob**.

View File

@ -1,2 +1,5 @@
Hi Bobby,
User account **bobby** has been suspended.
User account **bobby** has been suspended.
The newly suspended account belongs to **william tables** and was suspended by **rob**.

View File

@ -1,3 +1,5 @@
Hi Bobby
Hi Bobby,
Your workspace **bobby-workspace** has been updated automatically to the latest template version (1.0).
Reason for update: **template now includes catnip**
Reason for update: **template now includes catnip**.

View File

@ -1,3 +1,5 @@
Hi Bobby
Hi Bobby,
Automatic build of your workspace **bobby-workspace** failed.
The specified reason was "**autostart**".

View File

@ -1,4 +1,5 @@
Hi Bobby
Hi Bobby,
Your workspace **bobby-workspace** was deleted.
The specified reason was "**autodeleted due to dormancy (autobuild)**".

View File

@ -1,4 +1,4 @@
Hi Bobby
Hi Bobby,
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.
Dormant workspaces are [automatically deleted](https://coder.com/docs/templates/schedule#dormancy-auto-deletion-enterprise) after 24 hours of inactivity.

View File

@ -1,4 +1,5 @@
Hi Bobby,
A manual build of the workspace **bobby-workspace** using the template **bobby-template** failed (version: **bobby-template-version**).
The workspace build was initiated by **joe**.
The template's display name was **William's Template**. The workspace build was initiated by **joe**.

View File

@ -1,4 +1,4 @@
Hi Bobby
Hi Bobby,
Your workspace **bobby-workspace** has been marked for **deletion** after 24 hours of [dormancy](https://coder.com/docs/templates/schedule#dormancy-auto-deletion-enterprise) because of template updated to new dormancy policy.
To prevent deletion, use your workspace with the link below.

View File

@ -1,2 +1,3 @@
Hi Bobby,
Your account **bobby** has been activated.
Your account **bobby** has been activated by **rob**.

View File

@ -1,2 +1,3 @@
Hi Bobby,
Your account **bobby** has been suspended.
Your account **bobby** has been suspended by **rob**.