Compare commits

...

3 Commits

Author SHA1 Message Date
Harsh Bhat b7c00db405 chore: AB experiment for smoother onboarding 2026-05-07 16:45:47 +05:30
Harsh Bhat 4c151aa3e0 chore: AB experiment for smoother onboarding 2026-05-07 16:41:36 +05:30
Harsh Bhat 9b7e772ebe chore: AB experiment for smoother onboarding 2026-05-07 15:08:24 +05:30
@@ -2,6 +2,7 @@ import { HeartIcon, ListTodoIcon, XIcon } from "lucide-react";
import Link from "next/link";
import { redirect } from "next/navigation";
import { OnboardingOptionsContainer } from "@/app/(app)/(onboarding)/organizations/components/OnboardingOptionsContainer";
import { getPostHogFeatureFlag } from "@/lib/posthog/get-feature-flag";
import { getUserProjects } from "@/lib/project/service";
import { getTranslate } from "@/lingodotdev/server";
import { getOrganizationAuth } from "@/modules/organization/lib/utils";
@@ -23,6 +24,13 @@ const Page = async (props: ModePageProps) => {
return redirect(`/auth/login`);
}
const experimentVariant =
(await getPostHogFeatureFlag(session.user.id, "onboarding-mode-experiment")) || "control";
if (experimentVariant === "remove-cx-and-surveys-mode") {
return redirect(`/organizations/${params.organizationId}/workspaces/new/channel`);
}
const t = await getTranslate();
const channelOptions = [
{