Commit Graph

1260 Commits

Author SHA1 Message Date
Naitik 54951822c3 Merge branch 'main' of https://github.com/formbricks/formbricks 2023-10-05 00:47:38 +05:30
Johannes 06f03f65ca feat: Better Embedding of Link Surveys
feat: Better Embedding of Link Surveys
2023-10-04 23:35:30 +05:45
Naitik 4a90d87058 HTML Validation, Proper UI 2023-10-04 23:04:49 +05:30
Joe 59752f3ebe feat: add option to overwrite color and position for single surveys (#645)
* feat: styles ui

* feat: handling brand color and position

* schema update

* survey type update

* feat: local styles preview

* prisma migration

* feat: overriding global settings

* fix: update wording

* fix: do not show positioning in link mode

* update wording

* feat: new component for placement ui

* fix: destructuring localsurvey

* fix: overwritePosition optional

* fix: brandcolor zod validation

* feat: overwrite highlight border setting

* update wording

* merge conflit resolved

* fix: minor review suggestions

* fix: renamed localsurvey to survey

* fix: db schema

* fix comment in .env.example

* fix build errors

* fix: placement

* fix getFirstEnvironmentByUserId function

* fix build errors

---------

Co-authored-by: Johannes <johannes@formbricks.com>
Co-authored-by: Matthias Nannt <mail@matthiasnannt.com>
Co-authored-by: pandeymangg <anshuman.pandey9999@gmail.com>
2023-10-04 19:09:48 +02:00
Rotimi Best de40dc36e6 chore: move all services into the new folder structure (#948)
* chore: move environment services

* chore: move all services
2023-10-04 18:04:38 +02:00
Piyush Gupta 9e19d11eed purged LinkSurveyModal, fixed build error 2023-10-04 21:04:54 +05:30
Piyush Gupta 7580840bb5 resolved merge conflicts 2023-10-04 20:55:45 +05:30
Rotimi Best 6758d2d318 chore: move actions service to new folder structure (#943)
* feat: move actions service

* fix: rename folder to be singular not plural

---------

Co-authored-by: Matthias Nannt <mail@matthiasnannt.com>
2023-10-04 17:00:03 +02:00
Sagnik Sahoo d9f3df8b0f fix: Single Use Link Preview is not correctly functioning (#938)
* fixing the preview link

* Update LinkSingleUseSurveyModal.tsx
2023-10-04 16:27:24 +02:00
Rotimi Best eb70a8b99a chore: move display service to new folder structure (#946) 2023-10-04 16:25:26 +02:00
Piyush Gupta c69e3f5cca fix: resolved PR review changes 2023-10-04 19:11:25 +05:30
Rotimi Best 424cddfa9e chore: move attributeClass service to new folder structure (#944)
* chore: move attributeClass service

* update person service with new attributeClass location
2023-10-04 15:25:08 +02:00
Johannes 8897d3ed66 Validate Survey Editor Form
Validate Survey Editor Form
2023-10-04 18:36:59 +05:45
ShubhamPalriwala 16a94ef61f fix: add missing state set on fail 2023-10-04 18:04:06 +05:30
ShubhamPalriwala f97c8e5bce Merge branch 'shubham/for-1150-validate-survey-editor-forms' of https://github.com/formbricks/formbricks into shubham/for-1150-validate-survey-editor-forms 2023-10-04 17:47:53 +05:30
Piyush Gupta c57c06dd3b merged main into feat/embed-xp 2023-10-04 17:35:53 +05:30
Shubham Palriwala a78c19385e fix: generate single survey Ids in summary only if enabled (#942) 2023-10-04 13:04:47 +02:00
Shubham Palriwala cce3a98f20 feat: add docs for management API (#930)
* feat: docs for management API

* fix: split api into client and management

* update navigation and pages

---------

Co-authored-by: Matthias Nannt <mail@matthiasnannt.com>
2023-10-04 11:03:13 +02:00
Johannes b13dbc7fea reword toast 2023-10-04 14:23:09 +05:45
Johannes 3b24569e8e Merge branch 'main' of github.com:formbricks/formbricks into shubham/for-1150-validate-survey-editor-forms 2023-10-04 14:06:44 +05:45
Johannes d3779bd649 fix typos 2023-10-04 13:24:07 +05:45
Naitik 57234cf012 Merge branch 'main' of https://github.com/formbricks/formbricks 2023-10-04 12:09:53 +05:30
Johannes 67217f4c75 Merge branch 'main' of github.com:formbricks/formbricks into shubham/for-1089-formulate-faqs-and-create-page 2023-10-04 11:33:09 +05:45
Matti Nannt 94e272f47b fix: validation error in profile update input (#937) 2023-10-03 22:03:20 +02:00
Shubham Palriwala c6678a2607 fix: add authorization for Survey actions (#870)
* poc: use server session and api key validation on deletion

* feat: use server session and api key validation on deletion and creation

* feat: packages/lib/apiKey for apiKey services and auth

* shubham/auth-for-api-key

* fix: caching

* feat: handle authorization for action creation, update, delete

* feat: handle authorization for survey creation, updation & deletion

* feat: use cached method across and wrapper for authzn check

* fix: use cached wrapper & introduce more authzn check for survey services in actions

* fix: club caching methods and use authzn errors

* feat: add caching in canUserAccessApiKey

* feat: add caching in canUserAccessAction and use Authzn error

* fix: rename action to actionClass wherever needed

* feat: use caching in core method and update hasEnvAccess call

* fix: use authzn specific error

* fix: use cache getActionClass

* fix: make changes

* fix: import

* fix: import and suggested changes

* fix: rename action and use cache tag

* feat: use services to create team

* fix: atomic services for product & team creation

* improve teamUpdateInput

* use services in signup process

* redirect to prod environment when new product is created

* fix signup bug

---------

Co-authored-by: Matthias Nannt <mail@matthiasnannt.com>
2023-10-03 21:43:34 +02:00
Naitik Kapadia 1ddfe493e5 Merge branch 'formbricks:main' into main 2023-10-03 23:48:44 +05:30
Johannes 76ecbb9e2f update leaderboard 2023-10-03 23:22:09 +05:45
Piyush Gupta 83ab524200 merged with remote changes 2023-10-03 23:00:30 +05:30
Piyush Gupta 92681b0f81 fix: preview mode in email tab 2023-10-03 22:51:12 +05:30
Piyush Gupta 28ab3c3e4d synced with main 2023-10-03 22:50:11 +05:30
tyjkerr a35d573884 feat: add single use survey links (#742)
* add uniqueResponseId to link survey

* add uniqueResponseId to survey response

* add singUseId to database and link survey

* add singleUseId to api

* add single use option in survey response options

* add single use to getSurvey

* add getResponseBySingleUseId

* add ZSurveySingleUse schema to survey schema

* add logic to check if link with suid has response

* pass singleUseId as props, revert SWR changes

* generation of single-use url in LinkSurveyModal

* add singleUseId to SingleResponseCard

* update SurveyInactive for invalid link

* add suId to ZResponse schema

* fix typo in SurveyInactive

* update ResponseOptionCard

* add suId to response select

* add default message for SurveyLinkUsed

* update logic to render SurveyLinkUsed

* add comment for suId in prisma schema

* fix types

* refresh server component on save survey

* update logic

* fix build errors

* fix prisma schema

* add db migration

* update wording

* add singleUseId to localstorage

* fix survey link used over thank you

* add suid to people responses

* fix preview and copy link on surveys page.

* update text and icon for link survey modal

* check survey not finished before setting question

* update show surveylink used logic

* add zodtype to prisma

* fix logic to render last question answered/stored

* add better comments

* update default message for single use surveys

* add LinkSingleUseSurveyModal

* add guard before getting response with suid

* fix build error

* add default message for link used page

* add key and group imports

* add suId encryption and validation

* make survey url encryption optional

* fix build errors

* move singleUseId to server side in surveyList

* added validation to getResponseBySingleUseId service

* restored env var names

* import FORMBRICKS_ENCRYPTION_KEY from constants

* check if encryption environment variable is set, add length validation for env variable

---------

Co-authored-by: Ty Kerr <tykerr@Tys-MacBook-Pro.local>
Co-authored-by: Johannes <johannes@formbricks.com>
Co-authored-by: Matthias Nannt <mail@matthiasnannt.com>
Co-authored-by: Dhruwang <dhruwangjariwala18@gmail.com>
2023-10-03 18:26:13 +02:00
Johannes 251beb4d51 ui tweaks 2023-10-03 21:36:16 +05:45
Piyush Gupta 5384e7f95e resolved merge conflicts 2023-10-03 21:06:38 +05:30
Shubham Palriwala 49eb4e0c53 feat: connection states on integrations (#833)
* feat: connection states on integrations

* fix: missing action buttons

* make text more readable

---------

Co-authored-by: Johannes <johannes@formbricks.com>
2023-10-03 14:28:55 +02:00
Rotimi Best 2cf316b620 fix: rename function name typo in services (#922) 2023-10-03 13:54:26 +02:00
Naitik Kapadia e2572ff87b Merge branch 'formbricks:main' into main 2023-10-03 15:49:47 +05:30
Naitik 6c0d356c2a Component for QuestionTypeSelector 2023-10-03 15:44:28 +05:30
Matti Nannt a8e0e7d3f2 fix: display count not correct in link surveys (#929) 2023-10-03 11:28:55 +02:00
Johannes 2d9f35f503 add gitpod prize 2023-10-03 14:06:59 +05:45
Johannes 0620829830 update how to section 2023-10-03 12:56:25 +05:45
Naitik 6ef5a4bcc0 Merge branch 'main' of https://github.com/formbricks/formbricks 2023-10-02 23:38:27 +05:30
Jonas Höbenreich 89a60fd568 feat: add Excel download option (#846)
* add Excel download option

* add back attribute export

* add types and check for download filetype

* add xlsx package

* move csv and excel conversion to internal endpoints

---------

Co-authored-by: Matthias Nannt <mail@matthiasnannt.com>
2023-10-02 17:04:11 +02:00
Naitik 5e4d92205c Changed templates.ts 2023-10-02 19:55:50 +05:30
Naitik 444c0b8f36 Small Fix 2023-10-02 19:36:41 +05:30
Naitik adc5e30dca Remove redunant import 2023-10-02 19:32:24 +05:30
Naitik b5737ea611 Merge branch 'main' of https://github.com/formbricks/formbricks 2023-10-02 19:32:04 +05:30
Shubham Palriwala 8c0aba82e5 fix: add authorisation for tags actions (#897)
* poc: use server session and api key validation on deletion

* feat: use server session and api key validation on deletion and creation

* feat: packages/lib/apiKey for apiKey services and auth

* shubham/auth-for-api-key

* fix: caching

* feat: handle authorization for tag creation, updation & deletion

* fix: use cached wrapper

* fix: club caching methods and use authzn errors

* feat: add caching in canUserAccessApiKey

* fix: suggrsted changes and authzn for response as well

* fix: work on suggested changes

* fix broken lock file

---------

Co-authored-by: Matthias Nannt <mail@matthiasnannt.com>
2023-10-02 16:00:25 +02:00
Naitik cf75b4850d Validation Fields 2023-10-02 19:27:37 +05:30
Shubham Palriwala a9c8e99cd4 fix: add authorization to actions for Profile (#908)
* feat: authzn and limit sensitive info from profile actions

* fix: work on suggested changes
2023-10-02 15:40:15 +02:00
Johannes 829d2f0297 update leaderboard 2023-10-02 17:04:12 +05:45