Merge branch 'formbricks:main' into main

This commit is contained in:
Naitik Kapadia
2023-10-03 15:49:47 +05:30
committed by GitHub
3 changed files with 21 additions and 14 deletions

View File

@@ -31,9 +31,10 @@ Fixes # (issue)
<!-- We're starting to get more and more contributions. Please help us making this efficient for all of us and go through this checklist. Please tick off what you did -->
- [ ] Added a screen recording or screenshots to this PR
### Required
- [ ] Filled out the "How to test" section in this PR
- [ ] Read the [contributing guide](https://github.com/formbricks/formbricks/blob/main/CONTRIBUTING.md)
- [ ] Read [How we Code at Formbricks](<[https://github.com/formbricks/formbricks/blob/main/CONTRIBUTING.md](https://formbricks.com/docs/contributing/how-we-code)>)
- [ ] Self-reviewed my own code
- [ ] Commented on my code in hard-to-understand bits
- [ ] Ran `pnpm build`
@@ -41,4 +42,8 @@ Fixes # (issue)
- [ ] 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
### Appreciated
- [ ] If a UI change was made: Added a screen recording or screenshots to this PR
- [ ] Updated the Formbricks Docs if changes were necessary

View File

@@ -16,33 +16,34 @@ import { useEffect } from "react";
const HowTo = [
{
step: "1",
header: "Pick an issue from the list below (or start with a side quest)",
header: "Pick a 'FormTribe 🔥' issue in our repository and comment.",
link: "https://formbricks.com/github",
},
{
step: "2",
header: "Comment on the issue to signal that you started working on it.",
header: "Be the first to comment and get the issue assigned.",
},
{
step: "3",
header: "Join our Discord to ask questions and submit side quests.",
link: "https://formbricks.com/discord",
header: "You now have 24h to open a draft PR ⏲️",
},
{
step: "4",
header: "Code and open a PR with your contribution. ",
header: "If your PR looks promising, we'll work with you to get it merged.",
},
{
step: "5",
header: "Get your PR merged and collect points.",
header: "For every merged PR you collect points",
},
{
step: "6",
header: "Tweet about your contribution and tag @formbricks",
header: "Solve side quests to increase your chances on the MacBook 👀",
link: "#prizes",
},
{
step: "7",
header: "Solve side quests to increase your chances on the MacBook 👀",
link: "#prizes",
header: "Join our Discord to ask questions (and submit side quests).",
link: "https://formbricks.com/discord",
},
];
@@ -560,6 +561,7 @@ export default function FormTribeHackathon() {
<li>🎉 1 x MacBook Air M2</li>
<li>🎉 3 x Limited FormTribe Premium Hoodie</li>
<li>🎉 10 x Limited FormTribe Premium Shirt</li>
<li>🎉 10 x 250h for Gitpod</li>
<li>🎉 50 x Sets of Formbricks Stickers</li>
</ul>
</div>
@@ -628,7 +630,7 @@ export default function FormTribeHackathon() {
href="https://github.com/formbricks/formbricks/issues"
target="_blank"
className="mx-auto mt-12 bg-gradient-to-br from-[#032E1E] via-[#032E1E] to-[#013C27] px-20 text-white ">
View Issues on GitHub
View FormTribe Issues on GitHub
</Button>
</div>
@@ -669,7 +671,7 @@ export default function FormTribeHackathon() {
href="https://formbricks.notion.site/FormTribe-Side-Quests-4ab3b294cfa04e94b77dfddd66378ea2?pvs=4"
target="_blank"
className="mt-6 bg-gradient-to-br from-[#032E1E] via-[#032E1E] to-[#013C27] text-white ">
Copy Notion Template
Keep track with Notion Template
</Button>
</div>

View File

@@ -96,7 +96,7 @@ export default function LinkSurvey({
formbricksSignature={product.formbricksSignature}
onDisplay={async () => {
if (!isPreview) {
const { id } = await createDisplay({ surveyId: survey.id }, window?.location?.origin);
const { id } = await createDisplay({ surveyId: survey.id }, webAppUrl);
const newSurveyState = surveyState.copy();
newSurveyState.updateDisplayId(id);
setSurveyState(newSurveyState);