Skip to content

[feat] Post-signup survey v2 (Signup 3 - Agents) - #5085

Merged
mmabrouk merged 1 commit into
big-agentsfrom
feat/onboarding-survey-v2
Jul 6, 2026
Merged

mmabrouk merged 1 commit into
big-agentsfrom
feat/onboarding-survey-v2

Conversation

@mmabrouk

@mmabrouk mmabrouk commented Jul 6, 2026

Copy link
Copy Markdown
Member

Context

The EE post-signup questionnaire was built for the old "Signup 2" PostHog survey, whose questions frame the pre-pivot product (prompt management, no-code building, LLM evaluation). It mapped answers to PostHog properties by question position and exact option strings, and that had already drifted: two interest options no longer matched their strings, so those flags were never set. When PostHog was blocked or slow, the user hit a "we couldn't load the questionnaire, click Continue" fallback page that dropped the answers anyway.

Changes

The form now targets a new survey, "Signup 3 - Agents", whose questions fit the post-pivot product: company size, role, agent-building experience, what they want to do with Agenta, and how they heard about us.

Questions resolve by PostHog question id with a keyword fallback, instead of by position. Reordering or rewording a question in PostHog no longer silently mis-maps answers. An unrecognized question just renders generically.

Person properties are now a v2 set: company_size_v2, user_role_v2, agent_experience_v2, five intent_* booleans, referral_source_v2, and is_icp_v2 (same ICP shape as before, computed on the new option strings). The old v1 interest mapping is removed.

The fallback page is gone. Any not-ready outcome (no PostHog key, survey missing, SDK blocked, fetch error, or the readiness watchdog firing) now silently redirects the user into onboarding instead of showing a dead-end page. The watchdog dropped from 10s to 3s, so a new user never waits long on a questionnaire we can skip.

Scope / risk

EE only. Touches the PostSignupForm/ directory only. The survey content lives in PostHog, so question wording can change there without a deploy (the id-based mapping tolerates it). "Signup 2" is untouched in PostHog, so already-released code keeps working until this merges.

Tests / notes

  • pnpm lint-fix green; types:check shows no new errors.
  • Local dev has no PostHog key, so the survey path silently skips locally. To exercise the real questionnaire, set NEXT_PUBLIC_POSTHOG_API_KEY and recreate the web container.

How to QA

Prerequisites: EE dev stack with NEXT_PUBLIC_POSTHOG_API_KEY set. The "Signup 3 - Agents" survey is already live in PostHog.

Steps:

  1. Sign up as a brand-new EE user.
  2. Land on /post-signup.

Expected result: The new questions render (company size as buttons, role, agent experience, what you want to do, how you heard). Submitting sends a survey sent event carrying the v2 person properties and lands you on /apps.

Edge cases: Block PostHog with an adblocker, or use an env with no key. You should be redirected straight into onboarding with no fallback page and no more than ~3s wait.

Automated tests: None for this flow (the survey is server-driven). Verified manually plus lint and types.

https://claude.ai/code/session_01AuS2c7XQhyECUGg3afeZQ9

Repoint the EE post-signup questionnaire from the retired 'Signup 2'
survey to 'Signup 3 - Agents'. Resolve questions by PostHog question id
with a keyword fallback instead of by position, so reordering or
rewording a question in PostHog no longer silently mis-maps answers.

Write v2 person properties (company_size_v2, user_role_v2,
agent_experience_v2, intent_* booleans, referral_source_v2, is_icp_v2)
and drop the stale v1 interest mapping.

Drop the transient fallback page: any not-ready outcome (PostHog blocked,
survey missing, fetch error, watchdog) now silently redirects into
onboarding. Shorten the readiness watchdog from 10s to 3s.

Claude-Session: https://claude.ai/code/session_01AuS2c7XQhyECUGg3afeZQ9
@dosubot dosubot Bot added the size:L This PR changes 100-499 lines, ignoring generated files. label Jul 6, 2026
@vercel

vercel Bot commented Jul 6, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
agenta-documentation Ready Ready Preview, Comment Jul 6, 2026 4:15pm

Request Review

@dosubot dosubot Bot added the enhancement New feature or request label Jul 6, 2026
@coderabbitai

coderabbitai Bot commented Jul 6, 2026 •

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 6615884c-27d4-4856-bd4d-3a1df8dae99c

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • ✅ Review completed - (🔄 Check again to review again)
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/onboarding-survey-v2

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

This branch was successfully deployed

1 active deployment
Preview — 0d0abd59 Deployed Jul 6, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request size:L This PR changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant