You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: apps/sim/app/api/emails/preview/route.ts
+52Lines changed: 52 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -15,6 +15,7 @@ import {
15
15
renderPlanWelcomeEmail,
16
16
renderUsageThresholdEmail,
17
17
renderWelcomeEmail,
18
+
renderWorkflowNotificationEmail,
18
19
renderWorkspaceInvitationEmail,
19
20
}from'@/components/emails'
20
21
@@ -108,6 +109,51 @@ const emailTemplates = {
108
109
message:
109
110
'I have 10 years of experience building scalable distributed systems. Most recently, I led a team at a Series B startup where we scaled from 100K to 10M users.',
text: `This is a test notification from Sim Studio.\n\nWorkflow: ${data.workflowName}\nStatus: ${data.status}\nDuration: ${data.totalDurationMs}ms\n\nThis notification is configured for workspace notifications.`,
<p style="color: #666; font-size: 12px;">This notification is configured for workspace notifications.</p>
175
-
</div>
176
-
`,
178
+
html,
179
+
text: `This is a test notification from Sim.\n\nWorkflow: ${data.workflowName}\nStatus: ${data.status}\nDuration: ${data.totalDurationMs}ms\n\nView Log: ${logUrl}\n\nThis notification is configured for workspace notifications.`,
177
180
emailType: 'notifications',
178
181
})
179
182
@@ -227,7 +230,7 @@ async function testSlack(
227
230
elements: [
228
231
{
229
232
type: 'mrkdwn',
230
-
text: 'This is a test notification from Sim Studio workspace notifications.',
233
+
text: 'This is a test notification from Sim workspace notifications.',
Copy file name to clipboardExpand all lines: apps/sim/app/workspace/[workspaceId]/logs/components/logs-toolbar/components/notifications/notifications.tsx
-9Lines changed: 0 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -136,7 +136,6 @@ export function NotificationSettings({
0 commit comments