* add back button, next with local storaage wip
* handle submission and skip submission logic
* handle showing stored value on same concurrent question type.
* remove console.log
* fix next button not showing, add saving answer on pressing back to local storage
* add temp props to QuestionCondition in preview modal
* add temp props to QuestionCondition in preview modal again...
* update navigation logic
* update survey question preview
* add back-button component
* add back button to formbricks/js
* refactor localStorage functions to lib
* remove unused import
* add form prefilling when reloading forms
* merge main into branch
* Revert "merge main into branch"
This reverts commit 13bc9c06ec.
* rename localStorage key answers->responses
* rename answers -> responses in linkSurvey lib
* when survey page reloaded jump to next question instead of current question
* rename getStoredAnswer -> getStoredResponse
* continue renaming
* continue renaming
* rename answerValue -> responseValue
---------
Co-authored-by: Matthias Nannt <mail@matthiasnannt.com>
* added validation to survey edit
* made refactors
* extracted validation rules into a single object and resolved draggable issue
* ran pnpm format
* fixed a validation bug
* fixed similar validation bug in other component
* implemented default and specific validation
* made some code refactors
* handled case where a question is deleted
* instead of storing questionIdx now we are storing question id in invalidQuestions array && ran pnpm format
* removed unused comment
* run pnpm format
* made requested changes
* removed unused export
* add types to validation.ts
* run pnpm format
---------
Co-authored-by: Matthias Nannt <mail@matthiasnannt.com>
* url add to link-survey
* fixed
* fixed
* fixed
* fixed
* ran pnpm format
* make url optional in response input to not break existing integrations
---------
Co-authored-by: Matthias Nannt <mail@matthiasnannt.com>
* Fix email notifications not working properly
* Fix response notification not working
* fix response meta schema
* fix typo in docs
* improve error message in webhooks
* feat: server rendering of event actions summary page & server actions
* chore: renaming event to action and minor refactoring
* fix: logging message
* delete: unnecessary file
* feat: migrate attributes overview page
* feat: impl grouped page & layout, logically differentiate attributes and actions
* pnpm format
* fix: logical addressing of dirs and minot bugs
* move: actionsAndAttributes navbar to dedicated dir from components
* fix: use server-only build-time checks and move actionsAttributes navbar
* revert: unnecessary docker compose changes
* resolve merge conflicts dynamically
* fix: address feedback comments
* use sparkles icon from heroicons
* fix updated action not updating in table
* remove async from client function due to warning
* move router.refresh in AddNoActionModal
* small rename
* feat: replace swr w server action in ActionSettingsTab
* replace custom error with ResourceNotFoundError error class
---------
Co-authored-by: Matthias Nannt <mail@matthiasnannt.com>
* feat: added a option to set ordering of choices
* changed the parameter for random ordering and used Switch instead of Select
* added logic for shuffle
* added shuffleOption in zod schema and fixed some copy.
* run pnpm format
* make shuffleOption optional in zod to prevent errors in existing data
* made fixes as asked in peer review and ran pnpm format
* minor bug fixes
* Update env.mjs
* fix shuffleArray to not shuffle reference object
* update shuffle method
---------
Co-authored-by: Matthias Nannt <mail@matthiasnannt.com>
* Fix issue 427
* Address review comment
* jump back to top on long questions
* add to JS widget
---------
Co-authored-by: Seram Nitesh Singh <nitesh.s@auzmor.com>
Co-authored-by: Johannes <johannes@formbricks.com>
* add first part of sync service
* add actionClasses to js sync
* fix errors, add product to sync
* rewrite formbricks-js for new states and types
* fix tests
* fix build errors
* add cors
* fix cors errors and other bugs
* comment test in checks until working again