diff --git a/apps/webapp/app/components/samples/custom-event.ts b/apps/webapp/app/components/samples/custom-event.ts index d979202ac..65972f2d5 100644 --- a/apps/webapp/app/components/samples/custom-event.ts +++ b/apps/webapp/app/components/samples/custom-event.ts @@ -3,6 +3,7 @@ export function customEvent(apiKey: string) { import { z } from "zod"; new Trigger({ + //todo: ensure this id is only used for this workflow id: "user-created-notify-slack", name: "User Created - Notify Slack", // For security, we recommend moving this api key to your .env / secrets file. diff --git a/apps/webapp/app/components/samples/github-issues.ts b/apps/webapp/app/components/samples/github-issues.ts index 04a4bfa0e..f0e2ba109 100644 --- a/apps/webapp/app/components/samples/github-issues.ts +++ b/apps/webapp/app/components/samples/github-issues.ts @@ -4,8 +4,9 @@ import * as github from "@trigger.dev/github"; import * as slack from "@trigger.dev/slack"; new Trigger({ + //todo: ensure this id is only used for this workflow id: "github-issues-to-slack", - name: "Posts to Slack when GitHub Issue created or modified", + name: "Posts to Slack when a GitHub Issue created or modified", // For security, we recommend moving this api key to your .env / secrets file. // Our env variable is called TRIGGER_API_KEY apiKey: "${apiKey}", diff --git a/apps/webapp/app/components/samples/github-stars.ts b/apps/webapp/app/components/samples/github-stars.ts index df4f5ba82..81141d194 100644 --- a/apps/webapp/app/components/samples/github-stars.ts +++ b/apps/webapp/app/components/samples/github-stars.ts @@ -4,6 +4,7 @@ import * as github from "@trigger.dev/github"; import * as slack from "@trigger.dev/slack"; new Trigger({ + //todo: ensure this id is only used for this workflow id: "new-github-star-to-slack", name: "New GitHub Star: triggerdotdev/trigger.dev", // For security, we recommend moving this api key to your .env / secrets file. diff --git a/apps/webapp/app/components/samples/new-user-slack-message.ts b/apps/webapp/app/components/samples/new-user-slack-message.ts index 6e7bab27c..e15daedcf 100644 --- a/apps/webapp/app/components/samples/new-user-slack-message.ts +++ b/apps/webapp/app/components/samples/new-user-slack-message.ts @@ -4,6 +4,7 @@ import { postMessage } from "@trigger.dev/slack"; import { z } from "zod"; new Trigger({ + //todo: ensure this id is only used for this workflow id: "new-user", name: "New user slack message", // For security, we recommend moving this api key to your .env / secrets file. diff --git a/apps/webapp/app/components/samples/resend-email-drip-campaign.ts b/apps/webapp/app/components/samples/resend-email-drip-campaign.ts index cc85f93db..c59de5660 100644 --- a/apps/webapp/app/components/samples/resend-email-drip-campaign.ts +++ b/apps/webapp/app/components/samples/resend-email-drip-campaign.ts @@ -9,6 +9,7 @@ import { Text } from "@react-email/text"; import { z } from "zod"; new Trigger({ + //todo: ensure this id is only used for this workflow id: "welcome-email-campaign", name: "Welcome email drip campaign", // For security, we recommend moving this api key to your .env / secrets file. diff --git a/apps/webapp/app/components/samples/scheduled-cron.ts b/apps/webapp/app/components/samples/scheduled-cron.ts index 7aa2c4e3f..7ce6148af 100644 --- a/apps/webapp/app/components/samples/scheduled-cron.ts +++ b/apps/webapp/app/components/samples/scheduled-cron.ts @@ -2,6 +2,7 @@ export function scheduledCron(apiKey: string) { return `import { Trigger, scheduleEvent } from "@trigger.dev/sdk"; new Trigger({ + //todo: ensure this id is only used for this workflow id: "cron-scheduled-workflow", name: "Cron Scheduled Workflow", // For security, we recommend moving this api key to your .env / secrets file. diff --git a/apps/webapp/app/components/samples/scheduled.ts b/apps/webapp/app/components/samples/scheduled.ts index 7ac9fe8d4..058476094 100644 --- a/apps/webapp/app/components/samples/scheduled.ts +++ b/apps/webapp/app/components/samples/scheduled.ts @@ -2,6 +2,7 @@ export function scheduled(apiKey: string) { return `import { Trigger, scheduleEvent } from "@trigger.dev/sdk"; new Trigger({ + //todo: ensure this id is only used for this workflow id: "scheduled-workflow", name: "Scheduled Workflow", // For security, we recommend moving this api key to your .env / secrets file. diff --git a/apps/webapp/app/components/samples/shopify-create-new-product.ts b/apps/webapp/app/components/samples/shopify-create-new-product.ts index fe9ce5470..6c81fb4a3 100644 --- a/apps/webapp/app/components/samples/shopify-create-new-product.ts +++ b/apps/webapp/app/components/samples/shopify-create-new-product.ts @@ -4,6 +4,7 @@ import { z } from "zod"; import * as shopify from "@trigger.dev/shopify"; new Trigger({ + //todo: ensure this id is only used for this workflow id: "shopify-products", name: "Shopify products", // For security, we recommend moving this api key to your .env / secrets file. diff --git a/apps/webapp/app/components/samples/webhook.ts b/apps/webapp/app/components/samples/webhook.ts index 8f29657bb..d902dd49f 100644 --- a/apps/webapp/app/components/samples/webhook.ts +++ b/apps/webapp/app/components/samples/webhook.ts @@ -3,6 +3,7 @@ export function webhook(apiKey: string) { import { z } from "zod"; new Trigger({ + //todo: ensure this id is only used for this workflow id: "caldotcom-to-slack", name: "Cal.com To Slack", // For security, we recommend moving this api key to your .env / secrets file. diff --git a/apps/webapp/app/components/samples/whatsapp-listen-for-message-and-reply.ts b/apps/webapp/app/components/samples/whatsapp-listen-for-message-and-reply.ts index 8884af9f3..9fea54ab3 100644 --- a/apps/webapp/app/components/samples/whatsapp-listen-for-message-and-reply.ts +++ b/apps/webapp/app/components/samples/whatsapp-listen-for-message-and-reply.ts @@ -3,6 +3,7 @@ export function whatsappListenForMessageAndReply(apiKey: string) { import { events, sendReaction, sendText } from "@trigger.dev/whatsapp"; new Trigger({ + //todo: ensure this id is only used for this workflow id: "whatsapp-webhook", name: "Listen for WhatsApp messages and reply", // For security, we recommend moving this api key to your .env / secrets file.