From 6659cfc8b03efe45053c3a0772d02a535b3bc32c Mon Sep 17 00:00:00 2001 From: sriram veeraghanta Date: Thu, 14 Sep 2023 16:05:31 +0530 Subject: [PATCH] fix: track events issue and env variables fixes (#2184) * fix: track event fixes * fix: adding env variables to trubo --- turbo.json | 15 +- web/components/workspace/sidebar-dropdown.tsx | 6 +- web/components/workspace/sidebar-menu.tsx | 3 - .../workspace/single-invitation.tsx | 2 +- web/lib/mobx/store-init.tsx | 2 - web/next.config.js | 1 + .../me/profile/preferences.tsx | 7 +- web/pages/api/slack-redirect.ts | 32 +- web/pages/api/track-event.ts | 22 +- web/pages/api/unsplash.ts | 11 +- web/services/ai.service.ts | 5 +- web/services/cycles.service.ts | 11 +- web/services/estimates.service.ts | 12 +- web/services/inbox.service.ts | 16 +- web/services/integration/csv.services.ts | 18 +- web/services/integration/github.service.ts | 8 +- web/services/integration/index.ts | 6 +- web/services/integration/jira.service.ts | 8 +- web/services/issues.service.ts | 142 +- web/services/modules.service.ts | 40 +- web/services/pages.service.ts | 29 +- web/services/project-publish.service.ts | 52 +- web/services/project.service.ts | 51 +- web/services/reaction.service.ts | 31 +- web/services/state.service.ts | 12 +- web/services/track-event.service.ts | 58 +- web/services/user.service.ts | 24 +- web/services/views.service.ts | 19 +- web/services/workspace.service.ts | 22 +- yarn.lock | 1209 +++++++++-------- 30 files changed, 903 insertions(+), 971 deletions(-) diff --git a/turbo.json b/turbo.json index 47b92f0db..7c02fdd7f 100644 --- a/turbo.json +++ b/turbo.json @@ -15,17 +15,18 @@ "NEXT_PUBLIC_UNSPLASH_ACCESS", "NEXT_PUBLIC_UNSPLASH_ENABLED", "NEXT_PUBLIC_TRACK_EVENTS", - "TRACKER_ACCESS_KEY", + "NEXT_PUBLIC_PLAUSIBLE_DOMAIN", "NEXT_PUBLIC_CRISP_ID", "NEXT_PUBLIC_ENABLE_SESSION_RECORDER", "NEXT_PUBLIC_SESSION_RECORDER_KEY", "NEXT_PUBLIC_EXTRA_IMAGE_DOMAINS", - "NEXT_PUBLIC_SLACK_CLIENT_ID", - "NEXT_PUBLIC_SLACK_CLIENT_SECRET", - "NEXT_PUBLIC_SUPABASE_URL", - "NEXT_PUBLIC_SUPABASE_ANON_KEY", - "NEXT_PUBLIC_PLAUSIBLE_DOMAIN", - "NEXT_PUBLIC_DEPLOY_WITH_NGINX" + "NEXT_PUBLIC_DEPLOY_WITH_NGINX", + "SLACK_OAUTH_URL", + "SLACK_CLIENT_ID", + "SLACK_CLIENT_SECRET", + "JITSU_TRACKER_ACCESS_KEY", + "JITSU_TRACKER_HOST", + "UNSPLASH_ACCESS_KEY" ], "pipeline": { "build": { diff --git a/web/components/workspace/sidebar-dropdown.tsx b/web/components/workspace/sidebar-dropdown.tsx index 807a7de8b..f3bbc029b 100644 --- a/web/components/workspace/sidebar-dropdown.tsx +++ b/web/components/workspace/sidebar-dropdown.tsx @@ -1,8 +1,6 @@ import { Fragment } from "react"; - import { useRouter } from "next/router"; import Link from "next/link"; - // headless ui import { Menu, Transition } from "@headlessui/react"; // next-themes @@ -63,8 +61,6 @@ export const WorkspaceSidebarDropdown = () => { const { user, mutateUser } = useUser(); - const { collapsed: sidebarCollapse } = useThemeHook(); - const { setTheme } = useTheme(); const { setToastAlert } = useToast(); @@ -155,7 +151,7 @@ export const WorkspaceSidebarDropdown = () => { {workspaces.length > 0 ? ( workspaces.map((workspace) => ( - {({ active }) => ( + {() => (