-
Notifications
You must be signed in to change notification settings - Fork 138
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
Add Support form #9717
Add Support form #9717
Conversation
bvaughn
commented
Sep 11, 2023
Dark | Light | |
---|---|---|
Editing | ||
Discarding | ||
Success | ||
Failure |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
console.log("[/api/feedback] posting:\n\n", request.body); | ||
|
||
// https://formcarry.com/form/nextjs-contact-form | ||
const apiResponse = await fetch(`https://formcarry.com/s/${FORM_CARRY_TOKEN}`, { |
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.
This token is in 1Password (for anyone who wants to test locally)
// FormCarry does not support nested values | ||
body: JSON.stringify({ | ||
date: new Date(), | ||
recordingId, | ||
sessionId, | ||
text, | ||
url: window.location.href, | ||
userAgent: navigator.userAgent, | ||
userEmail: currentUserInfo?.email, | ||
userId: currentUserInfo?.id, | ||
userName: currentUserInfo?.name, | ||
}), |
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.
Is this the right data for us to collet? 🤷🏼 Who knows.
{/* TODO [FE-1894] Add screenshot function (eventually) | ||
<SecondaryButton | ||
className={styles.ScreenshotButton} | ||
color="gray" | ||
onClick={takeScreenshot} | ||
> | ||
<Icon className={styles.ScreenshotButtonIcon} type="screenshot" /> | ||
</SecondaryButton> | ||
*/} |
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.
I decided to cut scope for this feature. I don't think it's worth doing now (if at all) and we can follow up on Linear.