Skip to content

Commit cfd714f

Browse files
committed
minor changes
1 parent b039e6a commit cfd714f

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

apps/backend/src/lib/ai/prompts.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -801,8 +801,8 @@ Requirements:
801801
2) Remove variables schema declarations and preview variable assignments.
802802
- Remove exports like variablesSchema regardless of symbol name. For example, you may see export const profileSchema = ... which should be removed too.
803803
- Remove EmailTemplate.PreviewVariables assignment.
804-
3) Make EmailTemplate standalone:
805-
- It must not rely on a variables prop from outside.
804+
3) Adjust EmailTemplate props:
805+
- It must not rely on a variables prop from outside. user and project are fine as props
806806
- Define "const variables = { ... }" inside EmailTemplate with sensible placeholder values based on the schema/types present in source.
807807
- It should be the only exported function in the file.
808808
4) Preserve subject/notification/category and existing JSX structure as much as possible.

apps/backend/src/lib/ai/schema.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ export const requestBodySchema = yupObject({
1515
"email-assistant-draft",
1616
"create-dashboard",
1717
"run-query",
18+
"rewrite-template-source"
1819
]).defined(),
1920
messages: yupArray(
2021
yupObject({

0 commit comments

Comments
 (0)