diff --git a/packages/server/src/utils/notifications/build-error.ts b/packages/server/src/utils/notifications/build-error.ts index a8a7bf25..3c4fd73d 100644 --- a/packages/server/src/utils/notifications/build-error.ts +++ b/packages/server/src/utils/notifications/build-error.ts @@ -64,17 +64,32 @@ export const sendBuildErrorNotifications = async ({ fields: [ { name: "`🛠️`・Project", - value: `\`\`\`${projectName}\`\`\``, + value: projectName, inline: true, }, { name: "`⚙️`・Application", - value: `\`\`\`${applicationName}\`\`\``, + value: applicationName, inline: true, }, { name: "`❔`・Type", - value: `\`\`\`${applicationType}\`\`\``, + value: applicationType, + inline: true, + }, + { + name: "`📅`・Date", + value: date.toLocaleDateString(), + inline: true, + }, + { + name: "`⌚`・Time", + value: date.toLocaleTimeString(), + inline: true, + }, + { + name: "`❓`・Type", + value: "Failed", inline: true, }, { @@ -83,7 +98,7 @@ export const sendBuildErrorNotifications = async ({ }, { name: "`🧷`・Build Link", - value: buildLink, + value: `[Click here to access build link](${buildLink})`, }, ], timestamp: date.toISOString(), diff --git a/packages/server/src/utils/notifications/build-success.ts b/packages/server/src/utils/notifications/build-success.ts index 4475bd44..0e09e87d 100644 --- a/packages/server/src/utils/notifications/build-success.ts +++ b/packages/server/src/utils/notifications/build-success.ts @@ -62,22 +62,37 @@ export const sendBuildSuccessNotifications = async ({ fields: [ { name: "`🛠️`・Project", - value: `\`\`\`${projectName}\`\`\``, + value: projectName, inline: true, }, { name: "`⚙️`・Application", - value: `\`\`\`${applicationName}\`\`\``, + value: applicationName, inline: true, }, { - name: "`❔`・Type", - value: `\`\`\`${applicationType}\`\`\``, + name: "`❔`・Application Type", + value: applicationType, + inline: true, + }, + { + name: "`📅`・Date", + value: date.toLocaleDateString(), + inline: true, + }, + { + name: "`⌚`・Time", + value: date.toLocaleTimeString(), + inline: true, + }, + { + name: "`❓`・Type", + value: "Successful", inline: true, }, { name: "`🧷`・Build Link", - value: buildLink, + value: `[Click here to access build link](${buildLink})`, }, ], timestamp: date.toISOString(), diff --git a/packages/server/src/utils/notifications/database-backup.ts b/packages/server/src/utils/notifications/database-backup.ts index 63a842ab..115d8b20 100644 --- a/packages/server/src/utils/notifications/database-backup.ts +++ b/packages/server/src/utils/notifications/database-backup.ts @@ -70,28 +70,33 @@ export const sendDatabaseBackupNotifications = async ({ fields: [ { name: "`🛠️`・Project", - value: `\`\`\`${projectName}\`\`\``, - inline: false, + value: projectName, + inline: true, }, { name: "`⚙️`・Application", - value: `\`\`\`${applicationName}\`\`\``, + value: applicationName, inline: true, }, { - name: "`❔`・Type", - value: `\`\`\`${databaseType}\`\`\``, + name: "`❔`・Database", + value: databaseType, inline: true, }, { - name: "`📅`・Time", - value: `\`\`\`${date.toLocaleString()}\`\`\``, - inline: false, + name: "`📅`・Date", + value: date.toLocaleDateString(), + inline: true, }, { - name: "`❔`・Type", - value: `\`\`\`${type}\`\`\``, - inline: false, + name: "`⌚`・Time", + value: date.toLocaleTimeString(), + inline: true, + }, + { + name: "`❓`・Type", + value: type.replace("error", "Failed").replace("success", "Successful"), + inline: true, }, ...(type === "error" && errorMessage ? [ diff --git a/packages/server/src/utils/notifications/docker-cleanup.ts b/packages/server/src/utils/notifications/docker-cleanup.ts index 68c3f119..31c1c6c9 100644 --- a/packages/server/src/utils/notifications/docker-cleanup.ts +++ b/packages/server/src/utils/notifications/docker-cleanup.ts @@ -48,6 +48,22 @@ export const sendDockerCleanupNotifications = async ( title: "> `✅` - Docker Cleanup", color: 0x57f287, fields: [ + + { + name: "`📅`・Date", + value: date.toLocaleDateString(), + inline: true, + }, + { + name: "`⌚`・Time", + value: date.toLocaleTimeString(), + inline: true, + }, + { + name: "`❓`・Type", + value: "Successful", + inline: true, + }, { name: "`📜`・Message", value: `\`\`\`${message}\`\`\``, diff --git a/packages/server/src/utils/notifications/dokploy-restart.ts b/packages/server/src/utils/notifications/dokploy-restart.ts index 451044f4..c552e269 100644 --- a/packages/server/src/utils/notifications/dokploy-restart.ts +++ b/packages/server/src/utils/notifications/dokploy-restart.ts @@ -38,8 +38,18 @@ export const sendDokployRestartNotifications = async () => { color: 0x57f287, fields: [ { - name: "`📅`・Time", - value: `\`\`\`${date.toLocaleString()}\`\`\``, + name: "`📅`・Date", + value: date.toLocaleDateString(), + inline: true, + }, + { + name: "`⌚`・Time", + value: date.toLocaleTimeString(), + inline: true, + }, + { + name: "`❓`・Type", + value: "Successful", inline: true, }, ],