Skip to content

fix(onboarding): complete onboarding when last step continue is pressed#1843

Merged
joshsny merged 1 commit intoposthog-code/gate-inbox-behind-feature-flagfrom
joshsny/fix-onboarding-last-step-completion-a5a9
Apr 22, 2026
Merged

fix(onboarding): complete onboarding when last step continue is pressed#1843
joshsny merged 1 commit intoposthog-code/gate-inbox-behind-feature-flagfrom
joshsny/fix-onboarding-last-step-completion-a5a9

Conversation

@joshsny
Copy link
Copy Markdown
Contributor

@joshsny joshsny commented Apr 22, 2026

Problem

When the posthog-code-inbox feature flag is off, pressing "Continue" (or "Skip for now") on the "Install required tools" step does nothing — the user is stuck and can't finish onboarding.

Changes

The "signals" step is filtered out of activeSteps when the flag is off, making "install-cli" the last step. But next() is a no-op on the last step, and completeOnboarding() was only wired to the signals step's onNext handler.

Replaced the per-step onNext wiring with a unified handleNext that calls completeOnboarding when on the last active step and next() otherwise. This works regardless of which step ends up being last (whether signals is filtered out or not).

How did you test this?

  • Verified typecheck passes (no onboarding-related errors)
  • Verified biome lint passes with no fixes needed

Slack Thread

Open in Web Open in Cursor 

When posthog-code-inbox flag is off, the signals step is filtered out,
making install-cli the last step. The next() function is a no-op on the
last step, so pressing Continue did nothing.

Replace per-step onNext wiring with a unified handleNext that calls
completeOnboarding when on the last active step, regardless of which
step that is.
@joshsny joshsny marked this pull request as ready for review April 22, 2026 15:35
@joshsny joshsny merged commit 8860d13 into posthog-code/gate-inbox-behind-feature-flag Apr 22, 2026
10 checks passed
@joshsny joshsny deleted the joshsny/fix-onboarding-last-step-completion-a5a9 branch April 22, 2026 15:35
joshsny added a commit that referenced this pull request Apr 22, 2026
…ed (#1843)

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
@greptile-apps
Copy link
Copy Markdown

greptile-apps Bot commented Apr 22, 2026

Reviews (1): Last reviewed commit: "fix(onboarding): complete onboarding whe..." | Re-trigger Greptile

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants