Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add inapp survey #2753

Merged
merged 2 commits into from
Feb 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ jobs:

- name: Prep Build
run: mage prep
env:
FLIPT_FORMBRICKS_ENVIRONMENT_ID: ${{ secrets.FLIPT_FORMBRICKS_ENVIRONMENT_ID }}

- name: GoReleaser Build
uses: goreleaser/goreleaser-action@v5
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ jobs:

- name: Prep Build
run: mage prep
env:
FLIPT_FORMBRICKS_ENVIRONMENT_ID: ${{ secrets.FLIPT_FORMBRICKS_ENVIRONMENT_ID }}

- name: GoReleaser (Snapshot) Build
uses: goreleaser/goreleaser-action@v5
Expand Down
1 change: 1 addition & 0 deletions ui/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,4 @@ dist-ssr
/playwright/.cache/
.packagehash
/screenshots/
.env
11 changes: 11 additions & 0 deletions ui/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"@codemirror/lint": "^6.4.2",
"@dnd-kit/core": "^6.1.0",
"@dnd-kit/sortable": "^7.0.2",
"@formbricks/js": "^1.5.1",
"@fortawesome/fontawesome-svg-core": "^6.5.1",
"@fortawesome/free-brands-svg-icons": "^6.5.1",
"@fortawesome/free-solid-svg-icons": "^6.5.1",
Expand Down
9 changes: 9 additions & 0 deletions ui/src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import loadable from '@loadable/component';
import nightwind from 'nightwind/helper';
import formbricks from '@formbricks/js';
import { useEffect, useState } from 'react';
import { Helmet } from 'react-helmet';
import { useSelector } from 'react-redux';
Expand Down Expand Up @@ -31,6 +32,14 @@ const Preferences = loadable(() => import('./app/preferences/Preferences'));
const Namespaces = loadable(() => import('./app/namespaces/Namespaces'));
const Tokens = loadable(() => import('./app/tokens/Tokens'));

if (typeof window !== 'undefined') {
formbricks.init({
environmentId: import.meta.env.FLIPT_FORMBRICKS_ENVIRONMENT_ID || '',
apiHost: 'https://app.formbricks.com',
debug: process.env.NODE_ENV === 'development'
});
}

const namespacedRoutes = [
{
element: <Onboarding firstTime={true} />,
Expand Down
Loading