diff --git a/.gitignore b/.gitignore
index 3eb705dbbf..8861a14d20 100644
--- a/.gitignore
+++ b/.gitignore
@@ -107,3 +107,4 @@ budibase-component
budibase-datasource
*.iml
+.nx
\ No newline at end of file
diff --git a/packages/builder/src/components/deploy/AppActions.svelte b/packages/builder/src/components/deploy/AppActions.svelte
index 1fa4fc7cd6..1d7bb4f65e 100644
--- a/packages/builder/src/components/deploy/AppActions.svelte
+++ b/packages/builder/src/components/deploy/AppActions.svelte
@@ -32,10 +32,14 @@
import TourWrap from "components/portal/onboarding/TourWrap.svelte"
import { TOUR_STEP_KEYS } from "components/portal/onboarding/tours.js"
import { goto } from "@roxi/routify"
+ import { onMount } from "svelte"
+ import PosthogClient from "../../analytics/PosthogClient"
export let application
export let loaded
+ const posthog = new PosthogClient(process.env.POSTHOG_TOKEN)
+
let unpublishModal
let updateAppModal
let revertModal
@@ -44,6 +48,7 @@
let appActionPopoverOpen = false
let appActionPopoverAnchor
let publishing = false
+ let showNpsSurvey = false
let lastOpened
$: filteredApps = $appsStore.apps.filter(app => app.devId === application)
@@ -98,6 +103,7 @@
type: "success",
icon: "GlobeCheck",
})
+ showNpsSurvey = true
await completePublish()
} catch (error) {
console.error(error)
@@ -148,6 +154,10 @@
notifications.error("Error refreshing app")
}
}
+
+ onMount(() => {
+ posthog.init()
+ })
@@ -345,6 +355,10 @@