From 8cbfe250e4977a7431ff3a25865bbe9aaf3a9245 Mon Sep 17 00:00:00 2001 From: Michael Shanks Date: Thu, 22 Oct 2020 21:59:40 +0100 Subject: [PATCH] Feedback - added Modal after deploy --- .../components/userInterface/Feedback.svelte | 82 ------------------- .../Feedback/FeedbackIframe.svelte | 57 +++++++++++++ .../Feedback/FeedbackNavLink.svelte | 35 ++++++++ .../src/pages/[application]/_reset.svelte | 4 +- .../pages/[application]/deploy/index.svelte | 8 +- 5 files changed, 101 insertions(+), 85 deletions(-) delete mode 100644 packages/builder/src/components/userInterface/Feedback.svelte create mode 100644 packages/builder/src/components/userInterface/Feedback/FeedbackIframe.svelte create mode 100644 packages/builder/src/components/userInterface/Feedback/FeedbackNavLink.svelte diff --git a/packages/builder/src/components/userInterface/Feedback.svelte b/packages/builder/src/components/userInterface/Feedback.svelte deleted file mode 100644 index ecce78b1b0..0000000000 --- a/packages/builder/src/components/userInterface/Feedback.svelte +++ /dev/null @@ -1,82 +0,0 @@ - - - - - - - - - - diff --git a/packages/builder/src/components/userInterface/Feedback/FeedbackIframe.svelte b/packages/builder/src/components/userInterface/Feedback/FeedbackIframe.svelte new file mode 100644 index 0000000000..0de129ff80 --- /dev/null +++ b/packages/builder/src/components/userInterface/Feedback/FeedbackIframe.svelte @@ -0,0 +1,57 @@ + + + + + diff --git a/packages/builder/src/components/userInterface/Feedback/FeedbackNavLink.svelte b/packages/builder/src/components/userInterface/Feedback/FeedbackNavLink.svelte new file mode 100644 index 0000000000..0a6afe268f --- /dev/null +++ b/packages/builder/src/components/userInterface/Feedback/FeedbackNavLink.svelte @@ -0,0 +1,35 @@ + + + + + + + + + + diff --git a/packages/builder/src/pages/[application]/_reset.svelte b/packages/builder/src/pages/[application]/_reset.svelte index 7647bb6819..fb2b233e2c 100644 --- a/packages/builder/src/pages/[application]/_reset.svelte +++ b/packages/builder/src/pages/[application]/_reset.svelte @@ -2,7 +2,7 @@ import { store, automationStore, backendUiStore } from "builderStore" import { Button } from "@budibase/bbui" import SettingsLink from "components/settings/Link.svelte" - import Feedback from "components/userInterface/Feedback.svelte" + import FeedbackNavLink from "components/userInterface/Feedback/FeedbackNavLink.svelte" import { get } from "builderStore/api" import { isActive, goto, layout } from "@sveltech/routify" import { PreviewIcon } from "components/common/Icons/" @@ -66,7 +66,7 @@ {/each}
- + import { onMount } from "svelte" - import { Button, Spacer } from "@budibase/bbui" + import { Button, Spacer, Modal } from "@budibase/bbui" import { store } from "builderStore" import { notifier } from "builderStore/store/notifications" import api from "builderStore/api" import Spinner from "components/common/Spinner.svelte" import DeploymentHistory from "components/deploy/DeploymentHistory.svelte" import analytics from "analytics" + import FeedbackIframe from "components/userInterface/Feedback/FeedbackIframe.svelte" let loading = false let deployments = [] let poll + let feedbackModal $: appId = $store.appId @@ -31,6 +33,7 @@ analytics.captureEvent("Deployed App", { appId, }) + feedbackModal.show() } catch (err) { analytics.captureEvent("Deploy App Failed", { appId, @@ -57,6 +60,9 @@ src="/_builder/assets/deploy-rocket.jpg" alt="Rocket flying through sky" /> + + +