feat: open PostHog dashboard after signup#398
Merged
Conversation
🧙 Wizard CIRun the Wizard CI and test your changes against wizard-workbench example apps by replying with a GitHub comment using one of the following commands: Test all apps:
Test all apps in a directory:
Test an individual app:
Show more apps
Results will be posted here when complete. |
gewenyu99
reviewed
Apr 20, 2026
gewenyu99
left a comment
Collaborator
There was a problem hiding this comment.
We did some refactoring, so 1 comment below you can throw to an agent :D
After wizard signup provisioning completes, request a one-time deep link from the provisioning API and auto-open it in the browser. The user lands on their project dashboard, already logged in. Falls back to the static /products URL if the deep link request fails. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Top-level import instead of dynamic import - Add NODE_ENV !== 'test' guard to prevent browser opens in tests - Use .catch() pattern matching oauth.ts Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…kflow Keep the agent runner generic by moving the deep-link request and browser-open behavior out of the unified runner and into the posthog-integration workflow's postRun and buildOutroData hooks. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
442ce3d to
1abf377
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
After the wizard creates a new PostHog account via provisioning, the user has no way to get to their dashboard without manually navigating to posthog.com and resetting their password. The outro screen shows a static URL but doesn't open it.
Changes
requestDeepLink()toprovisioning.ts- callsPOST /api/agentic/provisioning/deep_linksto get a one-time login URL/products?source=wizardURL if the deep link request failsThe deep link infrastructure already exists on the PostHog server side (used by Stripe). The token is one-time use, expires in 10 minutes.
How did you test this code?
Publish to changelog?
No
🤖 LLM context
Co-authored with Claude Code.