feat: update confirmation messages to use Slack's link formatting for alerts, incidents, and scheduled maintenance

This commit is contained in:
Nawaz Dhandala
2025-12-11 13:31:01 +00:00
parent 524f0cc867
commit aa60206beb
3 changed files with 5 additions and 5 deletions

View File

@@ -919,7 +919,7 @@ export default class SlackAlertActions {
).toString();
const confirmationMessage: string =
`✅ Message saved as **private note** to [Alert #${alertNumber}](${alertLink}).`;
`✅ Message saved as *private note* to <${alertLink}|Alert #${alertNumber}>.`;
await SlackUtil.sendMessageToThread({
authToken: authToken,

View File

@@ -1451,8 +1451,8 @@ export default class SlackIncidentActions {
const confirmationMessage: string =
noteType === "private"
? `✅ Message saved as **private note** to [Incident #${incidentNumber}](${incidentLink}).`
: `✅ Message saved as **public note** to [Incident #${incidentNumber}](${incidentLink}). This note will be visible on the status page.`;
? `✅ Message saved as *private note* to <${incidentLink}|Incident #${incidentNumber}>.`
: `✅ Message saved as *public note* to <${incidentLink}|Incident #${incidentNumber}>. This note will be visible on the status page.`;
await SlackUtil.sendMessageToThread({
authToken: authToken,

View File

@@ -1276,8 +1276,8 @@ export default class SlackScheduledMaintenanceActions {
const confirmationMessage: string =
noteType === "private"
? `✅ Message saved as **private note** to [Scheduled Maintenance #${scheduledMaintenanceNumber}](${scheduledMaintenanceLink}).`
: `✅ Message saved as **public note** to [Scheduled Maintenance #${scheduledMaintenanceNumber}](${scheduledMaintenanceLink}). This note will be visible on the status page.`;
? `✅ Message saved as *private note* to <${scheduledMaintenanceLink}|Scheduled Maintenance #${scheduledMaintenanceNumber}>.`
: `✅ Message saved as *public note* to <${scheduledMaintenanceLink}|Scheduled Maintenance #${scheduledMaintenanceNumber}>. This note will be visible on the status page.`;
await SlackUtil.sendMessageToThread({
authToken: authToken,