🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.
TypeScript analyticsautogenevaluationlangchainlarge-language-modelsllama-indexllmllm-evaluationllm-observabilityllmopsmonitoringobservabilityopen-sourceopenaiplaygroundprompt-engineeringprompt-managementself-hostedycombinator
refactor(web): give product analytics a feature front door (#16794)
Nikita Kabardinad23a9d2070b
diff --git a/web/src/ee/features/billing/components/BillingSwitchPlanDialog.tsx b/web/src/ee/features/billing/components/BillingSwitchPlanDialog.tsxindex b94c53be9f..d5ea60b6dc 100644--- a/web/src/ee/features/billing/components/BillingSwitchPlanDialog.tsx+++ b/web/src/ee/features/billing/components/BillingSwitchPlanDialog.tsx@@ -22,7 +22,7 @@ import {isUpgrade,} from "@/src/ee/features/billing/utils/stripeCatalogue";import { ActionButton } from "@/src/components/ActionButton";-import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";+import { usePostHogClientCapture } from "@/src/features/posthog-analytics";import { useBillingInformation } from "@/src/ee/features/billing/components/useBillingInformation";import { api } from "@/src/utils/api";import { StripeCancellationButton } from "./StripeCancellationButton";diff --git a/web/src/ee/features/billing/components/SpendAlerts/DeleteSpendAlertDialog.tsx b/web/src/ee/features/billing/components/SpendAlerts/DeleteSpendAlertDialog.tsxindex 1f86aac168..f366dc0e34 100644--- a/web/src/ee/features/billing/components/SpendAlerts/DeleteSpendAlertDialog.tsx+++ b/web/src/ee/features/billing/components/SpendAlerts/DeleteSpendAlertDialog.tsx@@ -9,7 +9,7 @@ import {} from "@/src/components/ui/dialog";import { Button } from "@/src/components/ui/button";import { api, reportNonTrpcError } from "@/src/utils/api";-import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";+import { usePostHogClientCapture } from "@/src/features/posthog-analytics";import { toast } from "sonner";interface DeleteSpendAlertDialogProps {diff --git a/web/src/ee/features/billing/components/SpendAlerts/SpendAlertDialog.tsx b/web/src/ee/features/billing/components/SpendAlerts/SpendAlertDialog.tsxindex 1c328a4184..632c0aee0a 100644--- a/web/src/ee/features/billing/components/SpendAlerts/SpendAlertDialog.tsx+++ b/web/src/ee/features/billing/components/SpendAlerts/SpendAlertDialog.tsx@@ -19,7 +19,7 @@ import {import { Input } from "@/src/components/ui/input";import { Button } from "@/src/components/ui/button";import { api, reportNonTrpcError } from "@/src/utils/api";-import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";+import { usePostHogClientCapture } from "@/src/features/posthog-analytics";import { toast } from "sonner";import { Info } from "lucide-react";diff --git a/web/src/features/annotation-queues/components/AnnotationQueueFormDialogController.tsx b/web/src/features/annotation-queues/components/AnnotationQueueFormDialogController.tsxindex f4aecbc5ad..704ee75147 100644--- a/web/src/features/annotation-queues/components/AnnotationQueueFormDialogController.tsx+++ b/web/src/features/annotation-queues/components/AnnotationQueueFormDialogController.tsx@@ -7,7 +7,7 @@ import { type ReactNode, useRef, useState } from "react";import { Dialog, DialogContent } from "@/src/components/ui/dialog";import { AnnotationQueueFormDialogContent } from "@/src/features/annotation-queues/components/AnnotationQueueFormDialogContent";import { showErrorToast } from "@/src/features/notifications/showErrorToast";-import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";+import { usePostHogClientCapture } from "@/src/features/posthog-analytics";import { useHasProjectAccess } from "@/src/features/rbac/utils/checkProjectAccess";import { useWatchedPromiseCallback } from "@/src/hooks/useWatchedPromiseCallback";import { api } from "@/src/utils/api";diff --git a/web/src/features/auth-credentials/components/ResetPasswordButton.tsx b/web/src/features/auth-credentials/components/ResetPasswordButton.tsxindex 3eb1e15a34..071779bb8a 100644--- a/web/src/features/auth-credentials/components/ResetPasswordButton.tsx+++ b/web/src/features/auth-credentials/components/ResetPasswordButton.tsx@@ -3,7 +3,7 @@ import { Button } from "@/src/components/ui/button";import { Input } from "@/src/components/ui/input";import { useState } from "react";import { z } from "zod";-import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";+import { usePostHogClientCapture } from "@/src/features/posthog-analytics";import { env } from "@/src/env.mjs";export function RequestResetPasswordEmailButton({diff --git a/web/src/features/auth-credentials/components/ResetPasswordPage.tsx b/web/src/features/auth-credentials/components/ResetPasswordPage.tsxindex aad7ce11c8..af72fb9866 100644--- a/web/src/features/auth-credentials/components/ResetPasswordPage.tsx+++ b/web/src/features/auth-credentials/components/ResetPasswordPage.tsx@@ -24,7 +24,7 @@ import { TRPCClientError } from "@trpc/client";import { isEmailVerifiedWithinCutoff } from "@/src/features/auth-credentials/lib/credentialsUtils";import Link from "next/link";import { ErrorPage } from "@/src/components/error-page";-import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";+import { usePostHogClientCapture } from "@/src/features/posthog-analytics";import { passwordSchema } from "@/src/features/auth/lib/signupSchema";import { useLangfuseCloudRegion } from "@/src/features/organizations/hooks";diff --git a/web/src/features/auth/components/AuthCloudRegionSwitch.tsx b/web/src/features/auth/components/AuthCloudRegionSwitch.tsxindex b5967c9bc2..b9248df91d 100644--- a/web/src/features/auth/components/AuthCloudRegionSwitch.tsx+++ b/web/src/features/auth/components/AuthCloudRegionSwitch.tsx@@ -2,7 +2,7 @@ import { env } from "@/src/env.mjs";import { CloudRegionPicker } from "@/src/features/auth/components/CloudRegionPicker";import { getAvailableCloudRegionOptions } from "@/src/features/organizations/cloudRegions";import { useLangfuseCloudRegion } from "@/src/features/organizations/hooks";-import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";+import { usePostHogClientCapture } from "@/src/features/posthog-analytics";export function CloudRegionSwitch({isSignUpPage,diff --git a/web/src/features/auth/lib/signOut.ts b/web/src/features/auth/lib/signOut.tsindex a32634fac6..41f3014746 100644--- a/web/src/features/auth/lib/signOut.ts+++ b/web/src/features/auth/lib/signOut.ts@@ -1,7 +1,7 @@import { signOut } from "next-auth/react";import posthog from "posthog-js";import { env } from "@/src/env.mjs";-import { isPostHogClientEnabled } from "@/src/features/posthog-analytics/productAnalyticsAvailability";+import { isPostHogClientEnabled } from "@/src/features/posthog-analytics";import { clearV4BetaEnabledSentryTag } from "@/src/utils/sentryV4BetaTag";/**diff --git a/web/src/features/blobstorage-integration/components/BlobStorageIntegrationContainer.tsx b/web/src/features/blobstorage-integration/components/BlobStorageIntegrationContainer.tsxindex a16ee8d837..88d9ea5cef 100644--- a/web/src/features/blobstorage-integration/components/BlobStorageIntegrationContainer.tsx+++ b/web/src/features/blobstorage-integration/components/BlobStorageIntegrationContainer.tsx@@ -1,7 +1,7 @@import { useMemo } from "react";import { Button } from "@/src/components/ui/button";import { IntegrationSettingsSkeleton } from "@/src/features/analytics-integrations/components/IntegrationSettingsSkeleton";-import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";+import { usePostHogClientCapture } from "@/src/features/posthog-analytics";import { showSuccessToast } from "@/src/features/notifications/showSuccessToast";import { showErrorToast } from "@/src/features/notifications/showErrorToast";import { api } from "@/src/utils/api";diff --git a/web/src/features/command-k-menu/CommandMenu.tsx b/web/src/features/command-k-menu/CommandMenu.tsxindex 13018d5eb6..23e5d5a114 100644--- a/web/src/features/command-k-menu/CommandMenu.tsx+++ b/web/src/features/command-k-menu/CommandMenu.tsx@@ -11,7 +11,7 @@ import { useRouter } from "next/router";import { useEffect, memo, useState } from "react";import { useSession } from "next-auth/react";import { env } from "@/src/env.mjs";-import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";+import { usePostHogClientCapture } from "@/src/features/posthog-analytics";import { useDebounce } from "@/src/hooks/useDebounce";import { useCommandMenu } from "@/src/features/command-k-menu/CommandMenuProvider";import { useProjectSettingsPages } from "@/src/pages/project/[projectId]/settings";diff --git a/web/src/features/dashboard/components/CloneFirstDialog.tsx b/web/src/features/dashboard/components/CloneFirstDialog.tsxindex 13f49ada29..297ee4721d 100644--- a/web/src/features/dashboard/components/CloneFirstDialog.tsx+++ b/web/src/features/dashboard/components/CloneFirstDialog.tsx@@ -13,7 +13,7 @@ import {import { Button } from "@/src/components/ui/button";import { showSuccessToast } from "@/src/features/notifications/showSuccessToast";import { showErrorToast } from "@/src/features/notifications/showErrorToast";-import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";+import { usePostHogClientCapture } from "@/src/features/posthog-analytics";import { type DashboardPlacement } from "@/src/features/widgets/components/DashboardGrid";/**diff --git a/web/src/features/dashboard/components/DashboardTable.tsx b/web/src/features/dashboard/components/DashboardTable.tsxindex 6a96f4f16d..f75319b405 100644--- a/web/src/features/dashboard/components/DashboardTable.tsx+++ b/web/src/features/dashboard/components/DashboardTable.tsx@@ -15,7 +15,7 @@ import { useDetailPageLists } from "@/src/features/navigate-detail-pages/contextimport { Button } from "@/src/components/ui/button";import { useHasProjectAccess } from "@/src/features/rbac/utils/checkProjectAccess";import { Copy, Edit, User as UserIcon } from "lucide-react";-import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";+import { usePostHogClientCapture } from "@/src/features/posthog-analytics";import { showErrorToast } from "@/src/features/notifications/showErrorToast";import { showSuccessToast } from "@/src/features/notifications/showSuccessToast";import { DropdownMenuItem } from "@/src/components/ui/dropdown-menu";diff --git a/web/src/features/dashboard/components/TabsComponent.tsx b/web/src/features/dashboard/components/TabsComponent.tsxindex fc6e2224f8..fcf42c08c9 100644--- a/web/src/features/dashboard/components/TabsComponent.tsx+++ b/web/src/features/dashboard/components/TabsComponent.tsx@@ -1,4 +1,4 @@-import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";+import { usePostHogClientCapture } from "@/src/features/posthog-analytics";import { cn } from "@/src/utils/tailwind";import { type ReactNode, useState } from "react";diff --git a/web/src/features/datasets/components/CreateDatasetDialogController.tsx b/web/src/features/datasets/components/CreateDatasetDialogController.tsxindex 84a3298e3f..5d4f176977 100644--- a/web/src/features/datasets/components/CreateDatasetDialogController.tsx+++ b/web/src/features/datasets/components/CreateDatasetDialogController.tsx@@ -3,7 +3,7 @@ import {CreateDatasetDialogContent,type CreateDatasetDialogProps,} from "@/src/features/datasets/components/CreateDatasetDialogContent";-import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";+import { usePostHogClientCapture } from "@/src/features/posthog-analytics";import { useHasProjectAccess } from "@/src/features/rbac/utils/checkProjectAccess";import { type ReactNode, useState } from "react";diff --git a/web/src/features/datasets/components/DatasetAggregateTableCell.tsx b/web/src/features/datasets/components/DatasetAggregateTableCell.tsxindex 5c023cebbb..641a21b533 100644--- a/web/src/features/datasets/components/DatasetAggregateTableCell.tsx+++ b/web/src/features/datasets/components/DatasetAggregateTableCell.tsx@@ -23,7 +23,7 @@ import { type BaselineDiff } from "@/src/features/datasets/lib/calculateBaselineimport { DiffLabel } from "@/src/features/datasets/components/DiffLabel";import { useResourceMetricsDiff } from "@/src/features/datasets/hooks/useResourceMetricsDiff";import { NotFoundCard } from "@/src/features/datasets/components/NotFoundCard";-import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";+import { usePostHogClientCapture } from "@/src/features/posthog-analytics";const DatasetAggregateCellContent = ({projectId,diff --git a/web/src/features/datasets/components/DatasetAnalytics.tsx b/web/src/features/datasets/components/DatasetAnalytics.tsxindex bb2e46c922..3fd0d6d54c 100644--- a/web/src/features/datasets/components/DatasetAnalytics.tsx+++ b/web/src/features/datasets/components/DatasetAnalytics.tsx@@ -1,6 +1,6 @@import { DropdownMenuItem } from "@/src/components/ui/dropdown-menu";import { RESOURCE_METRICS } from "@/src/features/dashboard/lib/score-analytics-utils";-import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";+import { usePostHogClientCapture } from "@/src/features/posthog-analytics";import { MultiSelectKeyValues } from "@/src/features/scores/components/multi-select-key-values";export function DatasetAnalytics(props: {diff --git a/web/src/features/datasets/components/DatasetForm.tsx b/web/src/features/datasets/components/DatasetForm.tsxindex 75368192f8..8bdea85b9e 100644--- a/web/src/features/datasets/components/DatasetForm.tsx+++ b/web/src/features/datasets/components/DatasetForm.tsx@@ -28,7 +28,7 @@ import {isValidJSONSchema,type Prisma,} from "@langfuse/shared";-import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";+import { usePostHogClientCapture } from "@/src/features/posthog-analytics";import { useRouter } from "next/router";import { useUniqueNameValidation } from "@/src/hooks/useUniqueNameValidation";import { DialogBody, DialogFooter } from "@/src/components/ui/dialog";diff --git a/web/src/features/datasets/components/DatasetItemDetailPage.tsx b/web/src/features/datasets/components/DatasetItemDetailPage.tsxindex 9043bc38f6..595f135667 100644--- a/web/src/features/datasets/components/DatasetItemDetailPage.tsx+++ b/web/src/features/datasets/components/DatasetItemDetailPage.tsx@@ -9,7 +9,7 @@ import Link from "next/link";import { useRouter } from "next/router";import { DatasetStatus } from "@langfuse/shared";import { useHasProjectAccess } from "@/src/features/rbac/utils/checkProjectAccess";-import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";+import { usePostHogClientCapture } from "@/src/features/posthog-analytics";import {DropdownMenu,DropdownMenuContent,diff --git a/web/src/features/datasets/components/DatasetItemsTable.tsx b/web/src/features/datasets/components/DatasetItemsTable.tsxindex 11df742418..66a37fa4f3 100644--- a/web/src/features/datasets/components/DatasetItemsTable.tsx+++ b/web/src/features/datasets/components/DatasetItemsTable.tsx@@ -23,7 +23,7 @@ import { DataTableToolbar } from "@/src/components/table/data-table-toolbar";import useColumnVisibility from "@/src/features/column-visibility/hooks/useColumnVisibility";import { useRowHeightLocalStorage } from "@/src/components/table/data-table-row-height-switch";import { createIOTableColumn } from "@/src/components/design-system/table/columns/createIOTableColumn";-import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";+import { usePostHogClientCapture } from "@/src/features/posthog-analytics";import useColumnOrder from "@/src/features/column-visibility/hooks/useColumnOrder";import { createStatusTableColumn } from "@/src/components/design-system/table/columns/createStatusTableColumn";import { type Status } from "@/src/components/ui/StatusBadge/StatusBadge";diff --git a/web/src/features/datasets/components/DatasetRunsTable.tsx b/web/src/features/datasets/components/DatasetRunsTable.tsxindex 60bf6b4d06..e61a541ad0 100644--- a/web/src/features/datasets/components/DatasetRunsTable.tsx+++ b/web/src/features/datasets/components/DatasetRunsTable.tsx@@ -46,7 +46,7 @@ import {} from "@/src/features/dashboard/lib/chart-data-adapters";import { Chart } from "@/src/features/widgets/chart-library/Chart";import { CompareViewAdapter } from "@/src/features/scores/adapters";-import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";+import { usePostHogClientCapture } from "@/src/features/posthog-analytics";import { createDateTableColumn } from "@/src/components/design-system/table/columns/createDateTableColumn";import { createNumberTableColumn } from "@/src/components/design-system/table/columns/createNumberTableColumn";import { createTextTableColumn } from "@/src/components/design-system/table/columns/createTextTableColumn";diff --git a/web/src/features/datasets/components/DatasetsTable.tsx b/web/src/features/datasets/components/DatasetsTable.tsxindex 37036affdb..5fd1f8a302 100644--- a/web/src/features/datasets/components/DatasetsTable.tsx+++ b/web/src/features/datasets/components/DatasetsTable.tsx@@ -30,7 +30,7 @@ import { useTableViewManager } from "@/src/components/table/table-view-presets/himport { useFolderPagination } from "@/src/features/folders/hooks/useFolderPagination";import { FolderBreadcrumb } from "@/src/features/folders/components/FolderBreadcrumb";import { buildFullPath } from "@/src/features/folders/utils";-import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";+import { usePostHogClientCapture } from "@/src/features/posthog-analytics";import {createDatasetsTableStore,toFolderRowId,diff --git a/web/src/features/datasets/components/DeleteDatasetDialog.tsx b/web/src/features/datasets/components/DeleteDatasetDialog.tsxindex ad3eb5fc2f..93c67124d0 100644--- a/web/src/features/datasets/components/DeleteDatasetDialog.tsx+++ b/web/src/features/datasets/components/DeleteDatasetDialog.tsx@@ -1,7 +1,7 @@import { ConfirmDialog } from "@/src/components/ui/confirm-dialog";import { Input } from "@/src/components/ui/input";import { Label } from "@/src/components/ui/label";-import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";+import { usePostHogClientCapture } from "@/src/features/posthog-analytics";import { api } from "@/src/utils/api";import { useState } from "react";diff --git a/web/src/features/datasets/components/DeleteDatasetDialogController.tsx b/web/src/features/datasets/components/DeleteDatasetDialogController.tsxindex f42a35996f..7ddf85e4ab 100644--- a/web/src/features/datasets/components/DeleteDatasetDialogController.tsx+++ b/web/src/features/datasets/components/DeleteDatasetDialogController.tsx@@ -2,7 +2,7 @@ import {DeleteDatasetDialog,type DeleteDatasetDialogDataProps,} from "@/src/features/datasets/components/DeleteDatasetDialog";-import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";+import { usePostHogClientCapture } from "@/src/features/posthog-analytics";import { useHasProjectAccess } from "@/src/features/rbac/utils/checkProjectAccess";import { type ReactNode, useState } from "react";diff --git a/web/src/features/datasets/components/DeleteDatasetRunButton.tsx b/web/src/features/datasets/components/DeleteDatasetRunButton.tsxindex 21de12d540..3e03ab6c5f 100644--- a/web/src/features/datasets/components/DeleteDatasetRunButton.tsx+++ b/web/src/features/datasets/components/DeleteDatasetRunButton.tsx@@ -2,7 +2,7 @@ import { Trash } from "lucide-react";import { Button } from "@/src/components/ui/button";import { ConfirmDialog } from "@/src/components/ui/confirm-dialog";import { useHasProjectAccess } from "@/src/features/rbac/utils/checkProjectAccess";-import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";+import { usePostHogClientCapture } from "@/src/features/posthog-analytics";import { api } from "@/src/utils/api";import React, { useState } from "react";import { useRouter } from "next/router";diff --git a/web/src/features/datasets/components/NewDatasetItemForm.tsx b/web/src/features/datasets/components/NewDatasetItemForm.tsxindex 47e8fddf22..ad0a21f826 100644--- a/web/src/features/datasets/components/NewDatasetItemForm.tsx+++ b/web/src/features/datasets/components/NewDatasetItemForm.tsx@@ -27,7 +27,7 @@ import { CodeMirrorEditor } from "@/src/components/editor";import { useMediaTagChips } from "@/src/components/editor/mediaTagWidget";import { type Prisma } from "@langfuse/shared";import { cn } from "@/src/utils/tailwind";-import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";+import { usePostHogClientCapture } from "@/src/features/posthog-analytics";import { DatasetSchemaHoverCard } from "./DatasetSchemaHoverCard";import { useDatasetItemValidation } from "../hooks/useDatasetItemValidation";import {diff --git a/web/src/features/datasets/components/PreviewCsvImport.tsx b/web/src/features/datasets/components/PreviewCsvImport.tsxindex 451cc0ced9..db799041ad 100644--- a/web/src/features/datasets/components/PreviewCsvImport.tsx+++ b/web/src/features/datasets/components/PreviewCsvImport.tsx@@ -10,7 +10,7 @@ import { useState, useEffect } from "react";import { Button } from "@/src/components/ui/button";import { api } from "@/src/utils/api";import { Progress } from "@/src/components/design-system/Progress/Progress";-import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";+import { usePostHogClientCapture } from "@/src/features/posthog-analytics";import { DialogBody, DialogFooter } from "@/src/components/ui/dialog";import { CsvImportValidationError } from "./CsvImportValidationError";import { Checkbox } from "@/src/components/design-system/Checkbox/Checkbox";diff --git a/web/src/features/datasets/components/UpdateDatasetDialogController.tsx b/web/src/features/datasets/components/UpdateDatasetDialogController.tsxindex 1f8619edcb..54d75a1faf 100644--- a/web/src/features/datasets/components/UpdateDatasetDialogController.tsx+++ b/web/src/features/datasets/components/UpdateDatasetDialogController.tsx@@ -3,7 +3,7 @@ import {UpdateDatasetDialogContent,type UpdateDatasetDialogProps,} from "@/src/features/datasets/components/UpdateDatasetDialogContent";-import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";+import { usePostHogClientCapture } from "@/src/features/posthog-analytics";import { useHasProjectAccess } from "@/src/features/rbac/utils/checkProjectAccess";import { type ReactNode, useState } from "react";diff --git a/web/src/features/datasets/hooks/useDatasetItemFromTraceOrObservation.ts b/web/src/features/datasets/hooks/useDatasetItemFromTraceOrObservation.tsindex e64b7ad385..8dc234fe60 100644--- a/web/src/features/datasets/hooks/useDatasetItemFromTraceOrObservation.ts+++ b/web/src/features/datasets/hooks/useDatasetItemFromTraceOrObservation.ts@@ -1,5 +1,5 @@import { useIsAuthenticatedAndProjectMember } from "@/src/features/auth/hooks";-import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";+import { usePostHogClientCapture } from "@/src/features/posthog-analytics";import { useHasProjectAccess } from "@/src/features/rbac/utils/checkProjectAccess";import { api } from "@/src/utils/api";diff --git a/web/src/features/datasets/store/datasetsTableStore.ts b/web/src/features/datasets/store/datasetsTableStore.tsindex da6a47ed85..99aed2ea18 100644--- a/web/src/features/datasets/store/datasetsTableStore.ts+++ b/web/src/features/datasets/store/datasetsTableStore.ts@@ -2,7 +2,7 @@ import { createStore, type StoreApi } from "zustand/vanilla";import { type RowSelectionState, type Updater } from "@tanstack/react-table";import { type TableSelectionStoreState } from "@/src/components/table/table-selection-store";import { type RouterInput } from "@/src/utils/types";-import { type usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";+import { type usePostHogClientCapture } from "@/src/features/posthog-analytics";type RowSelectionUpdater = Updater<RowSelectionState>;type BooleanUpdater = Updater<boolean>;diff --git a/web/src/features/evals/components/deactivate-config.tsx b/web/src/features/evals/components/deactivate-config.tsxindex b0eb34a1b8..951773def0 100644--- a/web/src/features/evals/components/deactivate-config.tsx+++ b/web/src/features/evals/components/deactivate-config.tsx@@ -1,6 +1,6 @@/* eslint-disable @repo/no-abstracted-overlay-trigger */import { EvaluatorStatus } from "@/src/features/evals/types";-import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";+import { usePostHogClientCapture } from "@/src/features/posthog-analytics";import { useHasProjectAccess } from "@/src/features/rbac/utils/checkProjectAccess";import { api, type RouterOutputs } from "@/src/utils/api";import { useState } from "react";diff --git a/web/src/features/evals/components/eval-template-detail.tsx b/web/src/features/evals/components/eval-template-detail.tsxindex ac0f852dbf..e14f457ad5 100644--- a/web/src/features/evals/components/eval-template-detail.tsx+++ b/web/src/features/evals/components/eval-template-detail.tsx@@ -4,7 +4,7 @@ import { api } from "@/src/utils/api";import { type EvalTemplate } from "@langfuse/shared";import { useRouter } from "next/router";import { useHasProjectAccess } from "@/src/features/rbac/utils/checkProjectAccess";-import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";+import { usePostHogClientCapture } from "@/src/features/posthog-analytics";import Page from "@/src/components/layouts/page";import { Switch } from "@/src/components/design-system/Switch/Switch";import { Command } from "@/src/components/ui/command";diff --git a/web/src/features/evals/components/eval-templates-table.tsx b/web/src/features/evals/components/eval-templates-table.tsxindex 936d569688..2e3841a5ef 100644--- a/web/src/features/evals/components/eval-templates-table.tsx+++ b/web/src/features/evals/components/eval-templates-table.tsx@@ -29,7 +29,7 @@ import {DropdownMenuTrigger,} from "@/src/components/ui/dropdown-menu";import { DeleteEvalTemplateDialog } from "@/src/features/evals/components/delete-eval-template-dialog";-import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";+import { usePostHogClientCapture } from "@/src/features/posthog-analytics";import { EvalTemplateForm } from "@/src/features/evals/components/template-form";import { showSuccessToast } from "@/src/features/notifications/showSuccessToast";import {diff --git a/web/src/features/evals/components/evaluator-table.tsx b/web/src/features/evals/components/evaluator-table.tsxindex bf582c7160..6364e6828a 100644--- a/web/src/features/evals/components/evaluator-table.tsx+++ b/web/src/features/evals/components/evaluator-table.tsx@@ -53,7 +53,7 @@ import {useEvaluatorTableData,} from "@/src/features/evals/hooks/useEvaluatorTableData";import Spinner from "@/src/components/design-system/Spinner/Spinner";-import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";+import { usePostHogClientCapture } from "@/src/features/posthog-analytics";import { useV4UpgradeUiEnabled } from "@/src/features/v4-migration/useV4UpgradeUiEnabled";import { V4MigrationBadgeContent } from "@/src/features/v4-migration/V4MigrationBadgeContent";import { buildEvaluatorUpgradeUrl } from "@/src/features/v4-migration/evaluatorMigrationUrls";diff --git a/web/src/features/evals/components/inner-evaluator-form.tsx b/web/src/features/evals/components/inner-evaluator-form.tsxindex 3c8134a8d7..193aad2a46 100644--- a/web/src/features/evals/components/inner-evaluator-form.tsx+++ b/web/src/features/evals/components/inner-evaluator-form.tsx@@ -42,7 +42,7 @@ import { TRPCClientError } from "@trpc/client";import { reportError } from "@/src/utils/reportError";import { Slider } from "@/src/components/ui/slider";import { Card } from "@/src/components/ui/card";-import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";+import { usePostHogClientCapture } from "@/src/features/posthog-analytics";import { Checkbox } from "@/src/components/design-system/Checkbox/Checkbox";import { Switch } from "@/src/components/design-system/Switch/Switch";import {diff --git a/web/src/features/evals/components/template-form.tsx b/web/src/features/evals/components/template-form.tsxindex a7aee1a7d2..07d5a9e928 100644--- a/web/src/features/evals/components/template-form.tsx+++ b/web/src/features/evals/components/template-form.tsx@@ -36,7 +36,7 @@ import {import router from "next/router";import { ModelParameters } from "@/src/components/ModelParameters";import { PromptVariableListPreview } from "@/src/features/prompts/components/PromptVariableListPreview";-import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";+import { usePostHogClientCapture } from "@/src/features/posthog-analytics";import { getFinalModelParams } from "@/src/utils/getFinalModelParams";import { useModelParams } from "@/src/features/playground/page/hooks/useModelParams";import { showSuccessToast } from "@/src/features/notifications/showSuccessToast";diff --git a/web/src/features/evals/pages/remap-evaluator.tsx b/web/src/features/evals/pages/remap-evaluator.tsxindex 48babe2558..1f61394d41 100644--- a/web/src/features/evals/pages/remap-evaluator.tsx+++ b/web/src/features/evals/pages/remap-evaluator.tsx@@ -26,7 +26,7 @@ import {useIsInAppAgentLauncherVisible,useInAppAiAgent,} from "@/src/features/in-app-agent/components/InAppAiAgentProvider";-import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";+import { usePostHogClientCapture } from "@/src/features/posthog-analytics";import { useEvalUpgradeAssistantPlan } from "@/src/features/v4-migration/useV4UpgradeAssistantSupport";import { useV4UpgradeUiEnabled } from "@/src/features/v4-migration/useV4UpgradeUiEnabled";import { useProjectV4SdkData } from "@/src/features/v4-migration/hooks/useV4MigrationData";diff --git a/web/src/features/evals/pages/templates.tsx b/web/src/features/evals/pages/templates.tsxindex ef821e5964..6e17ca2f31 100644--- a/web/src/features/evals/pages/templates.tsx+++ b/web/src/features/evals/pages/templates.tsx@@ -5,7 +5,7 @@ import Link from "next/link";import { useHasProjectAccess } from "@/src/features/rbac/utils/checkProjectAccess";import { Lock, Plus } from "lucide-react";import EvalsTemplateTable from "@/src/features/evals/components/eval-templates-table";-import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";+import { usePostHogClientCapture } from "@/src/features/posthog-analytics";import {getEvalsTabs,EVALS_TABS,diff --git a/web/src/features/evals/v2/components/EvaluatorGalleryDialog/EvaluatorGalleryDialog.tsx b/web/src/features/evals/v2/components/EvaluatorGalleryDialog/EvaluatorGalleryDialog.tsxindex 443bbb962d..a38ccebe1e 100644--- a/web/src/features/evals/v2/components/EvaluatorGalleryDialog/EvaluatorGalleryDialog.tsx+++ b/web/src/features/evals/v2/components/EvaluatorGalleryDialog/EvaluatorGalleryDialog.tsx@@ -12,7 +12,7 @@ import { EvaluatorGalleryView } from "@/src/features/evals/v2/components/Evaluatimport type { GalleryTemplate } from "@/src/features/evals/v2/types/templateGallery";import { prepareEvaluatorGallery } from "@/src/features/evals/v2/fns/templateGallery/prepareEvaluatorGallery";import { EVALUATOR_GALLERY_ALL_SECTION_KEY } from "@/src/features/evals/v2/constants/evaluatorGallery";-import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";+import { usePostHogClientCapture } from "@/src/features/posthog-analytics";import { getEvaluatorCreationAnalyticsProperties } from "@/src/features/evals/v2/fns/evaluators/getEvaluatorCreationAnalyticsProperties";import { api } from "@/src/utils/api";diff --git a/web/src/features/evals/v2/components/Evaluators/EvaluatorActionsCell/EvaluatorActionsCell.tsx b/web/src/features/evals/v2/components/Evaluators/EvaluatorActionsCell/EvaluatorActionsCell.tsxindex 03a448394a..0ff40cb60e 100644--- a/web/src/features/evals/v2/components/Evaluators/EvaluatorActionsCell/EvaluatorActionsCell.tsx+++ b/web/src/features/evals/v2/components/Evaluators/EvaluatorActionsCell/EvaluatorActionsCell.tsx@@ -14,7 +14,7 @@ import {DropdownMenuItem,DropdownMenuTrigger,} from "@/src/components/ui/dropdown-menu";-import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";+import { usePostHogClientCapture } from "@/src/features/posthog-analytics";export function EvaluatorActionsCell({canViewExecutions,diff --git a/web/src/features/evals/v2/components/Evaluators/EvaluatorSavedDialogContainer/EvaluatorSavedDialogContainer.tsx b/web/src/features/evals/v2/components/Evaluators/EvaluatorSavedDialogContainer/EvaluatorSavedDialogContainer.tsxindex 33eb0a3efb..ff5a364aea 100644--- a/web/src/features/evals/v2/components/Evaluators/EvaluatorSavedDialogContainer/EvaluatorSavedDialogContainer.tsx+++ b/web/src/features/evals/v2/components/Evaluators/EvaluatorSavedDialogContainer/EvaluatorSavedDialogContainer.tsx@@ -18,7 +18,7 @@ import { CreateRuleDialog } from "@/src/features/evals/v2/components/Rules/Creatimport { EvaluationRulePicker } from "@/src/features/evals/v2/components/Rules/EvaluationRulePicker/EvaluationRulePicker";import { RuleFilterPills } from "@/src/features/evals/v2/components/Rules/RuleFilterPills/RuleFilterPills";import { useActivationConfirmation } from "@/src/features/evals/v2/hooks/useActivationConfirmation";-import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";+import { usePostHogClientCapture } from "@/src/features/posthog-analytics";import { api, type RouterOutputs } from "@/src/utils/api";import { trpcErrorToast } from "@/src/utils/trpcErrorToast";import { cn } from "@/src/utils/tailwind";diff --git a/web/src/features/evals/v2/components/Evaluators/Testing/components/SampleObservationSelectorBase/SampleObservationSelectorBase.tsx b/web/src/features/evals/v2/components/Evaluators/Testing/components/SampleObservationSelectorBase/SampleObservationSelectorBase.tsxindex 685a2b15de..4809c535ca 100644--- a/web/src/features/evals/v2/components/Evaluators/Testing/components/SampleObservationSelectorBase/SampleObservationSelectorBase.tsx+++ b/web/src/features/evals/v2/components/Evaluators/Testing/components/SampleObservationSelectorBase/SampleObservationSelectorBase.tsx@@ -44,7 +44,7 @@ import {addDatasetNameObservedOptions,} from "@/src/features/evals/v2/utils/datasetNameFilter";import { useReusableRuleFilterPresets } from "@/src/features/evals/v2/hooks/useReusableRuleFilterPresets";-import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";+import { usePostHogClientCapture } from "@/src/features/posthog-analytics";export type SampleObservation =RouterOutputs["events"]["all"]["observations"][number];diff --git a/web/src/features/evals/v2/components/EvaluatorsEmptyState/EvaluatorsEmptyState.tsx b/web/src/features/evals/v2/components/EvaluatorsEmptyState/EvaluatorsEmptyState.tsxindex 1bab73844f..550818f679 100644--- a/web/src/features/evals/v2/components/EvaluatorsEmptyState/EvaluatorsEmptyState.tsx+++ b/web/src/features/evals/v2/components/EvaluatorsEmptyState/EvaluatorsEmptyState.tsx@@ -1,4 +1,4 @@-import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";+import { usePostHogClientCapture } from "@/src/features/posthog-analytics";import {useIsInAppAgentLauncherVisible,useInAppAiAgent,diff --git a/web/src/features/evals/v2/components/Rules/CreateRuleDialog/components/CreateRuleDialogContent/CreateRuleDialogContent.tsx b/web/src/features/evals/v2/components/Rules/CreateRuleDialog/components/CreateRuleDialogContent/CreateRuleDialogContent.tsxindex 4b8eb67a68..75ee451261 100644--- a/web/src/features/evals/v2/components/Rules/CreateRuleDialog/components/CreateRuleDialogContent/CreateRuleDialogContent.tsx+++ b/web/src/features/evals/v2/components/Rules/CreateRuleDialog/components/CreateRuleDialogContent/CreateRuleDialogContent.tsx@@ -16,7 +16,7 @@ import type {RuleEvaluatorOption,} from "@/src/features/evals/v2/types/rules";import { showSuccessToast } from "@/src/features/notifications/showSuccessToast";-import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";+import { usePostHogClientCapture } from "@/src/features/posthog-analytics";import { api } from "@/src/utils/api";import { trpcErrorToast } from "@/src/utils/trpcErrorToast";import { useLangfuseCloudRegion } from "@/src/features/organizations/hooks";diff --git a/web/src/features/evals/v2/components/Rules/EditRuleDialog/components/EditRuleDialogContent/EditRuleDialogContent.tsx b/web/src/features/evals/v2/components/Rules/EditRuleDialog/components/EditRuleDialogContent/EditRuleDialogContent.tsxindex 3b285a20e2..be6d53daa7 100644--- a/web/src/features/evals/v2/components/Rules/EditRuleDialog/components/EditRuleDialogContent/EditRuleDialogContent.tsx+++ b/web/src/features/evals/v2/components/Rules/EditRuleDialog/components/EditRuleDialogContent/EditRuleDialogContent.tsx@@ -11,7 +11,7 @@ import { createRuleSetupStore } from "@/src/features/evals/v2/stores/createRuleSimport { prepareModernRuleVariableMapping } from "@/src/features/evals/v2/fns/variableMapping/prepareModernRuleVariableMapping";import type { RuleEvaluatorOption } from "@/src/features/evals/v2/types/rules";import { showSuccessToast } from "@/src/features/notifications/showSuccessToast";-import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";+import { usePostHogClientCapture } from "@/src/features/posthog-analytics";import { api, type RouterOutputs } from "@/src/utils/api";import { trpcErrorToast } from "@/src/utils/trpcErrorToast";diff --git a/web/src/features/evals/v2/components/Rules/EvaluatorRuleRelationships/EvaluatorRuleRelationships.tsx b/web/src/features/evals/v2/components/Rules/EvaluatorRuleRelationships/EvaluatorRuleRelationships.tsxindex dad66b0493..069bf4306d 100644--- a/web/src/features/evals/v2/components/Rules/EvaluatorRuleRelationships/EvaluatorRuleRelationships.tsx+++ b/web/src/features/evals/v2/components/Rules/EvaluatorRuleRelationships/EvaluatorRuleRelationships.tsx@@ -19,7 +19,7 @@ import { CreateRuleDialog } from "@/src/features/evals/v2/components/Rules/Creatimport { EvaluationRulePicker } from "@/src/features/evals/v2/components/Rules/EvaluationRulePicker/EvaluationRulePicker";import { useActivationConfirmation } from "@/src/features/evals/v2/hooks/useActivationConfirmation";import { useHasProjectAccess } from "@/src/features/rbac/utils/checkProjectAccess";-import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";+import { usePostHogClientCapture } from "@/src/features/posthog-analytics";import { api } from "@/src/utils/api";import { trpcErrorToast } from "@/src/utils/trpcErrorToast";import { cn } from "@/src/utils/tailwind";diff --git a/web/src/features/evals/v2/components/Rules/RulesTable/RulesTable.tsx b/web/src/features/evals/v2/components/Rules/RulesTable/RulesTable.tsxindex 9add84c9e4..6a7360b64f 100644--- a/web/src/features/evals/v2/components/Rules/RulesTable/RulesTable.tsx+++ b/web/src/features/evals/v2/components/Rules/RulesTable/RulesTable.tsx@@ -31,7 +31,7 @@ import { RuleActiveSwitchCell } from "@/src/features/evals/v2/components/Rules/Rimport { RuleNameCell } from "@/src/features/evals/v2/components/Rules/RulesTable/components/RuleNameCell/RuleNameCell";import { RulesTableToolbar } from "@/src/features/evals/v2/components/Rules/RulesTable/components/RulesTableToolbar/RulesTableToolbar";import { usePaginationState } from "@/src/hooks/usePaginationState";-import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";+import { usePostHogClientCapture } from "@/src/features/posthog-analytics";import { TableSelectionManager } from "@/src/features/table/components/TableSelectionManager";import { RuleFilterPills } from "@/src/features/evals/v2/components/Rules/RuleFilterPills/RuleFilterPills";import useColumnOrder from "@/src/features/column-visibility/hooks/useColumnOrder";diff --git a/web/src/features/evals/v2/components/Rules/RulesTable/components/RuleActiveSwitchCell/RuleActiveSwitchCell.tsx b/web/src/features/evals/v2/components/Rules/RulesTable/components/RuleActiveSwitchCell/RuleActiveSwitchCell.tsxindex 0a4e15f3a6..17134f3d20 100644--- a/web/src/features/evals/v2/components/Rules/RulesTable/components/RuleActiveSwitchCell/RuleActiveSwitchCell.tsx+++ b/web/src/features/evals/v2/components/Rules/RulesTable/components/RuleActiveSwitchCell/RuleActiveSwitchCell.tsx@@ -4,7 +4,7 @@ import {TooltipContent,TooltipTrigger,} from "@/src/components/ui/tooltip";-import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";+import { usePostHogClientCapture } from "@/src/features/posthog-analytics";import { api, type RouterOutputs } from "@/src/utils/api";import { trpcErrorToast } from "@/src/utils/trpcErrorToast";import { isLegacyEvalTarget } from "@/src/features/evals/utils/typeHelpers";diff --git a/web/src/features/evals/v2/components/Rules/RulesTable/components/RulesOverviewSelectionBar/RulesOverviewSelectionBar.tsx b/web/src/features/evals/v2/components/Rules/RulesTable/components/RulesOverviewSelectionBar/RulesOverviewSelectionBar.tsxindex 677bd3a28f..e45c0e5448 100644--- a/web/src/features/evals/v2/components/Rules/RulesTable/components/RulesOverviewSelectionBar/RulesOverviewSelectionBar.tsx+++ b/web/src/features/evals/v2/components/Rules/RulesTable/components/RulesOverviewSelectionBar/RulesOverviewSelectionBar.tsx@@ -2,7 +2,7 @@ import { useState } from "react";import { useStore } from "zustand";import { RulesOverviewSelectionBarView } from "@/src/features/evals/v2/components/Rules/RulesTable/components/RulesOverviewSelectionBar/RulesOverviewSelectionBarView";import type { RulesTableStore } from "@/src/features/evals/v2/types/rules";-import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";+import { usePostHogClientCapture } from "@/src/features/posthog-analytics";import { api } from "@/src/utils/api";import { trpcErrorToast } from "@/src/utils/trpcErrorToast";import type { FilterState } from "@langfuse/shared";diff --git a/web/src/features/evals/v2/components/VariableMapping/components/EditableVariableMapping/EditableVariableMapping.tsx b/web/src/features/evals/v2/components/VariableMapping/components/EditableVariableMapping/EditableVariableMapping.tsxindex dbc4b22618..df690f8387 100644--- a/web/src/features/evals/v2/components/VariableMapping/components/EditableVariableMapping/EditableVariableMapping.tsx+++ b/web/src/features/evals/v2/components/VariableMapping/components/EditableVariableMapping/EditableVariableMapping.tsx@@ -27,7 +27,7 @@ import {deepParseJsonIterative,experimentTargetEvalVariableColumns,} from "@langfuse/shared";-import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";+import { usePostHogClientCapture } from "@/src/features/posthog-analytics";const TOOL_CALLS_COLUMN_ID = "toolCalls";diff --git a/web/src/features/evals/v2/hooks/useProjectDefaultModel.ts b/web/src/features/evals/v2/hooks/useProjectDefaultModel.tsindex bb664d497a..c351c0c086 100644--- a/web/src/features/evals/v2/hooks/useProjectDefaultModel.ts+++ b/web/src/features/evals/v2/hooks/useProjectDefaultModel.ts@@ -5,7 +5,7 @@ import { env } from "@/src/env.mjs";import { getJudgeModelProviderAdapters } from "@/src/features/evals/v2/judgeModel";import type { ProjectDefaultModelConfig } from "@/src/features/evals/v2/types/ProjectDefaultModelConfig";import { showSuccessToast } from "@/src/features/notifications/showSuccessToast";-import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";+import { usePostHogClientCapture } from "@/src/features/posthog-analytics";import { useHasProjectAccess } from "@/src/features/rbac/utils/checkProjectAccess";import { api } from "@/src/utils/api";import { trpcErrorToast } from "@/src/utils/trpcErrorToast";diff --git a/web/src/features/evals/v2/pages/EvaluatorSetupPage.tsx b/web/src/features/evals/v2/pages/EvaluatorSetupPage.tsxindex 7ceffd2a16..60785fbbf9 100644--- a/web/src/features/evals/v2/pages/EvaluatorSetupPage.tsx+++ b/web/src/features/evals/v2/pages/EvaluatorSetupPage.tsx@@ -30,7 +30,7 @@ import { api } from "@/src/utils/api";import { trpcErrorToast } from "@/src/utils/trpcErrorToast";import { showSuccessToast } from "@/src/features/notifications/showSuccessToast";import { showErrorToast } from "@/src/features/notifications/showErrorToast";-import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";+import { usePostHogClientCapture } from "@/src/features/posthog-analytics";import { detailPageListKeys } from "@/src/features/navigate-detail-pages/context";import { TableHeaderControls } from "@/src/components/table/table-header-controls";import { useTableDateRange } from "@/src/hooks/useTableDateRange";diff --git a/web/src/features/evals/v2/pages/EvaluatorsPage.tsx b/web/src/features/evals/v2/pages/EvaluatorsPage.tsxindex cf9a733fb3..0ee3a9bd2e 100644--- a/web/src/features/evals/v2/pages/EvaluatorsPage.tsx+++ b/web/src/features/evals/v2/pages/EvaluatorsPage.tsx@@ -32,7 +32,7 @@ import { EvaluatorTypeBadge } from "../components/Evaluators/EvaluatorTypeBadge/import { EvaluatorExecutionHistory } from "@/src/features/evals/v2/components/Rules/EvaluatorExecutionHistory/EvaluatorExecutionHistory";import { OverviewSelectionBar } from "../components/OverviewSelectionBar/OverviewSelectionBar";import { showSuccessToast } from "@/src/features/notifications/showSuccessToast";-import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";+import { usePostHogClientCapture } from "@/src/features/posthog-analytics";import useColumnOrder from "@/src/features/column-visibility/hooks/useColumnOrder";import useColumnVisibility from "@/src/features/column-visibility/hooks/useColumnVisibility";import { useHasProjectAccess } from "@/src/features/rbac/utils/checkProjectAccess";diff --git a/web/src/features/events/actions/setReadPath.ts b/web/src/features/events/actions/setReadPath.tsindex bb572a596a..bb02501e60 100644--- a/web/src/features/events/actions/setReadPath.ts+++ b/web/src/features/events/actions/setReadPath.ts@@ -3,7 +3,7 @@ import posthog from "posthog-js";import { type ResolvedReadPath } from "@/src/features/events/hooks/useReadPath";import { readPathToggleStore } from "@/src/features/events/stores/readPathToggleStore";import { showErrorToast } from "@/src/features/notifications/showErrorToast";-import { V4_BETA_ENABLED_POSTHOG_PROPERTY } from "@/src/features/posthog-analytics/usePostHogClientCapture";+import { V4_BETA_ENABLED_POSTHOG_PROPERTY } from "@/src/features/posthog-analytics";import { setV4BetaEnabledSentryTag } from "@/src/utils/sentryV4BetaTag";type SetReadPathDeps = {diff --git a/web/src/features/events/components/CategoryPresetChips.tsx b/web/src/features/events/components/CategoryPresetChips.tsxindex 3ba6fbcacd..136084683a 100644--- a/web/src/features/events/components/CategoryPresetChips.tsx+++ b/web/src/features/events/components/CategoryPresetChips.tsx@@ -22,7 +22,7 @@ import {} from "@/src/components/ui/popover";import { cn } from "@/src/utils/tailwind";import { useViewData } from "@/src/components/table/table-view-presets/hooks/useViewData";-import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";+import { usePostHogClientCapture } from "@/src/features/posthog-analytics";const CATEGORY_ICONS: Record<SystemTableViewPresetCategory, LucideIcon> = {[SystemTableViewPresetCategory.SlowCalls]: Timer,diff --git a/web/src/features/events/components/MobileFullTextSearch.tsx b/web/src/features/events/components/MobileFullTextSearch.tsxindex 54708d9b34..cc40aa81ca 100644--- a/web/src/features/events/components/MobileFullTextSearch.tsx+++ b/web/src/features/events/components/MobileFullTextSearch.tsx@@ -3,7 +3,7 @@import { useState } from "react";import { SearchInput } from "@/src/components/design-system/SearchInput/SearchInput";-import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";+import { usePostHogClientCapture } from "@/src/features/posthog-analytics";/*** Full-text search input for the mobile Filters sheet, used when the grammardiff --git a/web/src/features/events/components/V4SidebarToggle.tsx b/web/src/features/events/components/V4SidebarToggle.tsxindex 3930217c26..85628124c7 100644--- a/web/src/features/events/components/V4SidebarToggle.tsx+++ b/web/src/features/events/components/V4SidebarToggle.tsx@@ -10,7 +10,7 @@ import { useReadPath } from "@/src/features/events/hooks/useReadPath";import { setReadPath } from "@/src/features/events/actions/setReadPath";import { usePendingReadPath } from "@/src/features/events/stores/readPathToggleStore";import { V4IntroDialog } from "@/src/features/events/components/V4IntroDialog";-import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";+import { usePostHogClientCapture } from "@/src/features/posthog-analytics";import { useV4UpgradeUiEnabled } from "@/src/features/v4-migration/useV4UpgradeUiEnabled";import {getV4PreviewDisabledRedirect,diff --git a/web/src/features/events/components/outlier-strip/EventsOutlierStrip.tsx b/web/src/features/events/components/outlier-strip/EventsOutlierStrip.tsxindex c4a771dd99..be595cda68 100644--- a/web/src/features/events/components/outlier-strip/EventsOutlierStrip.tsx+++ b/web/src/features/events/components/outlier-strip/EventsOutlierStrip.tsx@@ -10,7 +10,7 @@ import {DropdownMenuItem,} from "@/src/components/ui/dropdown-menu";import { toChartFilters } from "@/src/features/chart-view/lib/chartFilterCompatibility";-import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";+import { usePostHogClientCapture } from "@/src/features/posthog-analytics";import {OutlierBarStrip,type OutlierStripDrillTrigger,diff --git a/web/src/features/experiments/components/CreateExperimentsForm.tsx b/web/src/features/experiments/components/CreateExperimentsForm.tsxindex 619f065d0e..38b32a22d4 100644--- a/web/src/features/experiments/components/CreateExperimentsForm.tsx+++ b/web/src/features/experiments/components/CreateExperimentsForm.tsx@@ -31,7 +31,7 @@ import {PopoverTrigger,} from "@/src/components/ui/popover";import Link from "next/link";-import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";+import { usePostHogClientCapture } from "@/src/features/posthog-analytics";import { type CreateExperiment } from "@/src/features/experiments/types";import { MultiStepExperimentForm } from "@/src/features/experiments/components/MultiStepExperimentForm";import { RemoteExperimentUpsertForm } from "@/src/features/experiments/components/RemoteExperimentUpsertForm";diff --git a/web/src/features/experiments/components/ExperimentBaselineControls.tsx b/web/src/features/experiments/components/ExperimentBaselineControls.tsxindex 343866e72d..b68f3dbcf5 100644--- a/web/src/features/experiments/components/ExperimentBaselineControls.tsx+++ b/web/src/features/experiments/components/ExperimentBaselineControls.tsx@@ -3,7 +3,7 @@ import { Combobox } from "@/src/components/ui/combobox";import { X } from "lucide-react";import { useExperimentNames } from "@/src/features/experiments/hooks/useExperimentNames";import { cn } from "@/src/utils/tailwind";-import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";+import { usePostHogClientCapture } from "@/src/features/posthog-analytics";import { baselineChangedProps } from "@/src/features/experiments/lib/analytics";type ExperimentBaselineControlsProps = {diff --git a/web/src/features/experiments/components/ExperimentChartsGrid.tsx b/web/src/features/experiments/components/ExperimentChartsGrid.tsxindex cb148ca3b1..69e009e799 100644--- a/web/src/features/experiments/components/ExperimentChartsGrid.tsx+++ b/web/src/features/experiments/components/ExperimentChartsGrid.tsx@@ -2,7 +2,7 @@ import { Plus } from "lucide-react";import { useMemo } from "react";import { ExperimentChartSlot } from "./ExperimentChartSlot";import { useExperimentChartsGridSelection } from "../hooks/useExperimentChartsGridSelection";-import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";+import { usePostHogClientCapture } from "@/src/features/posthog-analytics";import { chartMetricChangedProps } from "@/src/features/experiments/lib/analytics";type ExperimentChartsGridProps = {diff --git a/web/src/features/experiments/components/ExperimentComparisonSelector.tsx b/web/src/features/experiments/components/ExperimentComparisonSelector.tsxindex eed6bbc77b..2b5e545b74 100644--- a/web/src/features/experiments/components/ExperimentComparisonSelector.tsx+++ b/web/src/features/experiments/components/ExperimentComparisonSelector.tsx@@ -4,7 +4,7 @@ import { MultiSelectCombobox } from "@/src/components/ui/multi-select-combobox";import { Badge } from "@/src/components/ui/badge";import { useExperimentSearch } from "@/src/features/experiments/hooks/useExperimentSearch";import { MAX_SELECTED_EXPERIMENTS } from "@/src/features/experiments/constants/comparison";-import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";+import { usePostHogClientCapture } from "@/src/features/posthog-analytics";import {comparisonChangedProps,comparisonPickerOpenedProps,diff --git a/web/src/features/experiments/components/MultiStepExperimentForm.tsx b/web/src/features/experiments/components/MultiStepExperimentForm.tsxindex c18ad86602..a7c4d85681 100644--- a/web/src/features/experiments/components/MultiStepExperimentForm.tsx+++ b/web/src/features/experiments/components/MultiStepExperimentForm.tsx@@ -23,7 +23,7 @@ import { useForm, type UseFormReturn } from "react-hook-form";import { api } from "@/src/utils/api";import { useModelParams } from "@/src/features/playground/page/hooks/useModelParams";import { useHasProjectAccess } from "@/src/features/rbac/utils/checkProjectAccess";-import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";+import { usePostHogClientCapture } from "@/src/features/posthog-analytics";import { useEvaluatorDefaults } from "@/src/features/experiments/hooks/useEvaluatorDefaults";import { useExperimentEvaluatorData } from "@/src/features/experiments/hooks/useExperimentEvaluatorData";import { useExperimentNameValidation } from "@/src/features/experiments/hooks/useExperimentNameValidation";diff --git a/web/src/features/experiments/components/table/ExperimentItemsTable.tsx b/web/src/features/experiments/components/table/ExperimentItemsTable.tsxindex 6b1726e3a1..cfe12ab5e9 100644--- a/web/src/features/experiments/components/table/ExperimentItemsTable.tsx+++ b/web/src/features/experiments/components/table/ExperimentItemsTable.tsx@@ -28,7 +28,7 @@ import {BatchActionType,} from "@langfuse/shared";import { ExperimentFilterPills } from "./ExperimentFilterPills";-import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";+import { usePostHogClientCapture } from "@/src/features/posthog-analytics";import {itemRegressionFilterAppliedProps,scoreColumnScopeToggledProps,diff --git a/web/src/features/experiments/components/table/ExperimentsTable.tsx b/web/src/features/experiments/components/table/ExperimentsTable.tsxindex 51379fff23..bb60f5393d 100644--- a/web/src/features/experiments/components/table/ExperimentsTable.tsx+++ b/web/src/features/experiments/components/table/ExperimentsTable.tsx@@ -72,7 +72,7 @@ import {type ExperimentsTableStore,} from "@/src/features/experiments/store/experimentsTableStore";import { useExperimentsTableSelectionSync } from "@/src/features/experiments/hooks/useExperimentsTableSelectionSync";-import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";+import { usePostHogClientCapture } from "@/src/features/posthog-analytics";import {baselineChangedProps,comparisonChangedProps,diff --git a/web/src/features/feature-flags/components/OrganizationFeaturePreviewsSettings.tsx b/web/src/features/feature-flags/components/OrganizationFeaturePreviewsSettings.tsxindex db892836b0..71de6cdc43 100644--- a/web/src/features/feature-flags/components/OrganizationFeaturePreviewsSettings.tsx+++ b/web/src/features/feature-flags/components/OrganizationFeaturePreviewsSettings.tsx@@ -22,7 +22,7 @@ import {} from "@/src/features/feature-flags/available-flags";import { showErrorToast } from "@/src/features/notifications/showErrorToast";import { showSuccessToast } from "@/src/features/notifications/showSuccessToast";-import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";+import { usePostHogClientCapture } from "@/src/features/posthog-analytics";import { api } from "@/src/utils/api";type ProposedChange = {diff --git a/web/src/features/feature-flags/components/UserFeaturePreviewsPopover.tsx b/web/src/features/feature-flags/components/UserFeaturePreviewsPopover.tsxindex 76c3bbfe2b..29f0c8dd4d 100644--- a/web/src/features/feature-flags/components/UserFeaturePreviewsPopover.tsx+++ b/web/src/features/feature-flags/components/UserFeaturePreviewsPopover.tsx@@ -16,7 +16,7 @@ import {} from "@/src/features/feature-flags/available-flags";import { showErrorToast } from "@/src/features/notifications/showErrorToast";import { showSuccessToast } from "@/src/features/notifications/showSuccessToast";-import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";+import { usePostHogClientCapture } from "@/src/features/posthog-analytics";import { api } from "@/src/utils/api";type FeaturePreviewManagement = {diff --git a/web/src/features/feature-previews/components/ControlledFeaturePreviewModal.tsx b/web/src/features/feature-previews/components/ControlledFeaturePreviewModal.tsxindex 9649d9ab65..4cfb21b03b 100644--- a/web/src/features/feature-previews/components/ControlledFeaturePreviewModal.tsx+++ b/web/src/features/feature-previews/components/ControlledFeaturePreviewModal.tsx@@ -1,7 +1,7 @@import { useSession } from "next-auth/react";import { showErrorToast } from "@/src/features/notifications/showErrorToast";import { showSuccessToast } from "@/src/features/notifications/showSuccessToast";-import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";+import { usePostHogClientCapture } from "@/src/features/posthog-analytics";import { useReadPath } from "@/src/features/events/hooks/useReadPath";import { V4_PREVIEW_LABEL } from "@/src/features/events/lib/v4PreviewLabel";import { featurePreviewLabels } from "@/src/features/feature-flags/available-flags";diff --git a/web/src/features/filters/components/filter-builder.tsx b/web/src/features/filters/components/filter-builder.tsxindex 953bb0330b..b8b6388138 100644--- a/web/src/features/filters/components/filter-builder.tsx+++ b/web/src/features/filters/components/filter-builder.tsx@@ -57,7 +57,7 @@ import {getSessionPositionInTraceFilterMode,} from "@langfuse/shared";import { cn } from "@/src/utils/tailwind";-import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";+import { usePostHogClientCapture } from "@/src/features/posthog-analytics";import {InputCommand,InputCommandEmpty,diff --git a/web/src/features/filters/hooks/useSidebarFilterState.tsx b/web/src/features/filters/hooks/useSidebarFilterState.tsxindex 2097920066..3e5fe820f8 100644--- a/web/src/features/filters/hooks/useSidebarFilterState.tsx+++ b/web/src/features/filters/hooks/useSidebarFilterState.tsx@@ -59,7 +59,7 @@ import {// Re-exported so existing consumers (tests, session view) keep their path.export { resolveCheckboxOperator } from "../lib/sidebar-filter-actions";import type { PeekTableStateContextValue } from "@/src/components/table/peek/contexts/PeekTableStateContext";-import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";+import { usePostHogClientCapture } from "@/src/features/posthog-analytics";/*** Decodes filters from URL query string and normalizes display names to column IDs.diff --git a/web/src/features/in-app-agent/components/InAppAgentWindow.tsx b/web/src/features/in-app-agent/components/InAppAgentWindow.tsxindex 3ca7e62175..3a7533dd40 100644--- a/web/src/features/in-app-agent/components/InAppAgentWindow.tsx+++ b/web/src/features/in-app-agent/components/InAppAgentWindow.tsx@@ -80,7 +80,7 @@ import {type InAppAgentQuickActionContext,type InAppAgentSubmitOptions,} from "@/src/features/in-app-agent/quickActions";-import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";+import { usePostHogClientCapture } from "@/src/features/posthog-analytics";import { Tabs, TabsList, TabsTrigger } from "@/src/components/ui/tabs";const AUTO_SCROLL_THRESHOLD_PX = 50;diff --git a/web/src/features/in-app-agent/components/InAppAiAgentProvider.tsx b/web/src/features/in-app-agent/components/InAppAiAgentProvider.tsxindex 6a2cd1ecb0..ec2046993b 100644--- a/web/src/features/in-app-agent/components/InAppAiAgentProvider.tsx+++ b/web/src/features/in-app-agent/components/InAppAiAgentProvider.tsx@@ -66,7 +66,7 @@ import {createInAppAgentUserContext,} from "@/src/features/in-app-agent/context";import type { InAppAgentSubmitOptions } from "@/src/features/in-app-agent/quickActions";-import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";+import { usePostHogClientCapture } from "@/src/features/posthog-analytics";import { evaluateSetStateAction } from "@/src/utils/evaluate-set-state-action";import { InAppAgentDisabledDialog } from "@/src/features/in-app-agent/components/InAppAgentDisabledDialog";import {diff --git a/web/src/features/models/components/DeleteModelButton.tsx b/web/src/features/models/components/DeleteModelButton.tsxindex 3c380e4bc6..c354269ca2 100644--- a/web/src/features/models/components/DeleteModelButton.tsx+++ b/web/src/features/models/components/DeleteModelButton.tsx@@ -8,7 +8,7 @@ import {PopoverTrigger,} from "@/src/components/ui/popover";import { type GetModelResult } from "@/src/features/models/validation";-import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";+import { usePostHogClientCapture } from "@/src/features/posthog-analytics";import { useHasProjectAccess } from "@/src/features/rbac/utils/checkProjectAccess";import { api } from "@/src/utils/api";diff --git a/web/src/features/models/components/UpsertModelFormDialog/UpsertModelFormDialog.tsx b/web/src/features/models/components/UpsertModelFormDialog/UpsertModelFormDialog.tsxindex 96bd20c5d5..94649ea1e5 100644--- a/web/src/features/models/components/UpsertModelFormDialog/UpsertModelFormDialog.tsx+++ b/web/src/features/models/components/UpsertModelFormDialog/UpsertModelFormDialog.tsx@@ -43,7 +43,7 @@ import {FormUpsertModelSchema,type GetModelResult,} from "@/src/features/models/validation";-import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";+import { usePostHogClientCapture } from "@/src/features/posthog-analytics";import { api } from "@/src/utils/api";import { zodResolver } from "@hookform/resolvers/zod";import { useRouter } from "next/router";diff --git a/web/src/features/navigate-detail-pages/DetailPageNav.tsx b/web/src/features/navigate-detail-pages/DetailPageNav.tsxindex 2cf4682162..5e63fe3efd 100644--- a/web/src/features/navigate-detail-pages/DetailPageNav.tsx+++ b/web/src/features/navigate-detail-pages/DetailPageNav.tsx@@ -10,7 +10,7 @@ import {type ListEntry,useDetailPageLists,} from "@/src/features/navigate-detail-pages/context";-import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";+import { usePostHogClientCapture } from "@/src/features/posthog-analytics";import { useReadPath } from "@/src/features/events/hooks/useReadPath";import { cn } from "@/src/utils/tailwind";import { ArrowDown, ArrowUp } from "lucide-react";diff --git a/web/src/features/notifications/ErrorNotification.tsx b/web/src/features/notifications/ErrorNotification.tsxindex ba30202815..d6cd9d4607 100644--- a/web/src/features/notifications/ErrorNotification.tsx+++ b/web/src/features/notifications/ErrorNotification.tsx@@ -1,5 +1,5 @@import { Button } from "@/src/components/ui/button";-import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";+import { usePostHogClientCapture } from "@/src/features/posthog-analytics";import { useSupportDrawer } from "@/src/features/support-chat/SupportDrawerProvider";import { useV4MigrationPanel } from "@/src/features/v4-migration/V4MigrationPanelProvider";import { AlertTriangle, X } from "lucide-react";diff --git a/web/src/features/organizations/components/AIFeatureSwitch.tsx b/web/src/features/organizations/components/AIFeatureSwitch.tsxindex 48c0166418..c35429b46c 100644--- a/web/src/features/organizations/components/AIFeatureSwitch.tsx+++ b/web/src/features/organizations/components/AIFeatureSwitch.tsx@@ -11,7 +11,7 @@ import {DialogTitle,} from "@/src/components/ui/dialog";import Header from "@/src/components/layouts/header";-import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";+import { usePostHogClientCapture } from "@/src/features/posthog-analytics";import { useHasOrganizationAccess } from "@/src/features/rbac/utils/checkOrganizationAccess";import {useLangfuseCloudRegion,diff --git a/web/src/features/organizations/components/ConnectedNewOrganizationForm.tsx b/web/src/features/organizations/components/ConnectedNewOrganizationForm.tsxindex b49e57442a..387ab40123 100644--- a/web/src/features/organizations/components/ConnectedNewOrganizationForm.tsx+++ b/web/src/features/organizations/components/ConnectedNewOrganizationForm.tsx@@ -1,7 +1,7 @@import type * as z from "zod";import { useSession } from "next-auth/react";import { useLangfuseCloudRegion } from "@/src/features/organizations/hooks";-import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";+import { usePostHogClientCapture } from "@/src/features/posthog-analytics";import type { organizationFormSchema } from "@/src/features/organizations/utils/organizationNameSchema";import { api, reportTrpcErrorWithoutToast } from "@/src/utils/api";import { NewOrganizationForm } from "./NewOrganizationForm";diff --git a/web/src/features/organizations/components/DeleteOrganizationDialogController.tsx b/web/src/features/organizations/components/DeleteOrganizationDialogController.tsxindex a19ba21640..0ee803e73e 100644--- a/web/src/features/organizations/components/DeleteOrganizationDialogController.tsx+++ b/web/src/features/organizations/components/DeleteOrganizationDialogController.tsx@@ -2,7 +2,7 @@ import { type ReactNode, useState } from "react";import { Dialog, DialogContent } from "@/src/components/ui/dialog";import { DeleteOrganizationDialogContent } from "@/src/features/organizations/components/DeleteOrganizationDialogContent";-import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";+import { usePostHogClientCapture } from "@/src/features/posthog-analytics";import { useQueryOrganization } from "@/src/features/organizations/hooks";import { useHasOrganizationAccess } from "@/src/features/rbac/utils/checkOrganizationAccess";import { showSuccessToast } from "@/src/features/notifications/showSuccessToast";diff --git a/web/src/features/organizations/components/ProjectOverview.tsx b/web/src/features/organizations/components/ProjectOverview.tsxindex 165cfc67f2..8987f2dd6c 100644--- a/web/src/features/organizations/components/ProjectOverview.tsx+++ b/web/src/features/organizations/components/ProjectOverview.tsx@@ -32,7 +32,7 @@ import {import { isCloudPlan, planLabels } from "@langfuse/shared";import ContainerPage from "@/src/components/layouts/container-page";import { type Session } from "next-auth";-import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";+import { usePostHogClientCapture } from "@/src/features/posthog-analytics";import { AgentToolsBanner } from "@/src/features/developer-tools/components/AgentToolsBanner";import { V4MigrationBanner } from "@/src/features/v4-migration/V4MigrationBanner";import { V4MigrationProjectChip } from "@/src/features/v4-migration/V4MigrationProjectChip";diff --git a/web/src/features/organizations/components/RenameOrganization.tsx b/web/src/features/organizations/components/RenameOrganization.tsxindex d43412b130..3dc22dc214 100644--- a/web/src/features/organizations/components/RenameOrganization.tsx+++ b/web/src/features/organizations/components/RenameOrganization.tsx@@ -13,7 +13,7 @@ import {} from "@/src/components/ui/form";import { projectNameSchema } from "@/src/features/auth/lib/projectNameSchema";import Header from "@/src/components/layouts/header";-import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";+import { usePostHogClientCapture } from "@/src/features/posthog-analytics";import { useHasOrganizationAccess } from "@/src/features/rbac/utils/checkOrganizationAccess";import { useQueryOrganization } from "@/src/features/organizations/hooks";import { Card } from "@/src/components/ui/card";diff --git a/web/src/features/playground/page/components/JumpToPlaygroundDropdownMenuController.tsx b/web/src/features/playground/page/components/JumpToPlaygroundDropdownMenuController.tsxindex 7bcc70652f..028a6b68de 100644--- a/web/src/features/playground/page/components/JumpToPlaygroundDropdownMenuController.tsx+++ b/web/src/features/playground/page/components/JumpToPlaygroundDropdownMenuController.tsx@@ -9,7 +9,7 @@ import {type PlaygroundSchema,type PlaygroundTool,} from "@/src/features/playground/page/types";-import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";+import { usePostHogClientCapture } from "@/src/features/posthog-analytics";import useProjectIdFromURL from "@/src/hooks/useProjectIdFromURL";import {ChatMessageRole,diff --git a/web/src/features/playground/page/components/SaveToPromptButton.tsx b/web/src/features/playground/page/components/SaveToPromptButton.tsxindex 27beaf3870..73b8a39342 100644--- a/web/src/features/playground/page/components/SaveToPromptButton.tsx+++ b/web/src/features/playground/page/components/SaveToPromptButton.tsx@@ -25,7 +25,7 @@ import {} from "@/src/components/ui/tooltip";import { usePlaygroundContext } from "@/src/features/playground/page/context";import usePlaygroundCache from "@/src/features/playground/page/hooks/usePlaygroundCache";-import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";+import { usePostHogClientCapture } from "@/src/features/posthog-analytics";import useProjectIdFromURL from "@/src/hooks/useProjectIdFromURL";import { api } from "@/src/utils/api";import { cn } from "@/src/utils/tailwind";diff --git a/web/src/features/playground/page/context/index.tsx b/web/src/features/playground/page/context/index.tsxindex 792a8b2df8..68f540800b 100644--- a/web/src/features/playground/page/context/index.tsx+++ b/web/src/features/playground/page/context/index.tsx@@ -12,7 +12,7 @@ import { v4 as uuidv4 } from "uuid";import { createEmptyMessage } from "@/src/components/ChatMessages/utils/createEmptyMessage";import { useModelParams } from "@/src/features/playground/page/hooks/useModelParams";import usePlaygroundCache from "@/src/features/playground/page/hooks/usePlaygroundCache";-import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";+import { usePostHogClientCapture } from "@/src/features/posthog-analytics";import { showErrorToast } from "@/src/features/notifications/showErrorToast";import useProjectIdFromURL from "@/src/hooks/useProjectIdFromURL";import {diff --git a/web/src/features/posthog-analytics/index.ts b/web/src/features/posthog-analytics/index.tsnew file mode 100644index 0000000000..77dcc6e0c2--- /dev/null+++ b/web/src/features/posthog-analytics/index.ts@@ -0,0 +1,19 @@+// The product-analytics feature's public client surface (RFC rule 8). Named+// re-exports only — exactly what other features already imported from this+// feature's client modules, nothing added for the future.+//+// `ServerPosthog` stays a deep import. Re-exporting it here pulled+// `posthog-node` into every client that only needed the capture hook (Storybook+// and the Next web build both failed). Callers in `auth/lib` and `telemetry`+// are not under `server/`, so a `server/index.ts` is rule 10. Those two inbound+// paths remain until those callers move.+//+// `server/backendActivity` stays a direct import from the tRPC root, which is+// not a feature.++export {+ usePostHogClientCapture,+ V4_BETA_ENABLED_POSTHOG_PROPERTY,+} from "@/src/features/posthog-analytics/usePostHogClientCapture";++export { isPostHogClientEnabled } from "@/src/features/posthog-analytics/productAnalyticsAvailability";diff --git a/web/src/features/projects/components/ConfigureRetention.tsx b/web/src/features/projects/components/ConfigureRetention.tsxindex eac49e4206..8c2d65cab1 100644--- a/web/src/features/projects/components/ConfigureRetention.tsx+++ b/web/src/features/projects/components/ConfigureRetention.tsx@@ -12,7 +12,7 @@ import {FormMessage,} from "@/src/components/ui/form";import Header from "@/src/components/layouts/header";-import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";+import { usePostHogClientCapture } from "@/src/features/posthog-analytics";import { LockIcon } from "lucide-react";import { useQueryProject } from "@/src/features/projects/hooks";import { useSession } from "next-auth/react";diff --git a/web/src/features/projects/components/DeleteProjectDialogController.tsx b/web/src/features/projects/components/DeleteProjectDialogController.tsxindex c50ac55ec0..1ef742d5d8 100644--- a/web/src/features/projects/components/DeleteProjectDialogController.tsx+++ b/web/src/features/projects/components/DeleteProjectDialogController.tsx@@ -5,7 +5,7 @@ import {type DialogTrigger,} from "@/src/components/ui/dialog";import { env } from "@/src/env.mjs";-import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";+import { usePostHogClientCapture } from "@/src/features/posthog-analytics";import { useQueryProject } from "@/src/features/projects/hooks";import { useHasProjectAccess } from "@/src/features/rbac/utils/checkProjectAccess";import { api, reportNonTrpcError } from "@/src/utils/api";diff --git a/web/src/features/projects/components/NewProjectForm.tsx b/web/src/features/projects/components/NewProjectForm.tsxindex 81d8dc63bb..9a38ab1e82 100644--- a/web/src/features/projects/components/NewProjectForm.tsx+++ b/web/src/features/projects/components/NewProjectForm.tsx@@ -14,7 +14,7 @@ import { Input } from "@/src/components/ui/input";import { api, reportTrpcErrorWithoutToast } from "@/src/utils/api";import { useSession } from "next-auth/react";import { projectNameSchema } from "@/src/features/auth/lib/projectNameSchema";-import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";+import { usePostHogClientCapture } from "@/src/features/posthog-analytics";export const NewProjectForm = ({orgId,diff --git a/web/src/features/projects/components/RenameProject.tsx b/web/src/features/projects/components/RenameProject.tsxindex ccc4f0d24c..b11b01eb06 100644--- a/web/src/features/projects/components/RenameProject.tsx+++ b/web/src/features/projects/components/RenameProject.tsx@@ -14,7 +14,7 @@ import {} from "@/src/components/ui/form";import { projectNameSchema } from "@/src/features/auth/lib/projectNameSchema";import Header from "@/src/components/layouts/header";-import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";+import { usePostHogClientCapture } from "@/src/features/posthog-analytics";import { LockIcon } from "lucide-react";import { useQueryProject } from "@/src/features/projects/hooks";import { useSession } from "next-auth/react";diff --git a/web/src/features/projects/components/TransferProjectDialogController.tsx b/web/src/features/projects/components/TransferProjectDialogController.tsxindex 965e1a848c..804c8b288d 100644--- a/web/src/features/projects/components/TransferProjectDialogController.tsx+++ b/web/src/features/projects/components/TransferProjectDialogController.tsx@@ -2,7 +2,7 @@ import { type ReactNode, useState } from "react";import { Dialog } from "@/src/components/ui/dialog";import { TransferProjectDialogContent } from "@/src/features/projects/components/TransferProjectDialogContent";-import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";+import { usePostHogClientCapture } from "@/src/features/posthog-analytics";import {hasOrganizationAccess,useHasOrganizationAccess,diff --git a/web/src/features/prompts/components/ImportPromptsButtonDialogController.tsx b/web/src/features/prompts/components/ImportPromptsButtonDialogController.tsxindex 09bbdfa95e..e409b45053 100644--- a/web/src/features/prompts/components/ImportPromptsButtonDialogController.tsx+++ b/web/src/features/prompts/components/ImportPromptsButtonDialogController.tsx@@ -11,7 +11,7 @@ import {DialogTitle,} from "@/src/components/ui/dialog";import { api } from "@/src/utils/api";-import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";+import { usePostHogClientCapture } from "@/src/features/posthog-analytics";import { useHasProjectAccess } from "@/src/features/rbac/utils/checkProjectAccess";import { CreatePromptSchema } from "@langfuse/shared";import { z } from "zod";diff --git a/web/src/features/prompts/components/NewPromptForm/index.tsx b/web/src/features/prompts/components/NewPromptForm/index.tsxindex 87c0aa3b61..95c18652e0 100644--- a/web/src/features/prompts/components/NewPromptForm/index.tsx+++ b/web/src/features/prompts/components/NewPromptForm/index.tsx@@ -45,7 +45,7 @@ import { SquareArrowOutUpRight } from "lucide-react";import { PromptVariableListPreview } from "@/src/features/prompts/components/PromptVariableListPreview";import { CodeMirrorEditor } from "@/src/components/editor/CodeMirrorEditor";import { PromptLinkingEditor } from "@/src/components/editor/PromptLinkingEditor";-import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";+import { usePostHogClientCapture } from "@/src/features/posthog-analytics";import usePlaygroundCache from "@/src/features/playground/page/hooks/usePlaygroundCache";import { useQueryParam } from "use-query-params";import { usePromptNameValidation } from "@/src/features/prompts/hooks/usePromptNameValidation";diff --git a/web/src/features/prompts/components/SetPromptVersionLabels/index.tsx b/web/src/features/prompts/components/SetPromptVersionLabels/index.tsxindex 830e7b5c24..5836fa3416 100644--- a/web/src/features/prompts/components/SetPromptVersionLabels/index.tsx+++ b/web/src/features/prompts/components/SetPromptVersionLabels/index.tsx@@ -23,7 +23,7 @@ import {type Prompt,} from "@langfuse/shared";import { LabelCommandItem } from "./LabelCommandItem";-import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";+import { usePostHogClientCapture } from "@/src/features/posthog-analytics";import { isReservedPromptLabel } from "@/src/features/prompts/utils";import { TruncatedLabels } from "@/src/components/TruncatedLabels";import { cn } from "@/src/utils/tailwind";diff --git a/web/src/features/prompts/components/delete-prompt-version.tsx b/web/src/features/prompts/components/delete-prompt-version.tsxindex 98bdb389a3..f0ccda4cd2 100644--- a/web/src/features/prompts/components/delete-prompt-version.tsx+++ b/web/src/features/prompts/components/delete-prompt-version.tsx@@ -11,7 +11,7 @@ import {} from "@/src/components/ui/popover";import { useRouter } from "next/router";import useProjectIdFromURL from "@/src/hooks/useProjectIdFromURL";-import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";+import { usePostHogClientCapture } from "@/src/features/posthog-analytics";export function DeletePromptVersion({promptVersionId,diff --git a/web/src/features/prompts/components/duplicate-folder.tsx b/web/src/features/prompts/components/duplicate-folder.tsxindex 23f564b70c..c9c2359c3d 100644--- a/web/src/features/prompts/components/duplicate-folder.tsx+++ b/web/src/features/prompts/components/duplicate-folder.tsx@@ -29,7 +29,7 @@ import { z } from "zod/v4";import { zodResolver } from "@hookform/resolvers/zod";import useProjectIdFromURL from "@/src/hooks/useProjectIdFromURL";import { Copy } from "lucide-react";-import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";+import { usePostHogClientCapture } from "@/src/features/posthog-analytics";import { useEntitlementLimit } from "@/src/features/entitlements/hooks";enum CopySettings {diff --git a/web/src/features/prompts/components/duplicate-prompt.tsx b/web/src/features/prompts/components/duplicate-prompt.tsxindex 8b5041fbc7..9885501da5 100644--- a/web/src/features/prompts/components/duplicate-prompt.tsx+++ b/web/src/features/prompts/components/duplicate-prompt.tsx@@ -14,7 +14,7 @@ import {DialogTrigger,} from "@/src/components/ui/dialog";import { ActionButton } from "@/src/components/ActionButton";-import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";+import { usePostHogClientCapture } from "@/src/features/posthog-analytics";import { useEntitlementLimit } from "@/src/features/entitlements/hooks";import { useState } from "react";import {diff --git a/web/src/features/prompts/components/prompt-detail.tsx b/web/src/features/prompts/components/prompt-detail.tsxindex 68495f7c97..c6b1e660e5 100644--- a/web/src/features/prompts/components/prompt-detail.tsx+++ b/web/src/features/prompts/components/prompt-detail.tsx@@ -49,7 +49,7 @@ import {import { useHasProjectAccess } from "@/src/features/rbac/utils/checkProjectAccess";import { Button } from "@/src/components/ui/button";import { ActionButtonCountBadge } from "@/src/components/ui/action-button-count-badge";-import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";+import { usePostHogClientCapture } from "@/src/features/posthog-analytics";import {Dialog,DialogContent,diff --git a/web/src/features/public-api/components/ApiKeyList.tsx b/web/src/features/public-api/components/ApiKeyList.tsxindex 7aefca8b8a..e994338501 100644--- a/web/src/features/public-api/components/ApiKeyList.tsx+++ b/web/src/features/public-api/components/ApiKeyList.tsx@@ -13,7 +13,7 @@ import {TableHeader,TableRow,} from "@/src/components/ui/table";-import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";+import { usePostHogClientCapture } from "@/src/features/posthog-analytics";import { CreateApiKeyButton } from "@/src/features/public-api/components/CreateApiKeyButton";import { useHasProjectAccess } from "@/src/features/rbac/utils/checkProjectAccess";import { useHasOrganizationAccess } from "@/src/features/rbac/utils/checkOrganizationAccess";diff --git a/web/src/features/public-api/components/CreateApiKeyButton.tsx b/web/src/features/public-api/components/CreateApiKeyButton.tsxindex ce93c94115..3fe0b32c63 100644--- a/web/src/features/public-api/components/CreateApiKeyButton.tsx+++ b/web/src/features/public-api/components/CreateApiKeyButton.tsx@@ -5,7 +5,7 @@ import { useState } from "react";import { PlusIcon } from "lucide-react";import { useHasProjectAccess } from "@/src/features/rbac/utils/checkProjectAccess";import { useHasOrganizationAccess } from "@/src/features/rbac/utils/checkOrganizationAccess";-import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";+import { usePostHogClientCapture } from "@/src/features/posthog-analytics";import { useLangfuseBaseUrl } from "@/src/features/public-api/hooks/useLangfuseEnvCode";import { ApiKeyCreateDialogContent } from "@/src/features/public-api/components/ApiKeyCreateDialogContent";diff --git a/web/src/features/public-api/components/CreateLLMApiKeyForm.tsx b/web/src/features/public-api/components/CreateLLMApiKeyForm.tsxindex a72fd87598..f99121e6e2 100644--- a/web/src/features/public-api/components/CreateLLMApiKeyForm.tsx+++ b/web/src/features/public-api/components/CreateLLMApiKeyForm.tsx@@ -35,7 +35,7 @@ import { Switch } from "@/src/components/design-system/Switch/Switch";import { Tabs, TabsList, TabsTrigger } from "@/src/components/ui/tabs";import { api, reportNonTrpcError, type RouterOutputs } from "@/src/utils/api";import { cn } from "@/src/utils/tailwind";-import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";+import { usePostHogClientCapture } from "@/src/features/posthog-analytics";import { type useUiCustomization } from "@/src/ee/features/ui-customization/useUiCustomization";import { DialogFooter, DialogBody } from "@/src/components/ui/dialog";import { env } from "@/src/env.mjs";diff --git a/web/src/features/public-api/components/LLMApiKeyList.tsx b/web/src/features/public-api/components/LLMApiKeyList.tsxindex 4ec9f4dae4..d588d183ab 100644--- a/web/src/features/public-api/components/LLMApiKeyList.tsx+++ b/web/src/features/public-api/components/LLMApiKeyList.tsx@@ -12,7 +12,7 @@ import {TableHeader,TableRow,} from "@/src/components/ui/table";-import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";+import { usePostHogClientCapture } from "@/src/features/posthog-analytics";import { useHasProjectAccess } from "@/src/features/rbac/utils/checkProjectAccess";import { api, reportNonTrpcError } from "@/src/utils/api";import { Alert } from "@/src/components/design-system/Alert/Alert";diff --git a/web/src/features/rbac/components/CreateProjectMemberDialogController.tsx b/web/src/features/rbac/components/CreateProjectMemberDialogController.tsxindex dabcc2d50b..28908226b1 100644--- a/web/src/features/rbac/components/CreateProjectMemberDialogController.tsx+++ b/web/src/features/rbac/components/CreateProjectMemberDialogController.tsx@@ -11,7 +11,7 @@ import {useEntitlementLimit,useHasEntitlement,} from "@/src/features/entitlements/hooks";-import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";+import { usePostHogClientCapture } from "@/src/features/posthog-analytics";import { useHasOrganizationAccess } from "@/src/features/rbac/utils/checkOrganizationAccess";import { useHasProjectAccess } from "@/src/features/rbac/utils/checkProjectAccess";import { api } from "@/src/utils/api";diff --git a/web/src/features/score-configs/components/ArchiveScoreConfigButton.tsx b/web/src/features/score-configs/components/ArchiveScoreConfigButton.tsxindex b36c3a21c5..eba50bef87 100644--- a/web/src/features/score-configs/components/ArchiveScoreConfigButton.tsx+++ b/web/src/features/score-configs/components/ArchiveScoreConfigButton.tsx@@ -1,7 +1,7 @@import { Button } from "@/src/components/ui/button";import { PopoverController } from "@/src/components/ui/popover";import type * as React from "react";-import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";+import { usePostHogClientCapture } from "@/src/features/posthog-analytics";import { useHasProjectAccess } from "@/src/features/rbac/utils/checkProjectAccess";import { api } from "@/src/utils/api";import { useEmptyScoreConfigs } from "@/src/features/scores/hooks/useEmptyConfigs";diff --git a/web/src/features/score-configs/components/UpsertScoreConfigDialogController.tsx b/web/src/features/score-configs/components/UpsertScoreConfigDialogController.tsxindex 964756e78b..c62a5ab438 100644--- a/web/src/features/score-configs/components/UpsertScoreConfigDialogController.tsx+++ b/web/src/features/score-configs/components/UpsertScoreConfigDialogController.tsx@@ -6,7 +6,7 @@ import {DialogContent,DialogTrigger,} from "@/src/components/ui/dialog";-import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";+import { usePostHogClientCapture } from "@/src/features/posthog-analytics";import { useHasProjectAccess } from "@/src/features/rbac/utils/checkProjectAccess";import { UpsertScoreConfigDialogContent } from "@/src/features/score-configs/components/UpsertScoreConfigDialogContent";import {diff --git a/web/src/features/scores-chart-view/components/ScoresOutlierStrip.tsx b/web/src/features/scores-chart-view/components/ScoresOutlierStrip.tsxindex e202dd968a..a01a314ffe 100644--- a/web/src/features/scores-chart-view/components/ScoresOutlierStrip.tsx+++ b/web/src/features/scores-chart-view/components/ScoresOutlierStrip.tsx@@ -12,7 +12,7 @@ import {pickChartGranularity,} from "@/src/features/events/components/outlier-strip/lib/binning";import { mapLegacyUiTableFilterToView } from "@/src/features/dashboard/lib/dashboardUiTableToViewMapping";-import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";+import { usePostHogClientCapture } from "@/src/features/posthog-analytics";import { ScoreOutlierStripHeader } from "@/src/features/scores-chart-view/components/ScoreOutlierStripHeader";import { SCORE_OUTLIER_STRIP_METRICS } from "@/src/features/scores-chart-view/constants/scoreOutlierStripMetrics";import { canApplyScoreOutlierStripFilters } from "@/src/features/scores-chart-view/fns/outlierStripFilters";diff --git a/web/src/features/scores/components/AddScoreCategoryDialog.tsx b/web/src/features/scores/components/AddScoreCategoryDialog.tsxindex a580403462..172873f27a 100644--- a/web/src/features/scores/components/AddScoreCategoryDialog.tsx+++ b/web/src/features/scores/components/AddScoreCategoryDialog.tsx@@ -14,7 +14,7 @@ import {import { Input } from "@/src/components/ui/input";import { Label } from "@/src/components/ui/label";import { api } from "@/src/utils/api";-import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";+import { usePostHogClientCapture } from "@/src/features/posthog-analytics";import { validateNewCategoryLabel } from "@/src/features/scores/lib/annotationFormHelpers";import { type AnalyticsData } from "@/src/features/scores/types";diff --git a/web/src/features/scores/components/AnnotateDrawerController.tsx b/web/src/features/scores/components/AnnotateDrawerController.tsxindex 1151817153..96d7e72d15 100644--- a/web/src/features/scores/components/AnnotateDrawerController.tsx+++ b/web/src/features/scores/components/AnnotateDrawerController.tsx@@ -1,5 +1,5 @@import { Drawer } from "@/src/components/ui/drawer";-import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";+import { usePostHogClientCapture } from "@/src/features/posthog-analytics";import { useHasProjectAccess } from "@/src/features/rbac/utils/checkProjectAccess";import {type AnalyticsData,diff --git a/web/src/features/scores/components/AnnotationForm.tsx b/web/src/features/scores/components/AnnotationForm.tsxindex 2e9c9d8e9e..c8b85c9448 100644--- a/web/src/features/scores/components/AnnotationForm.tsx+++ b/web/src/features/scores/components/AnnotationForm.tsx@@ -42,7 +42,7 @@ import {isScoreUnsaved,} from "@/src/features/scores/lib/helpers";import Header from "@/src/components/layouts/header";-import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";+import { usePostHogClientCapture } from "@/src/features/posthog-analytics";import { cn } from "@/src/utils/tailwind";import {type AnnotationScoreFormData,diff --git a/web/src/features/search-bar/components/SearchBarAiPrompt.tsx b/web/src/features/search-bar/components/SearchBarAiPrompt.tsxindex aa89f79f4e..d2cb1c98c3 100644--- a/web/src/features/search-bar/components/SearchBarAiPrompt.tsx+++ b/web/src/features/search-bar/components/SearchBarAiPrompt.tsx@@ -26,7 +26,7 @@ import type { ObservedScoreNames } from "@/src/features/search-bar/lib/observed-import type { SearchBarStore } from "@/src/features/search-bar/store/searchBarStore";import { api } from "@/src/utils/api";import { cn } from "@/src/utils/tailwind";-import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";+import { usePostHogClientCapture } from "@/src/features/posthog-analytics";// "No such score X" note for score filters the server dropped because their// name matches no observed score (exactly or normalized).diff --git a/web/src/features/search-bar/hooks/useEventsSearchBar.ts b/web/src/features/search-bar/hooks/useEventsSearchBar.tsindex 7e6489694e..c297b3459d 100644--- a/web/src/features/search-bar/hooks/useEventsSearchBar.ts+++ b/web/src/features/search-bar/hooks/useEventsSearchBar.ts@@ -36,7 +36,7 @@ import {createSearchBarStore,type SearchBarStore,} from "@/src/features/search-bar/store/searchBarStore";-import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";+import { usePostHogClientCapture } from "@/src/features/posthog-analytics";/** How a search-bar commit was triggered — the `trigger` analytics dimension. */type SearchCommitTrigger = "enter" | "blur" | "pick";diff --git a/web/src/features/setup/components/SetupTracingButton.tsx b/web/src/features/setup/components/SetupTracingButton.tsxindex f3cf3abdcf..6c16167bab 100644--- a/web/src/features/setup/components/SetupTracingButton.tsx+++ b/web/src/features/setup/components/SetupTracingButton.tsx@@ -7,7 +7,7 @@ import { useHasProjectAccess } from "@/src/features/rbac/utils/checkProjectAccesimport { LockIcon } from "lucide-react";import { useRouter } from "next/router";import { useEffect, useRef } from "react";-import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";+import { usePostHogClientCapture } from "@/src/features/posthog-analytics";const SetupTracingButton = () => {const { project } = useQueryProjectOrOrganization();diff --git a/web/src/features/setup/components/TracesSetupOnboardingCard.tsx b/web/src/features/setup/components/TracesSetupOnboardingCard.tsxindex 9859d33811..121f875a2f 100644--- a/web/src/features/setup/components/TracesSetupOnboardingCard.tsx+++ b/web/src/features/setup/components/TracesSetupOnboardingCard.tsx@@ -8,7 +8,7 @@ import { useLangfuseBaseUrl } from "@/src/features/public-api/hooks/useLangfuseEimport { useHasProjectAccess } from "@/src/features/rbac/utils/checkProjectAccess";import { api, reportNonTrpcError } from "@/src/utils/api";import { type RouterOutput } from "@/src/utils/types";-import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";+import { usePostHogClientCapture } from "@/src/features/posthog-analytics";import { Check, Copy, LockIcon, Sparkles } from "lucide-react";import Link from "next/link";import { useState } from "react";diff --git a/web/src/features/support-chat/IntroSection.tsx b/web/src/features/support-chat/IntroSection.tsxindex 011bba2e4c..07ee8015ad 100644--- a/web/src/features/support-chat/IntroSection.tsx+++ b/web/src/features/support-chat/IntroSection.tsx@@ -16,7 +16,7 @@ import { usePlan } from "@/src/features/entitlements/hooks";import { isCloudPlan } from "@langfuse/shared";import { useUiCustomization } from "@/src/ee/features/ui-customization/useUiCustomization";import { useLangfuseCloudRegion } from "@/src/features/organizations/hooks";-import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";+import { usePostHogClientCapture } from "@/src/features/posthog-analytics";type SupportType = "in-app-support" | "custom" | "community";diff --git a/web/src/features/tag/components/TagCommandItem.tsx b/web/src/features/tag/components/TagCommandItem.tsxindex 8039fd3618..f9c0934a3f 100644--- a/web/src/features/tag/components/TagCommandItem.tsx+++ b/web/src/features/tag/components/TagCommandItem.tsx@@ -1,6 +1,6 @@import { InputCommandItem } from "@/src/components/ui/input-command";import { Button } from "@/src/components/ui/button";-import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";+import { usePostHogClientCapture } from "@/src/features/posthog-analytics";import { Checkbox } from "@/src/components/design-system/Checkbox/Checkbox";type TagCommandItemProps = {diff --git a/web/src/features/tag/components/TagInput.tsx b/web/src/features/tag/components/TagInput.tsxindex 9250b49e5b..af7b845150 100644--- a/web/src/features/tag/components/TagInput.tsx+++ b/web/src/features/tag/components/TagInput.tsx@@ -4,7 +4,7 @@ import { cn } from "@/src/utils/tailwind";import { X } from "lucide-react";import { Button } from "@/src/components/ui/button";import { Command as CommandPrimitive } from "cmdk";-import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";+import { usePostHogClientCapture } from "@/src/features/posthog-analytics";type TagInputProps = React.ComponentPropsWithoutRef<typeof CommandPrimitive.Inputdiff --git a/web/src/features/tag/components/TagManager.tsx b/web/src/features/tag/components/TagManager.tsxindex 78ca77b941..b7ea7af9f6 100644--- a/web/src/features/tag/components/TagManager.tsx+++ b/web/src/features/tag/components/TagManager.tsx@@ -12,7 +12,7 @@ import {} from "@/src/components/ui/popover";import { Command, CommandList, CommandGroup } from "cmdk";import { cn } from "@/src/utils/tailwind";-import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";+import { usePostHogClientCapture } from "@/src/features/posthog-analytics";import { Label } from "@/src/components/ui/label";type TagManagerProps = {diff --git a/web/src/features/tag/hooks/useTagManager.tsx b/web/src/features/tag/hooks/useTagManager.tsxindex dcd1d4a764..cef53cc7fa 100644--- a/web/src/features/tag/hooks/useTagManager.tsx+++ b/web/src/features/tag/hooks/useTagManager.tsx@@ -1,4 +1,4 @@-import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";+import { usePostHogClientCapture } from "@/src/features/posthog-analytics";import { useEffect, useState, useMemo } from "react";type UseTagManagerProps = {diff --git a/web/src/features/theming/ThemeToggle.tsx b/web/src/features/theming/ThemeToggle.tsxindex 92ac8a8fbb..2736c48dd5 100644--- a/web/src/features/theming/ThemeToggle.tsx+++ b/web/src/features/theming/ThemeToggle.tsx@@ -2,7 +2,7 @@ import * as React from "react";import { Monitor, Moon, Sun } from "lucide-react";import { useTheme } from "next-themes";import { cn } from "@/src/utils/tailwind";-import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";+import { usePostHogClientCapture } from "@/src/features/posthog-analytics";export function ThemeToggle() {const { theme, setTheme } = useTheme();diff --git a/web/src/features/traces/components/AdvancedJsonViewer/lazy/react/LazyJsonViewer.tsx b/web/src/features/traces/components/AdvancedJsonViewer/lazy/react/LazyJsonViewer.tsxindex c051e4cb73..783c7ab258 100644--- a/web/src/features/traces/components/AdvancedJsonViewer/lazy/react/LazyJsonViewer.tsx+++ b/web/src/features/traces/components/AdvancedJsonViewer/lazy/react/LazyJsonViewer.tsx@@ -23,7 +23,7 @@ import { LazyJsonList } from "./LazyJsonList";import { createRowModelStore, type LazyViewerMetric } from "./rowModelStore";import { TreeRowModel } from "../treeRowModel";import { sourceFromSerialized } from "../asyncJsonSource";-import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";+import { usePostHogClientCapture } from "@/src/features/posthog-analytics";import { reportError } from "@/src/utils/reportError";// Provisional main-thread budgets (LFE-14419) — the telemetry exists to LEARNdiff --git a/web/src/features/traces/components/IOPreview/IOPreview.tsx b/web/src/features/traces/components/IOPreview/IOPreview.tsxindex 5f8080cb75..8ffc26c2fd 100644--- a/web/src/features/traces/components/IOPreview/IOPreview.tsx+++ b/web/src/features/traces/components/IOPreview/IOPreview.tsx@@ -1,7 +1,7 @@import { useEffect } from "react";import { type ScoreDomain, type Prisma } from "@langfuse/shared";import useIsFeatureEnabled from "@/src/features/feature-flags/hooks/useIsFeatureEnabled";-import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";+import { usePostHogClientCapture } from "@/src/features/posthog-analytics";import useLocalStorage from "@/src/components/useLocalStorage";import { usePreserveRelativeScroll } from "@/src/features/traces/hooks/usePreserveRelativeScroll";import { type MediaReturnType } from "@/src/features/media/validation";diff --git a/web/src/features/traces/components/IOPreview/components/LargeJsonFieldFallback.tsx b/web/src/features/traces/components/IOPreview/components/LargeJsonFieldFallback.tsxindex a5c54dfab6..3bf9c576f6 100644--- a/web/src/features/traces/components/IOPreview/components/LargeJsonFieldFallback.tsx+++ b/web/src/features/traces/components/IOPreview/components/LargeJsonFieldFallback.tsx@@ -2,7 +2,7 @@ import { useMemo } from "react";import { Download } from "lucide-react";import { Button } from "@/src/components/ui/button";import { compactNumberFormatter } from "@/src/utils/numbers";-import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";+import { usePostHogClientCapture } from "@/src/features/posthog-analytics";/** How much of the raw payload the preview head shows. Bounded regardless of* payload size — the full value is reachable via download or the other views. */diff --git a/web/src/features/traces/components/PlaybackControls.tsx b/web/src/features/traces/components/PlaybackControls.tsxindex 9d8d16632d..f2c23cdb95 100644--- a/web/src/features/traces/components/PlaybackControls.tsx+++ b/web/src/features/traces/components/PlaybackControls.tsx@@ -30,7 +30,7 @@ import { useTraceData } from "@/src/features/traces/contexts/TraceDataContext";import { useTraceGraphData } from "@/src/features/traces/contexts/TraceGraphDataContext";import { useSearch } from "@/src/features/traces/contexts/SearchContext";import { useViewPreferences } from "@/src/features/traces/contexts/ViewPreferencesContext";-import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";+import { usePostHogClientCapture } from "@/src/features/posthog-analytics";import { useTraceAnalyticsDimensions } from "@/src/features/traces/hooks/useTraceAnalyticsDimensions";// A 22px ring around the ~28px (h-7) button; 2px stroke reads at this size.diff --git a/web/src/features/traces/components/TraceGraphView/TraceGraphView.tsx b/web/src/features/traces/components/TraceGraphView/TraceGraphView.tsxindex dde971fbe1..db514eba66 100644--- a/web/src/features/traces/components/TraceGraphView/TraceGraphView.tsx+++ b/web/src/features/traces/components/TraceGraphView/TraceGraphView.tsx@@ -11,7 +11,7 @@ import { type GraphViewMode } from "@/src/features/trace-graph-view/types";import { useTraceGraphData } from "@/src/features/traces/contexts/TraceGraphDataContext";import { useActiveObservationIds } from "@/src/features/traces/contexts/PlayheadContext";import { useViewPreferences } from "@/src/features/traces/contexts/ViewPreferencesContext";-import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";+import { usePostHogClientCapture } from "@/src/features/posthog-analytics";import { useTraceAnalyticsDimensions } from "@/src/features/traces/hooks/useTraceAnalyticsDimensions";import { useMobileLayoutContextOptional } from "../TraceLayoutMobile";diff --git a/web/src/features/traces/components/TracePanelNavigationHeader/TracePanelNavigationHeader.tsx b/web/src/features/traces/components/TracePanelNavigationHeader/TracePanelNavigationHeader.tsxindex ad749c9058..91585fcf79 100644--- a/web/src/features/traces/components/TracePanelNavigationHeader/TracePanelNavigationHeader.tsx+++ b/web/src/features/traces/components/TracePanelNavigationHeader/TracePanelNavigationHeader.tsx@@ -47,7 +47,7 @@ import {import { TracePanelNavigationButton } from "./components/TracePanelNavigationButton";import { PlaybackControls, PlaybackMenuItems } from "../PlaybackControls";import { useDesktopLayoutContextOptional } from "../TraceLayoutDesktop";-import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";+import { usePostHogClientCapture } from "@/src/features/posthog-analytics";import { useTraceAnalyticsDimensions } from "@/src/features/traces/hooks/useTraceAnalyticsDimensions";import { toast } from "sonner";import { TRACE_DOWNLOAD_OMIT_LARGE_FIELDS_THRESHOLD } from "@/src/features/traces/constants/traceDownloadConfig";diff --git a/web/src/features/traces/components/TracePanelNavigationHeader/components/TracePanelNavigationButton.tsx b/web/src/features/traces/components/TracePanelNavigationHeader/components/TracePanelNavigationButton.tsxindex ede6e406db..7458b551d4 100644--- a/web/src/features/traces/components/TracePanelNavigationHeader/components/TracePanelNavigationButton.tsx+++ b/web/src/features/traces/components/TracePanelNavigationHeader/components/TracePanelNavigationButton.tsx@@ -1,7 +1,7 @@import { Button } from "@/src/components/ui/button";import { PanelLeftClose, PanelLeftOpen } from "lucide-react";-import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";+import { usePostHogClientCapture } from "@/src/features/posthog-analytics";import { useTraceAnalyticsDimensions } from "@/src/features/traces/hooks/useTraceAnalyticsDimensions";interface TracePanelNavigationButtonProps {diff --git a/web/src/features/traces/components/TraceSearchList.tsx b/web/src/features/traces/components/TraceSearchList.tsxindex 66cb0fbe78..03ad7f2b28 100644--- a/web/src/features/traces/components/TraceSearchList.tsx+++ b/web/src/features/traces/components/TraceSearchList.tsx@@ -12,7 +12,7 @@ import { useSearch } from "@/src/features/traces/contexts/SearchContext";import { useSelection } from "@/src/features/traces/contexts/SelectionContext";import { useHandlePrefetchObservation } from "@/src/features/traces/hooks/useHandlePrefetchObservation";import { useDesktopLayoutContextOptional } from "./TraceLayoutDesktop";-import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";+import { usePostHogClientCapture } from "@/src/features/posthog-analytics";import { useTraceAnalyticsDimensions } from "@/src/features/traces/hooks/useTraceAnalyticsDimensions";import { VirtualizedList } from "./VirtualizedList";import { TraceSearchListItem } from "./TraceSearchListItem";diff --git a/web/src/features/traces/components/TraceSettingsDropdown.tsx b/web/src/features/traces/components/TraceSettingsDropdown.tsxindex 1859323d42..9382967019 100644--- a/web/src/features/traces/components/TraceSettingsDropdown.tsx+++ b/web/src/features/traces/components/TraceSettingsDropdown.tsx@@ -30,7 +30,7 @@ import {} from "@/src/components/ui/dropdown-menu";import { Switch } from "@/src/components/design-system/Switch/Switch";import { cn } from "@/src/utils/tailwind";-import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";+import { usePostHogClientCapture } from "@/src/features/posthog-analytics";import { useViewPreferences } from "@/src/features/traces/contexts/ViewPreferencesContext";import { useTraceAnalyticsDimensions } from "@/src/features/traces/hooks/useTraceAnalyticsDimensions";diff --git a/web/src/features/traces/hooks/useSelectTraceNode.ts b/web/src/features/traces/hooks/useSelectTraceNode.tsindex 6b214cb4ce..ed3a5f5aea 100644--- a/web/src/features/traces/hooks/useSelectTraceNode.ts+++ b/web/src/features/traces/hooks/useSelectTraceNode.ts@@ -1,6 +1,6 @@import { useCallback } from "react";import { useSelection } from "@/src/features/traces/contexts/SelectionContext";-import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";+import { usePostHogClientCapture } from "@/src/features/posthog-analytics";import { useTraceAnalyticsDimensions } from "@/src/features/traces/hooks/useTraceAnalyticsDimensions";import { useDesktopLayoutContextOptional } from "@/src/features/traces/components/TraceLayoutDesktop";import { useMobileLayoutContextOptional } from "@/src/features/traces/components/TraceLayoutMobile";diff --git a/web/src/features/v4-migration/EvaluatorMigrationDialog.tsx b/web/src/features/v4-migration/EvaluatorMigrationDialog.tsxindex 511e5279b0..fc10176319 100644--- a/web/src/features/v4-migration/EvaluatorMigrationDialog.tsx+++ b/web/src/features/v4-migration/EvaluatorMigrationDialog.tsx@@ -14,7 +14,7 @@ import {useIsInAppAgentLauncherVisible,useInAppAiAgent,} from "@/src/features/in-app-agent/components/InAppAiAgentProvider";-import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";+import { usePostHogClientCapture } from "@/src/features/posthog-analytics";import { useQueryProjectOrOrganization } from "@/src/features/projects/hooks";import { useHasOrganizationAccess } from "@/src/features/rbac/utils/checkOrganizationAccess";diff --git a/web/src/features/v4-migration/V4MigrationBanner.tsx b/web/src/features/v4-migration/V4MigrationBanner.tsxindex 1b4a17d7e1..7567cb977c 100644--- a/web/src/features/v4-migration/V4MigrationBanner.tsx+++ b/web/src/features/v4-migration/V4MigrationBanner.tsx@@ -4,7 +4,7 @@ import { Zap } from "lucide-react";import { Callout } from "@/src/components/design-system/Callout/Callout";import { DismissController } from "@/src/components/DismissController";import { Button } from "@/src/components/ui/button";-import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";+import { usePostHogClientCapture } from "@/src/features/posthog-analytics";import { useAccountV4MigrationData } from "@/src/features/v4-migration/hooks/useV4MigrationData";import { getProjectMigrationReadiness } from "@/src/features/v4-migration/migrationData";import { env } from "@/src/env.mjs";diff --git a/web/src/features/v4-migration/V4MigrationContent.tsx b/web/src/features/v4-migration/V4MigrationContent.tsxindex cee6377864..60f7c6ab9e 100644--- a/web/src/features/v4-migration/V4MigrationContent.tsx+++ b/web/src/features/v4-migration/V4MigrationContent.tsx@@ -27,7 +27,7 @@ import {CollapsibleContent,CollapsibleTrigger,} from "@/src/components/ui/collapsible";-import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";+import { usePostHogClientCapture } from "@/src/features/posthog-analytics";import { showSuccessToast } from "@/src/features/notifications/showSuccessToast";import { showErrorToast } from "@/src/features/notifications/showErrorToast";import { cn } from "@/src/utils/tailwind";diff --git a/web/src/features/v4-migration/V4MigrationDelayBadge.tsx b/web/src/features/v4-migration/V4MigrationDelayBadge.tsxindex 5f7691c10e..8a7642440b 100644--- a/web/src/features/v4-migration/V4MigrationDelayBadge.tsx+++ b/web/src/features/v4-migration/V4MigrationDelayBadge.tsx@@ -6,7 +6,7 @@ import {} from "@/src/features/v4-migration/useV4UpgradeUiEnabled";import { useForceV3Experience } from "@/src/features/v4-migration/useForceV3Experience";import { PARTNER_INTEGRATION_FAQ_URL } from "@/src/features/v4-migration/partnerIntegrationDocs";-import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";+import { usePostHogClientCapture } from "@/src/features/posthog-analytics";import { useQueryProject } from "@/src/features/projects/hooks";import { useOpenV4MigrationPanel } from "@/src/features/v4-migration/hooks/useOpenV4MigrationPanel";import {diff --git a/web/src/features/v4-migration/V4MigrationNavItem.tsx b/web/src/features/v4-migration/V4MigrationNavItem.tsxindex db6898bb52..0676705820 100644--- a/web/src/features/v4-migration/V4MigrationNavItem.tsx+++ b/web/src/features/v4-migration/V4MigrationNavItem.tsx@@ -1,7 +1,7 @@import { ChevronRight } from "lucide-react";import { SidebarMenuButton, useSidebar } from "@/src/components/ui/sidebar";import { useV4UpgradeUiEnabled } from "@/src/features/v4-migration/useV4UpgradeUiEnabled";-import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";+import { usePostHogClientCapture } from "@/src/features/posthog-analytics";import { useQueryProject } from "@/src/features/projects/hooks";import { useProjectV4MigrationActions } from "@/src/features/v4-migration/hooks/useV4MigrationData";import { useOpenV4MigrationPanel } from "@/src/features/v4-migration/hooks/useOpenV4MigrationPanel";diff --git a/web/src/features/v4-migration/V4MigrationPanelProvider.tsx b/web/src/features/v4-migration/V4MigrationPanelProvider.tsxindex b8156b81fc..fd3e2e1894 100644--- a/web/src/features/v4-migration/V4MigrationPanelProvider.tsx+++ b/web/src/features/v4-migration/V4MigrationPanelProvider.tsx@@ -4,7 +4,7 @@ import {useState,type PropsWithChildren,} from "react";-import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";+import { usePostHogClientCapture } from "@/src/features/posthog-analytics";import { useV4UpgradeUiEnabled } from "@/src/features/v4-migration/useV4UpgradeUiEnabled";import type { ProjectMigrationReadiness } from "@/src/features/v4-migration/migrationData";import { useQueryProject } from "@/src/features/projects/hooks";diff --git a/web/src/features/v4-migration/V4MigrationProjectChip.tsx b/web/src/features/v4-migration/V4MigrationProjectChip.tsxindex fc34c9af25..966c306755 100644--- a/web/src/features/v4-migration/V4MigrationProjectChip.tsx+++ b/web/src/features/v4-migration/V4MigrationProjectChip.tsx@@ -1,5 +1,5 @@import { type V4MigrationTargetProject } from "@/src/features/v4-migration/V4MigrationPanelProvider";-import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";+import { usePostHogClientCapture } from "@/src/features/posthog-analytics";import {getProjectMigrationReadiness,type ProjectMigrationStatus,diff --git a/web/src/features/v4-migration/V4MigrationStatusPage.tsx b/web/src/features/v4-migration/V4MigrationStatusPage.tsxindex fb379b6029..2d3e0a3822 100644--- a/web/src/features/v4-migration/V4MigrationStatusPage.tsx+++ b/web/src/features/v4-migration/V4MigrationStatusPage.tsx@@ -21,7 +21,7 @@ import {V4MigrationDocsLink,V4_MIGRATION_DEADLINE,} from "@/src/features/v4-migration/V4MigrationContent";-import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";+import { usePostHogClientCapture } from "@/src/features/posthog-analytics";import { api } from "@/src/utils/api";import { formatCompactRelativeTime } from "@/src/utils/dates";import { V4MigrationStatusDot } from "@/src/features/v4-migration/V4MigrationBadgeContent";diff --git a/web/src/features/version-update/VersionUpdateBanner.tsx b/web/src/features/version-update/VersionUpdateBanner.tsxindex de7bcd9165..da10fc2eeb 100644--- a/web/src/features/version-update/VersionUpdateBanner.tsx+++ b/web/src/features/version-update/VersionUpdateBanner.tsx@@ -1,6 +1,6 @@import { useEffect } from "react";import { Layer } from "@/src/components/ui/layer";-import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";+import { usePostHogClientCapture } from "@/src/features/posthog-analytics";import { versionUpdateStore } from "./versionUpdateStore";import { useVersionUpdateAvailable } from "./useVersionUpdateAvailable";import { useAppSettled } from "./useAppSettled";diff --git a/web/src/features/widgets/components/DashboardWidget.tsx b/web/src/features/widgets/components/DashboardWidget.tsxindex 84962cbb73..adc0ac70e4 100644--- a/web/src/features/widgets/components/DashboardWidget.tsx+++ b/web/src/features/widgets/components/DashboardWidget.tsx@@ -65,7 +65,7 @@ import {import { type ResolvedReadPath } from "@/src/features/events/hooks/useReadPath";import { useScheduledDashboardExecuteQuery } from "@/src/hooks/useDashboardQueryScheduler";import { CopyWidgetDialog } from "@/src/features/widgets/components/CopyWidgetDialog";-import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";+import { usePostHogClientCapture } from "@/src/features/posthog-analytics";import { Badge } from "@/src/components/ui/badge";export interface WidgetPlacement {diff --git a/web/src/features/widgets/components/PresetDashboardWidget.tsx b/web/src/features/widgets/components/PresetDashboardWidget.tsxindex 769c939af0..4f0d343676 100644--- a/web/src/features/widgets/components/PresetDashboardWidget.tsx+++ b/web/src/features/widgets/components/PresetDashboardWidget.tsx@@ -19,7 +19,7 @@ import { buildPresetExport } from "@/src/features/dashboard/utils/dashboard-impoimport { copyTextToClipboard } from "@/src/utils/clipboard";import { showErrorToast } from "@/src/features/notifications/showErrorToast";import { showSuccessToast } from "@/src/features/notifications/showSuccessToast";-import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";+import { usePostHogClientCapture } from "@/src/features/posthog-analytics";import {DropdownMenu,DropdownMenuContent,diff --git a/web/src/features/widgets/components/SelectWidgetDialog.tsx b/web/src/features/widgets/components/SelectWidgetDialog.tsxindex b72ff5ed03..e2d5adeaf2 100644--- a/web/src/features/widgets/components/SelectWidgetDialog.tsx+++ b/web/src/features/widgets/components/SelectWidgetDialog.tsx@@ -1,7 +1,7 @@import React, { useEffect, useRef } from "react";import { useRouter } from "next/router";import { api } from "@/src/utils/api";-import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";+import { usePostHogClientCapture } from "@/src/features/posthog-analytics";import {Dialog,DialogContent,diff --git a/web/src/features/widgets/components/WidgetTable.tsx b/web/src/features/widgets/components/WidgetTable.tsxindex 66a66c81e1..98dc1c9e2f 100644--- a/web/src/features/widgets/components/WidgetTable.tsx+++ b/web/src/features/widgets/components/WidgetTable.tsx@@ -29,7 +29,7 @@ import {} from "@/src/components/ui/dropdown-menu";import { ConfirmDialog } from "@/src/components/ui/confirm-dialog";import { copyTextToClipboard } from "@/src/utils/clipboard";-import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";+import { usePostHogClientCapture } from "@/src/features/posthog-analytics";import { showErrorToast } from "@/src/features/notifications/showErrorToast";import { showSuccessToast } from "@/src/features/notifications/showSuccessToast";import { useRouter } from "next/router";diff --git a/web/src/features/widgets/hooks/useWidgetQueryErrorCapture.ts b/web/src/features/widgets/hooks/useWidgetQueryErrorCapture.tsindex b15b04146a..4b4530877f 100644--- a/web/src/features/widgets/hooks/useWidgetQueryErrorCapture.ts+++ b/web/src/features/widgets/hooks/useWidgetQueryErrorCapture.ts@@ -1,7 +1,7 @@import { useEffect, useRef } from "react";import { type QueryValidationResult } from "@langfuse/shared/query";import { type DashboardWidgetChartType } from "@langfuse/shared/src/db";-import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";+import { usePostHogClientCapture } from "@/src/features/posthog-analytics";type WidgetHighCardinalityErrorSurface =| "create_editor"