From 5704bce542bae66dc48855a0de3e5cb6a3602f17 Mon Sep 17 00:00:00 2001 From: Edouard Richard Date: Wed, 20 Mar 2024 12:15:10 +0100 Subject: [PATCH] feat(notifications): add hyperlinks to email notifications for direct navigation to cards and boards for better user experience --- server/api/helpers/notifications/create-one.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/server/api/helpers/notifications/create-one.js b/server/api/helpers/notifications/create-one.js index 5fc42d5..8603a08 100644 --- a/server/api/helpers/notifications/create-one.js +++ b/server/api/helpers/notifications/create-one.js @@ -39,7 +39,11 @@ async function sendEmailNotification({ notification, action }) { case Action.Types.COMMENT_CARD: email = { subject: `${actionUser.name} commented the card ${actionCard.name} on ${actionBoard.name}`, - html: `

${actionUser.name} commented the card ${actionCard.name} on ${actionBoard.name}

${action.data.text}

`, + html: + `

${actionUser.name} commented the card ` + + `${actionCard.name} ` + + `on ${actionBoard.name}

` + + `

${action.data.text}

`, }; break;