diff --git a/packages/builder/src/components/deploy/DeployModal.svelte b/packages/builder/src/components/deploy/DeployModal.svelte index 6e1b5f76e9..b88ec0a49c 100644 --- a/packages/builder/src/components/deploy/DeployModal.svelte +++ b/packages/builder/src/components/deploy/DeployModal.svelte @@ -2,6 +2,7 @@ import { onMount, onDestroy } from "svelte" import { Button, Modal, notifications, ModalContent } from "@budibase/bbui" import FeedbackIframe from "../feedback/FeedbackIframe.svelte" + import Feedback from "./Feedback.svelte" import { store } from "builderStore" import api from "builderStore/api" import analytics from "analytics" @@ -92,6 +93,8 @@ onDestroy(() => clearInterval(poll)) + + + import { + ActionButton, + RadioGroup, + TextArea, + ButtonGroup, + Button, + Heading, + Detail, + Divider, + Layout, + } from "@budibase/bbui" + let step = 0 + let ratings = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] + let options = [ + "Importing / managing data", + "Designing", + "Automations", + "Managing users / groups", + "Deployment / hosting", + "Documentation", + ] + + // Data to send off + let rating + let improvements + let comment + + function selectNumber(n) { + rating = n + step = 1 + } + + function submitFeedback() { + // 1. Submit feedback + // 2. dispatch event to parent and publish event + // 3. Store cookie, flip user flag + console.log({ + rating, + improvements, + comment, + }) + } + + +
+