Compare commits

..

110 Commits

Author SHA1 Message Date
ShubhamPalriwala
dc72b712d6 fix: upgrade node to 20 2024-01-15 19:12:33 +05:30
ShubhamPalriwala
0bdae282e5 init: buildjet in actions to compare 2024-01-15 19:07:56 +05:30
ShubhamPalriwala
28bc87b8e5 init: buildjet 2024-01-15 19:02:42 +05:30
Dhruwang Jariwala
0ff7bb56ec fix: download response (#1890) 2024-01-11 19:41:22 +00:00
Dhruwang Jariwala
f3666b8745 fix: added missing functionality for image upload in file upload and cal question (#1886) 2024-01-11 17:37:14 +00:00
Dhruwang Jariwala
ff864e3c82 feat: hide progress bar toggle (#1883) 2024-01-11 09:47:36 +00:00
Dhruwang Jariwala
cc56584db6 fix: animated background issue (#1884)
Co-authored-by: Matthias Nannt <mail@matthiasnannt.com>
2024-01-11 08:44:15 +00:00
Matti Nannt
440c12699c chore: add tax settings to stripe checkout (#1880) 2024-01-10 16:52:48 +00:00
Anshuman Pandey
8002d3e71f fix: global error handler for js package (#1863)
Co-authored-by: Matthias Nannt <mail@matthiasnannt.com>
2024-01-10 16:33:18 +00:00
Matti Nannt
0534421538 chore: move wordpress in the docs navigation (#1879) 2024-01-10 16:27:58 +00:00
Matti Nannt
fa33460a16 chore: update npm dependencies (#1870) 2024-01-10 11:41:09 +00:00
Anshuman Pandey
f12dec7b8b fix: date picker overflow UI (#1872)
Co-authored-by: Matti Nannt <mail@matthiasnannt.com>
2024-01-10 10:53:07 +00:00
Shubham Palriwala
f2ad7c4fbf docs: overwriting css styles (#1874)
Co-authored-by: Matthias Nannt <mail@matthiasnannt.com>
2024-01-10 10:52:44 +00:00
Matti Nannt
e6ce5373a2 chore: migrate to new Vercel speed insights package (#1876) 2024-01-10 10:43:03 +00:00
Johannes
90f0614aac docs: wordpress setup guide (#1873) 2024-01-10 10:35:42 +00:00
Matti Nannt
a0d7921c01 fix: get response count in analysis layout more efficiently (#1875) 2024-01-10 09:45:49 +00:00
Dhruwang Jariwala
a1fa3d6dbb chore: server side pagination for responses (#1869)
Co-authored-by: Matthias Nannt <mail@matthiasnannt.com>
2024-01-10 08:42:40 +00:00
Dhruwang Jariwala
1d7d07b3c6 fix: avoid scaling on mobile preview (#1868) 2024-01-09 14:59:43 +00:00
Dhruwang Jariwala
c376b12461 fix: unrespoonsive welcome card editor (#1867) 2024-01-09 14:16:57 +00:00
Dima Ivashchuk
c5d9f63267 docs: Add Lost Pixel to open source friends (#1860) 2024-01-09 13:59:45 +00:00
Shubham Palriwala
9ec5d668df fix: replace hardcoded js versions with dynamic fetching (#1856) 2024-01-09 10:13:28 +00:00
Johannes
659ef3f92c fix: linked to http instead of https (#1865) 2024-01-08 21:04:58 +00:00
Johannes
3e2452b10f fix: seo issues to improve site health (#1864) 2024-01-08 20:30:15 +00:00
Dhruwang Jariwala
1f79416367 fix: github linting warnings (#1852)
Co-authored-by: Matti Nannt <mail@matthiasnannt.com>
2024-01-08 12:36:20 +00:00
Anshuman Pandey
d3e0e67bd9 feat: api key auth for private files (#1861)
Co-authored-by: Matti Nannt <mail@matthiasnannt.com>
2024-01-08 12:33:58 +00:00
Anshuman Pandey
abe98be561 feat: adds e2e test for invite functionality (#1846) 2024-01-08 12:04:25 +00:00
Dhruwang Jariwala
f23b4f63fa chore: lint warnings in web (#1854) 2024-01-08 12:00:00 +00:00
Marc Klingen
5679c38029 docs: add Langfuse to OSS friends (#1859) 2024-01-06 22:30:09 +00:00
Johannes
a815270784 fix: make env id more easily discoverable (#1858) 2024-01-05 20:53:23 +00:00
Olasunkanmi Balogun
2d97e9c797 docs: Add best hotjar alt 2024 (#1843)
Co-authored-by: Johannes <johannes@formbricks.com>
Co-authored-by: Johannes <72809645+jobenjada@users.noreply.github.com>
2024-01-05 20:26:40 +00:00
Dhruwang Jariwala
5c90862137 fix: unblock completed response (#1857) 2024-01-05 18:09:23 +00:00
Nya Candy
206926a0a9 fix: docker compose upload volume mapping (#1822)
Co-authored-by: Shubham Palriwala <spalriwalau@gmail.com>
2024-01-05 08:38:59 +00:00
Johannes
4e0fe7e6fb fix: update logic jump error message for clarity (#1855) 2024-01-04 23:10:31 +00:00
Greg Bergé
9230ce558f docs: add Argos to OSS friends (#1847)
Co-authored-by: Johannes <72809645+jobenjada@users.noreply.github.com>
2024-01-04 17:04:12 +00:00
Matti Nannt
78d8a0604f chore: update npm dependencies, update version numbers (#1853) 2024-01-04 14:08:10 +00:00
Anjy Gupta
e05cfaba5f feat: added survey response sharing feature (#1469)
Co-authored-by: Matthias Nannt <mail@matthiasnannt.com>
Co-authored-by: Johannes <72809645+jobenjada@users.noreply.github.com>
Co-authored-by: Johannes <johannes@formbricks.com>
Co-authored-by: pandeymangg <anshuman.pandey9999@gmail.com>
2024-01-03 15:33:52 +00:00
Dhruwang Jariwala
0d74921233 fix: reload Verify email page (#1851)
Co-authored-by: Matthias Nannt <mail@matthiasnannt.com>
2024-01-03 14:23:57 +00:00
Dhruwang Jariwala
60c7713aa0 feat: automatic next button label updation (#1848)
Co-authored-by: Matthias Nannt <mail@matthiasnannt.com>
2024-01-03 14:11:06 +00:00
Zayd Krunz
c62f041819 style: Basic refactoring, a little tooltip fix, and some small language changes (#1850)
Co-authored-by: Matthias Nannt <mail@matthiasnannt.com>
2024-01-03 10:30:14 +00:00
Zayd Krunz
7782196822 fix: Update webhook test endpoint to conform to standard webhooks (#1849) 2024-01-03 10:24:29 +00:00
Zayd Krunz
f964319ddb style: Fix typo in docs (#1842) 2024-01-02 11:57:56 +00:00
Anshuman Pandey
e0c17407e3 fix: ignore NEXT_NOT_FOUND error on sentry (#1837) 2024-01-02 11:42:47 +00:00
Dhruwang Jariwala
7f25bbc008 feat: adds confirm password field to password reset (#1845) 2024-01-02 11:40:55 +00:00
Johannes
ae530d710b fix: tweak above the fold wording (#1839) 2023-12-29 00:46:10 +00:00
Dhruwang Jariwala
08bdc7208e fix: updated cleanHtml script (#1836) 2023-12-29 00:26:27 +00:00
Dhruwang Jariwala
224ba2ea22 fix: delayed survey saving (#1838) 2023-12-29 00:10:19 +00:00
Johannes
8a4ceae38c fix: object fit for logo on welcome card (#1835)
Co-authored-by: pandeymangg <anshuman.pandey9999@gmail.com>
2023-12-28 06:43:28 +00:00
Dhruwang Jariwala
d91e1cc7ea fix: background image issue (#1829)
Co-authored-by: Johannes <72809645+jobenjada@users.noreply.github.com>
2023-12-28 01:27:24 +00:00
Johannes
8896cbcd87 fix: tweak rating UI after fix (#1834) 2023-12-27 18:57:17 +00:00
Dhruwang Jariwala
5e1822c9e6 fix: rating question alignment (#1833) 2023-12-27 18:06:37 +00:00
Elie Steinbock
1b69560e50 docs: Add Inbox Zero as an OSS friend (#1615)
Co-authored-by: Johannes <72809645+jobenjada@users.noreply.github.com>
2023-12-27 02:41:14 +00:00
Dhruwang Jariwala
b28a4e72d8 fix: logic jump issues (#1830) 2023-12-27 02:29:29 +00:00
Sushant
8694c371af fix: make template page keyboard accessible (#1828) 2023-12-26 01:57:42 +00:00
Dhruwang Jariwala
359da760f7 fix: scaling issues (#1825)
Co-authored-by: review-agent-prime[bot] <147289438+review-agent-prime[bot]@users.noreply.github.com>
2023-12-24 12:43:49 +00:00
Matti Nannt
044080fee9 chore: increase batch size of weekly summary team calls (#1827) 2023-12-23 18:49:14 +00:00
Olasunkanmi Balogun
8a7d498a26 chore: add feeback app contest article (#1818)
Co-authored-by: Johannes <johannes@formbricks.com>
Co-authored-by: Johannes <72809645+jobenjada@users.noreply.github.com>
2023-12-22 22:20:27 +00:00
Johannes
82f916d86b fix: PIN survey caused faulty layout due to background (#1826) 2023-12-22 21:39:16 +00:00
Shubham Palriwala
6ac48a26bb fix: revalidate invite cache even if email delivery fails (#1823) 2023-12-22 12:30:40 +00:00
Shubham Palriwala
ab22c0297e feat: role management is only allowed on paid inAppSurveys plan (#1824) 2023-12-22 12:30:03 +00:00
Dhruwang Jariwala
1ce02edc1b fix: other option (#1821) 2023-12-22 11:59:34 +00:00
Matti Nannt
d36de1e54f fix: remove comments in env files (#1817) 2023-12-21 15:39:30 +00:00
Matti Nannt
15c91b798d chore: add user properties to posthog integration (#1814) 2023-12-21 13:58:55 +00:00
Dhruwang Jariwala
12d995465a fix: external link issue (#1812) 2023-12-21 13:43:14 +00:00
Dhruwang Jariwala
f9861cf772 chore: adds metadata and hidden fields to csv, excel exports (#1806) 2023-12-21 13:42:35 +00:00
Matti Nannt
8857c971d6 fix: changeset release pipeline (#1811) 2023-12-21 11:35:35 +00:00
Anshuman Pandey
7ea79df145 hotfix: fixes mobile preview UI (#1809) 2023-12-21 11:25:56 +00:00
Matti Nannt
ac12ddaafb chore: prepare 1.4.0 release (#1810) 2023-12-21 11:13:31 +00:00
Shubham Palriwala
9dc47c6a27 feat: docs for local dev setup for advanced users (#1796)
Co-authored-by: Matthias Nannt <mail@matthiasnannt.com>
2023-12-21 10:21:07 +00:00
Matti Nannt
e0e4a637e2 chore: update npm dependency packages (#1808) 2023-12-21 10:20:23 +00:00
Shubham Palriwala
b9259116e1 feat: images for the how it works page (#1751)
Co-authored-by: pandeymangg <anshuman.pandey9999@gmail.com>
2023-12-21 09:06:05 +00:00
Shubham Palriwala
83ffd7a371 fix: codespaces setup (#1797) 2023-12-21 08:45:05 +00:00
Anshuman Pandey
b3d772c463 feat: tests for all response services (#1805)
Co-authored-by: Rotimi Best <rotimiibitoyeemma@gmail.com>
Co-authored-by: Matthias Nannt <mail@matthiasnannt.com>
2023-12-21 08:37:10 +00:00
Anshuman Pandey
12d600093e fix: replaces all @ts-ignore with @ts-expect-error (#1807) 2023-12-21 08:10:02 +00:00
Shubham Palriwala
51cec0184f fix: posthog ping to send overview (#1804)
Co-authored-by: Matthias Nannt <mail@matthiasnannt.com>
2023-12-20 12:59:48 +00:00
Dhruwang Jariwala
4c85fcb3cd fix: delete question preview issue (#1802) 2023-12-20 12:53:03 +00:00
Dhruwang Jariwala
782b3e0974 fix: enable save button for survey with empty triggers (#1803) 2023-12-20 12:51:48 +00:00
Shubham Palriwala
fee2517009 chore: remove unutilised code (#1798) 2023-12-20 10:06:18 +00:00
Johannes
2e16e046f1 fix: Verify Email Styling (#1801) 2023-12-19 23:06:22 +00:00
Naitik Kapadia
b275cce7ad feat: New Question Type Meet Scheduling with Cal.com (#1722)
Co-authored-by: pandeymangg <anshuman.pandey9999@gmail.com>
Co-authored-by: Matthias Nannt <mail@matthiasnannt.com>
2023-12-19 08:08:04 +00:00
Shubham Palriwala
45f02fd3c2 feat: setup formbricks/js e2e tests (#1794) 2023-12-19 08:07:52 +00:00
Anshuman Pandey
368df47035 fix: fixes date picker overflowing ui (#1795)
Co-authored-by: Matthias Nannt <mail@matthiasnannt.com>
2023-12-19 07:34:04 +00:00
Rotimi Best
2ce759c023 feat: Tests for Response service (#1527)
Co-authored-by: pandeymangg <anshuman.pandey9999@gmail.com>
Co-authored-by: Matthias Nannt <mail@matthiasnannt.com>
2023-12-18 11:32:50 +00:00
Shubham Palriwala
ddc06b19bf feat: throw explicit error if smtp is not configured (#1784)
Co-authored-by: Matthias Nannt <mail@matthiasnannt.com>
2023-12-18 11:12:53 +00:00
Johannes
17410ba14c feat: Add "Email us" CTA to menu (#1788)
Co-authored-by: Matthias Nannt <mail@matthiasnannt.com>
2023-12-18 10:43:04 +00:00
Dhruwang Jariwala
9b34833bdd fix: preview (#1790) 2023-12-18 10:01:34 +00:00
Dhruwang Jariwala
89c614fafb fix: tweaks on summary page (#1791) 2023-12-18 10:00:16 +00:00
Shubham Palriwala
6f552886d0 fix: echo placement in prod script (#1792) 2023-12-18 09:53:10 +00:00
Matti Nannt
6a7b66aaaa fix: add response limitations to sync endpoint (#1785) 2023-12-15 14:08:25 +00:00
Shubham Palriwala
f28bb9b82a fix: checks for free limit reached (#1786) 2023-12-15 13:10:46 +00:00
Shubham Palriwala
8dd67ec484 feat: survey creation & response submission e2e test (#1778)
Co-authored-by: Matthias Nannt <mail@matthiasnannt.com>
2023-12-15 13:09:57 +00:00
Deepanshi Sharma
aa43d0a94c fix: improved UI for mobile preview (#1781)
Co-authored-by: pandeymangg <anshuman.pandey9999@gmail.com>
2023-12-15 12:06:10 +00:00
Johannes
d648762f4f fix: Update README.md (#1783) 2023-12-14 19:01:14 +00:00
Shubham Palriwala
f8c0021346 feat: (e2e) onboarding tests and quick login method (#1771) 2023-12-14 14:06:02 +00:00
Pratik
8fd78bc08f feat: Notion Integration (#1197)
Co-authored-by: Johannes <johannes@formbricks.com>
Co-authored-by: Johannes <72809645+jobenjada@users.noreply.github.com>
Co-authored-by: Dhruwang <dhruwangjariwala18@gmail.com>
Co-authored-by: Matthias Nannt <mail@matthiasnannt.com>
2023-12-14 13:11:23 +00:00
Matti Nannt
95ed9b87de chore: add global-error component (#1780) 2023-12-14 10:31:23 +00:00
Matti Nannt
ab5f18d2c0 fix: send toast when delete fails in survey editor (#1779) 2023-12-14 10:09:22 +00:00
Matti Nannt
cd4b6fdae0 chore: add prettier config for import sorting, update packages, migrate to prettier 3 (#1777) 2023-12-14 09:51:02 +00:00
Karishma Shukla
b11a7cc3ec feat: improved UI for select & multi-select logic jumps (#1773)
Co-authored-by: Matthias Nannt <mail@matthiasnannt.com>
2023-12-13 14:05:59 +00:00
Matti Nannt
2e5ed00414 fix: cache revalidation after product was deleted (#1776) 2023-12-13 11:18:13 +00:00
Shubham Palriwala
557e912309 fix: drop off rate (#1775) 2023-12-13 11:18:00 +00:00
Dhruwang Jariwala
e2aba0cd4a fix: autoclose and autoComplete issue (#1426) 2023-12-13 09:24:03 +00:00
Johannes
7c3c6652d4 fix: add flix logo, remove dark mode (#1774) 2023-12-12 23:21:06 +00:00
Shubham Palriwala
cbf11de352 fix: missing curl in close surveys cronjob (#1772) 2023-12-12 13:49:49 +00:00
Deepanshi Sharma
72f7946bcc fix: template preview UI breakage (#1766)
Co-authored-by: Matthias Nannt <mail@matthiasnannt.com>
2023-12-12 13:48:15 +00:00
Dhruwang Jariwala
413a3a92cb fix: survey inactive layout (#1768) 2023-12-12 10:41:09 +00:00
Dhruwang Jariwala
ee8edbd547 fix: changed maxDuration for weekly summary endpoint (#1769) 2023-12-12 10:34:50 +00:00
Dhruwang Jariwala
663fa0124f chore: renamed profile to user (#1770)
Co-authored-by: Matthias Nannt <mail@matthiasnannt.com>
2023-12-12 10:32:51 +00:00
Jonas Höbenreich
81234c4bde feat: Automatic team assignment + skip onboarding (#1347)
Co-authored-by: jonas.hoebenreich <jonas.hoebenreich@flixbus.com>
Co-authored-by: Matthias Nannt <mail@matthiasnannt.com>
2023-12-11 15:27:49 +00:00
Dhruwang Jariwala
3103760611 chore: added date transform for cached services (#1753)
Co-authored-by: Matthias Nannt <mail@matthiasnannt.com>
2023-12-11 13:53:54 +00:00
Shubham Palriwala
d8b6b95ed5 feat: use GHCR instead of DockerHub (#1760) 2023-12-08 12:49:37 +00:00
824 changed files with 15058 additions and 8624 deletions

View File

@@ -1,5 +1,5 @@
# [Choice] Node.js version (use -bullseye variants on local arm64/Apple Silicon): 18, 16, 14, 18-bullseye, 16-bullseye, 14-bullseye, 18-buster, 16-buster, 14-buster # [Choice] Node.js version (use -bullseye variants on local arm64/Apple Silicon): 18, 16, 14, 18-bullseye, 16-bullseye, 14-bullseye, 18-buster, 16-buster, 14-buster
ARG VARIANT=18-bullseye ARG VARIANT=20
FROM mcr.microsoft.com/vscode/devcontainers/javascript-node:0-${VARIANT} FROM mcr.microsoft.com/vscode/devcontainers/javascript-node:0-${VARIANT}
# [Optional] Uncomment this section to install additional OS packages. # [Optional] Uncomment this section to install additional OS packages.
@@ -13,4 +13,4 @@ FROM mcr.microsoft.com/vscode/devcontainers/javascript-node:0-${VARIANT}
# [Optional] Uncomment if you want to install more global node modules # [Optional] Uncomment if you want to install more global node modules
# RUN su node -c "npm install -g <your-package-list-here>" # RUN su node -c "npm install -g <your-package-list-here>"
RUN su node -c "npm install -g pnpm" RUN su node -c "npm install -g pnpm"

View File

@@ -2,29 +2,27 @@
// https://github.com/microsoft/vscode-dev-containers/tree/v0.245.2/containers/javascript-node-postgres // https://github.com/microsoft/vscode-dev-containers/tree/v0.245.2/containers/javascript-node-postgres
// Update the VARIANT arg in docker-compose.yml to pick a Node.js version // Update the VARIANT arg in docker-compose.yml to pick a Node.js version
{ {
"name": "Node.js & PostgreSQL", "name": "Node.js & PostgreSQL",
"dockerComposeFile": "docker-compose.yml", "dockerComposeFile": "docker-compose.yml",
"service": "app", "service": "app",
"workspaceFolder": "/workspace", "workspaceFolder": "/workspace",
// Configure tool-specific properties. // Configure tool-specific properties.
"customizations": { "customizations": {
// Configure properties specific to VS Code. // Configure properties specific to VS Code.
"vscode": { "vscode": {
// Add the IDs of extensions you want installed when the container is created. // Add the IDs of extensions you want installed when the container is created.
"extensions": [ "extensions": ["dbaeumer.vscode-eslint"]
"dbaeumer.vscode-eslint" }
] },
}
},
// Use 'forwardPorts' to make a list of ports inside the container available locally. // Use 'forwardPorts' to make a list of ports inside the container available locally.
// This can be used to network with other containers or with the host. // This can be used to network with other containers or with the host.
"forwardPorts": [3000, 5432, 8025], "forwardPorts": [3000, 5432, 8025],
// Use 'postCreateCommand' to run commands after the container is created. // Use 'postCreateCommand' to run commands after the container is created.
"postCreateCommand": "pnpm install", "postCreateCommand": "cp .env.example .env && sed -i '/^ENCRYPTION_KEY=/c\\ENCRYPTION_KEY='$(openssl rand -hex 32) .env && sed -i '/^NEXTAUTH_SECRET=/c\\NEXTAUTH_SECRET='$(openssl rand -hex 32) .env && pnpm install && pnpm db:migrate:dev",
// Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root. // Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
"remoteUser": "node" "remoteUser": "node"
} }

View File

@@ -6,10 +6,10 @@ services:
context: . context: .
dockerfile: Dockerfile dockerfile: Dockerfile
args: args:
# Update 'VARIANT' to pick an LTS version of Node.js: 18, 16, 14. # Update 'VARIANT' to pick an LTS version of Node.js: 20, 18, 16, 14.
# Append -bullseye or -buster to pin to an OS version. # Append -bullseye or -buster to pin to an OS version.
# Use -bullseye variants on local arm64/Apple Silicon. # Use -bullseye variants on local arm64/Apple Silicon.
VARIANT: "18" VARIANT: "20"
volumes: volumes:
- ..:/workspace:cached - ..:/workspace:cached
@@ -33,7 +33,7 @@ services:
environment: environment:
POSTGRES_PASSWORD: postgres POSTGRES_PASSWORD: postgres
POSTGRES_USER: postgres POSTGRES_USER: postgres
POSTGRES_DB: postgres POSTGRES_DB: formbricks
# Add "forwardPorts": ["5432"] to **devcontainer.json** to forward PostgreSQL locally. # Add "forwardPorts": ["5432"] to **devcontainer.json** to forward PostgreSQL locally.
# (Adding the "ports" property to this file will not forward from a Codespace.) # (Adding the "ports" property to this file will not forward from a Codespace.)

View File

@@ -1,4 +1,3 @@
/*
######################################################################## ########################################################################
# ------------ MANDATORY (CHANGE ACCORDING TO YOUR SETUP) ------------# # ------------ MANDATORY (CHANGE ACCORDING TO YOUR SETUP) ------------#
######################################################################## ########################################################################
@@ -64,10 +63,10 @@ SMTP_PASSWORD=smtpPassword
##################### #####################
# Email Verification. If you enable Email Verification you have to setup SMTP-Settings, too. # Email Verification. If you enable Email Verification you have to setup SMTP-Settings, too.
# EMAIL_VERIFICATION_DISABLED=1 EMAIL_VERIFICATION_DISABLED=1
# Password Reset. If you enable Password Reset functionality you have to setup SMTP-Settings, too. # Password Reset. If you enable Password Reset functionality you have to setup SMTP-Settings, too.
# PASSWORD_RESET_DISABLED=1 PASSWORD_RESET_DISABLED=1
# Signup. Disable the ability for new users to create an account. # Signup. Disable the ability for new users to create an account.
# SIGNUP_DISABLED=1 # SIGNUP_DISABLED=1
@@ -99,7 +98,6 @@ AZUREAD_AUTH_ENABLED=0
AZUREAD_CLIENT_ID= AZUREAD_CLIENT_ID=
AZUREAD_CLIENT_SECRET= AZUREAD_CLIENT_SECRET=
AZUREAD_TENANT_ID= AZUREAD_TENANT_ID=
AZURE_DIRECT_REDIRECT=0
# Cron Secret # Cron Secret
CRON_SECRET= CRON_SECRET=
@@ -107,6 +105,10 @@ CRON_SECRET=
# Configure this when you want to ship JS & CSS files from a complete URL instead of the current domain # Configure this when you want to ship JS & CSS files from a complete URL instead of the current domain
# ASSET_PREFIX_URL= # ASSET_PREFIX_URL=
# Oauth credentials for Notion Integration
NOTION_OAUTH_CLIENT_ID=
NOTION_OAUTH_CLIENT_SECRET=
# Stripe Billing Variables # Stripe Billing Variables
STRIPE_SECRET_KEY= STRIPE_SECRET_KEY=
STRIPE_WEBHOOK_SECRET= STRIPE_WEBHOOK_SECRET=
@@ -127,4 +129,11 @@ AIRTABLE_CLIENT_ID=
# Enterprise License Key # Enterprise License Key
ENTERPRISE_LICENSE_KEY= ENTERPRISE_LICENSE_KEY=
*/ # Automatically assign new users to a specific team and role within that team
# Insert an existing team id or generate a valid CUID for a new one at https://www.getuniqueid.com/cuid (e.g. cjld2cjxh0000qzrmn831i7rn)
# (Role Management is an Enterprise feature)
# DEFAULT_TEAM_ID=
# DEFAULT_TEAM_ROLE=admin
# set to 1 to skip onboarding for new users
# ONBOARDING_DISABLED=1

View File

@@ -1,3 +1,5 @@
<!-- We require pull request titles to follow the Conventional Commits specification ( https://www.conventionalcommits.org/en/v1.0.0/#summary ). Please make sure your title follow these conventions -->
## What does this PR do? ## What does this PR do?
<!-- Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change. --> <!-- Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change. -->
@@ -8,18 +10,6 @@ Fixes # (issue)
Loom Video: https://www.loom.com/ Loom Video: https://www.loom.com/
--> -->
## Type of change
<!-- Please mark the relevant points by using [x] -->
- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] Chore (refactoring code, technical debt, workflow improvements)
- [ ] Enhancement (small improvements)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
- [ ] This change adds a new database migration
- [ ] This change requires a documentation update
## How should this be tested? ## How should this be tested?
<!-- Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration --> <!-- Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration -->

View File

@@ -4,17 +4,17 @@ on:
jobs: jobs:
build: build:
name: Build Formbricks-web name: Build Formbricks-web
runs-on: ubuntu-latest runs-on: buildjet-4vcpu-ubuntu-2204
timeout-minutes: 30 timeout-minutes: 30
steps: steps:
- name: Checkout repo - name: Checkout repo
uses: actions/checkout@v3 uses: actions/checkout@v3
- name: Setup Node.js 18.x - name: Setup Node.js 20.x
uses: actions/setup-node@v3 uses: actions/setup-node@v3
with: with:
node-version: 18.x node-version: 20.x
- name: Install pnpm - name: Install pnpm
uses: pnpm/action-setup@v2 uses: pnpm/action-setup@v2

View File

@@ -25,7 +25,7 @@ jobs:
- name: create .env - name: create .env
run: cp .env.example .env run: cp .env.example .env
- name: Generate Random NEXTAUTH_SECRET - name: Generate Random ENCRYPTION_KEY
run: | run: |
SECRET=$(openssl rand -hex 32) SECRET=$(openssl rand -hex 32)
echo "ENCRYPTION_KEY=$SECRET" >> $GITHUB_ENV echo "ENCRYPTION_KEY=$SECRET" >> $GITHUB_ENV

View File

@@ -4,7 +4,7 @@ on:
jobs: jobs:
build: build:
name: Run E2E Tests name: Run E2E Tests
runs-on: ubuntu-latest runs-on: buildjet-4vcpu-ubuntu-2204
timeout-minutes: 60 timeout-minutes: 60
steps: steps:
@@ -20,6 +20,9 @@ jobs:
- name: Install dependencies - name: Install dependencies
run: npm install -g pnpm && pnpm install run: npm install -g pnpm && pnpm install
- name: Build Formricks JS package
run: pnpm build --filter=js
- name: Build Formbricks Image & Run - name: Build Formbricks Image & Run
run: docker-compose up -d run: docker-compose up -d

View File

@@ -1,6 +1,9 @@
name: PR Update name: PR Update
on: on:
push:
branches:
- shubham/integrate-buildjet
pull_request_target: pull_request_target:
branches: branches:
- main - main
@@ -35,7 +38,7 @@ jobs:
required: required:
needs: [lint, test, build, e2e-test] needs: [lint, test, build, e2e-test]
if: always() if: always()
runs-on: ubuntu-latest runs-on: buildjet-4vcpu-ubuntu-2204
steps: steps:
- name: fail if conditional jobs failed - name: fail if conditional jobs failed
if: contains(needs.*.result, 'failure') || contains(needs.*.result, 'skipped') || contains(needs.*.result, 'cancelled') if: contains(needs.*.result, 'failure') || contains(needs.*.result, 'skipped') || contains(needs.*.result, 'cancelled')

View File

@@ -4,7 +4,7 @@ on:
jobs: jobs:
build: build:
name: Tests name: Tests
runs-on: ubuntu-latest runs-on: buildjet-4vcpu-ubuntu-2204
timeout-minutes: 15 timeout-minutes: 15
env: env:
@@ -15,10 +15,10 @@ jobs:
- name: Checkout repo - name: Checkout repo
uses: actions/checkout@v3 uses: actions/checkout@v3
- name: Setup Node.js 18.x - name: Setup Node.js 20.x
uses: actions/setup-node@v3 uses: actions/setup-node@v3
with: with:
node-version: 18.x node-version: 20.x
- name: Install pnpm - name: Install pnpm
uses: pnpm/action-setup@v2 uses: pnpm/action-setup@v2
@@ -29,6 +29,11 @@ jobs:
- name: create .env - name: create .env
run: cp .env.example .env run: cp .env.example .env
- name: Generate Random ENCRYPTION_KEY
run: |
SECRET=$(openssl rand -hex 32)
echo "ENCRYPTION_KEY=$SECRET" >> $GITHUB_ENV
- name: Build formbricks-js dependencies - name: Build formbricks-js dependencies
run: pnpm build --filter=js run: pnpm build --filter=js

View File

@@ -1 +1,6 @@
module.exports = require("./packages/prettier-config/prettier-preset"); const baseConfig = require("./packages/prettier-config/prettier-preset");
module.exports = {
...baseConfig,
plugins: ["@trivago/prettier-plugin-sort-imports", "prettier-plugin-tailwindcss"],
};

132
README.md
View File

@@ -1,100 +1,128 @@
<div id="top"></div> <div id="top"></div>
<p align="center">
<a href="https://formbricks.com">
<img width="120" alt="Open Source Experience Management Solution Qualtrics Alternative Logo" src="https://github.com/formbricks/formbricks/assets/72809645/0086704f-bee7-4d38-9cc8-fa42ee59e004">
</a>
<h3 align="center">Formbricks</h3>
<p align="center"> <p align="center">
The Open Source Survey Toolbox
<br /> <a href="https://formbricks.com">
<a href="https://formbricks.com/">Website</a> | <a href="https://formbricks.com/discord">Join Discord community</a>
</p> <img width="120" alt="Open Source Privacy First Experience Management Solution Qualtrics Alternative Logo" src="https://github.com/formbricks/formbricks/assets/72809645/0086704f-bee7-4d38-9cc8-fa42ee59e004">
</a>
<h3 align="center">Formbricks</h3>
<p align="center">
Harvest user-insights, build irresistible experiences.
<br />
<a href="https://formbricks.com/">Website</a> | <a href="https://formbricks.com/discord">Join Discord community</a>
</p>
</p> </p>
<p align="center"> <p align="center">
<a href="https://github.com/formbricks/formbricks/blob/main/LICENSE"><img src="https://img.shields.io/badge/License-AGPL-purple" alt="License"></a> <a href="https://formbricks.com/discord"><img src="https://img.shields.io/discord/979077669410979880?label=Discord&logo=discord&logoColor=%23fff" alt="Join Formbricks Discord"></a> <a href="https://github.com/formbricks/formbricks/stargazers"><img src="https://img.shields.io/github/stars/formbricks/formbricks?logo=github" alt="Github Stars"></a> <a href="https://github.com/formbricks/formbricks/blob/main/LICENSE"><img src="https://img.shields.io/badge/License-AGPL-purple" alt="License"></a> <a href="https://formbricks.com/discord"><img src="https://img.shields.io/discord/979077669410979880?label=Discord&logo=discord&logoColor=%23fff" alt="Join Formbricks Discord"></a> <a href="https://github.com/formbricks/formbricks/stargazers"><img src="https://img.shields.io/github/stars/formbricks/formbricks?logo=github" alt="Github Stars"></a>
<a href="https://news.ycombinator.com/item?id=32303986"><img src="https://img.shields.io/badge/Hacker%20News-122-%23FF6600" alt="Hacker News"></a> <a href="https://news.ycombinator.com/item?id=32303986"><img src="https://img.shields.io/badge/Hacker%20News-122-%23FF6600" alt="Hacker News"></a>
<a href="[https://www.producthunt.com/products/formbricks](https://www.producthunt.com/posts/formbricks)"><img src="https://img.shields.io/badge/Product%20Hunt-455-orange?logo=producthunt&logoColor=%23fff" alt="Product Hunt"></a> <a href="[https://www.producthunt.com/products/formbricks](https://www.producthunt.com/posts/formbricks)"><img src="https://img.shields.io/badge/Product%20Hunt-455-orange?logo=producthunt&logoColor=%23fff" alt="Product Hunt"></a>
<a href="https://github.blog/2023-04-12-github-accelerator-our-first-cohort-and-whats-next/"><img src="https://img.shields.io/badge/2023-blue?logo=github&label=Github%20Accelerator" alt="Github Accelerator"></a> <a href="https://github.blog/2023-04-12-github-accelerator-our-first-cohort-and-whats-next/"><img src="https://img.shields.io/badge/2023-blue?logo=github&label=Github%20Accelerator" alt="Github Accelerator"></a>
<a href="https://github.com/formbricks/formbricks/issues?q=is:issue+is:open+label:%22%F0%9F%99%8B%F0%9F%8F%BB%E2%80%8D%E2%99%82%EF%B8%8Fhelp+wanted%22"><img src="https://img.shields.io/badge/Help%20Wanted-Contribute-blue"></a> <a href="https://github.com/formbricks/formbricks/issues?q=is:issue+is:open+label:%22%F0%9F%99%8B%F0%9F%8F%BB%E2%80%8D%E2%99%82%EF%B8%8Fhelp+wanted%22"><img src="https://img.shields.io/badge/Help%20Wanted-Contribute-blue"></a>
</p> </p>
<br/> <br/>
<p align="center"> <div style="background-color:#f8fafc; border-radius:5px;">
<p align="center">
<i>Trusted by</i>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <i>Trusted by</i>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<a href="https://github.com/calcom/cal.com/"><img src="https://github.com/formbricks/formbricks/assets/675065/1a8763cf-f47e-4960-90f6-334f6dc12a17#gh-light-mode-only" height="20px"></a><a href="https://github.com/calcom/cal.com/"><img src="https://github.com/formbricks/formbricks/assets/72809645/9a031e8d-538f-4fdc-9338-b77e9a57d6ac#gh-dark-mode-only" height="20px"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="https://flixbus.com"><img src="https://github.com/formbricks/formbricks/assets/72809645/d6c91d89-7633-4845-ae1e-03bbd2ce0946" height="35px"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<a href="https://github.com/CrowdDotDev/crowd.dev"><img src="https://github.com/formbricks/formbricks/assets/675065/59b1a4d4-25e4-4ef3-b0bf-4426446fbfd0#gh-light-mode-only" height="20px"></a><a href="https://github.com/CrowdDotDev/crowd.dev"><img src="https://github.com/formbricks/formbricks/assets/72809645/4bb4caf7-4b64-44c8-94bd-850606d181c1#gh-dark-mode-only" height="20px"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="https://github.com/calcom/cal.com/"><img src="https://github.com/formbricks/formbricks/assets/675065/1a8763cf-f47e-4960-90f6-334f6dc12a17#gh-light-mode-only" height="20px"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<a href="https://clovyr.io/"><img src="https://github.com/formbricks/formbricks/assets/675065/9291c8df-9aac-423a-a430-a9a581240075" height="20px"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="https://github.com/CrowdDotDev/crowd.dev"><img src="https://github.com/formbricks/formbricks/assets/675065/59b1a4d4-25e4-4ef3-b0bf-4426446fbfd0#gh-light-mode-only" height="20px"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<a href="https://neverinstall.com/"><img src="https://github.com/formbricks/formbricks/assets/675065/72e5e37b-8ef7-4340-b06e-f1d12a05330f#gh-light-mode-only" height="20px"></a><a href="https://neverinstall.com/"><img src="https://github.com/formbricks/formbricks/assets/72809645/9d9711dc-75e5-4084-b7fa-bbaf621064a8#gh-dark-mode-only" height="20px"> <a href="https://neverinstall.com/"><img src="https://github.com/formbricks/formbricks/assets/675065/72e5e37b-8ef7-4340-b06e-f1d12a05330f#gh-light-mode-only" height="20px"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<a href="https://clovyr.io/"><img src="https://github.com/formbricks/formbricks/assets/675065/9291c8df-9aac-423a-a430-a9a581240075" height="20px"></a>
</p> </p>
<div>
<p align="center"> <p align="center">
<a href="https://trendshift.io/repositories/2570" target="_blank"><img src="https://trendshift.io/api/badge/repositories/2570" alt="Trendshift Badge for formbricks/formbricks" style="width: 250px; height: 55px;" width="250" height="55"/></a> <a href="https://trendshift.io/repositories/2570" target="_blank"><img src="https://trendshift.io/api/badge/repositories/2570" alt="Trendshift Badge for formbricks/formbricks" style="width: 250px; height: 55px;" width="250" height="55"/></a>
</p> </p>
## ✨ About Formbricks ## ✨ About Formbricks
<img width="1527" alt="formbricks-sneak" src="https://github-production-user-asset-6210df.s3.amazonaws.com/675065/249441967-ccb89ea3-82b4-4bf2-8d2c-528721ec313b.png"> <img width="1527" alt="formbricks-sneak" src="https://github-production-user-asset-6210df.s3.amazonaws.com/675065/249441967-ccb89ea3-82b4-4bf2-8d2c-528721ec313b.png">
Formbricks is your go-to solution for in-product micro-surveys that will supercharge your product experience. Use micro-surveys to target the right users at the right time without making surveys annoying. Formbricks provides a free and open source surveying platform. Gather feedback at every point in the user journey with beautiful in-app, website, link and email surveys. Build on top of Formbricks or leverage prebuilt data analysis capabilities.
**Try it out in the cloud at [formbricks.com](https://formbricks.com)** **Try it out in the cloud at [formbricks.com](https://app.formbricks.com/auth/signup)**
## 💪 Mission: Make customer-centric decisions based on data. ## 💪 Mission: Empower your team, craft an irresistible experience.
Formbricks is a powerful tool for creating in-product micro-surveys - and leverage a significantly higher conversion rate. It allows you to gather valuable insights from your users, enabling you to make data-driven decisions that enhance your product's user experience. With Formbricks, you can create surveys with our no-code editor, choose from a variety of templates, target specific user groups, and much more. Formbricks is both a free and open source survey platform - and a privacy-first experience management platform. Use in-app, website, link and email surveys to gather user and customer insights at every point of their journey. Leverage Formbricks Insight Platform or build your own. Life's too short for mediocre UX.
### Table of Contents ### Table of Contents
- [Features](#features) - [Features](#features)
- [Getting Started](#getting-started) - [Getting Started](#getting-started)
- [Cloud Version](#cloud-version)
- [Self-hosted Version](#self-hosted-version) - [Cloud Version](#cloud-version)
- [Development](#development)
- [Self-hosted Version](#self-hosted-version)
- [Development](#development)
- [Contribution](#contribution) - [Contribution](#contribution)
- [Contact](#contact-us) - [Contact](#contact-us)
- [License](#license) - [License](#license)
- [Security](#security) - [Security](#security)
<a id="features"></a> <a id="features"></a>
### Features ### Features
- 📲 Create **in-product surveys** with our no-code editor with multiple question types. - 📲 Create **conversion-optimized surveys** with our no-code editor with several question types.
- 📚 Choose from a variety of best-practice **templates**. - 📚 Choose from a variety of best-practice **templates**.
- 👩🏻 Launch and **target your surveys to specific user groups** without changing your application code. - 👩🏻 Launch and **target your surveys to specific user groups** without changing your application code.
- 🔗 Create shareable **link surveys**. - 🔗 Create shareable **link surveys**.
- 👨‍👩‍👦 Invite your team members to **collaborate** on your surveys. - 👨‍👩‍👦 Invite your team members to **collaborate** on your surveys.
- 🔌 Integrate Formbricks with **Slack, Posthog, Zapier, n8n and more**.
- 🔌 Integrate Formbricks with **Slack, Notion, Zapier, n8n and more**.
- 🔒 All **open source**, transparent and self-hostable. - 🔒 All **open source**, transparent and self-hostable.
### Built on Open Source ### Built on Open Source
- 💻 [Typescript](https://www.typescriptlang.org/) - 💻 [Typescript](https://www.typescriptlang.org/)
- 🚀 [Next.js](https://nextjs.org/) - 🚀 [Next.js](https://nextjs.org/)
- ⚛️ [React](https://reactjs.org/) - ⚛️ [React](https://reactjs.org/)
- 🎨 [TailwindCSS](https://tailwindcss.com/) - 🎨 [TailwindCSS](https://tailwindcss.com/)
- 📚 [Prisma](https://prisma.io/) - 📚 [Prisma](https://prisma.io/)
- 🔒 [Auth.js](https://authjs.dev/) - 🔒 [Auth.js](https://authjs.dev/)
- 🧘‍♂️ [Zod](https://zod.dev/) - 🧘‍♂️ [Zod](https://zod.dev/)
<a id="getting-started"></a> <a id="getting-started"></a>
## 🚀 Getting started ## 🚀 Getting started
We've got several options depending on your need to help you quickly get started with Formbricks. We've got several options depending on your need to help you quickly get started with Formbricks.
<a id="cloud-version"></a> <a id="cloud-version"></a>
### ☁️ Cloud Version ### ☁️ Cloud Version
Formbricks has a hosted cloud offering with a generous free plan to get you up and running as quickly as possible. To get started, please visit [formbricks.com](https://formbricks.com). Formbricks has a hosted cloud offering with a generous free plan to get you up and running as quickly as possible. To get started, please visit [formbricks.com](https://app.formbricks.com/auth/signup).
<a id="self-hosted-version"></a> <a id="self-hosted-version"></a>
### 🐳 Self-hosted version ### 🐳 Self-hosting Formbricks
Formbricks is available Open-Source under AGPLv3 license. You can host Formbricks on your own servers using Docker without a subscription. Formbricks is available Open-Source under AGPLv3 license. You can host Formbricks on your own servers using Docker without a subscription.
@@ -114,7 +142,7 @@ You can deploy Formbricks on [Railway](https://railway.app) using the button bel
[![Deploy on Railway](https://railway.app/button.svg)](https://railway.app/new/template/PPDzCd) [![Deploy on Railway](https://railway.app/button.svg)](https://railway.app/new/template/PPDzCd)
<a id="development"></a> <a id="development"></a>
### 👨‍💻 Development ### 👨‍💻 Development
@@ -123,7 +151,9 @@ You can deploy Formbricks on [Railway](https://railway.app) using the button bel
Here is what you need to be able to run Formbricks: Here is what you need to be able to run Formbricks:
- [Node.js](https://nodejs.org/en) (Version: >=18.x) - [Node.js](https://nodejs.org/en) (Version: >=18.x)
- [Pnpm](https://pnpm.io/) - [Pnpm](https://pnpm.io/)
- [Docker](https://www.docker.com/) - to run PostgreSQL and MailHog - [Docker](https://www.docker.com/) - to run PostgreSQL and MailHog
#### Local Setup #### Local Setup
@@ -138,7 +168,7 @@ To get started locally, we've got a [guide to help you](https://formbricks.com/d
[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/formbricks/formbricks) [![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/formbricks/formbricks)
<a id="contribution"></a> <a id="contribution"></a>
## ✍️ Contribution ## ✍️ Contribution
@@ -147,35 +177,39 @@ We are very happy if you are interested in contributing to Formbricks 🤗
Here are a few options: Here are a few options:
- Star this repo. - Star this repo.
- Create issues every time you feel something is missing or goes wrong. - Create issues every time you feel something is missing or goes wrong.
- Upvote issues with 👍 reaction so we know what the demand for a particular issue is to prioritize it within the roadmap. - Upvote issues with 👍 reaction so we know what the demand for a particular issue is to prioritize it within the roadmap.
Please check out [our contribution guide](https://formbricks.com/docs/contributing/introduction) and our [list of open issues](https://github.com/formbricks/formbricks/issues) for more information. Please check out [our contribution guide](https://formbricks.com/docs/contributing/introduction) and our [list of open issues](https://github.com/formbricks/formbricks/issues) for more information.
## All Thanks To Our Contributors ## All Thanks To Our Contributors
<a href="https://github.com/formbricks/formbricks/graphs/contributors"> <a href="https://github.com/formbricks/formbricks/graphs/contributors">
<img src="https://contrib.rocks/image?repo=formbricks/formbricks" />
<img src="https://contrib.rocks/image?repo=formbricks/formbricks" />
</a> </a>
<a id="contact-us"></a> <a id="contact-us"></a>
## 📆 Contact us ## 📆 Contact us
Let's have a chat about your survey needs and get you started. Let's have a chat about your survey needs and get you started.
<a href="https://cal.com/johannes/onboarding?utm_source=banner&utm_campaign=oss"><img alt="Book us with Cal.com" src="https://cal.com/book-with-cal-dark.svg" /></a> <a href="https://cal.com/johannes/onboarding?utm_source=banner&utm_campaign=oss"><img alt="Book us with Cal.com" src="https://cal.com/book-with-cal-dark.svg" /></a>
<a id="license"></a> <a id="license"></a>
## ⚖️ License ## ⚖️ License
Distributed under the AGPLv3 License. See [`LICENSE`](./LICENSE) for more information. Distributed under the AGPLv3 License. See [`LICENSE`](./LICENSE) for more information.
<a id="security"></a> <a id="security"></a>
## 🔒 Security ## 🔒 Security
We take security very seriously. If you come across any security vulnerabilities, please disclose them by sending an email to security@formbricks.com. We appreciate your help in making our platform as secure as possible and are committed to working with you to resolve any issues quickly and efficiently. See [`SECURITY.md`](./SECURITY.md) for more information. We take security very seriously. If you come across any security vulnerabilities, please disclose them by sending an email to security@formbricks.com. We appreciate your help in making our platform as secure as possible and are committed to working with you to resolve any issues quickly and efficiently. See [`SECURITY.md`](./SECURITY.md) for more information.
<p align="right"><a href="#top">🔼 Back to top</a></p> <p align="right"><a href="#top">🔼 Back to top</a></p>

View File

@@ -12,8 +12,8 @@
}, },
"dependencies": { "dependencies": {
"@formbricks/js": "workspace:*", "@formbricks/js": "workspace:*",
"@heroicons/react": "^2.0.18", "@heroicons/react": "^2.1.1",
"next": "14.0.3", "next": "14.0.4",
"react": "18.2.0", "react": "18.2.0",
"react-dom": "18.2.0" "react-dom": "18.2.0"
}, },

View File

@@ -1,5 +1,6 @@
import type { AppProps } from "next/app"; import type { AppProps } from "next/app";
import Head from "next/head"; import Head from "next/head";
import "../styles/globals.css"; import "../styles/globals.css";
export default function App({ Component, pageProps }: AppProps) { export default function App({ Component, pageProps }: AppProps) {

View File

@@ -1,4 +1,4 @@
import { Html, Head, Main, NextScript } from "next/document"; import { Head, Html, Main, NextScript } from "next/document";
export default function Document() { export default function Document() {
return ( return (

View File

@@ -1,8 +1,10 @@
import formbricks from "@formbricks/js";
import Image from "next/image"; import Image from "next/image";
import { useEffect, useState } from "react";
import fbsetup from "../../public/fb-setup.png";
import { useRouter } from "next/router"; import { useRouter } from "next/router";
import { useEffect, useState } from "react";
import formbricks from "@formbricks/js";
import fbsetup from "../../public/fb-setup.png";
declare const window: any; declare const window: any;
@@ -72,7 +74,7 @@ export default function AppPage({}) {
</p> </p>
<Image src={fbsetup} alt="fb setup" className="mt-4 rounded" priority /> <Image src={fbsetup} alt="fb setup" className="mt-4 rounded" priority />
<div className="mt-4 flex-col items-start text-sm text-slate-700 dark:text-slate-300 sm:flex sm:items-center sm:text-base"> <div className="mt-4 flex-col items-start text-sm text-slate-700 sm:flex sm:items-center sm:text-base dark:text-slate-300">
<p className="mb-1 sm:mb-0 sm:mr-2">You&apos;re connected with env:</p> <p className="mb-1 sm:mb-0 sm:mr-2">You&apos;re connected with env:</p>
<div className="flex items-center"> <div className="flex items-center">
<strong className="w-32 truncate sm:w-auto"> <strong className="w-32 truncate sm:w-auto">

View File

@@ -1,7 +1,7 @@
import { Fence } from "@/components/shared/Fence"; import { Fence } from "@/components/shared/Fence";
export const metadata = { export const metadata = {
title: "Formbricks Responses API Documentation - Manage Your Survey Data Seamlessly", title: "Formbricks Actions API Documentation - Manage Your Survey Data Seamlessly",
description: description:
"Unlock the full potential of Formbricks' Client Actions API. Create Actions right from the API.", "Unlock the full potential of Formbricks' Client Actions API. Create Actions right from the API.",
}; };
@@ -13,8 +13,8 @@ export const metadata = {
The Public Client API is designed for the JavaScript SDK and does not require authentication. It's primarily used for creating persons, sessions, and responses within the Formbricks platform. This API is ideal for client-side interactions, as it doesn't expose sensitive information. The Public Client API is designed for the JavaScript SDK and does not require authentication. It's primarily used for creating persons, sessions, and responses within the Formbricks platform. This API is ideal for client-side interactions, as it doesn't expose sensitive information.
This API can be used to: This API can be used to:
- [Add Action for User](#add-action-for-user)
- [Add Action for User](#add-action-for-user)
--- ---
@@ -85,4 +85,3 @@ Adds an Actions for a given User by their User ID
</Row> </Row>
--- ---

View File

@@ -218,7 +218,7 @@ This set of API can be used to
<CodeGroup title="Request" tag="DELETE" label="/api/v1/client/responses/<response-id>"> <CodeGroup title="Request" tag="DELETE" label="/api/v1/client/responses/<response-id>">
```bash {{ title: 'cURL' }} ```bash {{ title: 'cURL' }}
curl -X DELETE https://app.formbricks.com/api/v1/management/resposnes/<response-id> \ curl -X DELETE https://app.formbricks.com/api/v1/management/responses/<response-id> \
--header 'x-api-key: <your-api-key>' --header 'x-api-key: <your-api-key>'
``` ```

View File

@@ -1,18 +1,19 @@
import Image from "next/image";
import DemoPreview from "@/components/dummyUI/DemoPreview"; import DemoPreview from "@/components/dummyUI/DemoPreview";
import Image from "next/image";
import CreateChurnFlow from "./create-cancel-flow.webp";
import ChangeText from "./change-text.webp"; import ChangeText from "./change-text.webp";
import TriggerInnerText from "./trigger-inner-text.webp"; import CreateChurnFlow from "./create-cancel-flow.webp";
import TriggerCSS from "./trigger-css-selector.webp";
import TriggerPageUrl from "./trigger-page-url.webp";
import RecontactOptions from "./recontact-options.webp";
import PublishSurvey from "./publish-survey.webp"; import PublishSurvey from "./publish-survey.webp";
import RecontactOptions from "./recontact-options.webp";
import SelectAction from "./select-action.webp"; import SelectAction from "./select-action.webp";
import TriggerCSS from "./trigger-css-selector.webp";
import TriggerInnerText from "./trigger-inner-text.webp";
import TriggerPageUrl from "./trigger-page-url.webp";
export const metadata = { export const metadata = {
title: "Mastering Churn Surveys with Formbricks | Essential Tips & Steps", title: "Mastering Churn Surveys with Formbricks | Essential Tips & Steps",
description: "Learn how to effectively utilize Formbricks' Churn Surveys to gain deeper insights into user departures. Dive into a step-by-step guide to craft, trigger, and optimize your churn surveys, ensuring you capture invaluable feedback at critical junctures", description:
"Learn how to effectively utilize Formbricks' Churn Surveys to gain deeper insights into user departures. Dive into a step-by-step guide to craft, trigger, and optimize your churn surveys, ensuring you capture invaluable feedback at critical junctures",
}; };
#### Best Practices #### Best Practices
@@ -39,15 +40,15 @@ The Churn Survey is among the most effective ways to identify weaknesses in your
To run the Churn Survey in your app you want to proceed as follows: To run the Churn Survey in your app you want to proceed as follows:
1. Create new Churn Survey at [app.formbricks.com](http://app.formbricks.com/) 1. Create new Churn Survey at [app.formbricks.com](https://app.formbricks.com/)
2. Set up the user action to display survey at right point in time 2. Set up the user action to display survey at right point in time
3. Choose correct recontact options to never miss a feedback 3. Choose correct recontact options to never miss a feedback
4. Prevent that churn! 4. Prevent that churn!
<Note> <Note>
## Formbricks Widget running? ## Formbricks Widget running? We assume that you have already installed the Formbricks Widget in your web
We assume that you have already installed the Formbricks Widget in your web app. Its required to display messages app. Its required to display messages and surveys in your app. If not, please follow the [Quick Start Guide
and surveys in your app. If not, please follow the [Quick Start Guide (takes 15mins max.)](/docs/getting-started/quickstart-in-app-survey) (takes 15mins max.)](/docs/getting-started/quickstart-in-app-survey)
</Note> </Note>
### 1. Create new Churn Survey ### 1. Create new Churn Survey
@@ -60,7 +61,7 @@ Click on "Create Survey" and choose the template “Churn Survey”:
src={CreateChurnFlow} src={CreateChurnFlow}
alt="Create churn survey by template" alt="Create churn survey by template"
quality="100" quality="100"
className="rounded-lg max-w-full sm:max-w-3xl" className="max-w-full rounded-lg sm:max-w-3xl"
/> />
### 2. Update questions (if you like) ### 2. Update questions (if you like)
@@ -71,7 +72,7 @@ Youre free to update the question and answer options. However, based on our e
src={ChangeText} src={ChangeText}
alt="Change text content" alt="Change text content"
quality="100" quality="100"
className="rounded-lg max-w-full sm:max-w-3xl" className="max-w-full rounded-lg sm:max-w-3xl"
/> />
_Want to change the button color? You can do so in the product settings._ _Want to change the button color? You can do so in the product settings._
@@ -92,7 +93,7 @@ To create the trigger for your Churn Survey, you have two options to choose from
src={TriggerInnerText} src={TriggerInnerText}
alt="Set the trigger by inner Text" alt="Set the trigger by inner Text"
quality="100" quality="100"
className="rounded-lg max-w-full sm:max-w-3xl" className="max-w-full rounded-lg sm:max-w-3xl"
/> />
2. **Trigger by CSS Selector:** In case you have more than one button saying “Cancel Subscription” in your app and only want to display the survey when one of them is clicked, you want to be more specific. The best way to do that is to give this button the HTML `id=“cancel-subscription”` and set your user action up like so: 2. **Trigger by CSS Selector:** In case you have more than one button saying “Cancel Subscription” in your app and only want to display the survey when one of them is clicked, you want to be more specific. The best way to do that is to give this button the HTML `id=“cancel-subscription”` and set your user action up like so:
@@ -101,7 +102,7 @@ To create the trigger for your Churn Survey, you have two options to choose from
src={TriggerCSS} src={TriggerCSS}
alt="Set the trigger by CSS Selector" alt="Set the trigger by CSS Selector"
quality="100" quality="100"
className="rounded-lg max-w-full sm:max-w-3xl" className="max-w-full rounded-lg sm:max-w-3xl"
/> />
3. **Trigger by pageURL:** Lastly, you could also display your survey on a subpage “/subscription-cancelled” where you forward users once they cancelled the trial subscription. You can then create a user Action with the type `pageURL` with the following settings: 3. **Trigger by pageURL:** Lastly, you could also display your survey on a subpage “/subscription-cancelled” where you forward users once they cancelled the trial subscription. You can then create a user Action with the type `pageURL` with the following settings:
@@ -110,7 +111,7 @@ To create the trigger for your Churn Survey, you have two options to choose from
src={TriggerPageUrl} src={TriggerPageUrl}
alt="Set the trigger by page URL" alt="Set the trigger by page URL"
quality="100" quality="100"
className="rounded-lg max-w-full sm:max-w-3xl" className="max-w-full rounded-lg sm:max-w-3xl"
/> />
Whenever a user visits this page, matches the filter conditions above and the recontact options (below) the survey will be displayed ✅ Whenever a user visits this page, matches the filter conditions above and the recontact options (below) the survey will be displayed ✅
@@ -118,10 +119,9 @@ Whenever a user visits this page, matches the filter conditions above and the re
Here is our complete [Actions manual](/docs/actions/why) covering [Code](/docs/actions/code) and [No-Code](/docs/actions/no-code) Actions. Here is our complete [Actions manual](/docs/actions/why) covering [Code](/docs/actions/code) and [No-Code](/docs/actions/no-code) Actions.
<Note> <Note>
## Pre-churn flow coming soon ## Pre-churn flow coming soon Were currently building full-screen survey pop-ups. Youll be able to prevent
Were currently building full-screen survey pop-ups. Youll be able to prevent users from closing the survey users from closing the survey unless they respond to it. Its certainly debatable if you want that but you
unless they respond to it. Its certainly debatable if you want that but you could force them to click through could force them to click through the survey before letting them cancel 🤷
the survey before letting them cancel 🤷
</Note> </Note>
### 5. Select Action in the “When to ask” card ### 5. Select Action in the “When to ask” card
@@ -130,7 +130,7 @@ Here is our complete [Actions manual](/docs/actions/why) covering [Code](/docs/a
src={SelectAction} src={SelectAction}
alt="Select feedback button action" alt="Select feedback button action"
quality="100" quality="100"
className="rounded-lg max-w-full sm:max-w-3xl" className="max-w-full rounded-lg sm:max-w-3xl"
/> />
### 6. Last step: Set Recontact Options correctly ### 6. Last step: Set Recontact Options correctly
@@ -141,7 +141,7 @@ Lastly, scroll down to “Recontact Options”. Here you have to choose the corr
src={RecontactOptions} src={RecontactOptions}
alt="Set recontact options" alt="Set recontact options"
quality="100" quality="100"
className="rounded-lg max-w-full sm:max-w-3xl" className="max-w-full rounded-lg sm:max-w-3xl"
/> />
These settings make sure the survey is always displayed, when a user wants to Cancel their subscription. These settings make sure the survey is always displayed, when a user wants to Cancel their subscription.
@@ -152,13 +152,13 @@ These settings make sure the survey is always displayed, when a user wants to Ca
src={PublishSurvey} src={PublishSurvey}
alt="Publish survey" alt="Publish survey"
quality="100" quality="100"
className="rounded-lg max-w-full sm:max-w-3xl" className="max-w-full rounded-lg sm:max-w-3xl"
/> />
<Note> <Note>
## Formbricks Widget running? ## Formbricks Widget running? You need to have the Formbricks Widget installed to display the Churn Survey
You need to have the Formbricks Widget installed to display the Churn Survey in your app. Please follow [this in your app. Please follow [this tutorial (Step 4 onwards)](/docs/getting-started/quickstart-in-app-survey)
tutorial (Step 4 onwards)](/docs/getting-started/quickstart-in-app-survey) to install the widget. to install the widget.
</Note> </Note>
### ###

View File

@@ -11,7 +11,8 @@ import SelectAction from "./select-action.webp";
export const metadata = { export const metadata = {
title: "Setting Up Feature Chaser Surveys with Formbricks: A Comprehensive Guide", title: "Setting Up Feature Chaser Surveys with Formbricks: A Comprehensive Guide",
description: "Learn how to harness the power of Formbricks to gather targeted user feedback on specific features. Dive deep into creating, triggering, and publishing the Feature Chaser survey to enhance your product with actionable insights for specific users.", description:
"Learn how to harness the power of Formbricks to gather targeted user feedback on specific features. Dive deep into creating, triggering, and publishing the Feature Chaser survey to enhance your product with actionable insights for specific users.",
}; };
#### Best Practices #### Best Practices
@@ -38,13 +39,13 @@ Product analytics never tell you why a feature is used - and why not. Following
To run the Feature Chaser survey in your app you want to proceed as follows: To run the Feature Chaser survey in your app you want to proceed as follows:
1. Create new Feature Chaser survey at [app.formbricks.com](http://app.formbricks.com/) 1. Create new Feature Chaser survey at [app.formbricks.com](https://app.formbricks.com/)
2. Setup a user action to display survey at the right point in time 2. Setup a user action to display survey at the right point in time
<Note> <Note>
## Formbricks Widget running? ## Formbricks Widget running? We assume that you have already installed the Formbricks Widget in your web
We assume that you have already installed the Formbricks Widget in your web app. Its required to display messages app. Its required to display messages and surveys in your app. If not, please follow the [Quick Start Guide
and surveys in your app. If not, please follow the [Quick Start Guide (takes 15mins max.)](/docs/getting-started/quickstart-in-app-survey) (takes 15mins max.)](/docs/getting-started/quickstart-in-app-survey)
</Note> </Note>
### 1. Create new Feature Chaser ### 1. Create new Feature Chaser
@@ -57,7 +58,7 @@ Click on "Create Survey" and choose the template “Feature Chaser”:
src={CreateSurvey} src={CreateSurvey}
alt="Create survey by template" alt="Create survey by template"
quality="100" quality="100"
className="rounded-lg max-w-full sm:max-w-3xl" className="max-w-full rounded-lg sm:max-w-3xl"
/> />
### 2. Update questions ### 2. Update questions
@@ -68,7 +69,7 @@ The questions you want to ask are dependent on your feature and can be very spec
src={ChangeText} src={ChangeText}
alt="Change text content" alt="Change text content"
quality="100" quality="100"
className="rounded-lg max-w-full sm:max-w-3xl" className="max-w-full rounded-lg sm:max-w-3xl"
/> />
Save, and move over to where the magic happens: The “Audience” tab. Save, and move over to where the magic happens: The “Audience” tab.
@@ -87,7 +88,7 @@ There are two ways to track a button:
src={ActionText} src={ActionText}
alt="Set the trigger by inner Text" alt="Set the trigger by inner Text"
quality="100" quality="100"
className="rounded-lg max-w-full sm:max-w-3xl" className="max-w-full rounded-lg sm:max-w-3xl"
/> />
2. **Trigger by CSS Selector:** In case you have more than one button saying “Export Report” in your app and only want to display the survey when one of them is clicked, you want to be more specific. The best way to do that is to give this button the HTML `id=“export-report-featurename”` and set your user action up like so: 2. **Trigger by CSS Selector:** In case you have more than one button saying “Export Report” in your app and only want to display the survey when one of them is clicked, you want to be more specific. The best way to do that is to give this button the HTML `id=“export-report-featurename”` and set your user action up like so:
@@ -96,7 +97,7 @@ There are two ways to track a button:
src={ActionCSS} src={ActionCSS}
alt="Set the trigger by CSS Selector" alt="Set the trigger by CSS Selector"
quality="100" quality="100"
className="rounded-lg max-w-full sm:max-w-3xl" className="max-w-full rounded-lg sm:max-w-3xl"
/> />
Please follow our [Actions manual](/docs/actions/why) for an in-depth description of how Actions work. Please follow our [Actions manual](/docs/actions/why) for an in-depth description of how Actions work.
@@ -107,7 +108,7 @@ Please follow our [Actions manual](/docs/actions/why) for an in-depth descriptio
src={SelectAction} src={SelectAction}
alt="Select PMF trigger button action" alt="Select PMF trigger button action"
quality="100" quality="100"
className="rounded-lg max-w-full sm:max-w-3xl" className="max-w-full rounded-lg sm:max-w-3xl"
/> />
### 5. Last step: Set Recontact Options correctly ### 5. Last step: Set Recontact Options correctly
@@ -118,17 +119,17 @@ Lastly, scroll down to “Recontact Options”. Here you have full freedom to de
src={RecontactOptions} src={RecontactOptions}
alt="Set recontact options" alt="Set recontact options"
quality="100" quality="100"
className="rounded-lg max-w-full sm:max-w-3xl" className="max-w-full rounded-lg sm:max-w-3xl"
/> />
### 7. Congrats! Youre ready to publish your survey 💃 ### 7. Congrats! Youre ready to publish your survey 💃
<Image src={Publish} alt="Publish survey" quality="100" className="rounded-lg max-w-full sm:max-w-3xl" /> <Image src={Publish} alt="Publish survey" quality="100" className="max-w-full rounded-lg sm:max-w-3xl" />
<Note> <Note>
## Formbricks Widget running? ## Formbricks Widget running? You need to have the Formbricks Widget installed to display the Feature Chaser
You need to have the Formbricks Widget installed to display the Feature Chaser in your app. Please follow [this in your app. Please follow [this tutorial (Step 4 onwards)](/docs/getting-started/quickstart-in-app-survey)
tutorial (Step 4 onwards)](/docs/getting-started/quickstart-in-app-survey) to install the widget. to install the widget.
</Note> </Note>
### ###

View File

@@ -11,7 +11,8 @@ import SelectAction from "./select-action.webp";
export const metadata = { export const metadata = {
title: "Boost Your Trial Conversion Rates with Formbricks: Comprehensive Guide", title: "Boost Your Trial Conversion Rates with Formbricks: Comprehensive Guide",
description: "Unlock the secret to converting more trial users into paying customers using Formbricks. Understand insights behind trial cancellations and tailor your offering to fit user needs. Dive into our step-by-step tutorial and improve your conversion strategy today", description:
"Unlock the secret to converting more trial users into paying customers using Formbricks. Understand insights behind trial cancellations and tailor your offering to fit user needs. Dive into our step-by-step tutorial and improve your conversion strategy today",
}; };
#### Best Practices #### Best Practices
@@ -37,14 +38,14 @@ The better you understand why free users dont convert to paid users, the high
To display the Trial Conversion Survey in your app you want to proceed as follows: To display the Trial Conversion Survey in your app you want to proceed as follows:
1. Create new Trial Conversion Survey at [app.formbricks.com](http://app.formbricks.com/) 1. Create new Trial Conversion Survey at [app.formbricks.com](https://app.formbricks.com/)
2. Set up the user action to display survey at right point in time 2. Set up the user action to display survey at right point in time
3. Print that 💸 3. Print that 💸
<Note> <Note>
## Formbricks Widget running? ## Formbricks Widget running? We assume that you have already installed the Formbricks Widget in your web
We assume that you have already installed the Formbricks Widget in your web app. Its required to display messages app. Its required to display messages and surveys in your app. If not, please follow the [Quick Start Guide
and surveys in your app. If not, please follow the [Quick Start Guide (takes 15mins max.)](/docs/getting-started/quickstart-in-app-survey) (takes 15mins max.)](/docs/getting-started/quickstart-in-app-survey)
</Note> </Note>
### 1. Create new Trial Conversion Survey ### 1. Create new Trial Conversion Survey
@@ -57,7 +58,7 @@ Click on "Create Survey" and choose the template “Improve Trial Conversion”:
src={CreateSurvey} src={CreateSurvey}
alt="Create survey by template" alt="Create survey by template"
quality="100" quality="100"
className="rounded-lg max-w-full sm:max-w-3xl" className="max-w-full rounded-lg sm:max-w-3xl"
/> />
### 2. Update questions (if you like) ### 2. Update questions (if you like)
@@ -68,7 +69,7 @@ Youre free to update the questions and answer options. However, based on our
src={ChangeText} src={ChangeText}
alt="Change text content" alt="Change text content"
quality="100" quality="100"
className="rounded-lg max-w-full sm:max-w-3xl" className="max-w-full rounded-lg sm:max-w-3xl"
/> />
_Want to change the button color? You can do so in the product settings!_ _Want to change the button color? You can do so in the product settings!_
@@ -78,8 +79,8 @@ Save, and move over to the “Audience” tab.
### 3. Pre-segment your audience (coming soon) ### 3. Pre-segment your audience (coming soon)
<Note> <Note>
## Filter by attribute coming soon ## Filter by attribute coming soon We're working on pre-segmenting users by attributes. We will update this
We're working on pre-segmenting users by attributes. We will update this manual in the next days. manual in the next days.
</Note> </Note>
Pre-segmentation isn't relevant for this survey because you likely want to solve all people who cancel their trial. You probably have a specific user action e.g. clicking on "Cancel Trial" you can use to only display the survey to users trialing your product. Pre-segmentation isn't relevant for this survey because you likely want to solve all people who cancel their trial. You probably have a specific user action e.g. clicking on "Cancel Trial" you can use to only display the survey to users trialing your product.
@@ -94,7 +95,7 @@ How you trigger your survey depends on your product. There are two options:
src={ActionPageurl} src={ActionPageurl}
alt="Change text content" alt="Change text content"
quality="100" quality="100"
className="rounded-lg max-w-full sm:max-w-3xl" className="max-w-full rounded-lg sm:max-w-3xl"
/> />
Whenever a user visits this page, the survey will be displayed ✅ Whenever a user visits this page, the survey will be displayed ✅
@@ -105,7 +106,7 @@ Whenever a user visits this page, the survey will be displayed ✅
src={ActionText} src={ActionText}
alt="Change text content" alt="Change text content"
quality="100" quality="100"
className="rounded-lg max-w-full sm:max-w-3xl" className="max-w-full rounded-lg sm:max-w-3xl"
/> />
Please have a look at our complete [Actions manual](/docs/actions/why) if you have questions. Please have a look at our complete [Actions manual](/docs/actions/why) if you have questions.
@@ -116,7 +117,7 @@ Please have a look at our complete [Actions manual](/docs/actions/why) if you ha
src={SelectAction} src={SelectAction}
alt="Select feedback button action" alt="Select feedback button action"
quality="100" quality="100"
className="rounded-lg max-w-full sm:max-w-3xl" className="max-w-full rounded-lg sm:max-w-3xl"
/> />
### 6. Last step: Set Recontact Options correctly ### 6. Last step: Set Recontact Options correctly
@@ -127,17 +128,17 @@ Lastly, scroll down to “Recontact Options”. Here you have to choose the corr
src={RecontactOptions} src={RecontactOptions}
alt="Set recontact options" alt="Set recontact options"
quality="100" quality="100"
className="rounded-lg max-w-full sm:max-w-3xl" className="max-w-full rounded-lg sm:max-w-3xl"
/> />
### 7. Congrats! Youre ready to publish your survey 💃 ### 7. Congrats! Youre ready to publish your survey 💃
<Image src={Publish} alt="Publish survey" quality="100" className="rounded-lg max-w-full sm:max-w-3xl" /> <Image src={Publish} alt="Publish survey" quality="100" className="max-w-full rounded-lg sm:max-w-3xl" />
<Note> <Note>
## Formbricks Widget running? ## Formbricks Widget running? You need to have the Formbricks Widget installed to display the Feedback Box
You need to have the Formbricks Widget installed to display the Feedback Box in your app. Please follow [this in your app. Please follow [this tutorial (Step 4 onwards)](/docs/getting-started/quickstart-in-app-survey)
tutorial (Step 4 onwards)](/docs/getting-started/quickstart-in-app-survey) to install the widget. to install the widget.
</Note> </Note>
### ###

View File

@@ -14,7 +14,8 @@ import SelectAction from "./select-action.webp";
export const metadata = { export const metadata = {
title: "Maximize User Interview Participation with In-app Interview Prompts", title: "Maximize User Interview Participation with In-app Interview Prompts",
description: "Engage with your power users seamlessly using Formbricks' In-app Interview Prompt. Ditch traditional email invites and experience way more more respondents. Dive into our comprehensive guide on setting up auto-scheduled interviews today and enhance your user understanding", description:
"Engage with your power users seamlessly using Formbricks' In-app Interview Prompt. Ditch traditional email invites and experience way more more respondents. Dive into our comprehensive guide on setting up auto-scheduled interviews today and enhance your user understanding",
}; };
#### Best Practices #### Best Practices
@@ -42,14 +43,14 @@ Product analytics and in-app surveys are incomplete without user interviews. Set
To display an Interview Prompt in your app you want to proceed as follows: To display an Interview Prompt in your app you want to proceed as follows:
1. Create new Interview Prompt at [app.formbricks.com](http://app.formbricks.com/) 1. Create new Interview Prompt at [app.formbricks.com](https://app.formbricks.com/)
2. Adjust content and settings 2. Adjust content and settings
3. Thats it! 🎉 3. Thats it! 🎉
<Note> <Note>
## Formbricks Widget running? ## Formbricks Widget running? We assume that you have already installed the Formbricks Widget in your web
We assume that you have already installed the Formbricks Widget in your web app. Its required to display messages app. Its required to display messages and surveys in your app. If not, please follow the [Quick Start Guide
and surveys in your app. If not, please follow the [Quick Start Guide (15mins).](/docs/getting-started/quickstart-in-app-survey) (15mins).](/docs/getting-started/quickstart-in-app-survey)
</Note> </Note>
### 1. Create new Interview Prompt ### 1. Create new Interview Prompt
@@ -62,7 +63,7 @@ Click on "Create Survey" and choose the template “Interview Prompt”:
src={CreatePrompt} src={CreatePrompt}
alt="Create interview prompt by template" alt="Create interview prompt by template"
quality="100" quality="100"
className="rounded-lg max-w-full sm:max-w-3xl" className="max-w-full rounded-lg sm:max-w-3xl"
/> />
### 2. Update prompt and CTA ### 2. Update prompt and CTA
@@ -73,7 +74,7 @@ Update the prompt, description and button text to match your products tonality.
src={ChangeText} src={ChangeText}
alt="Change text content" alt="Change text content"
quality="100" quality="100"
className="rounded-lg max-w-full sm:max-w-3xl" className="max-w-full rounded-lg sm:max-w-3xl"
/> />
In the button settings you have to make sure it is set to “External URL”. In the URL field, copy your booking link (e.g. https://cal.com/company/user-interview). If you dont have a booking link yet, head over to [cal.com](http://cal.com) and get one - they have the best free plan out there! In the button settings you have to make sure it is set to “External URL”. In the URL field, copy your booking link (e.g. https://cal.com/company/user-interview). If you dont have a booking link yet, head over to [cal.com](http://cal.com) and get one - they have the best free plan out there!
@@ -82,7 +83,7 @@ In the button settings you have to make sure it is set to “External URL”. In
src={InterviewExample} src={InterviewExample}
alt="Add CSS action" alt="Add CSS action"
quality="100" quality="100"
className="rounded-lg max-w-full sm:max-w-3xl" className="max-w-full rounded-lg sm:max-w-3xl"
/> />
Save, and move over to the “Audience” tab. Save, and move over to the “Audience” tab.
@@ -90,8 +91,8 @@ Save, and move over to the “Audience” tab.
### 3. Pre-segment your audience (coming soon) ### 3. Pre-segment your audience (coming soon)
<Note> <Note>
## Filter by attribute coming soon ## Filter by attribute coming soon We're working on pre-segmenting users by attributes. We will update this
We're working on pre-segmenting users by attributes. We will update this manual in the next few days. manual in the next few days.
</Note> </Note>
Once you clicked over to the “Audience” tab you can change the settings. In the **Who To Send** card, select “Filter audience by attribute”. This allows you to only show the prompt to a specific segment of your user base. Once you clicked over to the “Audience” tab you can change the settings. In the **Who To Send** card, select “Filter audience by attribute”. This allows you to only show the prompt to a specific segment of your user base.
@@ -104,12 +105,12 @@ Great, now only the “Power User” segment will see our Interview Prompt. But
To create the trigger to show your Interview Prompt, go to the “Audience” tab, find the “When to send” card and choose “Add Action”. We will now use our super cool No-Code User Action Tracker: To create the trigger to show your Interview Prompt, go to the “Audience” tab, find the “When to send” card and choose “Add Action”. We will now use our super cool No-Code User Action Tracker:
<Image src={AddAction} alt="Add action" quality="100" className="rounded-lg max-w-full sm:max-w-3xl" /> <Image src={AddAction} alt="Add action" quality="100" className="max-w-full rounded-lg sm:max-w-3xl" />
<Note> <Note>
## You can also add actions in your code ## You can also add actions in your code You can also create [Code Actions](/docs/actions/code) using
You can also create [Code Actions](/docs/actions/code) using `formbricks.track("Eventname")` - they will automatically `formbricks.track("Eventname")` - they will automatically appear in your Actions overview as long as the SDK
appear in your Actions overview as long as the SDK is embedded. is embedded.
</Note> </Note>
Generally, we have two types of user actions: Page views and clicks. The Interview Prompt, youll likely want to display it on a page visit since you already filter who sees the prompt by attributes. Generally, we have two types of user actions: Page views and clicks. The Interview Prompt, youll likely want to display it on a page visit since you already filter who sees the prompt by attributes.
@@ -120,18 +121,18 @@ Generally, we have two types of user actions: Page views and clicks. The Intervi
src={ActionPageurl} src={ActionPageurl}
alt="Add page URL action" alt="Add page URL action"
quality="100" quality="100"
className="rounded-lg max-w-full sm:max-w-3xl" className="max-w-full rounded-lg sm:max-w-3xl"
/> />
2. **innerText & CSS-Selector:** When a user clicks an element (like a button) with a specific text content or CSS selector, the prompt will be displayed as long as the other conditions also match. 2. **innerText & CSS-Selector:** When a user clicks an element (like a button) with a specific text content or CSS selector, the prompt will be displayed as long as the other conditions also match.
<div className="flex max-w-full flex-col sm:max-w-3xl lg:gap-1"> <div className="flex max-w-full flex-col sm:max-w-3xl lg:gap-1">
<Image src={ActionCSS} alt="Add CSS action" quality="100" className="rounded-lg max-w-full sm:max-w-3xl" /> <Image src={ActionCSS} alt="Add CSS action" quality="100" className="max-w-full rounded-lg sm:max-w-3xl" />
<Image <Image
src={ActionInner} src={ActionInner}
alt="Add inner text action" alt="Add inner text action"
quality="100" quality="100"
className="rounded-lg max-w-full sm:max-w-3xl" className="max-w-full rounded-lg sm:max-w-3xl"
/> />
</div> </div>
@@ -141,7 +142,7 @@ Generally, we have two types of user actions: Page views and clicks. The Intervi
src={SelectAction} src={SelectAction}
alt="Select feedback button action" alt="Select feedback button action"
quality="100" quality="100"
className="rounded-lg max-w-full sm:max-w-3xl" className="max-w-full rounded-lg sm:max-w-3xl"
/> />
### 6. Set Recontact Options correctly ### 6. Set Recontact Options correctly
@@ -152,17 +153,17 @@ Scroll down to “Recontact Options”. Here you have to choose the correct sett
src={RecontactOptions} src={RecontactOptions}
alt="Set recontact options" alt="Set recontact options"
quality="100" quality="100"
className="rounded-lg max-w-full sm:max-w-3xl" className="max-w-full rounded-lg sm:max-w-3xl"
/> />
### 7. Congrats! Youre ready to publish your survey 💃 🤸 ### 7. Congrats! Youre ready to publish your survey 💃 🤸
<Image src={Publish} alt="Publish survey" quality="100" className="rounded-lg max-w-full sm:max-w-3xl" /> <Image src={Publish} alt="Publish survey" quality="100" className="max-w-full rounded-lg sm:max-w-3xl" />
<Note> <Note>
## Formbricks Widget running? ## Formbricks Widget running? You need to have the Formbricks Widget installed to display the Feedback Box
You need to have the Formbricks Widget installed to display the Feedback Box in your app. Please follow [this in your app. Please follow [this tutorial (Step 4 onwards)](/docs/getting-started/quickstart-in-app-survey)
tutorial (Step 4 onwards)](/docs/getting-started/quickstart-in-app-survey) to install the widget. to install the widget.
</Note> </Note>
### ###

View File

@@ -11,7 +11,8 @@ import SelectAction from "./select-action.webp";
export const metadata = { export const metadata = {
title: "How to Set Up a Product-Market Fit Survey Using Formbricks - Step-by-Step Guide", title: "How to Set Up a Product-Market Fit Survey Using Formbricks - Step-by-Step Guide",
description: "Learn to leverage Formbricks to create and implement a Product-Market Fit survey in your web app. Follow our detailed step-by-step guide to measure and understand your PMF effectively. Ensure high data quality, efficient triggers, and actionable insights.", description:
"Learn to leverage Formbricks to create and implement a Product-Market Fit survey in your web app. Follow our detailed step-by-step guide to measure and understand your PMF effectively. Ensure high data quality, efficient triggers, and actionable insights.",
}; };
#### Best Practices #### Best Practices
@@ -36,14 +37,14 @@ Measuring and understanding your PMF is essential to build a large, successful b
To display the Product-Market Fit survey in your app you want to proceed as follows: To display the Product-Market Fit survey in your app you want to proceed as follows:
1. Create new Product-Market Fit survey at [app.formbricks.com](http://app.formbricks.com/) 1. Create new Product-Market Fit survey at [app.formbricks.com](https://app.formbricks.com/)
2. Setup pre-segmentation to assure high data quality 2. Setup pre-segmentation to assure high data quality
3. Setup the user action to display survey at good point in time 3. Setup the user action to display survey at good point in time
<Note> <Note>
## Formbricks Widget running? ## Formbricks Widget running? We assume that you have already installed the Formbricks Widget in your web
We assume that you have already installed the Formbricks Widget in your web app. Its required to display messages app. Its required to display messages and surveys in your app. If not, please follow the [Quick Start Guide
and surveys in your app. If not, please follow the [Quick Start Guide (15mins).](/docs/getting-started/quickstart-in-app-survey) (15mins).](/docs/getting-started/quickstart-in-app-survey)
</Note> </Note>
### 1. Create new PMF survey ### 1. Create new PMF survey
@@ -56,7 +57,7 @@ Click on "Create Survey" and choose one of the PMF survey templates. The first o
src={CreateSurvey} src={CreateSurvey}
alt="Create survey by template" alt="Create survey by template"
quality="100" quality="100"
className="rounded-lg max-w-full sm:max-w-3xl" className="max-w-full rounded-lg sm:max-w-3xl"
/> />
### 2. Update questions (if you like) ### 2. Update questions (if you like)
@@ -67,7 +68,7 @@ Youre free to update the question and answer options. However, based on our e
src={ChangeText} src={ChangeText}
alt="Change text content" alt="Change text content"
quality="100" quality="100"
className="rounded-lg max-w-full sm:max-w-3xl" className="max-w-full rounded-lg sm:max-w-3xl"
/> />
_Want to change the button color? You can do so in the product settings!_ _Want to change the button color? You can do so in the product settings!_
@@ -77,8 +78,8 @@ Save, and move over to where the magic happens: The “Audience” tab.
### 3. Pre-segment your audience (coming soon) ### 3. Pre-segment your audience (coming soon)
<Note> <Note>
## Filter by attribute coming soon ## Filter by attribute coming soon We're working on pre-segmenting users by attributes. We will update this
We're working on pre-segmenting users by attributes. We will update this manual in the next days. manual in the next days.
</Note> </Note>
To run this survey properly, you should pre-segment your user base. As touched upon earlier: if you ask every user youll get lots of opinions which are often misleading. You only want to gather feedback from people who invested the time to get to know and use your product: To run this survey properly, you should pre-segment your user base. As touched upon earlier: if you ask every user youll get lots of opinions which are often misleading. You only want to gather feedback from people who invested the time to get to know and use your product:
@@ -96,25 +97,31 @@ This way you make sure that you separate potentially misleading opinions from va
### 4. Set up a trigger for the Product-Market Fit survey: ### 4. Set up a trigger for the Product-Market Fit survey:
You need a trigger to display the survey but in this case, the filtering does all the work. Its up to you to decide to display the survey after the user viewed a specific subpage (pageURL) or after clicking an element. Have a look at the [Actions manual](/docs/actions/why) if you are not sure how to set them up: You need a trigger to display the survey but in this case, the filtering does all the work. Its up to you to decide to display the survey after the user viewed a specific subpage (pageURL) or after clicking an element. Have a look at the [Actions manual](/docs/actions/why) if you are not sure how to set them up:
<Col> <Col>
<div> <div>
<Image src={ActionCSS} alt="Add CSS action" quality="100" className="rounded-lg max-w-full sm:max-w-3xl" /> <Image
<Image src={ActionCSS}
src={ActionPageurl} alt="Add CSS action"
alt="Add inner text action" quality="100"
quality="100" className="max-w-full rounded-lg sm:max-w-3xl"
className="rounded-lg max-w-full sm:max-w-3xl" />
/> <Image
</div> src={ActionPageurl}
alt="Add inner text action"
quality="100"
className="max-w-full rounded-lg sm:max-w-3xl"
/>
</div>
</Col> </Col>
### 5. Select Action in the “When to ask” card ### 5. Select Action in the “When to ask” card
<Col> <Col>
<Image <Image
src={SelectAction} src={SelectAction}
alt="Select PMF trigger button action" alt="Select PMF trigger button action"
quality="100" quality="100"
className="rounded-lg max-w-full sm:max-w-3xl" className="max-w-full rounded-lg sm:max-w-3xl"
/> />
</Col> </Col>
### 6. Last step: Set Recontact Options correctly ### 6. Last step: Set Recontact Options correctly
@@ -124,17 +131,17 @@ Lastly, scroll down to “Recontact Options”. Here you have to choose the corr
src={RecontactOptions} src={RecontactOptions}
alt="Set recontact options" alt="Set recontact options"
quality="100" quality="100"
className="rounded-lg max-w-full sm:max-w-3xl" className="max-w-full rounded-lg sm:max-w-3xl"
/> />
### 7. Congrats! Youre ready to publish your survey 💃 ### 7. Congrats! Youre ready to publish your survey 💃
<Image src={Publish} alt="Publish survey" quality="100" className="rounded-lg max-w-full sm:max-w-3xl" /> <Image src={Publish} alt="Publish survey" quality="100" className="max-w-full rounded-lg sm:max-w-3xl" />
<Note> <Note>
## Formbricks Widget running? ## Formbricks Widget running? You need to have the Formbricks Widget installed to display the Feedback Box
You need to have the Formbricks Widget installed to display the Feedback Box in your app. Please follow [this in your app. Please follow [this tutorial (Step 4 onwards)](/docs/getting-started/quickstart-in-app-survey)
tutorial (Step 4 onwards)](/docs/getting-started/quickstart-in-app-survey) to install the widget. to install the widget.
</Note> </Note>
### ###

View File

@@ -1,21 +1,22 @@
import Image from "next/image"; import Image from "next/image";
import GitpodPorts from "./gitpod/ports.webp";
import GitpodAuth from "./gitpod/auth.webp"; import GitpodAuth from "./gitpod/auth.webp";
import GitpodNewWorkspace from "./gitpod/new-workspace.webp"; import GitpodNewWorkspace from "./gitpod/new-workspace.webp";
import GitpodPorts from "./gitpod/ports.webp";
import GitpodPreparing from "./gitpod/preparing.webp"; import GitpodPreparing from "./gitpod/preparing.webp";
import GitpodRunning from "./gitpod/running.webp"; import GitpodRunning from "./gitpod/running.webp";
import GithubCodespaceNew from "./github-codespaces/new.webp";
import GithubCodespaceLoading from "./github-codespaces/loading.webp";
import GithubCodespaceEnvFile from "./github-codespaces/env.webp"; import GithubCodespaceEnvFile from "./github-codespaces/env.webp";
import GithubCodespaceTerminal from "./github-codespaces/terminal.webp"; import GithubCodespaceLoading from "./github-codespaces/loading.webp";
import GithubCodespaceRun from "./github-codespaces/run.webp"; import GithubCodespaceNew from "./github-codespaces/new.webp";
import GithubCodespacePorts from "./github-codespaces/ports.webp"; import GithubCodespacePorts from "./github-codespaces/ports.webp";
import GithubCodespaceRun from "./github-codespaces/run.webp";
import GithubCodespaceTerminal from "./github-codespaces/terminal.webp";
export const metadata = { export const metadata = {
title: "Formbricks Development Setup: Complete Guide to Local Environment Configuration for Dev", title: "Formbricks Development Setup: Complete Guide to Local Environment Configuration for Dev",
description: description:
"Step-by-step guide to setting up a development environment for Formbricks. We officially support Gitpod and Github Codespaces for quick setup.", "Step-by-step guide to setting up a development environment for Formbricks. We officially support Gitpod and Github Codespaces for quick setup. Our advanced users can also setup Formbricks locally on their machine.",
}; };
#### Contributing #### Contributing
@@ -25,28 +26,29 @@ export const metadata = {
We currently officially support the below methods to set up your development environment for Formbricks. We currently officially support the below methods to set up your development environment for Formbricks.
<Note> <Note>
Both the below cloud IDEs have a **generous free tier** to explore and develop! But make sure to Both the below cloud IDEs have a **generous free tier** to explore and develop! But make sure to not overuse
not overuse the machines as Formbricks will not be responsible for any charges incurred. the machines as Formbricks will not be responsible for any charges incurred.
</Note> </Note>
### [GitPod](#gitpod) ### [GitPod](#gitpod)
This will open a fully configured workspace in your browser with all the necessary dependencies already installed. Click the button below to open this project in Gitpod:
This will open a fully configured workspace in your browser with all the necessary dependencies already installed. Click the button below to open this project in Gitpod. For a detailed guide, visit the [Gitpod Setup Guide](#gitpod-guide) section below.
[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://Github.com/formbricks/formbricks) [![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://Github.com/formbricks/formbricks)
For a detailed guide, visit the [Gitpod Setup Guide](#gitpod-guide) section below.
### [Github Codespaces](#Github-codespaces) ### [Github Codespaces](#Github-codespaces)
This will open a Github VSCode Interface on the cloud for you. This setup will have the Formbricks codebase and all the dependencies installed. Click the button below to configure your instance and open the project in Github Codespaces:
This will open a Github VSCode Interface on the cloud for you. This setup will have the Formbricks codebase and all the dependencies installed. Click the button below to configure your instance and open the project in Github Codespaces. For a detailed guide, visit the [Github Codespaces Setup Guide](#github-codespaces-guide) section below.
[![Open in Github Codespaces](https://img.shields.io/badge/Open%20in-Github%20Codespaces-blue?logo=Github)](https://Github.com/codespaces/new?machine=standardLinux32gb&repo=500289888&ref=main&devcontainer_path=.devcontainer%2Fdevcontainer.json&location=EastUs2) [![Open in Github Codespaces](https://img.shields.io/badge/Open%20in-Github%20Codespaces-blue?logo=Github)](https://Github.com/codespaces/new?machine=standardLinux32gb&repo=500289888&ref=main&devcontainer_path=.devcontainer%2Fdevcontainer.json&location=EastUs2)
### [Local Machine](#local-machine-setup)
For a detailed guide, visit the [Github Codespaces Setup Guide](#github-codespaces-guide) section below. This will install the Formbricks codebase and all the dependencies on your local machine. Note that this method is recommended **only for advanced users**. If you're an advanced user, access the steps for [Local Machine Setup here](#local-machine-setup).
<Note> <Note>
For a smooth experience, we suggest the above recommended methods. For a smooth experience, we suggest the above cloud IDE methods. Assistance with setup issues on your local
Assistance with setup issues on your local machine may be limited due to varying factors like OS and permissions. machine may be limited due to varying factors like OS and permissions.
</Note> </Note>
## Gitpod Guide ## Gitpod Guide
@@ -54,16 +56,16 @@ Assistance with setup issues on your local machine may be limited due to varying
**Building custom image for the workspace:** **Building custom image for the workspace:**
- This includes : Installing `yq` and `turbo` globally before the workspace starts. This is accomplished within the `.gitpod.Dockerfile` along with starting upon a base custom image building on [workspace-full](https://hub.docker.com/r/gitpod/workspace-full/dockerfile). - This includes : Installing `yq` and `turbo` globally before the workspace starts. This is accomplished within the `.gitpod.Dockerfile` along with starting upon a base custom image building on [workspace-full](https://hub.docker.com/r/gitpod/workspace-full/dockerfile).
**Initialization of Formbricks:** **Initialization of Formbricks:**
- During the prebuilds phase, we initialize Formbricks by performing the following tasks: - During the prebuilds phase, we initialize Formbricks by performing the following tasks:
1. Setting up environment variables. 1. Setting up environment variables.
2. Installing monorepo dependencies. 2. Installing monorepo dependencies.
3. Installing Docker images by extracting them from the `packages/database/docker-compose.yml` file. 3. Installing Docker images by extracting them from the `packages/database/docker-compose.yml` file.
4. Building the @formbricks/js component. 4. Building the @formbricks/js component.
- When the workspace starts: - When the workspace starts:
1. Wait for the web and demo apps to launch on Gitpod. This automatically opens the `apps/demo/.env` file. Utilize dynamic localhost URLs (e.g., `localhost:3000` for signup and `localhost:8025` for email confirmation) to configure `NEXT_PUBLIC_FORMBRICKS_ENVIRONMENT_ID`. After creating your account and finding the `ID` in the URL at `localhost:3000`, replace `YOUR_ENVIRONMENT_ID` in the `.env` file located in `app/demo`. 1. Wait for the web and demo apps to launch on Gitpod. This automatically opens the `apps/demo/.env` file. Utilize dynamic localhost URLs (e.g., `localhost:3000` for signup and `localhost:8025` for email confirmation) to configure `NEXT_PUBLIC_FORMBRICKS_ENVIRONMENT_ID`. After creating your account and finding the `ID` in the URL at `localhost:3000`, replace `YOUR_ENVIRONMENT_ID` in the `.env` file located in `app/demo`.
**Web Component Initialization:** **Web Component Initialization:**
- we initialize the @formbricks/web component during prebuilds. This involves: - we initialize the @formbricks/web component during prebuilds. This involves:
1. Installing build dependencies for the `@formbricks/web#go` task from turbo.json in prebuilds to save time. 1. Installing build dependencies for the `@formbricks/web#go` task from turbo.json in prebuilds to save time.
2. Starting PostgreSQL and Mailhog containers for running migrations in prebuilds. 2. Starting PostgreSQL and Mailhog containers for running migrations in prebuilds.
@@ -73,95 +75,131 @@ Assistance with setup issues on your local machine may be limited due to varying
2. Replacing `NEXT_PUBLIC_WEBAPP_URL` and `NEXTAUTH_URL` to take in Gitpod URL's ports when running on VSCode browser. 2. Replacing `NEXT_PUBLIC_WEBAPP_URL` and `NEXTAUTH_URL` to take in Gitpod URL's ports when running on VSCode browser.
3. Starting the `@formbricks/web` dev environment. 3. Starting the `@formbricks/web` dev environment.
**Demo Component Initialization:** **Demo Component Initialization:**
- Similar to the web component, the demo component is also initialized during prebuilds. This includes: - Similar to the web component, the demo component is also initialized during prebuilds. This includes:
1. Installing build dependencies for the `formbricks/demo#go` task from turbo.json in prebuilds to save time. 1. Installing build dependencies for the `formbricks/demo#go` task from turbo.json in prebuilds to save time.
2. Caching hits and replaying builds from the `@formbricks/js` component. 2. Caching hits and replaying builds from the `@formbricks/js` component.
- When the workspace starts: - When the workspace starts:
1. Initializing environment variables. 1. Initializing environment variables.
2. Replaces `NEXT_PUBLIC_FORMBRICKS_API_HOST` to take in Gitpod URL's ports when running on VSCode browser. 2. Replaces `NEXT_PUBLIC_FORMBRICKS_API_HOST` to take in Gitpod URL's ports when running on VSCode browser.
3. Starting the `@formbricks/demo` dev environment. 3. Starting the `@formbricks/demo` dev environment.
**Github Prebuilds Configuration:** **Github Prebuilds Configuration:**
- This configures Github Prebuilds for the master branch, pull requests, and adding comments. This helps automate the prebuild process for the specified branches and actions. - This configures Github Prebuilds for the master branch, pull requests, and adding comments. This helps automate the prebuild process for the specified branches and actions.
**VSCode Extensions:** **VSCode Extensions:**
- This includes a list of VSCode extensions that are added to the configuration when using Gitpod. These extensions can enhance the development experience within Gitpod. - This includes a list of VSCode extensions that are added to the configuration when using Gitpod. These extensions can enhance the development experience within Gitpod.
### 1. Browser Redirection ### 1. Browser Redirection
After clicking the one-click setup button, Gitpod will open a new tab or window. Please ensure that your browser allows redirection to successfully access the services: After clicking the one-click setup button, Gitpod will open a new tab or window. Please ensure that your browser allows redirection to successfully access the services:
### 2. Authorizing in Gitpod ### 2. Authorizing in Gitpod
<Image src={GitpodAuth} alt="Gitpod Auth Page" quality="100" className="rounded-lg max-w-full sm:max-w-3xl" />
- This is the Gitpod Authentication Page. It appears when you click the "Open in GitPod" button and Gitpod needs to authenticate your access to the workspace. Click on 'Continue With Github' to authorize your GitPod session. <Image src={GitpodAuth} alt="Gitpod Auth Page" quality="100" className="max-w-full rounded-lg sm:max-w-3xl" />-
This is the Gitpod Authentication Page. It appears when you click the "Open in GitPod" button and Gitpod needs
to authenticate your access to the workspace. Click on 'Continue With Github' to authorize your GitPod session.
### 3. Creating a New Workspace ### 3. Creating a New Workspace
<Image src={GitpodNewWorkspace} alt="Gitpod New workspace Page" quality="100" className="rounded-lg max-w-full sm:max-w-3xl" />
- After authentication, Gitpod asks to create a new workspace for you. This page displays the configurations of your workspace.
- You can use either choose either VS Code Browser or VS Code Desktop editor with the 'Standard Class' for your workspace class.
- If you opt for the VS Code Desktop, follow the following steps
1. Gitpod will prompt you to grant access to the VSCode app. Once approved, install the GitPod extension from the VSCode Marketplace and follow the prompts to authorize the integration.
2. Change the `WEBAPP_URL` and the `NEXTAUTH_URL` to `https://localhost:3000`
<Image
src={GitpodNewWorkspace}
alt="Gitpod New workspace Page"
quality="100"
className="max-w-full rounded-lg sm:max-w-3xl"
/>
- After authentication, Gitpod asks to create a new workspace for you. This page displays the configurations of
your workspace. - You can use either choose either VS Code Browser or VS Code Desktop editor with the 'Standard
Class' for your workspace class. - If you opt for the VS Code Desktop, follow the following steps 1. Gitpod will
prompt you to grant access to the VSCode app. Once approved, install the GitPod extension from the VSCode Marketplace
and follow the prompts to authorize the integration. 2. Change the `WEBAPP_URL` and the `NEXTAUTH_URL` to `https://localhost:3000`
### 4. Gitpod preparing the created Workspace ### 4. Gitpod preparing the created Workspace
<Image src={GitpodPreparing} alt="Gitpod Preparing workspace Page" quality="100" className="rounded-lg max-w-full sm:max-w-3xl" />
- Gitpod is preparing your workspace with all the necessary dependencies and configurations. You will see this page while Gitpod sets up your development environment. <Image
src={GitpodPreparing}
alt="Gitpod Preparing workspace Page"
quality="100"
className="max-w-full rounded-lg sm:max-w-3xl"
/>
- Gitpod is preparing your workspace with all the necessary dependencies and configurations. You will see this
page while Gitpod sets up your development environment.
### 5. Gitpod running the Workspace ### 5. Gitpod running the Workspace
<Image src={GitpodRunning} alt="Gitpod Running Workspace Page" quality="100" className="rounded-lg max-w-full sm:max-w-3xl" />
- Once the workspace is fully prepared, voila, it enters the running state. You can start working on your project in this environment. <Image
src={GitpodRunning}
alt="Gitpod Running Workspace Page"
quality="100"
className="max-w-full rounded-lg sm:max-w-3xl"
/>
- Once the workspace is fully prepared, voila, it enters the running state. You can start working on your project
in this environment.
### Ports and Services ### Ports and Services
Here are the ports and corresponding URLs for the services within your Gitpod environment: Here are the ports and corresponding URLs for the services within your Gitpod environment:
- **Port 3000**: - **Port 3000**:
- **Service**: Demo App
- **Description**: This port hosts the demo application of your project. You can access and interact with your application's demo by navigating to this port. - **Service**: Demo App
- **Description**: This port hosts the demo application of your project. You can access and interact with your application's demo by navigating to this port.
- **Port 3001**: - **Port 3001**:
- **Service**: Formbricks website
- **Description**: This port hosts the [Formbricks](https://formbricks.com) website, which contains documents, pricing, blogs, best practices, and concierge service. - **Service**: Formbricks website
- **Description**: This port hosts the [Formbricks](https://formbricks.com) website, which contains documents, pricing, blogs, best practices, and concierge service.
- **Port 3002**: - **Port 3002**:
- **Service**: Formbricks In-product Survey Demo App
- **Description**: This app helps you test your in-app surveys. You can create and test user actions, create and update user attributes, etc. - **Service**: Formbricks In-product Survey Demo App
- **Description**: This app helps you test your in-app surveys. You can create and test user actions, create and update user attributes, etc.
- **Port 5432**: - **Port 5432**:
- **Service**: PostgreSQL Database Server
- **Description**: The PostgreSQL DB is hosted on this port. - **Service**: PostgreSQL Database Server
- **Description**: The PostgreSQL DB is hosted on this port.
- **Port 1025**: - **Port 1025**:
- **Service**: SMPT server
- **Description**: SMTP Server for sending and receiving email messages. This server is responsible for handling email communication. - **Service**: SMPT server
- **Description**: SMTP Server for sending and receiving email messages. This server is responsible for handling email communication.
- **Port 8025**: - **Port 8025**:
- **Service**: Mailhog - **Service**: Mailhog
### Accessing port URLs ### Accessing port URLs
1. **Direct URL Composition**:
- You can access the dedicated port URL by pre-pending the port number to the workspace URL.
- For example, if you want to access port 3000, you can use the URL format: `3000-yourworkspace.ws-eu45.gitpod.io`.
2. **Using [gp CLI](https://www.gitpod.io/docs/references/gitpod-cli)**: 1. **Direct URL Composition**:
- Gitpod provides a convenient command, `gp url`, to quickly retrieve the URL for a specific port.
- Simply use the command followed by the desired port number. For example, to get the URL for port 3000, run: `gp url 3000`.
3. **Listing All Open Port URLs**: - You can access the dedicated port URL by pre-pending the port number to the workspace URL.
- If you prefer to see a list of all open port URLs at once, you can use the `gp ports list` command. - For example, if you want to access port 3000, you can use the URL format: `3000-yourworkspace.ws-eu45.gitpod.io`.
- Running this command will display a list of ports along with their corresponding URLs.
4. **Viewing All Ports in Panel**: 2. **Using [gp CLI](https://www.gitpod.io/docs/references/gitpod-cli)**:
- Gitpod also offers a user-friendly 'Ports' tab in the Gitpod panel.
- Click on the 'Ports' tab to view a list of all open ports and their respective URLs.
<Image src={GitpodPorts} alt="Gitpod Ports tab" quality="100" className="rounded-lg max-w-full sm:max-w-3xl" /> - Gitpod provides a convenient command, `gp url`, to quickly retrieve the URL for a specific port.
- Simply use the command followed by the desired port number. For example, to get the URL for port 3000, run: `gp url 3000`.
These URLs and port numbers represent various services and endpoints within your Gitpod environment. You can access and interact with these services by the Port URL for the respective service. 3. **Listing All Open Port URLs**:
- If you prefer to see a list of all open port URLs at once, you can use the `gp ports list` command.
- Running this command will display a list of ports along with their corresponding URLs.
4. **Viewing All Ports in Panel**:
- Gitpod also offers a user-friendly 'Ports' tab in the Gitpod panel.
- Click on the 'Ports' tab to view a list of all open ports and their respective URLs.
{" "}
<Image
src={GitpodPorts}
alt="Gitpod Ports tab"
quality="100"
className="max-w-full rounded-lg sm:max-w-3xl"
/>
These URLs and port numbers represent various services and endpoints within your Gitpod environment. You can access and interact with these services by the Port URL for the respective service.
--- ---
@@ -169,21 +207,41 @@ Here are the ports and corresponding URLs for the services within your Gitpod en
1. After clicking the one-click setup button, you will be redirected to the Github Codespaces page. Review the configuration and click on the 'Create Codespace' button to create a new Codespace. 1. After clicking the one-click setup button, you will be redirected to the Github Codespaces page. Review the configuration and click on the 'Create Codespace' button to create a new Codespace.
<Image src={GithubCodespaceNew} alt="New Github Codespace" quality="100" className="rounded-lg max-w-full sm:max-w-3xl" /> <Image
src={GithubCodespaceNew}
alt="New Github Codespace"
quality="100"
className="max-w-full rounded-lg sm:max-w-3xl"
/>
2. This will start loading the Codespace. Keep in mind this might take a few minutes to complete depending on your internet connection and the instance availability. 2. This will start loading the Codespace. Keep in mind this might take a few minutes to complete depending on your internet connection and the instance availability.
<Image src={GithubCodespaceLoading} alt="Loading Github Codespace" quality="100" className="rounded-lg max-w-full sm:max-w-3xl" /> <Image
src={GithubCodespaceLoading}
alt="Loading Github Codespace"
quality="100"
className="max-w-full rounded-lg sm:max-w-3xl"
/>
3. Once the Codespace is loaded, you will be redirected to the VSCode editor. You can start working on your project in this environment. 3. Once the Codespace is loaded, you will be redirected to the VSCode editor. You can start working on your project in this environment.
4. Make the changes you want to, and now, to run the app, we first need to configure the .env file. Copy the .env.example and edit the variables as mentioned in the file itself. 4. Make the changes you want to, and now, to run the app, we first need to configure the .env file. Copy the .env.example and edit the variables as mentioned in the file itself.
<Image src={GithubCodespaceEnvFile} alt="Github Codespace Env File" quality="100" className="rounded-lg max-w-full sm:max-w-3xl" /> <Image
src={GithubCodespaceEnvFile}
alt="Github Codespace Env File"
quality="100"
className="max-w-full rounded-lg sm:max-w-3xl"
/>
5. Once you have configured the .env, it's now time to run the app and see the changes. Lets open the terminal first 5. Once you have configured the .env, it's now time to run the app and see the changes. Lets open the terminal first
<Image src={GithubCodespaceTerminal} alt="Github Codespace Open Terminal" quality="100" className="rounded-lg max-w-full sm:max-w-3xl" /> <Image
src={GithubCodespaceTerminal}
alt="Github Codespace Open Terminal"
quality="100"
className="max-w-full rounded-lg sm:max-w-3xl"
/>
6. Now, run the following command to run the app 6. Now, run the following command to run the app
@@ -197,7 +255,12 @@ pnpm dev
</CodeGroup> </CodeGroup>
</Col> </Col>
<Image src={GithubCodespaceRun} alt="Run on Github Codespace" quality="100" className="rounded-lg max-w-full sm:max-w-3xl" /> <Image
src={GithubCodespaceRun}
alt="Run on Github Codespace"
quality="100"
className="max-w-full rounded-lg sm:max-w-3xl"
/>
7. Monitor the logs in the terminal and once you see the following, you are good to go! 7. Monitor the logs in the terminal and once you see the following, you are good to go!
@@ -210,7 +273,7 @@ pnpm dev
@formbricks/web:dev: - Environments: .env @formbricks/web:dev: - Environments: .env
@formbricks/web:dev: - Experiments (use at your own risk): @formbricks/web:dev: - Experiments (use at your own risk):
@formbricks/web:dev: · serverActions @formbricks/web:dev: · serverActions
@formbricks/web:dev: @formbricks/web:dev:
@formbricks/web:dev: ✓ Ready in 9.4s @formbricks/web:dev: ✓ Ready in 9.4s
``` ```
@@ -219,10 +282,123 @@ pnpm dev
8. Right next to the Terminal, you will see a **Ports** tab, click on it to see the ports and their respective URLs. Now access the Forwarded Address for port 3000 and you should be able to visit your Formbricks App! 8. Right next to the Terminal, you will see a **Ports** tab, click on it to see the ports and their respective URLs. Now access the Forwarded Address for port 3000 and you should be able to visit your Formbricks App!
<Image src={GithubCodespacePorts} alt="Github Codespace Ports" quality="100" className="rounded-lg max-w-full sm:max-w-3xl" /> <Image
src={GithubCodespacePorts}
alt="Github Codespace Ports"
quality="100"
className="max-w-full rounded-lg sm:max-w-3xl"
/>
Now make the changes you want to and see them live in action! Now make the changes you want to and see them live in action!
--- ---
Still cant figure it out? Join our [Discord](https://discord.com/invite/3YFcABF2Ts)! ## Local Machine Setup
<Note>
The below only works for **Mac**, **Linux** & **WSL2** on Windows (not on pure Windows)!
This method is recommended **only for advanced users** & we won't be able to provide official support for this.
</Note>
To get the project running locally on your machine you need to have the following development tools installed:
- Node.JS (we recommend v20)
- [pnpm](https://pnpm.io/)
- [Docker](https://www.docker.com/) (to run PostgreSQL / MailHog)
1. Clone the project & move into the directory:
<Col>
<CodeGroup title="Git clone Formbricks monorepo">
```bash
git clone https://github.com/formbricks/formbricks && cd formbricks
```
</CodeGroup>
</Col>
2. Install Node.JS packages via pnpm. Don't have pnpm? Get it [here](https://pnpm.io/installation)
<Col>
<CodeGroup title="Install dependencies via pnpm">
```bash
pnpm install
```
</CodeGroup>
</Col>
3. Create a `.env` file based on `.env.example`. It's already preset to work with the local development setup but you can also change values if needed.
<Col>
<CodeGroup title="Define environment variables">
```bash
cp .env.example .env
```
</CodeGroup>
</Col>
4. Generate & set some secret values mandatory for the ENCRYPTION_KEY & NEXTAUTH_SECRET in the .env file. You can use the following command to generate the random string of required length:
<Col>
<CodeGroup title="Set value of ENCRYPTION_KEY">
```bash
sed -i '/^ENCRYPTION_KEY=/c\ENCRYPTION_KEY='$(openssl rand -hex 32) .env
sed -i '/^NEXTAUTH_SECRET=/c\NEXTAUTH_SECRET='$(openssl rand -hex 32) .env
```
</CodeGroup>
</Col>
5. Make sure you have [`Docker`](https://docs.docker.com/compose/) & [`docker-compose`](https://docs.docker.com/compose/) installed and running on your machine. Then run the following command to start the Formbricks dev setup:
<Col>
<CodeGroup title="Start Formbricks Dev Setup">
```bash
pnpm go
```
</CodeGroup>
</Col>
This starts the Formbricks main app (plus all its dependencies) as well as the following services using Docker:
- a `postgres` container for hosting your database,
- a `mailhog` container that acts as a mock SMTP server and shows received mails in a web UI (forwarded to your host's `localhost:8025`)
- Demo App at [http://localhost:3002](http://localhost:3002)
- Landing Page at [http://localhost:3001](http://localhost:3001)
**You can now access the Formbricks app on [http://localhost:3000](http://localhost:3000)**. You will be automatically redirected to the login. To use your local installation of formbricks, create a new account.
{" "}
<Note>
A fresh setup does not have a default account. Please create a new account and proceed accordingly.
</Note>
For viewing the emails sent by the system, you can access mailhog at [http://localhost:8025](http://localhost:8025)
### Build
To build all apps and packages and check for build errors, run the following command:
<Col>
<CodeGroup title="Build Formbricks stack">
```bash
pnpm build
```
</CodeGroup>
</Col>
---
Still cant figure it out? Join our [Discord](https://discord.com/invite/3YFcABF2Ts)!

View File

@@ -1,9 +1,10 @@
import { Libraries } from "@/components/docs/Libraries"; import { Libraries } from "@/components/docs/Libraries";
import Image from "next/image"; import Image from "next/image";
import SetupChecklist from "./env-id.webp"; import SetupChecklist from "./env-id.webp";
import WidgetNotConnected from "./widget-not-connected.webp";
import WidgetConnected from "./widget-connected.webp";
import ReactApp from "./react-in-app-survey-app-popup-form.webp"; import ReactApp from "./react-in-app-survey-app-popup-form.webp";
import WidgetConnected from "./widget-connected.webp";
import WidgetNotConnected from "./widget-not-connected.webp";
export const metadata = { export const metadata = {
title: "Integrate Formbricks: Comprehensive Framework Guide & Integration Tutorial", title: "Integrate Formbricks: Comprehensive Framework Guide & Integration Tutorial",
@@ -45,7 +46,7 @@ All you need to do is copy a `<script>` tag to your HTML head, and thats abou
```html {{ title: 'index.html' }} ```html {{ title: 'index.html' }}
<!-- START Formbricks Surveys --> <!-- START Formbricks Surveys -->
<script type="text/javascript"> <script type="text/javascript">
!function(){var t=document.createElement("script");t.type="text/javascript",t.async=!0,t.src="https://unpkg.com/@formbricks/js@^1.2.0/dist/index.umd.js";var e=document.getElementsByTagName("script")[0];e.parentNode.insertBefore(t,e),setTimeout(function(){window.formbricks.init({environmentId: "<your-environment-id>", apiHost: "<api-host>"})},500)}(); !function(){var t=document.createElement("script");t.type="text/javascript",t.async=!0,t.src="https://unpkg.com/@formbricks/js@^1.4.0/dist/index.umd.js";var e=document.getElementsByTagName("script")[0];e.parentNode.insertBefore(t,e),setTimeout(function(){window.formbricks.init({environmentId: "<your-environment-id>", apiHost: "<api-host>"})},500)}();
</script> </script>
<!-- END Formbricks Surveys --> <!-- END Formbricks Surveys -->
``` ```
@@ -222,9 +223,10 @@ Refer to our [Example NextJS App Directory project](https://github.com/formbrick
```tsx {{ title: 'Typescript' }} ```tsx {{ title: 'Typescript' }}
// other import // other import
import formbricks from "@formbricks/js";
import { useEffect } from "react";
import { useRouter } from "next/router"; import { useRouter } from "next/router";
import { useEffect } from "react";
import formbricks from "@formbricks/js";
if (typeof window !== "undefined") { if (typeof window !== "undefined") {
formbricks.init({ formbricks.init({
@@ -386,6 +388,43 @@ To this:
className="max-w-full rounded-lg sm:max-w-3xl" className="max-w-full rounded-lg sm:max-w-3xl"
/> />
## Overwrite CSS Styles for In-App Surveys
You can overwrite the default CSS styles for the in-app surveys by adding the following CSS to your global CSS file (eg. `globals.css`):
Make sure that you do not change the CSS variable names as they are used by Formbricks to identify the CSS variables. You can change the values to your liking. We have filled in some sample values for you to change according to your desired appearance.
<Col>
<CodeGroup title="Overwrite Formbricks CSS">
```css
/* Formbricks CSS */
--fb-brand-color: red;
--fb-brand-text-color: white;
--fb-border-color: green;
--fb-border-color-highlight: rgb(13, 13, 12);
--fb-focus-color: red;
--fb-heading-color: yellow;
--fb-subheading-color: green;
--fb-info-text-color: orange;
--fb-signature-text-color: blue;
--fb-survey-background-color: black;
--fb-accent-background-color: rgb(13, 13, 12);
--fb-accent-background-color-selected: red;
--fb-placeholder-color: white;
--fb-shadow-color: var(--fb-brand-color);
--fb-rating-fill: rgb(13, 13, 12);
--fb-rating-hover: green;
--fb-back-btn-border: blue;
--fb-submit-btn-border: transparent;
--fb-rating-selected: black;
```
</CodeGroup>
</Col>
We have an example of this in our [Demo project](https://github.com/formbricks/formbricks/blob/main/apps/demo/styles/globals.css.) here.
**Cant figure it out? [Join our Discord!](https://formbricks.com/discord)** **Cant figure it out? [Join our Discord!](https://formbricks.com/discord)**
--- ---

View File

@@ -10,8 +10,9 @@ import DeleteConnection from "./delete-connection.webp";
import Image from "next/image"; import Image from "next/image";
export const metadata = { export const metadata = {
title: "n8n Setup", title: "Google Sheets",
description: "Wire up Formbricks with n8n and 350+ other apps", description:
"The Google Sheets integration allows you to automatically send responses to a Google Sheet of your choice.",
}; };
#### Integrations #### Integrations
@@ -62,7 +63,7 @@ Before the next step, make sure that you have a Formbricks Survey with at least
</Note> </Note>
6. Now click on the "Link New Sheet" button to link a new Google Sheet with Formbricks and a modal will open up. 5. Now click on the "Link New Sheet" button to link a new Google Sheet with Formbricks and a modal will open up.
<Image <Image
src={LinkSurveyWithSheet} src={LinkSurveyWithSheet}
@@ -71,17 +72,16 @@ Before the next step, make sure that you have a Formbricks Survey with at least
className="max-w-full rounded-lg sm:max-w-3xl" className="max-w-full rounded-lg sm:max-w-3xl"
/> />
7. Select the Google Sheet you want to link with Formbricks and the Survey. On doing so, you will be asked with what questions' responses you want to feed in the Google Sheet. Select the questions and click on the "Link Sheet" button. 6. Select the Google Sheet you want to link with Formbricks and the Survey. On doing so, you will be asked with what questions' responses you want to feed in the Google Sheet. Select the questions and click on the "Link Sheet" button.
<Image <Image
src={LinkWithQuestions} src={LinkWithQuestions}
alt="Select question to link with Google Sheet" alt="Select question to link with Google Sheet"
quality="100" quality="100"
className="max-w-full rounded-lg sm:max-w-3xl" className="max-w-full rounded-lg sm:max-w-3xl"
/> />
8. On submitting, the modal will close and you will see the linked Google Sheet in the list of linked Google Sheets. 7. On submitting, the modal will close and you will see the linked Google Sheet in the list of linked Google Sheets.
<Image <Image
src={ListLinkedSurveys} src={ListLinkedSurveys}

Binary file not shown.

After

Width:  |  Height:  |  Size: 653 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 498 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 386 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 836 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 384 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 462 KiB

View File

@@ -0,0 +1,126 @@
import IntegrationsTab from "./images/integrations-tab.png";
import ConnectWithNotion from "./images/connect-with-notion.png";
import NotionConnected from "./images/notion-connected.png";
import LinkSurveyWithDatabase from "./images/link-survey-with-database.png";
import LinkWithDatabases from "./images/link-with-databases.png";
import ListLinkedDatabases from "./images/list-linked-databases.png";
import DeleteConnection from "./images/delete-connection.png";
import Image from "next/image";
export const metadata = {
title: "Notion",
description:
"The notion integration allows you to automatically send responses to a Notion database of your choice.",
};
#### Integrations
# Notion
The notion integration allows you to automatically send responses to a Notion database of your choice.
<Note>
This feature is enabled by default in Formbricks Cloud but needs to be self-configured when running a
self-hosted version of Formbricks.
</Note>
## Formbricks Cloud
1. Go to the Integrations tab in your [Formbricks Cloud dashboard](https://app.formbricks.com/) and click on the "Connect" button under Notion integration.
<Image
src={IntegrationsTab}
alt="Formbricks Integrations Tab"
quality="100"
className="max-w-full rounded-lg sm:max-w-3xl"
/>
2. Now click on the "Connect with Notion" button to authenticate yourself with Notion.
<Image
src={ConnectWithNotion}
alt="Connect Formbricks with your Notion account"
quality="100"
className="max-w-full rounded-lg sm:max-w-3xl"
/>
3. You will now be taken to the Notion OAuth page where you can select the Notion account you want to use for the integration
4. Once you have selected the account and databases and completed the authentication and authorization process, you will be taken back to Formbricks Cloud and see the connected status as below:
<Image
src={NotionConnected}
alt="Formbricks is now connected with Notion"
quality="100"
className="max-w-full rounded-lg sm:max-w-3xl"
/>
<Note>
Before the next step, make sure that you have a Formbricks Survey with at least one question and a Notion
database in the Notion account you integrated.
</Note>
5. Now click on the "Link New Database" button to link a new Notion database with Formbricks and a modal will open up.
<Image
src={LinkSurveyWithDatabase}
alt="Link Formbricks with a Notion database"
quality="100"
className="max-w-full rounded-lg sm:max-w-3xl"
/>
6. Select the Notion database you want to link with Formbricks and the Survey. On doing so, you will be asked to map formbricks' survey questions with selected databases' column. Complete the mapping and click on the "Link Database" button.
<Image
src={LinkWithDatabases}
alt="Question to notion database column mapping"
quality="100"
className="max-w-full rounded-lg sm:max-w-3xl"
/>
7. On submitting, the modal will close and you will see the linked Notion database in the list of linked Notion databases.
<Image
src={ListLinkedDatabases}
alt="List of linked notion databases"
quality="100"
className="max-w-full rounded-lg sm:max-w-3xl"
/>
Congratulations! You have successfully linked a Notion database with Formbricks. Now whenever a response is submitted for the linked Survey, it will be automatically added to the linked Notion database.
## Setup in self-hosted Formbricks
Enabling the Notion Integration in a self-hosted environment requires a setup using Notion account and changing the environment variables of your Formbricks instance.
1. Sign up for a [Notion](https://www.notion.so/) account, if you don't have one already.
2. Go to the [my integrations](https://www.notion.so/my-integrations) page and click on **New integration**.
3. Fill up the basic information like **Name**, **Logo** and click on **Submit**.
4. Now, click on **Distribution** tab on the sidebar. A text will appear which will ask you to make the integration public. Click on that toggle button. A form will appear below the text.
5. Now provide it the details such as requested. Under **Redirect URIs** field:
- If you are running formbricks locally, you can enter `http://localhost:3000/api/v1/integrations/notion/callback`.
- Or, you can enter `https://<your-public-facing-url>/api/v1/integrations/notion/callback`
6. Once you've filled all the necessary details, click on **Submit**.
7. A screen will appear which will have **Client ID**, **Client secret** and **Authorization URL**. Copy them and set them as the environment variables in your Formbricks instance as:
- `NOTION_OAUTH_CLIENT_ID` - OAuth Client ID
- `NOTION_OAUTH_CLIENT_SECRET` - OAuth Client Secret
Voila! You have successfully enabled the Notion integration in your self-hosted Formbricks instance. Now you can follow the steps mentioned in the [Formbricks Cloud](#formbricks-cloud) section to link a Notion database with Formbricks.
## Remove Integration with Notion Account
To remove the integration with Notion Account,
1. Visit the Integrations tab in your Formbricks Cloud dashboard.
2. Select "Manage" button in the Notion card.
3. Click on the "Connected with `<your-workspace-name-here`> Workspace" just before the "Link new Database" button.
4. It will now ask for a confirmation to remove the integration. Click on the "Delete" button to remove the integration. You can always come back and connect again with the same Notion Account.
<Image
src={DeleteConnection}
alt="Delete Notion Integration with Formbricks"
quality="100"
className="max-w-full rounded-lg sm:max-w-3xl"
/>
Still struggling or something not working as expected? [Join our Discord!](https://formbricks.com/discord) and we'd be glad to assist you!

Binary file not shown.

After

Width:  |  Height:  |  Size: 51 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 94 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 76 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 88 KiB

View File

@@ -0,0 +1,133 @@
import Image from "next/image";
import Img1 from "./1-wordpress-targeted-survey-on-website-free.webp";
import Img2 from "./2-run-website-survey-wordpress-targeted-for-free.webp";
import Img3 from "./3-wordpress-setup-survey-on-website-targeted-free-open-source.webp";
import Img4 from "./4-wordpress-website-survey-target-visitor-free.webp";
import Img5 from "./step-4-copy-to-wordpress-for-free-targeted-survey.webp";
import Img6 from "./6-targeted-survey-on-wordpress-website-for-free.webp";
import Img7 from "./7-wordpress-free-hotjar-survey-open-source-website-survey-hotjar.webp";
export const metadata = {
title: "Run targeted surveys on your WordPress page",
description:
"Target specific visitors with a survey on your WordPress page using Formbricks for free. Show survey on specific page or on button click.",
};
#### WordPress
# Connect Formbricks with your WordPress page
If you want to run a targeted survey on your WordPress website, Formbricks is the way to go! With our generous free plan and open source tech, you get everything you need to get started and keep full control over your data.
## TLDR
1. Install the Formbricks WordPress plugin
2. Create a [free Formbricks account](https://app.formbricks.com/auth/signup)
3. Find and copy the `environment id`
4. Copy the environment id into the right field in the plugin settings
5. Create survey on trigger “New Session” to test it
## Step 1: Install the Formbricks WordPress plugin
As long as the Formbricks plugin is in review, please download it from our [GitHub repository directly.](https://github.com/formbricks/wordpress)
<Image
src={Img1}
alt="Run targeted website survye on any WordPress site"
quality="100"
className="max-w-full rounded-lg sm:max-w-3xl"
/>
## Step 2: Create a Formbricks Account
This is super straight forward: Go to [app.formbricks.com/auth/signup](https://app.formbricks.com/auth/signup), create the account, verify your email and youre in!
When you see this screen, youre there:
<Image
src={Img2}
alt="Free HotJar survey alternative open source"
quality="100"
className="max-w-full rounded-lg sm:max-w-3xl"
/>
## Step 3: Find and copy the environmentId
Go to Settings > Setup Checklist where youll find your environmentId:
<Image
src={Img3}
alt="Run targeted surveys for free on WordPress pages"
quality="100"
className="max-w-full rounded-lg sm:max-w-3xl"
/>
## Step 4: Copy the environmentId to the WordPress Plugin Settings
In your WordPress instance, go to the Formbricks Plugin settings and copy the environmentId in the correct field:
<Image
src={Img5}
alt="Free and open source HotJar survey on WordPress page"
quality="100"
className="max-w-full rounded-lg sm:max-w-3xl"
/>
Then click the button at the bottom to see if the connection worked.
<Note>If you dont use our Cloud, you also have to update the API Host</Note>
Great!
## Step 5: Create survey on trigger “New Session”
Now that all is setup, we create a survey to display an example survey. Pick any template here:
<Image
src={Img2}
alt="Free HotJar survey alternative open source"
quality="100"
className="max-w-full rounded-lg sm:max-w-3xl"
/>
Keep the content for now, click on the Settings tab:
<Image
src={Img4}
alt="Free and open source HotJar survey on WordPress page"
quality="100"
className="max-w-full rounded-lg sm:max-w-3xl"
/>
Here we do three things:
1. Change survey type to “In-App Survey”
2. Select trigger “New Session”
3. Publish
<Image
src={Img6}
alt="Open Source survey on targeted website wordpress"
quality="100"
className="max-w-full rounded-lg sm:max-w-3xl"
/>
When you see this page, you did it!
<Image
src={Img7}
alt="Run free an open source targeted survey on any page"
quality="100"
className="max-w-full rounded-lg sm:max-w-3xl"
/>
## Step 6: Reload your page to check out your survey 🤓
You did it! Reload the WordPress page and your survey should appear!
## Doesn't work?
Join our [Discord to get help 🤓](https://formbricks.com/discord)

Binary file not shown.

After

Width:  |  Height:  |  Size: 76 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 37 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

View File

@@ -1,3 +1,11 @@
import Image from "next/image";
import FormBuilder from "./form-builder.webp";
import Targeting from "./targeting.webp";
import Trigger from "./trigger.webp";
import integrations from "./integrations.webp";
import Analytics from "./analytics.webp";
export const metadata = { export const metadata = {
title: "Inside Look: Formbricks In-Product Micro-Surveys", title: "Inside Look: Formbricks In-Product Micro-Surveys",
description: description:
@@ -21,14 +29,49 @@ Formbricks is a powerful platform designed to help you create and manage in-prod
The Form Builder is where you create and customize your micro-surveys. With its intuitive drag-and-drop interface, you can easily add different question types, set response options, and apply your branding to the survey forms. The Form Builder allows you to preview your survey in real-time, ensuring it looks and feels perfect for your users. The Form Builder is where you create and customize your micro-surveys. With its intuitive drag-and-drop interface, you can easily add different question types, set response options, and apply your branding to the survey forms. The Form Builder allows you to preview your survey in real-time, ensuring it looks and feels perfect for your users.
<Image
src={FormBuilder}
alt="Create & Customize Surveys No Code with Formbricks"
quality="100"
className="rounded-lg max-w-full sm:max-w-3xl"
/>
## Targeting & Triggers ## Targeting & Triggers
Formbricks offers fine-grained user targeting and event-based triggers to help you display your surveys to the most relevant audience. Using the platform, you can define user segments based on attributes and behaviors, and set up triggers to show your surveys at specific moments within your product. This ensures that you're capturing the most accurate and valuable feedback possible. Formbricks offers fine-grained user targeting and event-based triggers to help you display your surveys to the most relevant audience. Using the platform, you can define user segments based on attributes and behaviors, and set up triggers to show your surveys at specific moments within your product. This ensures that you're capturing the most accurate and valuable feedback possible.
<Image
src={Targeting}
alt="Targeting & Triggers with Formbricks"
quality="100"
className="rounded-lg w-full sm:max-w-3xl"
/>
<Image
src={Trigger}
alt="Targeting & Triggers with Formbricks"
quality="100"
className="rounded-lg max-w-full sm:max-w-3xl"
/>
## Integration ## Integration
Integrating Formbricks into your web or mobile application is a breeze. With SDKs for popular web frameworks like React, and an HTML snippet for non-framework based websites, you can quickly add Formbricks to your project. The provided code snippets make it easy to initialize the Formbricks widget and configure it to communicate with your backend. Integrating Formbricks into your web or mobile application is a breeze. With SDKs for popular web frameworks like React, and an HTML snippet for non-framework based websites, you can quickly add Formbricks to your project. The provided code snippets make it easy to initialize the Formbricks widget and configure it to communicate with your backend.
<Image
src={integrations}
alt="Integrations with Formbricks"
quality="100"
className="rounded-lg max-w-full sm:max-w-3xl"
/>
## Analytics & Insights ## Analytics & Insights
Formbricks provides powerful analytics and insights to help you understand user responses and make data-driven decisions. The platform aggregates survey results and presents them in an easy-to-understand format, enabling you to identify trends, spot issues, and uncover opportunities for improvement. With Formbricks, you're always one step ahead in understanding your users and optimizing your product experience. Formbricks provides powerful analytics and insights to help you understand user responses and make data-driven decisions. The platform aggregates survey results and presents them in an easy-to-understand format, enabling you to identify trends, spot issues, and uncover opportunities for improvement. With Formbricks, you're always one step ahead in understanding your users and optimizing your product experience.
<Image
src={Analytics}
alt="Analytics & Insights with Formbricks"
quality="100"
className="rounded-lg max-w-full sm:max-w-3xl"
/>

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

View File

@@ -1,9 +1,7 @@
import glob from "fast-glob";
import { Providers } from "@/app/providers"; import { Providers } from "@/app/providers";
import { Layout } from "@/components/docs/Layout"; import { Layout } from "@/components/docs/Layout";
import { type Section } from "@/components/docs/SectionProvider"; import { type Section } from "@/components/docs/SectionProvider";
import glob from "fast-glob";
import { type Metadata } from "next"; import { type Metadata } from "next";
export const metadata: Metadata = { export const metadata: Metadata = {

View File

@@ -242,8 +242,10 @@ These variables can be provided at the runtime i.e. in your docker-compose file.
| TELEMETRY_DISABLED | Disables telemetry if set to `1`. | optional | | | TELEMETRY_DISABLED | Disables telemetry if set to `1`. | optional | |
| INSTANCE_ID | Instance ID for Formbricks Cloud to be sent to Telemetry. | optional | | | INSTANCE_ID | Instance ID for Formbricks Cloud to be sent to Telemetry. | optional | |
| INTERNAL_SECRET | Internal Secret (Currently we overwrite the value with a random value). | optional | | | INTERNAL_SECRET | Internal Secret (Currently we overwrite the value with a random value). | optional | |
| IS_FORMBRICKS_CLOUD | Uses Formbricks Cloud if set to `1` | optional | |
| DEFAULT_BRAND_COLOR | Default brand color for your app (Can be overwritten from the UI as well). | optional | `#64748b` | | DEFAULT_BRAND_COLOR | Default brand color for your app (Can be overwritten from the UI as well). | optional | `#64748b` |
| DEFAULT_TEAM_ID | Automatically assign new users to a specific team when joining | optional | |
| DEFAULT_TEAM_ROLE | Role of the user in the default team. | optional | `admin` |
| ONBOARDING_DISABLED | Disables onboarding for new users if set to `1` | optional | |
## Build-time Variables ## Build-time Variables

View File

@@ -168,7 +168,7 @@ To update Formbricks, simply run the following command:
</CodeGroup> </CodeGroup>
</Col> </Col>
The script will automatically pull the latest version of Formbricks from Dockerhub and restart the containers. The script will automatically pull the latest version of Formbricks from GitHub Container Registry and restart the containers.
## Stop Formbricks Instance ## Stop Formbricks Instance

View File

@@ -1,7 +1,7 @@
"use client"; "use client";
import { useEffect } from "react";
import { ThemeProvider, useTheme } from "next-themes"; import { ThemeProvider, useTheme } from "next-themes";
import { useEffect } from "react";
function ThemeWatcher() { function ThemeWatcher() {
let { resolvedTheme, setTheme } = useTheme(); let { resolvedTheme, setTheme } = useTheme();

View File

@@ -1,14 +1,14 @@
"use client"; "use client";
import Link from "next/link";
import { type MotionValue, motion, useMotionTemplate, useMotionValue } from "framer-motion";
import { GridPattern } from "./GridPattern";
import { Heading } from "./Heading";
import { ChatBubbleIcon } from "@/components/docs/icons/ChatBubbleIcon"; import { ChatBubbleIcon } from "@/components/docs/icons/ChatBubbleIcon";
import { EnvelopeIcon } from "@/components/docs/icons/EnvelopeIcon"; import { EnvelopeIcon } from "@/components/docs/icons/EnvelopeIcon";
import { UserIcon } from "@/components/docs/icons/UserIcon"; import { UserIcon } from "@/components/docs/icons/UserIcon";
import { UsersIcon } from "@/components/docs/icons/UsersIcon"; import { UsersIcon } from "@/components/docs/icons/UsersIcon";
import { type MotionValue, motion, useMotionTemplate, useMotionValue } from "framer-motion";
import Link from "next/link";
import { GridPattern } from "./GridPattern";
import { Heading } from "./Heading";
interface BestPractice { interface BestPractice {
href: string; href: string;
@@ -73,7 +73,7 @@ const bestPractices: Array<BestPractice> = [
function BestPracticeIcon({ icon: Icon }: { icon: BestPractice["icon"] }) { function BestPracticeIcon({ icon: Icon }: { icon: BestPractice["icon"] }) {
return ( return (
<div className="dark:bg-white/7.5 dark:ring-white/15 flex h-7 w-7 items-center justify-center rounded-full bg-slate-900/5 ring-1 ring-slate-900/25 backdrop-blur-[2px] transition duration-300 group-hover:bg-white/50 group-hover:ring-slate-900/25 dark:group-hover:bg-emerald-300/10 dark:group-hover:ring-emerald-400"> <div className="dark:bg-white/7.5 flex h-7 w-7 items-center justify-center rounded-full bg-slate-900/5 ring-1 ring-slate-900/25 backdrop-blur-[2px] transition duration-300 group-hover:bg-white/50 group-hover:ring-slate-900/25 dark:ring-white/15 dark:group-hover:bg-emerald-300/10 dark:group-hover:ring-emerald-400">
<Icon className="h-5 w-5 fill-slate-700/10 stroke-slate-700 transition-colors duration-300 group-hover:stroke-slate-900 dark:fill-white/10 dark:stroke-slate-400 dark:group-hover:fill-emerald-300/10 dark:group-hover:stroke-emerald-400" /> <Icon className="h-5 w-5 fill-slate-700/10 stroke-slate-700 transition-colors duration-300 group-hover:stroke-slate-900 dark:fill-white/10 dark:stroke-slate-400 dark:group-hover:fill-emerald-300/10 dark:group-hover:stroke-emerald-400" />
</div> </div>
); );
@@ -157,7 +157,7 @@ export default function BestPractices() {
<Heading level={2} id="resources"> <Heading level={2} id="resources">
Best Practices Best Practices
</Heading> </Heading>
<div className="not-prose mt-4 grid grid-cols-1 gap-8 border-t border-slate-900/5 pt-10 dark:border-white/5 sm:grid-cols-2 xl:grid-cols-4"> <div className="not-prose mt-4 grid grid-cols-1 gap-8 border-t border-slate-900/5 pt-10 sm:grid-cols-2 xl:grid-cols-4 dark:border-white/5">
{bestPractices.map((resource) => ( {bestPractices.map((resource) => (
<BestPractice key={resource.href} resource={resource} /> <BestPractice key={resource.href} resource={resource} />
))} ))}

View File

@@ -1,5 +1,5 @@
import Link from "next/link";
import clsx from "clsx"; import clsx from "clsx";
import Link from "next/link";
function ArrowIcon(props: React.ComponentPropsWithoutRef<"svg">) { function ArrowIcon(props: React.ComponentPropsWithoutRef<"svg">) {
return ( return (

View File

@@ -1,12 +1,11 @@
"use client"; "use client";
import { Children, createContext, isValidElement, useContext, useEffect, useRef, useState } from "react"; import { Tag } from "@/components/docs/Tag";
import { Tab } from "@headlessui/react"; import { Tab } from "@headlessui/react";
import clsx from "clsx"; import clsx from "clsx";
import { Children, createContext, isValidElement, useContext, useEffect, useRef, useState } from "react";
import { create } from "zustand"; import { create } from "zustand";
import { Tag } from "@/components/docs/Tag";
const languageNames: Record<string, string> = { const languageNames: Record<string, string> = {
js: "JavaScript", js: "JavaScript",
ts: "TypeScript", ts: "TypeScript",

View File

@@ -1,8 +1,9 @@
"use client"; "use client";
import { useState } from "react";
import { Button } from "@formbricks/ui/Button"; import { Button } from "@formbricks/ui/Button";
import { Popover, PopoverContent, PopoverTrigger } from "@formbricks/ui/Popover"; import { Popover, PopoverContent, PopoverTrigger } from "@formbricks/ui/Popover";
import { useState } from "react";
export const DocsFeedback: React.FC = () => { export const DocsFeedback: React.FC = () => {
const [isOpen, setIsOpen] = useState(false); const [isOpen, setIsOpen] = useState(false);

View File

@@ -1,8 +1,9 @@
"use client"; "use client";
import { forwardRef, Fragment, useState } from "react";
import { usePathname } from "next/navigation";
import { Transition } from "@headlessui/react"; import { Transition } from "@headlessui/react";
import { usePathname } from "next/navigation";
import { Fragment, forwardRef, useState } from "react";
import { handleFeedbackSubmit } from "../../lib/handleFeedbackSubmit"; import { handleFeedbackSubmit } from "../../lib/handleFeedbackSubmit";
function CheckIcon(props: React.ComponentPropsWithoutRef<"svg">) { function CheckIcon(props: React.ComponentPropsWithoutRef<"svg">) {

View File

@@ -2,7 +2,8 @@
import Link from "next/link"; import Link from "next/link";
import { usePathname } from "next/navigation"; import { usePathname } from "next/navigation";
import { FaGithub, FaXTwitter, FaDiscord } from "react-icons/fa6"; import { FaDiscord, FaGithub, FaXTwitter } from "react-icons/fa6";
import { Button } from "./Button"; import { Button } from "./Button";
import { navigation } from "./Navigation"; import { navigation } from "./Navigation";
@@ -88,7 +89,7 @@ function SmallPrint() {
const currentYear = new Date().getFullYear(); const currentYear = new Date().getFullYear();
return ( return (
<div className="flex flex-col items-center justify-between gap-5 border-t border-slate-900/5 pt-8 dark:border-white/5 sm:flex-row"> <div className="flex flex-col items-center justify-between gap-5 border-t border-slate-900/5 pt-8 sm:flex-row dark:border-white/5">
<p className="text-xs text-slate-600 dark:text-slate-400"> <p className="text-xs text-slate-600 dark:text-slate-400">
Formbricks GmbH &copy; {currentYear}. All rights reserved. Formbricks GmbH &copy; {currentYear}. All rights reserved.
</p> </p>

View File

@@ -31,7 +31,7 @@ export function GettingStarted() {
<Heading level={2} id="getting-started"> <Heading level={2} id="getting-started">
Quick Resources Quick Resources
</Heading> </Heading>
<div className="not-prose mt-4 grid grid-cols-1 gap-8 border-t border-slate-900/5 pt-10 dark:border-white/5 sm:grid-cols-2 xl:grid-cols-4"> <div className="not-prose mt-4 grid grid-cols-1 gap-8 border-t border-slate-900/5 pt-10 sm:grid-cols-2 xl:grid-cols-4 dark:border-white/5">
{gettingStarted.map((guide) => ( {gettingStarted.map((guide) => (
<div key={guide.href}> <div key={guide.href}>
<h3 className="text-sm font-semibold text-slate-900 dark:text-white">{guide.name}</h3> <h3 className="text-sm font-semibold text-slate-900 dark:text-white">{guide.name}</h3>

View File

@@ -1,11 +1,11 @@
"use client"; "use client";
import { FooterLogo } from "@/components/shared/Logo";
import clsx from "clsx"; import clsx from "clsx";
import { motion, useScroll, useTransform } from "framer-motion"; import { motion, useScroll, useTransform } from "framer-motion";
import Link from "next/link"; import Link from "next/link";
import { forwardRef } from "react"; import { forwardRef } from "react";
import { FooterLogo } from "@/components/shared/Logo";
import { Button } from "./Button"; import { Button } from "./Button";
import { MobileNavigation, useIsInsideMobileNavigation, useMobileNavigationStore } from "./MobileNavigation"; import { MobileNavigation, useIsInsideMobileNavigation, useMobileNavigationStore } from "./MobileNavigation";
import { MobileSearch, Search } from "./Search"; import { MobileSearch, Search } from "./Search";
@@ -40,7 +40,7 @@ export const Header = forwardRef<React.ElementRef<"div">, { className?: string }
className={clsx( className={clsx(
className, className,
"fixed inset-x-0 top-0 z-50 flex h-20 items-center justify-between gap-12 px-4 transition sm:px-6 lg:left-72 lg:z-30 lg:px-8 xl:left-80", "fixed inset-x-0 top-0 z-50 flex h-20 items-center justify-between gap-12 px-4 transition sm:px-6 lg:left-72 lg:z-30 lg:px-8 xl:left-80",
!isInsideMobileNavigation && "backdrop-blur-sm dark:backdrop-blur lg:left-72 xl:left-80", !isInsideMobileNavigation && "backdrop-blur-sm lg:left-72 xl:left-80 dark:backdrop-blur",
isInsideMobileNavigation isInsideMobileNavigation
? "bg-white dark:bg-slate-900" ? "bg-white dark:bg-slate-900"
: "bg-white/[var(--bg-opacity-light)] dark:bg-slate-900/[var(--bg-opacity-dark)]" : "bg-white/[var(--bg-opacity-light)] dark:bg-slate-900/[var(--bg-opacity-dark)]"
@@ -73,7 +73,7 @@ export const Header = forwardRef<React.ElementRef<"div">, { className?: string }
<TopLevelNavItem href="https://formbricks.com/discord">Join our Discord</TopLevelNavItem> <TopLevelNavItem href="https://formbricks.com/discord">Join our Discord</TopLevelNavItem>
</ul> </ul>
</nav> </nav>
<div className="md:dark:bg-white/15 hidden md:block md:h-5 md:w-px md:bg-slate-900/10" /> <div className="hidden md:block md:h-5 md:w-px md:bg-slate-900/10 md:dark:bg-white/15" />
<div className="flex gap-4"> <div className="flex gap-4">
<MobileSearch /> <MobileSearch />
<ThemeToggle /> <ThemeToggle />

View File

@@ -1,13 +1,13 @@
"use client"; "use client";
import { remToPx } from "@/lib/remToPx";
import { useInView } from "framer-motion"; import { useInView } from "framer-motion";
import Link from "next/link"; import Link from "next/link";
import { usePathname } from "next/navigation";
import { useEffect, useRef } from "react"; import { useEffect, useRef } from "react";
import { remToPx } from "@/lib/remToPx";
import { useSectionStore } from "./SectionProvider"; import { useSectionStore } from "./SectionProvider";
import { Tag } from "./Tag"; import { Tag } from "./Tag";
import { usePathname } from "next/navigation";
function AnchorIcon(props: React.ComponentPropsWithoutRef<"svg">) { function AnchorIcon(props: React.ComponentPropsWithoutRef<"svg">) {
return ( return (

View File

@@ -1,14 +1,14 @@
"use client"; "use client";
import { Navigation } from "@/components/docs/Navigation";
import { FooterLogo } from "@/components/shared/Logo";
import { motion } from "framer-motion";
import Link from "next/link"; import Link from "next/link";
import { usePathname } from "next/navigation"; import { usePathname } from "next/navigation";
import { motion } from "framer-motion";
import { Footer } from "./Footer"; import { Footer } from "./Footer";
import { Header } from "./Header"; import { Header } from "./Header";
import { type Section, SectionProvider } from "./SectionProvider"; import { type Section, SectionProvider } from "./SectionProvider";
import { FooterLogo } from "@/components/shared/Logo";
import { Navigation } from "@/components/docs/Navigation";
export function Layout({ export function Layout({
children, children,
@@ -25,7 +25,7 @@ export function Layout({
<motion.header <motion.header
layoutScroll layoutScroll
className="contents lg:pointer-events-none lg:fixed lg:inset-0 lg:z-40 lg:flex"> className="contents lg:pointer-events-none lg:fixed lg:inset-0 lg:z-40 lg:flex">
<div className="contents lg:pointer-events-auto lg:block lg:w-72 lg:overflow-y-auto lg:border-r lg:border-slate-900/10 lg:px-6 lg:pb-8 lg:pt-4 lg:dark:border-white/10 xl:w-80"> <div className="contents lg:pointer-events-auto lg:block lg:w-72 lg:overflow-y-auto lg:border-r lg:border-slate-900/10 lg:px-6 lg:pb-8 lg:pt-4 xl:w-80 lg:dark:border-white/10">
<div className="hidden lg:flex"> <div className="hidden lg:flex">
<Link href="/" aria-label="Home"> <Link href="/" aria-label="Home">
<FooterLogo className="h-8" /> <FooterLogo className="h-8" />

View File

@@ -1,9 +1,9 @@
import Image from "next/image";
import logoHtml from "@/images/logos/html5.svg"; import logoHtml from "@/images/logos/html5.svg";
import logoNextjs from "@/images/logos/nextjs.svg"; import logoNextjs from "@/images/logos/nextjs.svg";
import logoReactJs from "@/images/logos/reactjs.svg"; import logoReactJs from "@/images/logos/reactjs.svg";
import logoVueJs from "@/images/logos/vuejs.svg"; import logoVueJs from "@/images/logos/vuejs.svg";
import Image from "next/image";
import { Button } from "./Button"; import { Button } from "./Button";
const libraries = [ const libraries = [
@@ -37,7 +37,7 @@ const libraries = [
export function Libraries() { export function Libraries() {
return ( return (
<div className="my-16 xl:max-w-none"> <div className="my-16 xl:max-w-none">
<div className="not-prose mt-4 grid grid-cols-1 gap-x-6 gap-y-10 border-slate-900/5 dark:border-white/5 sm:grid-cols-2 xl:max-w-none xl:grid-cols-3"> <div className="not-prose mt-4 grid grid-cols-1 gap-x-6 gap-y-10 border-slate-900/5 sm:grid-cols-2 xl:max-w-none xl:grid-cols-3 dark:border-white/5">
{libraries.map((library) => ( {libraries.map((library) => (
<a <a
key={library.name} key={library.name}

View File

@@ -1,12 +1,12 @@
"use client"; "use client";
import { createContext, Fragment, Suspense, useContext, useEffect, useRef } from "react"; import { Header } from "@/components/docs/Header";
import { usePathname, useSearchParams } from "next/navigation";
import { Dialog, Transition } from "@headlessui/react"; import { Dialog, Transition } from "@headlessui/react";
import { motion } from "framer-motion"; import { motion } from "framer-motion";
import { usePathname, useSearchParams } from "next/navigation";
import { Fragment, Suspense, createContext, useContext, useEffect, useRef } from "react";
import { create } from "zustand"; import { create } from "zustand";
import { Header } from "@/components/docs/Header";
import { Navigation } from "./Navigation"; import { Navigation } from "./Navigation";
function MenuIcon(props: React.ComponentPropsWithoutRef<"svg">) { function MenuIcon(props: React.ComponentPropsWithoutRef<"svg">) {
@@ -90,7 +90,7 @@ function MobileNavigationDialog({ isOpen, close }: { isOpen: boolean; close: ()
leaveTo="-translate-x-full"> leaveTo="-translate-x-full">
<motion.div <motion.div
layoutScroll layoutScroll
className="ring-slate-900/7.5 fixed bottom-0 left-0 top-14 w-full overflow-y-auto bg-white px-4 pb-4 pt-6 shadow-lg shadow-slate-900/10 ring-1 dark:bg-slate-900 dark:ring-slate-800 min-[416px]:max-w-sm sm:px-6 sm:pb-10"> className="ring-slate-900/7.5 fixed bottom-0 left-0 top-14 w-full overflow-y-auto bg-white px-4 pb-4 pt-6 shadow-lg shadow-slate-900/10 ring-1 min-[416px]:max-w-sm sm:px-6 sm:pb-10 dark:bg-slate-900 dark:ring-slate-800">
<Navigation /> <Navigation />
</motion.div> </motion.div>
</Transition.Child> </Transition.Child>

View File

@@ -1,12 +1,12 @@
"use client"; "use client";
import { remToPx } from "@/lib/remToPx";
import clsx from "clsx"; import clsx from "clsx";
import { AnimatePresence, motion, useIsPresent } from "framer-motion"; import { AnimatePresence, motion, useIsPresent } from "framer-motion";
import Link from "next/link"; import Link from "next/link";
import { usePathname } from "next/navigation"; import { usePathname } from "next/navigation";
import { useRef } from "react"; import { useRef } from "react";
import { remToPx } from "@/lib/remToPx";
import { Button } from "./Button"; import { Button } from "./Button";
import { useIsInsideMobileNavigation } from "./MobileNavigation"; import { useIsInsideMobileNavigation } from "./MobileNavigation";
import { useSectionStore } from "./SectionProvider"; import { useSectionStore } from "./SectionProvider";
@@ -237,8 +237,10 @@ export const navigation: Array<NavGroup> = [
links: [ links: [
{ title: "Airtable", href: "/docs/integrations/airtable" }, { title: "Airtable", href: "/docs/integrations/airtable" },
{ title: "Google Sheets", href: "/docs/integrations/google-sheets" }, { title: "Google Sheets", href: "/docs/integrations/google-sheets" },
{ title: "Notion", href: "/docs/integrations/notion" },
{ title: "Make.com", href: "/docs/integrations/make" }, { title: "Make.com", href: "/docs/integrations/make" },
{ title: "n8n", href: "/docs/integrations/n8n" }, { title: "n8n", href: "/docs/integrations/n8n" },
{ title: "Wordpress", href: "/docs/integrations/wordpress" },
{ title: "Zapier", href: "/docs/integrations/zapier" }, { title: "Zapier", href: "/docs/integrations/zapier" },
], ],
}, },

View File

@@ -1,19 +1,18 @@
"use client"; "use client";
import { forwardRef, Fragment, Suspense, useCallback, useEffect, useId, useRef, useState } from "react"; import { navigation } from "@/components/docs/Navigation";
import Highlighter from "react-highlight-words"; import { type Result } from "@/mdx/search.mjs";
import { usePathname, useRouter, useSearchParams } from "next/navigation";
import { import {
type AutocompleteApi, type AutocompleteApi,
createAutocomplete,
type AutocompleteState,
type AutocompleteCollection, type AutocompleteCollection,
type AutocompleteState,
createAutocomplete,
} from "@algolia/autocomplete-core"; } from "@algolia/autocomplete-core";
import { Dialog, Transition } from "@headlessui/react"; import { Dialog, Transition } from "@headlessui/react";
import clsx from "clsx"; import clsx from "clsx";
import { usePathname, useRouter, useSearchParams } from "next/navigation";
import { type Result } from "@/mdx/search.mjs"; import { Fragment, Suspense, forwardRef, useCallback, useEffect, useId, useRef, useState } from "react";
import { navigation } from "@/components/docs/Navigation"; import Highlighter from "react-highlight-words";
type EmptyObject = Record<string, never>; type EmptyObject = Record<string, never>;
@@ -244,7 +243,7 @@ const SearchInput = forwardRef<
<input <input
ref={inputRef} ref={inputRef}
className={clsx( className={clsx(
"flex-auto appearance-none bg-transparent pl-10 text-slate-900 outline-none placeholder:text-slate-500 focus:w-full focus:flex-none dark:text-white sm:text-sm [&::-webkit-search-cancel-button]:hidden [&::-webkit-search-decoration]:hidden [&::-webkit-search-results-button]:hidden [&::-webkit-search-results-decoration]:hidden", "flex-auto appearance-none bg-transparent pl-10 text-slate-900 outline-none placeholder:text-slate-500 focus:w-full focus:flex-none sm:text-sm dark:text-white [&::-webkit-search-cancel-button]:hidden [&::-webkit-search-decoration]:hidden [&::-webkit-search-results-button]:hidden [&::-webkit-search-results-decoration]:hidden",
autocompleteState.status === "stalled" ? "pr-11" : "pr-4" autocompleteState.status === "stalled" ? "pr-11" : "pr-4"
)} )}
{...inputProps} {...inputProps}
@@ -337,7 +336,7 @@ function SearchDialog({
leave="ease-in duration-200" leave="ease-in duration-200"
leaveFrom="opacity-100 scale-100" leaveFrom="opacity-100 scale-100"
leaveTo="opacity-0 scale-95"> leaveTo="opacity-0 scale-95">
<Dialog.Panel className="ring-slate-900/7.5 mx-auto transform-gpu overflow-hidden rounded-lg bg-slate-50 shadow-xl ring-1 dark:bg-slate-900 dark:ring-slate-800 sm:max-w-xl"> <Dialog.Panel className="ring-slate-900/7.5 mx-auto transform-gpu overflow-hidden rounded-lg bg-slate-50 shadow-xl ring-1 sm:max-w-xl dark:bg-slate-900 dark:ring-slate-800">
<div {...autocomplete.getRootProps({})}> <div {...autocomplete.getRootProps({})}>
<form <form
ref={formRef} ref={formRef}
@@ -410,7 +409,7 @@ export function Search() {
<div className="hidden lg:block lg:max-w-md lg:flex-auto"> <div className="hidden lg:block lg:max-w-md lg:flex-auto">
<button <button
type="button" type="button"
className="ui-not-focus-visible:outline-none hidden h-8 w-full items-center gap-2 rounded-full bg-white pl-2 pr-3 text-sm text-slate-500 ring-1 ring-slate-900/10 transition hover:ring-slate-900/20 dark:bg-white/5 dark:text-slate-400 dark:ring-inset dark:ring-white/10 dark:hover:ring-white/20 lg:flex" className="ui-not-focus-visible:outline-none hidden h-8 w-full items-center gap-2 rounded-full bg-white pl-2 pr-3 text-sm text-slate-500 ring-1 ring-slate-900/10 transition hover:ring-slate-900/20 lg:flex dark:bg-white/5 dark:text-slate-400 dark:ring-inset dark:ring-white/10 dark:hover:ring-white/20"
{...buttonProps}> {...buttonProps}>
<SearchIcon className="h-5 w-5 stroke-current" /> <SearchIcon className="h-5 w-5 stroke-current" />
Find something... Find something...
@@ -433,7 +432,7 @@ export function MobileSearch() {
<div className="contents lg:hidden"> <div className="contents lg:hidden">
<button <button
type="button" type="button"
className="ui-not-focus-visible:outline-none flex h-6 w-6 items-center justify-center rounded-md transition hover:bg-slate-900/5 dark:hover:bg-white/5 lg:hidden" className="ui-not-focus-visible:outline-none flex h-6 w-6 items-center justify-center rounded-md transition hover:bg-slate-900/5 lg:hidden dark:hover:bg-white/5"
aria-label="Find something..." aria-label="Find something..."
{...buttonProps}> {...buttonProps}>
<SearchIcon className="h-5 w-5 stroke-slate-900 dark:stroke-white" /> <SearchIcon className="h-5 w-5 stroke-slate-900 dark:stroke-white" />

View File

@@ -1,10 +1,9 @@
"use client"; "use client";
import { remToPx } from "@/lib/remToPx";
import { createContext, useContext, useEffect, useLayoutEffect, useState } from "react"; import { createContext, useContext, useEffect, useLayoutEffect, useState } from "react";
import { type StoreApi, createStore, useStore } from "zustand"; import { type StoreApi, createStore, useStore } from "zustand";
import { remToPx } from "@/lib/remToPx";
export interface Section { export interface Section {
id: string; id: string;
title: string; title: string;

View File

@@ -1,7 +1,7 @@
"use client"; "use client";
import { useEffect, useState } from "react";
import { useTheme } from "next-themes"; import { useTheme } from "next-themes";
import { useEffect, useState } from "react";
function SunIcon(props: React.ComponentPropsWithoutRef<"svg">) { function SunIcon(props: React.ComponentPropsWithoutRef<"svg">) {
return ( return (

View File

@@ -1,4 +1,5 @@
import { Accordion, AccordionContent, AccordionItem, AccordionTrigger } from "@formbricks/ui/Accordion"; import { Accordion, AccordionContent, AccordionItem, AccordionTrigger } from "@formbricks/ui/Accordion";
import FaqJsonLdComponent from "./faQJsonLD"; import FaqJsonLdComponent from "./faQJsonLD";
const FAQ_DATA = [ const FAQ_DATA = [

View File

@@ -1,7 +1,7 @@
import Link from "next/link";
import clsx from "clsx";
import { Feedback } from "@/components/docs/Feedback"; import { Feedback } from "@/components/docs/Feedback";
import clsx from "clsx";
import Link from "next/link";
import { Heading } from "./Heading"; import { Heading } from "./Heading";
import { Prose } from "./Prose"; import { Prose } from "./Prose";

View File

@@ -1,8 +1,9 @@
import { Button } from "@formbricks/ui/Button";
import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "@formbricks/ui/Select";
import { PlusIcon, TrashIcon } from "@heroicons/react/24/solid"; import { PlusIcon, TrashIcon } from "@heroicons/react/24/solid";
import { useState } from "react"; import { useState } from "react";
import { Button } from "@formbricks/ui/Button";
import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "@formbricks/ui/Select";
const DummyUI: React.FC = () => { const DummyUI: React.FC = () => {
const actionClasses = [ const actionClasses = [
{ id: "1", name: "View Dashboard" }, { id: "1", name: "View Dashboard" },

View File

@@ -1,10 +1,11 @@
import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "@formbricks/ui/Select";
import { Button } from "@formbricks/ui/Button";
import { Label } from "@formbricks/ui/Label";
import { Input } from "@formbricks/ui/Input";
import { RadioGroup, RadioGroupItem } from "@formbricks/ui/RadioGroup";
import { CursorArrowRaysIcon } from "@heroicons/react/24/solid"; import { CursorArrowRaysIcon } from "@heroicons/react/24/solid";
import { Button } from "@formbricks/ui/Button";
import { Input } from "@formbricks/ui/Input";
import { Label } from "@formbricks/ui/Label";
import { Modal } from "@formbricks/ui/Modal"; import { Modal } from "@formbricks/ui/Modal";
import { RadioGroup, RadioGroupItem } from "@formbricks/ui/RadioGroup";
import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "@formbricks/ui/Select";
interface EventDetailModalProps { interface EventDetailModalProps {
open: boolean; open: boolean;
@@ -54,7 +55,7 @@ export const AddNoCodeEventModalDummy: React.FC<EventDetailModalProps> = ({ open
Inner Text Inner Text
</Label> </Label>
</div> </div>
<div className="hidden items-center space-x-2 rounded-lg bg-slate-50 p-3 dark:bg-slate-600 md:flex"> <div className="hidden items-center space-x-2 rounded-lg bg-slate-50 p-3 md:flex dark:bg-slate-600">
<RadioGroupItem disabled value="cssSelector" id="cssSelector" className="bg-slate-50" /> <RadioGroupItem disabled value="cssSelector" id="cssSelector" className="bg-slate-50" />
<Label <Label
htmlFor="cssSelector" htmlFor="cssSelector"
@@ -79,7 +80,7 @@ export const AddNoCodeEventModalDummy: React.FC<EventDetailModalProps> = ({ open
<Label>URL</Label> <Label>URL</Label>
<Select defaultValue="endsWith"> <Select defaultValue="endsWith">
<SelectTrigger <SelectTrigger
className="w-[110px] dark:text-slate-200 md:w-[180px]" className="w-[110px] md:w-[180px] dark:text-slate-200"
onClick={(e) => e.preventDefault()} onClick={(e) => e.preventDefault()}
disabled> disabled>
<SelectValue placeholder="Select match type" /> <SelectValue placeholder="Select match type" />

View File

@@ -1,4 +1,5 @@
import { TSurveyCTAQuestion } from "@formbricks/types/surveys"; import { TSurveyCTAQuestion } from "@formbricks/types/surveys";
import Headline from "./Headline"; import Headline from "./Headline";
import HtmlBody from "./HtmlBody"; import HtmlBody from "./HtmlBody";

View File

@@ -1,8 +1,11 @@
"use client"; "use client";
import React, { useEffect, useState } from "react"; import React, { useEffect, useState } from "react";
import { TTemplate } from "@formbricks/types/templates";
import PreviewSurvey from "./PreviewSurvey"; import PreviewSurvey from "./PreviewSurvey";
import { findTemplateByName } from "./templates"; import { findTemplateByName } from "./templates";
import { TTemplate } from "@formbricks/types/templates";
interface DemoPreviewProps { interface DemoPreviewProps {
template: string; template: string;

View File

@@ -1,5 +1,7 @@
import { TTemplate } from "@formbricks/types/templates";
import { useEffect, useState } from "react"; import { useEffect, useState } from "react";
import { TTemplate } from "@formbricks/types/templates";
import PreviewSurvey from "./PreviewSurvey"; import PreviewSurvey from "./PreviewSurvey";
import TemplateList from "./TemplateList"; import TemplateList from "./TemplateList";
import { templates } from "./templates"; import { templates } from "./templates";
@@ -25,7 +27,7 @@ export default function SurveyTemplatesPage({}) {
setActiveTemplate(template); setActiveTemplate(template);
}} }}
/> />
<aside className="group relative h-full flex-1 flex-shrink-0 overflow-hidden rounded-r-lg bg-slate-200 shadow-inner dark:bg-slate-700 md:flex md:flex-col"> <aside className="group relative h-full flex-1 flex-shrink-0 overflow-hidden rounded-r-lg bg-slate-200 shadow-inner md:flex md:flex-col dark:bg-slate-700">
{activeTemplate && ( {activeTemplate && (
<PreviewSurvey <PreviewSurvey
activeQuestionId={activeQuestionId} activeQuestionId={activeQuestionId}

View File

@@ -1,4 +1,5 @@
import { ReactNode, useEffect, useState } from "react"; import { ReactNode, useEffect, useState } from "react";
import { cn } from "@formbricks/lib/cn"; import { cn } from "@formbricks/lib/cn";
export default function Modal({ export default function Modal({
@@ -21,7 +22,7 @@ export default function Modal({
<div <div
className={cn( className={cn(
show ? "translate-x-0 opacity-100" : "translate-x-28 opacity-0", show ? "translate-x-0 opacity-100" : "translate-x-28 opacity-0",
"pointer-events-auto w-full max-w-sm overflow-hidden rounded-lg bg-white px-4 py-6 shadow-lg ring-1 ring-black ring-opacity-5 transition-all duration-500 ease-in-out dark:bg-slate-900 sm:p-6" "pointer-events-auto w-full max-w-sm overflow-hidden rounded-lg bg-white px-4 py-6 shadow-lg ring-1 ring-black ring-opacity-5 transition-all duration-500 ease-in-out sm:p-6 dark:bg-slate-900"
)}> )}>
{children} {children}
</div> </div>

View File

@@ -1,6 +1,8 @@
import { useState, useEffect } from "react"; import { useEffect, useState } from "react";
import { cn } from "@formbricks/lib/cn"; import { cn } from "@formbricks/lib/cn";
import { TSurveyMultipleChoiceMultiQuestion } from "@formbricks/types/surveys"; import { TSurveyMultipleChoiceMultiQuestion } from "@formbricks/types/surveys";
import Headline from "./Headline"; import Headline from "./Headline";
import Subheader from "./Subheader"; import Subheader from "./Subheader";

View File

@@ -1,6 +1,8 @@
import { useState } from "react";
import { cn } from "@formbricks/lib/cn"; import { cn } from "@formbricks/lib/cn";
import { TSurveyMultipleChoiceSingleQuestion } from "@formbricks/types/surveys"; import { TSurveyMultipleChoiceSingleQuestion } from "@formbricks/types/surveys";
import { useState } from "react";
import Headline from "./Headline"; import Headline from "./Headline";
import Subheader from "./Subheader"; import Subheader from "./Subheader";

View File

@@ -1,6 +1,8 @@
import { useState } from "react"; import { useState } from "react";
import { cn } from "@formbricks/lib/cn"; import { cn } from "@formbricks/lib/cn";
import { TSurveyNPSQuestion } from "@formbricks/types/surveys"; import { TSurveyNPSQuestion } from "@formbricks/types/surveys";
import Headline from "./Headline"; import Headline from "./Headline";
import Subheader from "./Subheader"; import Subheader from "./Subheader";

View File

@@ -1,5 +1,7 @@
import { TSurveyOpenTextQuestion } from "@formbricks/types/surveys";
import { useState } from "react"; import { useState } from "react";
import { TSurveyOpenTextQuestion } from "@formbricks/types/surveys";
import Headline from "./Headline"; import Headline from "./Headline";
import Subheader from "./Subheader"; import Subheader from "./Subheader";
@@ -40,7 +42,7 @@ export default function OpenTextQuestion({
onChange={(e) => setValue(e.target.value)} onChange={(e) => setValue(e.target.value)}
placeholder={question.placeholder} placeholder={question.placeholder}
required={question.required} required={question.required}
className="block w-full rounded-md border border-slate-100 bg-slate-50 p-2 shadow-sm focus:border-slate-500 focus:ring-0 dark:border-slate-500 dark:bg-slate-700 dark:text-white sm:text-sm"></textarea> className="block w-full rounded-md border border-slate-100 bg-slate-50 p-2 shadow-sm focus:border-slate-500 focus:ring-0 sm:text-sm dark:border-slate-500 dark:bg-slate-700 dark:text-white"></textarea>
</div> </div>
<div className="mt-4 flex w-full justify-between"> <div className="mt-4 flex w-full justify-between">
<div></div> <div></div>

View File

@@ -1,7 +1,9 @@
import { useState } from "react"; import { useState } from "react";
import { TSurvey, TSurveyQuestion } from "@formbricks/types/surveys";
import Modal from "./Modal"; import Modal from "./Modal";
import QuestionConditional from "./QuestionConditional"; import QuestionConditional from "./QuestionConditional";
import { TSurveyQuestion, TSurvey } from "@formbricks/types/surveys";
import ThankYouCard from "./ThankYouCard"; import ThankYouCard from "./ThankYouCard";
interface PreviewSurveyProps { interface PreviewSurveyProps {

View File

@@ -1,9 +1,10 @@
import { TSurveyQuestion, TSurveyQuestionType } from "@formbricks/types/surveys"; import { TSurveyQuestion, TSurveyQuestionType } from "@formbricks/types/surveys";
import OpenTextQuestion from "./OpenTextQuestion";
import MultipleChoiceSingleQuestion from "./MultipleChoiceSingleQuestion";
import MultipleChoiceMultiQuestion from "./MultipleChoiceMultiQuestion";
import NPSQuestion from "./NPSQuestion";
import CTAQuestion from "./CTAQuestion"; import CTAQuestion from "./CTAQuestion";
import MultipleChoiceMultiQuestion from "./MultipleChoiceMultiQuestion";
import MultipleChoiceSingleQuestion from "./MultipleChoiceSingleQuestion";
import NPSQuestion from "./NPSQuestion";
import OpenTextQuestion from "./OpenTextQuestion";
import RatingQuestion from "./RatingQuestion"; import RatingQuestion from "./RatingQuestion";
interface QuestionConditionalProps { interface QuestionConditionalProps {

View File

@@ -1,6 +1,8 @@
import { TSurveyRatingQuestion } from "@formbricks/types/surveys";
import { useState } from "react"; import { useState } from "react";
import { cn } from "@formbricks/lib/cn"; import { cn } from "@formbricks/lib/cn";
import { TSurveyRatingQuestion } from "@formbricks/types/surveys";
import Headline from "./Headline"; import Headline from "./Headline";
import Subheader from "./Subheader"; import Subheader from "./Subheader";

View File

@@ -1,6 +1,8 @@
import { TTemplate } from "@formbricks/types/templates";
import { useEffect, useState } from "react"; import { useEffect, useState } from "react";
import { cn } from "@formbricks/lib/cn"; import { cn } from "@formbricks/lib/cn";
import { TTemplate } from "@formbricks/types/templates";
import { templates } from "./templates"; import { templates } from "./templates";
type TemplateList = { type TemplateList = {

View File

@@ -1,3 +1,7 @@
import { createId } from "@paralleldrive/cuid2";
import { TSurveyQuestionType } from "@formbricks/types/surveys";
import { TTemplate } from "@formbricks/types/templates";
import { import {
AppPieChartIcon, AppPieChartIcon,
ArrowRightCircleIcon, ArrowRightCircleIcon,
@@ -22,10 +26,6 @@ import {
VideoTabletAdjustIcon, VideoTabletAdjustIcon,
} from "@formbricks/ui/icons"; } from "@formbricks/ui/icons";
import { TSurveyQuestionType } from "@formbricks/types/surveys";
import { TTemplate } from "@formbricks/types/templates";
import { createId } from "@paralleldrive/cuid2";
const thankYouCardDefault = { const thankYouCardDefault = {
enabled: true, enabled: true,
headline: "Thank you!", headline: "Thank you!",

View File

@@ -1,6 +1,6 @@
import HeadingCentered from "@/components/shared/HeadingCentered";
import { FAQPageJsonLd } from "next-seo"; import { FAQPageJsonLd } from "next-seo";
import HeadingCentered from "@/components/shared/HeadingCentered";
import { Accordion, AccordionContent, AccordionItem, AccordionTrigger } from "@formbricks/ui/Accordion"; import { Accordion, AccordionContent, AccordionItem, AccordionTrigger } from "@formbricks/ui/Accordion";
const FAQ_DATA = [ const FAQ_DATA = [

View File

@@ -1,4 +1,5 @@
import { CodeFileIcon, EyeIcon, HandPuzzleIcon } from "@formbricks/ui/icons"; import { CodeFileIcon, EyeIcon, HandPuzzleIcon } from "@formbricks/ui/icons";
import HeadingCentered from "../shared/HeadingCentered"; import HeadingCentered from "../shared/HeadingCentered";
const features = [ const features = [

View File

@@ -20,7 +20,7 @@ export const GitHubSponsorship: React.FC = () => {
/> */} /> */}
<div className="col-span-2"> <div className="col-span-2">
<h2 className="text-2xl font-bold tracking-tight text-slate-800 dark:text-slate-200 lg:text-2xl"> <h2 className="text-2xl font-bold tracking-tight text-slate-800 lg:text-2xl dark:text-slate-200">
We are live on ProductHunt today 🚀 We are live on ProductHunt today 🚀
</h2> </h2>
<p className="lg:text-md mt-2 max-w-3xl text-slate-500 dark:text-slate-400"> <p className="lg:text-md mt-2 max-w-3xl text-slate-500 dark:text-slate-400">

View File

@@ -1,16 +1,18 @@
import CalLogoDark from "@/images/clients/cal-logo-dark.svg"; import CalLogoDark from "@/images/clients/cal-logo-dark.svg";
import CalLogoLight from "@/images/clients/cal-logo-light.svg"; import CalLogoLight from "@/images/clients/cal-logo-light.svg";
import ClovyrLogo from "@/images/clients/clovyr-logo.svg";
import CrowdLogoDark from "@/images/clients/crowd-logo-dark.svg"; import CrowdLogoDark from "@/images/clients/crowd-logo-dark.svg";
import CrowdLogoLight from "@/images/clients/crowd-logo-light.svg"; import CrowdLogoLight from "@/images/clients/crowd-logo-light.svg";
import FlixbusLogo from "@/images/clients/flixbus-white.svg";
import NILogoDark from "@/images/clients/niLogoDark.svg"; import NILogoDark from "@/images/clients/niLogoDark.svg";
import NILogoLight from "@/images/clients/niLogoWhite.svg"; import NILogoLight from "@/images/clients/niLogoWhite.svg";
import AnimationFallback from "@/public/animations/opensource-xm-platform-formbricks-fallback.png"; import AnimationFallback from "@/public/animations/opensource-xm-platform-formbricks-fallback.png";
import { Button } from "@formbricks/ui/Button"; import { ShieldCheckIcon, StarIcon } from "@heroicons/react/24/outline";
import { ChevronRightIcon } from "@heroicons/react/24/outline";
import { usePlausible } from "next-plausible"; import { usePlausible } from "next-plausible";
import Image from "next/image"; import Image from "next/image";
import { useRouter } from "next/router"; import { useRouter } from "next/router";
import { Button } from "@formbricks/ui/Button";
import HeroAnimation from "./HeroAnimation"; import HeroAnimation from "./HeroAnimation";
export const Hero: React.FC = ({}) => { export const Hero: React.FC = ({}) => {
@@ -19,87 +21,92 @@ export const Hero: React.FC = ({}) => {
return ( return (
<div className="relative"> <div className="relative">
<div className="px-4 pb-20 pt-16 text-center sm:px-6 lg:px-8 lg:pb-32 lg:pt-20"> <div className="px-4 pb-20 pt-16 text-center sm:px-6 lg:px-8 lg:pb-32 lg:pt-20">
<a <div className="xs:text-sm flex items-center justify-center space-x-4 divide-x-2 text-xs text-slate-600">
href="https://formbricks.com/github" <p>
target="_blank" <ShieldCheckIcon className="mb-1 inline h-4 w-4" /> Privacy-first
className="border-brand-dark xs:text-sm animate-bounce rounded-full border px-4 py-1.5 text-xs text-slate-500 hover:bg-slate-100 dark:text-slate-300 dark:hover:bg-slate-800"> </p>
We&apos;re Open Source - Star us on GitHub <a href="https://formbricks.com/github" target="_blank" className="hover:text-slate-800">
<ChevronRightIcon className="mb-1 ml-1 inline h-4 w-4 text-slate-300" /> <StarIcon className="mb-1 ml-3 mr-1 inline h-4 w-4" />
</a> Star us on GitHub
<h1 className="mt-10 text-3xl font-bold tracking-tight text-slate-800 dark:text-slate-200 sm:text-4xl md:text-5xl"> </a>
<span className="xl:inline">Privacy-first Experience Management</span> </div>
<h1 className="mt-10 text-3xl font-bold tracking-tight text-slate-800 sm:text-4xl md:text-5xl dark:text-slate-200">
<span className="xl:inline">
Turn customer insights
<br />
into irresistible experiences
</span>
</h1> </h1>
<p className="xs:max-w-none mx-auto mt-3 max-w-xs text-balance text-base text-slate-500 sm:text-lg md:mt-5 md:text-xl dark:text-slate-400">
<p className="xs:max-w-none mx-auto mt-3 max-w-xs text-base text-slate-500 dark:text-slate-400 sm:text-lg md:mt-5 md:text-xl"> Formbricks is an Experience Management Suite built on the largest open source survey stack
Turn customer insights into irresistible experiences {" "} worldwide. Gracefully gather feedback at every step of the customer journey to{" "}
<span className="decoration-brand-dark underline underline-offset-4">all privacy-first.</span> <span className="decoration-brand-dark underline underline-offset-4">
know what your customers need.
</span>
</p> </p>
<div className="mx-auto mt-5 max-w-2xl items-center px-4 sm:flex sm:justify-center md:mt-6 md:space-x-8 md:px-0"> <div className="mx-auto mt-5 max-w-2xl items-center px-4 sm:flex sm:justify-center md:mt-6 md:space-x-8 md:px-0">
<p className="hidden whitespace-nowrap pt-3 text-xs text-slate-400 dark:text-slate-500 md:block">
Trusted by
</p>
<div className="grid grid-cols-4 items-center gap-6 pt-2 md:gap-8"> <div className="grid grid-cols-4 items-center gap-6 pt-2 md:gap-8">
<Image
src={FlixbusLogo}
alt="Flixbus Flix Flixtrain Logo"
className="rounded-lg pb-1 hover:opacity-100 md:opacity-50"
width={200}
/>
<Image <Image
src={CalLogoLight} src={CalLogoLight}
alt="Cal Logo" alt="Cal Logo"
className="block rounded-lg hover:opacity-100 dark:hidden md:opacity-50" className="block rounded-lg hover:opacity-100 md:opacity-50 dark:hidden"
width={170} width={170}
/> />
<Image <Image
src={CalLogoDark} src={CalLogoDark}
alt="Cal Logo" alt="Cal Logo"
className="hidden rounded-lg hover:opacity-100 dark:block md:opacity-50" className="hidden rounded-lg hover:opacity-100 md:opacity-50 dark:block"
width={170} width={170}
/> />
<Image <Image
src={CrowdLogoLight} src={CrowdLogoLight}
alt="Crowd.dev Logo" alt="Crowd.dev Logo"
className="block rounded-lg pb-1 hover:opacity-100 dark:hidden md:opacity-50" className="block rounded-lg pb-1 hover:opacity-100 md:opacity-50 dark:hidden"
width={200} width={200}
/> />
<Image <Image
src={CrowdLogoDark} src={CrowdLogoDark}
alt="Crowd.dev Logo" alt="Crowd.dev Logo"
className="hidden rounded-lg pb-1 hover:opacity-100 dark:block md:opacity-50" className="hidden rounded-lg pb-1 hover:opacity-100 md:opacity-50 dark:block"
width={200} width={200}
/> />
<Image <Image
src={NILogoDark} src={NILogoDark}
alt="Neverinstall Logo" alt="Neverinstall Logo"
className="block pb-1 hover:opacity-100 dark:hidden md:opacity-50" className="block pb-1 hover:opacity-100 md:opacity-50 dark:hidden"
width={200} width={200}
/> />
<Image <Image
src={NILogoLight} src={NILogoLight}
alt="Neverinstall Logo" alt="Neverinstall Logo"
className="hidden pb-1 hover:opacity-100 dark:block md:opacity-50" className="hidden pb-1 hover:opacity-100 md:opacity-50 dark:block"
width={200}
/>
<Image
src={ClovyrLogo}
alt="Clovyr Logo"
className="rounded-lg pb-1 hover:opacity-100 md:opacity-50"
width={200} width={200}
/> />
</div> </div>
</div> </div>
<div className="hidden pt-10 md:block"> <div className="hidden pt-14 md:block">
<Button <Button
variant="highlight" variant="highlight"
className="mr-3 px-6" className="mr-3 px-6"
onClick={() => { onClick={() => {
router.push("https://app.formbricks.com/auth/signup"); router.push("https://app.formbricks.com/auth/signup");
plausible("Hero_CTA_CreateSurvey"); plausible("Hero_CTA_GetStartedItsFree");
}}> }}>
Get started Get Started, it&apos;s Free
</Button> </Button>
<Button <Button
variant="secondary" variant="secondary"
className="px-6" className="px-6"
onClick={() => { onClick={() => {
router.push("https://formbricks.com/github"); router.push("https://formbricks.com/github");
/* plausible("Hero_CTA_LaunchDemo"); */ plausible("Hero_CTA_ViewGitHub");
}}> }}>
View Code on GitHub View Code on GitHub
</Button> </Button>

View File

@@ -21,7 +21,7 @@ export const Highlights: React.FC = ({}) => {
significantly higher conversion rate. significantly higher conversion rate.
</p> </p>
</div> </div>
<div className="rounded-lg bg-slate-100 py-6 pr-4 dark:bg-slate-800 sm:py-16 sm:pr-8"> <div className="rounded-lg bg-slate-100 py-6 pr-4 sm:py-16 sm:pr-8 dark:bg-slate-800">
<Image <Image
src={ImageEventTriggerLight} src={ImageEventTriggerLight}
alt="react library" alt="react library"
@@ -39,7 +39,7 @@ export const Highlights: React.FC = ({}) => {
<div className="mx-auto mb-12 mt-8 max-w-lg md:mb-0 md:mt-32 md:max-w-none"> <div className="mx-auto mb-12 mt-8 max-w-lg md:mb-0 md:mt-32 md:max-w-none">
<div className="px-4 sm:max-w-4xl sm:px-6 lg:max-w-7xl lg:px-8"> <div className="px-4 sm:max-w-4xl sm:px-6 lg:max-w-7xl lg:px-8">
<div className="grid md:grid-cols-2 md:items-center md:gap-16"> <div className="grid md:grid-cols-2 md:items-center md:gap-16">
<div className="order-last rounded-lg bg-slate-100 p-4 dark:bg-slate-800 sm:p-8 md:order-first"> <div className="order-last rounded-lg bg-slate-100 p-4 sm:p-8 md:order-first dark:bg-slate-800">
<Image <Image
src={ImageAttributesLight} src={ImageAttributesLight}
alt="react library" alt="react library"
@@ -48,7 +48,7 @@ export const Highlights: React.FC = ({}) => {
<Image src={ImageAttributesDark} alt="react library" className="hidden rounded-lg dark:block" /> <Image src={ImageAttributesDark} alt="react library" className="hidden rounded-lg dark:block" />
</div> </div>
<div className="pb-8 md:pb-0"> <div className="pb-8 md:pb-0">
<h2 className="xs:text-3xl text-2xl font-bold leading-7 tracking-tight text-slate-800 dark:text-slate-100 sm:text-3xl"> <h2 className="xs:text-3xl text-2xl font-bold leading-7 tracking-tight text-slate-800 sm:text-3xl dark:text-slate-100">
Don&apos;t Spray and pray. Don&apos;t Spray and pray.
<br /> <br />
<span className="font-light">Pre-segment granularly.</span> <span className="font-light">Pre-segment granularly.</span>

View File

@@ -1,8 +1,9 @@
import { Button } from "@formbricks/ui/Button";
import { ArrowUpIcon } from "@heroicons/react/24/solid"; import { ArrowUpIcon } from "@heroicons/react/24/solid";
import throttle from "lodash/throttle"; import throttle from "lodash/throttle";
import { useCallback, useEffect, useState } from "react"; import { useCallback, useEffect, useState } from "react";
import { Button } from "@formbricks/ui/Button";
const ScrollToTopButton = () => { const ScrollToTopButton = () => {
const [visible, setVisible] = useState(false); const [visible, setVisible] = useState(false);

View File

@@ -1,6 +1,8 @@
import jsPackageJson from "@/../../packages/js/package.json";
import clsx from "clsx"; import clsx from "clsx";
import { useState } from "react"; import { useState } from "react";
import { IoLogoHtml5, IoLogoNpm } from "react-icons/io5"; import { IoLogoHtml5, IoLogoNpm } from "react-icons/io5";
import CodeBlock from "../shared/CodeBlock"; import CodeBlock from "../shared/CodeBlock";
interface SecondNavbarProps { interface SecondNavbarProps {
@@ -44,7 +46,7 @@ export const SetupInstructions: React.FC = ({}) => {
return ( return (
<div> <div>
<TabBar tabs={tabs} activeId={activeTab} setActiveId={setActiveTab} /> <TabBar tabs={tabs} activeId={activeTab} setActiveId={setActiveTab} />
<div className="h-80 max-w-lg px-4 sm:max-w-lg md:max-w-lg"> <div className="h-84 max-w-lg px-4 sm:max-w-lg md:max-w-lg">
{activeTab === "npm" ? ( {activeTab === "npm" ? (
<> <>
<CodeBlock>npm install @formbricks/js</CodeBlock> <CodeBlock>npm install @formbricks/js</CodeBlock>
@@ -60,7 +62,19 @@ if (typeof window !== "undefined") {
</> </>
) : activeTab === "html" ? ( ) : activeTab === "html" ? (
<CodeBlock>{`<script type="text/javascript"> <CodeBlock>{`<script type="text/javascript">
!function(){var t=document.createElement("script");t.type="text/javascript",t.async=!0,t.src="https://unpkg.com/@formbricks/js@^1.2.0/dist/index.umd.js";var e=document.getElementsByTagName("script")[0];e.parentNode.insertBefore(t,e),setTimeout(function(){window.formbricks.init("claDadXk29dak92dK9","https://app.formbricks.com")},500)}();
!function(){
var jsPackageJson = require('@/package.json'); // Make sure the path is correct
var t = document.createElement("script");
t.type = "text/javascript";
t.async = true;
t.src = "https://unpkg.com/@formbricks/js@^${jsPackageJson.version}/dist/index.umd.js";
var e = document.getElementsByTagName("script")[0];
e.parentNode.insertBefore(t, e);
setTimeout(function(){
window.formbricks.init("claDadXk29dak92dK9","https://app.formbricks.com")
}, 500);
}();
</script>`}</CodeBlock> </script>`}</CodeBlock>
) : null} ) : null}
</div> </div>

View File

@@ -1,10 +1,12 @@
import DemoPreview from "@/components/dummyUI/DemoPreview"; import DemoPreview from "@/components/dummyUI/DemoPreview";
import DashboardMockupDark from "@/images/dashboard-mockup-dark.png"; import DashboardMockupDark from "@/images/dashboard-mockup-dark.png";
import DashboardMockup from "@/images/dashboard-mockup.png"; import DashboardMockup from "@/images/dashboard-mockup.png";
import { Button } from "@formbricks/ui/Button";
import { CursorArrowRaysIcon } from "@heroicons/react/24/solid"; import { CursorArrowRaysIcon } from "@heroicons/react/24/solid";
import Image from "next/image"; import Image from "next/image";
import { useState } from "react"; import { useState } from "react";
import { Button } from "@formbricks/ui/Button";
import AddEventDummy from "../dummyUI/AddEventDummy"; import AddEventDummy from "../dummyUI/AddEventDummy";
import AddNoCodeEventModalDummy from "../dummyUI/AddNoCodeEventModalDummy"; import AddNoCodeEventModalDummy from "../dummyUI/AddNoCodeEventModalDummy";
import HeadingCentered from "../shared/HeadingCentered"; import HeadingCentered from "../shared/HeadingCentered";
@@ -43,7 +45,7 @@ export const Steps: React.FC = () => {
<div className="mx-auto mb-12 mt-8 max-w-lg md:mb-0 md:mt-32 md:max-w-none"> <div className="mx-auto mb-12 mt-8 max-w-lg md:mb-0 md:mt-32 md:max-w-none">
<div className="px-4 sm:max-w-4xl sm:px-6 lg:max-w-7xl lg:px-8"> <div className="px-4 sm:max-w-4xl sm:px-6 lg:max-w-7xl lg:px-8">
<div className="grid md:grid-cols-2 md:items-center md:gap-16"> <div className="grid md:grid-cols-2 md:items-center md:gap-16">
<div className="order-last w-full rounded-lg bg-slate-100 p-4 dark:bg-slate-800 sm:py-8 md:order-first"> <div className="order-last w-full rounded-lg bg-slate-100 p-4 sm:py-8 md:order-first dark:bg-slate-800">
<div className="flex h-40 items-center justify-center"> <div className="flex h-40 items-center justify-center">
<Button <Button
variant="primary" variant="primary"
@@ -58,7 +60,7 @@ export const Steps: React.FC = () => {
</div> </div>
<div className="pb-8 md:pb-0"> <div className="pb-8 md:pb-0">
<h4 className="text-brand-dark font-bold">Step 2</h4> <h4 className="text-brand-dark font-bold">Step 2</h4>
<h2 className="xs:text-3xl text-2xl font-bold tracking-tight text-slate-800 dark:text-slate-100 sm:text-3xl"> <h2 className="xs:text-3xl text-2xl font-bold tracking-tight text-slate-800 sm:text-3xl dark:text-slate-100">
No-Code: Track User Actions No-Code: Track User Actions
</h2> </h2>
<p className="text-md mt-6 max-w-lg leading-7 text-slate-500 dark:text-slate-400"> <p className="text-md mt-6 max-w-lg leading-7 text-slate-500 dark:text-slate-400">
@@ -74,7 +76,7 @@ export const Steps: React.FC = () => {
<div className="grid md:grid-cols-2 md:items-center md:gap-16"> <div className="grid md:grid-cols-2 md:items-center md:gap-16">
<div className="pb-8 sm:pl-10 md:pb-0"> <div className="pb-8 sm:pl-10 md:pb-0">
<h4 className="text-brand-dark font-bold">Step 3</h4> <h4 className="text-brand-dark font-bold">Step 3</h4>
<h2 className="xs:text-3xl text-2xl font-bold tracking-tight text-slate-800 dark:text-slate-200 sm:text-3xl"> <h2 className="xs:text-3xl text-2xl font-bold tracking-tight text-slate-800 sm:text-3xl dark:text-slate-200">
Create your survey Create your survey
</h2> </h2>
<p className="text-md mt-6 max-w-lg leading-7 text-slate-500 dark:text-slate-400"> <p className="text-md mt-6 max-w-lg leading-7 text-slate-500 dark:text-slate-400">
@@ -82,7 +84,7 @@ export const Steps: React.FC = () => {
adjust the look and feel of your survey. adjust the look and feel of your survey.
</p> </p>
</div> </div>
<div className="relative w-full rounded-lg p-1 dark:bg-slate-800 sm:p-8"> <div className="relative w-full rounded-lg p-1 sm:p-8 dark:bg-slate-800">
<DemoPreview template="Product Market Fit Survey (short)" /> <DemoPreview template="Product Market Fit Survey (short)" />
</div> </div>
</div> </div>
@@ -91,14 +93,14 @@ export const Steps: React.FC = () => {
<div className="mx-auto mb-12 mt-8 max-w-lg md:mb-0 md:mt-32 md:max-w-none"> <div className="mx-auto mb-12 mt-8 max-w-lg md:mb-0 md:mt-32 md:max-w-none">
<div className="px-4 sm:max-w-4xl sm:px-6 lg:max-w-7xl lg:px-8"> <div className="px-4 sm:max-w-4xl sm:px-6 lg:max-w-7xl lg:px-8">
<div className="grid md:grid-cols-2 md:items-center md:gap-16"> <div className="grid md:grid-cols-2 md:items-center md:gap-16">
<div className="order-last w-full rounded-lg bg-slate-100 p-4 dark:bg-slate-800 sm:py-8 md:order-first"> <div className="order-last w-full rounded-lg bg-slate-100 p-4 sm:py-8 md:order-first dark:bg-slate-800">
<div className="mx-auto flex flex-col items-center justify-center md:w-3/4"> <div className="mx-auto flex flex-col items-center justify-center md:w-3/4">
<AddEventDummy /> <AddEventDummy />
</div> </div>
</div> </div>
<div className="pb-8 md:pb-0"> <div className="pb-8 md:pb-0">
<h4 className="text-brand-dark font-bold">Step 4</h4> <h4 className="text-brand-dark font-bold">Step 4</h4>
<h2 className="xs:text-3xl text-2xl font-bold tracking-tight text-slate-800 dark:text-slate-100 sm:text-3xl"> <h2 className="xs:text-3xl text-2xl font-bold tracking-tight text-slate-800 sm:text-3xl dark:text-slate-100">
Set segment and trigger Set segment and trigger
</h2> </h2>
<p className="text-md mt-6 max-w-lg leading-7 text-slate-500 dark:text-slate-400"> <p className="text-md mt-6 max-w-lg leading-7 text-slate-500 dark:text-slate-400">
@@ -114,7 +116,7 @@ export const Steps: React.FC = () => {
<div className="grid md:grid-cols-2 md:items-center md:gap-16"> <div className="grid md:grid-cols-2 md:items-center md:gap-16">
<div className="pb-8 sm:pl-10 md:pb-0"> <div className="pb-8 sm:pl-10 md:pb-0">
<h4 className="text-brand-dark font-bold">Step 5</h4> <h4 className="text-brand-dark font-bold">Step 5</h4>
<h2 className="xs:text-3xl text-2xl font-bold tracking-tight text-slate-800 dark:text-slate-200 sm:text-3xl"> <h2 className="xs:text-3xl text-2xl font-bold tracking-tight text-slate-800 sm:text-3xl dark:text-slate-200">
Make better decisions Make better decisions
</h2> </h2>
<p className="text-md mt-6 max-w-lg leading-7 text-slate-500 dark:text-slate-400"> <p className="text-md mt-6 max-w-lg leading-7 text-slate-500 dark:text-slate-400">

View File

@@ -1,5 +1,5 @@
import { ResponsiveVideo } from "@formbricks/ui/ResponsiveVideo";
import { Modal } from "@formbricks/ui/Modal"; import { Modal } from "@formbricks/ui/Modal";
import { ResponsiveVideo } from "@formbricks/ui/ResponsiveVideo";
interface VideoWalkThroughProps { interface VideoWalkThroughProps {
open: boolean; open: boolean;

View File

@@ -1,4 +1,5 @@
import AuthorJohannes from "@/images/blog/johannes-co-founder-formbricks-small.jpg"; import AuthorJohannes from "@/images/blog/johannes-co-founder-formbricks-small.jpg";
import AuthorOla from "@/images/blog/ola-content-writer.jpg";
import Image from "next/image"; import Image from "next/image";
interface AuthorBoxProps { interface AuthorBoxProps {
@@ -6,14 +7,15 @@ interface AuthorBoxProps {
title: string; title: string;
date: string; date: string;
duration: string; duration: string;
author: string;
} }
export default function AuthorBox({ name, title, date, duration }: AuthorBoxProps) { export default function AuthorBox({ name, title, date, duration, author }: AuthorBoxProps) {
return ( return (
<div className="mb-8 flex items-center space-x-4 rounded-lg border border-slate-200 bg-slate-100 px-6 py-3 dark:border-slate-700 dark:bg-slate-800"> <div className="mb-8 flex items-center space-x-4 rounded-lg border border-slate-200 bg-slate-100 px-6 py-3 dark:border-slate-700 dark:bg-slate-800">
<Image <Image
className="m-0 rounded-full" className="m-0 rounded-full"
src={AuthorJohannes} src={author === "Johannes" ? AuthorJohannes : AuthorOla}
alt={name} alt={name}
width={45} width={45}
height={45} height={45}

View File

@@ -1,3 +1,6 @@
import clsx from "clsx";
import Link from "next/link";
import { import {
BaseballIcon, BaseballIcon,
CancelSubscriptionIcon, CancelSubscriptionIcon,
@@ -8,8 +11,6 @@ import {
OnboardingIcon, OnboardingIcon,
PMFIcon, PMFIcon,
} from "@formbricks/ui/icons"; } from "@formbricks/ui/icons";
import clsx from "clsx";
import Link from "next/link";
export default function BestPracticeNavigation() { export default function BestPracticeNavigation() {
const BestPractices = [ const BestPractices = [

View File

@@ -4,13 +4,13 @@ export default function InsightOppos() {
return ( return (
<div className="pb-10 pt-12 md:pt-20"> <div className="pb-10 pt-12 md:pt-20">
<div className="px-4 py-20 text-center sm:px-6 lg:px-8" id="best-practices"> <div className="px-4 py-20 text-center sm:px-6 lg:px-8" id="best-practices">
<h1 className="text-3xl font-bold tracking-tight text-slate-800 dark:text-slate-200 sm:text-4xl md:text-5xl"> <h1 className="text-3xl font-bold tracking-tight text-slate-800 sm:text-4xl md:text-5xl dark:text-slate-200">
Get started with{" "} Get started with{" "}
<span className="from-brand-light to-brand-dark bg-gradient-to-b bg-clip-text text-transparent xl:inline"> <span className="from-brand-light to-brand-dark bg-gradient-to-b bg-clip-text text-transparent xl:inline">
Best Practices Best Practices
</span> </span>
</h1> </h1>
<p className="mx-auto mt-3 max-w-md text-base text-slate-500 dark:text-slate-300 sm:text-lg md:mt-5 md:max-w-3xl md:text-xl"> <p className="mx-auto mt-3 max-w-md text-base text-slate-500 sm:text-lg md:mt-5 md:max-w-3xl md:text-xl dark:text-slate-300">
Run battle-tested approaches for qualitative user research in minutes. Run battle-tested approaches for qualitative user research in minutes.
</p> </p>
</div> </div>

View File

@@ -1,8 +1,9 @@
import { Button } from "@formbricks/ui/Button";
import clsx from "clsx"; import clsx from "clsx";
import { usePlausible } from "next-plausible"; import { usePlausible } from "next-plausible";
import { useRouter } from "next/router"; import { useRouter } from "next/router";
import { Button } from "@formbricks/ui/Button";
interface Props { interface Props {
teaser: string; teaser: string;
headline: string; headline: string;

View File

@@ -1,5 +1,7 @@
import { Button } from "@formbricks/ui/Button";
import { useRouter } from "next/router"; import { useRouter } from "next/router";
import { Button } from "@formbricks/ui/Button";
import HeadingCentered from "./HeadingCentered"; import HeadingCentered from "./HeadingCentered";
export default function CTA() { export default function CTA() {
@@ -10,7 +12,7 @@ export default function CTA() {
<HeadingCentered closer teaser="Get started" heading="Ready for the last form tool you need?" /> <HeadingCentered closer teaser="Get started" heading="Ready for the last form tool you need?" />
<div className="mt-12 grid grid-cols-1 content-center md:grid-cols-2"> <div className="mt-12 grid grid-cols-1 content-center md:grid-cols-2">
<div className="-mb-4 rounded-t-xl bg-gradient-to-br from-slate-300 to-slate-200 px-8 py-24 text-center text-slate-900 dark:from-slate-800 dark:to-slate-900 dark:text-slate-100 md:-mr-5 md:mb-0 md:ml-2.5 md:rounded-l-xl lg:p-24"> <div className="-mb-4 rounded-t-xl bg-gradient-to-br from-slate-300 to-slate-200 px-8 py-24 text-center text-slate-900 md:-mr-5 md:mb-0 md:ml-2.5 md:rounded-l-xl lg:p-24 dark:from-slate-800 dark:to-slate-900 dark:text-slate-100">
<h3 className="text-3xl font-bold">Self-hosted</h3> <h3 className="text-3xl font-bold">Self-hosted</h3>
<p className="mb-4 mt-2">Run locally e.g. with docker-compose.</p> <p className="mb-4 mt-2">Run locally e.g. with docker-compose.</p>
<Button variant="secondary" onClick={() => router.push("/docs")} className="mt-3"> <Button variant="secondary" onClick={() => router.push("/docs")} className="mt-3">

View File

@@ -1,5 +1,5 @@
import clsx from "clsx";
import { Icon } from "@/components/shared/Icon"; import { Icon } from "@/components/shared/Icon";
import clsx from "clsx";
const styles = { const styles = {
note: { note: {

Some files were not shown because too many files have changed in this diff Show More