Skip to content

Commit

Permalink
chore: Introduce unified survey UI package @formbricks/surveys (formb…
Browse files Browse the repository at this point in the history
…ricks#698)

* add vite survey package

* add renderSurvey method

* add all survey components

* First working version of renderSurvey

* integrate survey package into survey preview

* add survey modal functionality to formbricks-surveys

* fix build errors and add new template types

* add response queue

* add simple formbricks-js integration

* add local state management for surveys

* add local storage to multiple choice and open text questions

* add local state to other question types, layout fixes

* Fix modal close button, clean js package code

* add new calculate progress function

* fix progressbar on thankyou card

* fix churn survey branching in demo product

* use tsup to bundle @formbricks/js

* update survey positioning in link surveys

* fix preview reset button in link survey

* change logic for progress bar

* update progressbar logic

* update spacing

* add conditional autofocus / disable for iframe

* add userId to link survey

* integrated email verification

* moved token verification and reading to server component

* ran pnpm format

* added question prefilling

* ran pnpm format

* Moved question prefilling logic to Link Survey

* Refactor types

* centralize survey package props, fix build errors

* fix userId in link survey

* fix survey closed message

* add redirect on complete, fix bugs

* smaller bugfixes

* smaller bugfixes

* fix bugs

* fix build errors

* remove logs

---------

Co-authored-by: Johannes <johannes@formbricks.com>
Co-authored-by: Dhruwang <dhruwangjariwala18@gmail.com>
  • Loading branch information
3 people committed Sep 10, 2023
1 parent 972c39b commit 711c15c
Show file tree
Hide file tree
Showing 129 changed files with 2,637 additions and 4,014 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export function DeletePersonButton({ environmentId, personId }: DeletePersonButt
try {
setIsDeletingPerson(true);
await deletePersonAction(personId);
router.refresh();
router.push(`/environments/${environmentId}/people`);
toast.success("Person deleted successfully.");
} catch (error) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import { ArrowsUpDownIcon, TrashIcon } from "@heroicons/react/24/outline";
import {
ActivityItemPopover,
ActivityItemIcon,
ActivityItemPopover,
} from "@/app/(app)/environments/[environmentId]/people/[personId]/(activitySection)/ActivityItemComponents";
import { BackIcon } from "@formbricks/ui";
import { TActivityFeedItem } from "@formbricks/types/v1/activity";
import { BackIcon } from "@formbricks/ui";
import { ArrowsUpDownIcon } from "@heroicons/react/24/outline";
import { TrashIcon } from "lucide-react";

export default function Loading() {
const unifiedList: TActivityFeedItem[] = [
Expand Down

0 comments on commit 711c15c

Please sign in to comment.