Skip to content

Commit

Permalink
chore(templates): spelling issues
Browse files Browse the repository at this point in the history
  • Loading branch information
awinogradov committed Jul 25, 2023
1 parent a28a804 commit af8a464
Showing 1 changed file with 25 additions and 26 deletions.
51 changes: 25 additions & 26 deletions src/utils/worker/mail/templates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,8 @@ const renderQuote = (quote: string) =>
.split('\n')
.map((part: string) => `> ${part}`)
.join('\n');
const renderNotice = () =>
'_NB: you got this email because your are owner/issuer/participant/watcher of this goal or project._';
const renderFooter = () => `
const notice = "_NB: you got this email because you're the owner/issuer/participant/watcher of this goal or project._";
const footer = `
____
© 2023 Taskany inc.
Expand Down Expand Up @@ -50,9 +49,9 @@ ${renderQuote(body)}
🗣 [Reply](${replyUrl}) to this comment.
${renderNotice()}
${notice}
${renderFooter()}`);
${footer}`);

return {
to,
Expand Down Expand Up @@ -85,9 +84,9 @@ export const goalStateUpdated = async ({
`/goals/${shortId}`,
)})** from ~~\`${stateTitleBefore}\`~~ to \`${stateTitleAfter}\`.
${renderNotice()}
${notice}
${renderFooter()}`);
${footer}`);

return {
to,
Expand Down Expand Up @@ -128,9 +127,9 @@ ${renderQuote(body)}
📍 [Jump to the comment](${replyUrl}).
${renderNotice()}
${notice}
${renderFooter()}`);
${footer}`);

return {
to,
Expand Down Expand Up @@ -200,9 +199,9 @@ Priority:
: ''
}
${renderNotice()}
${notice}
${renderFooter()}`);
${footer}`);

return {
to,
Expand All @@ -224,9 +223,9 @@ export const goalArchived = async ({ to, shortId, title, author = 'Somebody' }:
const html = md.render(`
🧑‍💻 **${author}** archived goal **[${shortId}: ${title}](${absUrl(`/goals/${shortId}`)})**.
${renderNotice()}
${notice}
${renderFooter()}`);
${footer}`);

return {
to,
Expand All @@ -245,13 +244,13 @@ interface GoalAssignedEmailProps {

// TODO: send notification to issuer if he is not author of changes
export const goalAssigned = async ({ to, shortId, title, author = 'Somebody' }: GoalAssignedEmailProps) => {
const subject = `ℹ️ You was assigned to #${shortId}`;
const subject = `ℹ️ You were assigned to #${shortId}`;
const html = md.render(`
🧑‍💻 **${author}** assigned goal **[${shortId}: ${title}](${absUrl(
`/goals/${shortId}`,
)})** on you. Congrats and good luck! 🎉
)})** to you. Congrats and good luck! 🎉
${renderFooter()}`);
${footer}`);

return {
to,
Expand All @@ -270,13 +269,13 @@ interface GoalUnassignedEmailProps {

// TODO: send notification to issuer if he is not author of changes
export const goalUnassigned = async ({ to, shortId, title, author = 'Somebody' }: GoalUnassignedEmailProps) => {
const subject = `ℹ️ You was unassigned from #${shortId}`;
const subject = `ℹ️ You were unassigned from #${shortId}`;
const html = md.render(`
🧑‍💻 **${author}** unassigned you from goal **[${shortId}: ${title}](${absUrl(
`/goals/${shortId}`,
)})**. So sad and c u on the next goal! 🤗
${renderFooter()}`);
${footer}`);

return {
to,
Expand Down Expand Up @@ -309,9 +308,9 @@ export const goalCreated = async ({
`/goals/${shortId}`,
)})** in **[#${projectKey}: ${projectTitle}](${absUrl(`/projects/${projectKey}`)})**.
${renderNotice()}
${notice}
${renderFooter()}`);
${footer}`);

return {
to,
Expand Down Expand Up @@ -344,9 +343,9 @@ export const childProjectCreated = async ({
`/projects/${childKey}`,
)})** in **[#${projectKey}: ${projectTitle}](${absUrl(`/projects/${projectKey}`)})**.
${renderNotice()}
${notice}
${renderFooter()}`);
${footer}`);

return {
to,
Expand Down Expand Up @@ -379,9 +378,9 @@ export const childProjectDeleted = async ({
`/projects/${childKey}`,
)})** from **[#${projectKey}: ${projectTitle}](${absUrl(`/projects/${projectKey}`)})**.
${renderNotice()}
${notice}
${renderFooter()}`);
${footer}`);

return {
to,
Expand Down Expand Up @@ -438,9 +437,9 @@ Description:
}
}
${renderNotice()}
${notice}
${renderFooter()}`);
${footer}`);

return {
to,
Expand Down

0 comments on commit af8a464

Please sign in to comment.