Send Email to Owner on Form Submission#5261
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
3d4935f to
1378e75
Compare
pumfleet
left a comment
There was a problem hiding this comment.
Awesome, thanks for building this!
e9c306e to
cd88015
Compare
786d1f3 to
30a8fcf
Compare
hariombalhara
left a comment
There was a problem hiding this comment.
Self review done
| }}> | ||
| <p style={{ fontWeight: 400, lineHeight: "24px" }}> | ||
| <a href={`${WEBAPP_URL}/apps/routing-forms/form-edit/${form.id}`} style={{ color: "#3e3e3e" }}> | ||
| <>Manage this form</> |
There was a problem hiding this comment.
@PeerRich What language should this be in? Should this be the language configured by the person who created the form? or english would work?
|
|
||
| const fieldResponsesByName: Record<string, typeof response[keyof typeof response]["value"]> = {}; | ||
|
|
||
| for (const [fieldId, fieldResponse] of Object.entries(response)) { |
There was a problem hiding this comment.
Moved this logic to onFormSubmit
| } | ||
|
|
||
| const missingFields = fields | ||
| const serializableFormWithFields = { |
There was a problem hiding this comment.
This creates a type that has fields set unlike serializableForm which has fields optional.
| prisma, | ||
| user | ||
| user, | ||
| ssrInit |
There was a problem hiding this comment.
Provides the method that would allow app pages to do translations server side.
| export { OrganizerScheduledEmail } from "./OrganizerScheduledEmail"; | ||
| export { TeamInviteEmail } from "./TeamInviteEmail"; | ||
| export { BrokenIntegrationEmail } from "./BrokenIntegrationEmail"; | ||
| export * from "@calcom/app-store/ee/routing-forms/emails/components"; |
There was a problem hiding this comment.
Import all email components here so that renderEmail method supports routing-forms email components as welll
30a8fcf to
30e533f
Compare
Co-authored-by: alannnc <alannnc@gmail.com> Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
What does this PR do?
Closes #5111
Loom Video: https://www.loom.com/share/52c9fc27b5154cb1a02c154f320bec61
Environment: Production
Type of change
How should this be tested?
Checklist