Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: secure send embed preview email action & show env id in email body #2475

Merged
merged 4 commits into from
Apr 18, 2024

Conversation

ShubhamPalriwala
Copy link
Contributor

What does this PR do?

  • Removes input parameters from the client side actions to just a surveyId which is also validated in the server side action
  • Also adds the environment ID as the footer in the preview email

Fixes # (issue)

How should this be tested?

  • Test A
  • Test B

Checklist

Required

  • Filled out the "How to test" section in this PR
  • Read How we Code at Formbricks
  • Self-reviewed my own code
  • Commented on my code in hard-to-understand bits
  • Ran pnpm build
  • Checked for warnings, there are none
  • Removed all console.logs
  • Merged the latest changes from main onto my branch with git pull origin main
  • My changes don't cause any responsiveness issues
  • First PR at Formbricks? Please sign the CLA! Without it we wont be able to merge it 🙏

Appreciated

  • If a UI change was made: Added a screen recording or screenshots to this PR
  • Updated the Formbricks Docs if changes were necessary

Copy link

vercel bot commented Apr 18, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

2 Ignored Deployments
Name Status Preview Comments Updated (UTC)
formbricks-cloud ⬜️ Ignored (Inspect) Visit Preview Apr 18, 2024 11:15am
formbricks-com ⬜️ Ignored (Inspect) Visit Preview Apr 18, 2024 11:15am

Copy link
Contributor

github-actions bot commented Apr 18, 2024

Thank you for following the naming conventions for pull request titles! 🙏

};

export const sendEmailAction = async ({ html, subject, to }: TSendEmailActionArgs) => {
export const sendEmbedSurveyPreviewEmailAction = async ({ surveyId }: { surveyId: string }) => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we also pass the arguments directly without an object. This is how we do it in most actions and since an action is a function and not a component I think this makes sense :-)

@mattinannt mattinannt merged commit 505c1d0 into main Apr 18, 2024
10 of 12 checks passed
@mattinannt mattinannt deleted the shubham/secure-send-embed-email-action branch April 18, 2024 11:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants