Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

revert: ask for github star during onboarding (#5127)

Marc Klingene14f8587afb6
diff --git a/web/src/features/posthog-analytics/usePostHogClientCapture.ts b/web/src/features/posthog-analytics/usePostHogClientCapture.ts
index 167cfd2598..ab95c8eebe 100644
--- a/web/src/features/posthog-analytics/usePostHogClientCapture.ts
+++ b/web/src/features/posthog-analytics/usePostHogClientCapture.ts
@@ -111,11 +111,7 @@ const events = {
"modal_open",
"create_new_button_click",
],
- onboarding: [
- "code_example_tab_switch",
- "tracing_check_active",
- "click_github_star_cta",
- ],
+ onboarding: ["code_example_tab_switch", "tracing_check_active"],
user_settings: ["theme_changed"],
project_settings: [
"project_delete",
diff --git a/web/src/pages/onboarding.tsx b/web/src/pages/onboarding.tsx
index 9aa0ab62bf..ca83adf705 100644
--- a/web/src/pages/onboarding.tsx
+++ b/web/src/pages/onboarding.tsx
@@ -17,8 +17,6 @@ import { usePostHog } from "posthog-js/react";
import { useRouter } from "next/router";
import { LangfuseIcon } from "@/src/components/LangfuseLogo";
import { Textarea } from "@/src/components/ui/textarea";
-import Image from "next/image";
-import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";
const referralSourceSchema = z.object({
referralSource: z.string().optional(),
@@ -26,7 +24,6 @@ const referralSourceSchema = z.object({
export default function ReferralSource() {
const posthog = usePostHog();
- const capture = usePostHogClientCapture();
const router = useRouter();
const form = useForm<z.infer<typeof referralSourceSchema>>({
resolver: zodResolver(referralSourceSchema),
@@ -54,32 +51,7 @@ export default function ReferralSource() {
Welcome to Langfuse
</h2>
</div>
- <div className="mt-4 flex w-full flex-col items-start gap-3 bg-background px-6 py-8 shadow sm:mx-auto sm:max-w-[480px] sm:rounded-lg sm:px-12">
- <div>
- <p className="text-sm font-medium">Star Langfuse on GitHub</p>
- <div className="text-sm text-muted-foreground">
- See the latest releases and help grow the community.
- </div>
- </div>
- <a
- href="https://github.com/langfuse/langfuse"
- target="_blank"
- rel="noopener noreferrer"
- className="flex-shrink-0"
- onClick={() => {
- capture("onboarding:click_github_star_cta");
- }}
- >
- <Image
- alt="Langfuse Github stars"
- src="https://img.shields.io/github/stars/langfuse/langfuse?label=langfuse&amp;style=social"
- width={112}
- height={20}
- unoptimized
- />
- </a>
- </div>
- <div className="mt-4 bg-background px-6 py-8 shadow sm:mx-auto sm:w-full sm:max-w-[480px] sm:rounded-lg sm:px-12">
+ <div className="mt-14 bg-background px-6 py-10 shadow sm:mx-auto sm:w-full sm:max-w-[480px] sm:rounded-lg sm:px-12">
<Form {...form}>
<form
className="space-y-6"