Enable opt-in telemetry

This commit is contained in:
Will Chen
2025-04-21 12:49:54 -07:00
parent 497a3b7dac
commit 16d5320485
18 changed files with 299 additions and 81 deletions

View File

@@ -17,6 +17,7 @@ import {
} from "@/components/ui/sidebar";
import { ChatList } from "./ChatList";
import { AppList } from "./AppList";
import { usePostHog } from "posthog-js/react";
// Menu items.
const items = [
@@ -123,6 +124,8 @@ function AppIcons({
}: {
onHoverChange: (state: HoverState) => void;
}) {
const { capture } = usePostHog();
const routerState = useRouterState();
const pathname = routerState.location.pathname;