-
Notifications
You must be signed in to change notification settings - Fork 7.3k
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
feat: integrate formbricks in help feedback box #12276
feat: integrate formbricks in help feedback box #12276
Conversation
@ShubhamPalriwala is attempting to deploy a commit to the cal Team on Vercel. A member of the Team first needs to authorize it. |
Thank you for following the naming conventions! 🙏 Feel free to join our discord and post your PR link. |
📦 Next.js Bundle Analysis for @calcom/webThis analysis was generated by the Next.js Bundle Analysis action. 🤖 This PR introduced no changes to the JavaScript bundle! 🙌 |
New dependencies detected. Learn more about Socket for GitHub ↗︎
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks very good and minimal, will try today!
lets also add userid and email |
added .env to both prod and staging, added formbricks survey with the question ID |
.env.example
Outdated
@@ -119,6 +119,12 @@ NEXT_PUBLIC_SENDGRID_SENDER_NAME= | |||
# Used for capturing exceptions and logging messages | |||
NEXT_PUBLIC_SENTRY_DSN= | |||
|
|||
# Formbricks Experience Management Integration | |||
# [apiHost]+[environmentId] | |||
FORMBRICKS= |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
does this have to be FORMBRICKS or NEXT_PUBLIC_FORMBRICKS ?
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Ignored Deployment
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested, works!
NIT: We could also add userId and/or email as a hidden field (auto-populates internally).
Thank you for your contribution 🚀
Hey, thanks for the quick reviews and testing! Glad it works for everyone 🚀 |
draft until API is ready for userID and email |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
env and keys added to vercel prod
778a1cd
.env.example
Outdated
@@ -120,6 +120,12 @@ NEXT_PUBLIC_SENDGRID_SENDER_NAME= | |||
# Used for capturing exceptions and logging messages | |||
NEXT_PUBLIC_SENTRY_DSN= | |||
|
|||
# Formbricks Experience Management Integration | |||
# [apiHost]+[environmentId] | |||
FORMBRICKS= |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not quite since is used on the server only. But I would go with something more descriptive.
FORMBRICKS= | |
FORMBRICKS_URL= |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for your contribution 🙏
Quick note. Let's prioritize legibility over clever code in this case. Left some suggestions to address.
packages/trpc/server/routers/loggedInViewer/submitFeedback.handler.ts
Outdated
Show resolved
Hide resolved
Head branch was pushed to by a user without write access
.env.example
Outdated
@@ -120,6 +120,11 @@ NEXT_PUBLIC_SENDGRID_SENDER_NAME= | |||
# Used for capturing exceptions and logging messages | |||
NEXT_PUBLIC_SENTRY_DSN= | |||
|
|||
# Formbricks Experience Management Integration | |||
FORMBRICKS_HOST_URL= |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FORMBRICKS_HOST_URL= | |
FORMBRICKS_HOST_URL="https://app.formbricks.com" |
update, discussed with @mattinannt and restructuring things a bit |
… username to formbricks person object
Hey team, pushed the latest commit. Now,
|
@PeerRich During our testing, we discovered a potential security issue with the Formbricks API updates we pushed to enable this PR. We will update you as soon as this is fixed. You can review this before then, but please don't merge yet. |
@PeerRich We fixed the issues, re-tested the PR and it's now ready for review 😊 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Type checks are failing
What does this PR do?
The Help Feedback Box currently sends the data to our email service. This PR sends it to a pre-created Formbricks Survey for easier visibility and availability in the Formbricks App.
We use the
@formbricks/api
package for minimal dependencies and create a response in the app.Requirement/Documentation
We introduce 2 new environment variables that needs to be set:
FORMBRICKS
in the form of[apiHost]+[environmentId]
FORMBRICKS_FEEDBACK_SURVEY_ID
in the form ofsurveyId
For testing, use:
Before merging to main,
formbricks-share-comments-question
and 1 Rating question with Range of 4 and ID asformbricks-rating-question
)Type of change
How should this be tested?
Mandatory Tasks