Skip to content

Commit 321b09d

Browse files
chore: remove posthog (#4132)
* remove posthog * rebuild lock file * retry on clean branch * [autofix.ci] apply automated fixes * fix again... --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
1 parent d820283 commit 321b09d

File tree

6 files changed

+457
-692
lines changed

6 files changed

+457
-692
lines changed

apps/dashboard/app/layout.tsx

Lines changed: 14 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { CommandMenu } from "@/components/dashboard/command-menu";
2-
import { PHProvider, PostHogPageview } from "@/providers/PostHogProvider";
32
import { WorkspaceProvider } from "@/providers/workspace-provider";
43
import { Toaster } from "@unkey/ui";
54
import "@/styles/tailwind/tailwind.css";
@@ -52,25 +51,20 @@ export default function RootLayout({
5251
}) {
5352
return (
5453
<html lang="en" className={`${GeistSans.variable} ${GeistMono.variable}`}>
55-
<Suspense>
56-
<PostHogPageview />
57-
</Suspense>
58-
<PHProvider>
59-
<body className="min-h-full antialiased">
60-
<ReactQueryProvider>
61-
<ThemeProvider attribute="class">
62-
<WorkspaceProvider>
63-
<Toaster />
64-
{children}
65-
<CommandMenu />
66-
<Suspense>
67-
<Feedback />
68-
</Suspense>
69-
</WorkspaceProvider>
70-
</ThemeProvider>
71-
</ReactQueryProvider>
72-
</body>
73-
</PHProvider>
54+
<body className="min-h-full antialiased">
55+
<ReactQueryProvider>
56+
<ThemeProvider attribute="class">
57+
<WorkspaceProvider>
58+
<Toaster />
59+
{children}
60+
<CommandMenu />
61+
<Suspense>
62+
<Feedback />
63+
</Suspense>
64+
</WorkspaceProvider>
65+
</ThemeProvider>
66+
</ReactQueryProvider>
67+
</body>
7468
</html>
7569
);
7670
}

apps/dashboard/components/opt-in.tsx

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
"use client";
22

33
import { trpc } from "@/lib/trpc/client";
4-
import { PostHogEvent } from "@/providers/PostHogProvider";
54
import type { Workspace } from "@unkey/db";
65
import { Button, Empty, toast } from "@unkey/ui";
76
import Link from "next/link";
@@ -17,17 +16,7 @@ type Props = {
1716
export const OptIn: React.FC<Props> = ({ title, description, feature }) => {
1817
const router = useRouter();
1918
const optIn = trpc.workspace.optIntoBeta.useMutation({
20-
onMutate() {
21-
PostHogEvent({
22-
name: "self-serve-opt-in",
23-
properties: { feature },
24-
});
25-
},
2619
onSuccess() {
27-
PostHogEvent({
28-
name: "self-serve-opt-in",
29-
properties: { feature },
30-
});
3120
toast.success("Successfully opted in");
3221
router.refresh();
3322
},

apps/dashboard/lib/posthog.ts

Lines changed: 0 additions & 29 deletions
This file was deleted.

apps/dashboard/package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,6 @@
8585
"openai": "^4.78.1",
8686
"postcss": "8.4.38",
8787
"postcss-focus-visible": "^9.0.1",
88-
"posthog-js": "^1.179.0",
89-
"posthog-node": "^4.2.0",
9088
"react": "^18.2.0",
9189
"react-day-picker": "8.10.1",
9290
"react-dom": "^18.2.0",

apps/dashboard/providers/PostHogProvider.tsx

Lines changed: 0 additions & 65 deletions
This file was deleted.

0 commit comments

Comments
 (0)