feat(posthog): Add posthog log for signup failed#3998
feat(posthog): Add posthog log for signup failed#3998TheodoreSpeaks merged 3 commits intostagingfrom
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
|
@BugBot review |
PR SummaryLow Risk Overview Updates the signup form to emit Reviewed by Cursor Bugbot for commit 73f57d1. Bugbot is set up for automated code reviews on this repo. Configure here. |
There was a problem hiding this comment.
✅ Bugbot reviewed your changes and found no new issues!
Comment @cursor review or bugbot run to trigger another review on this PR
Reviewed by Cursor Bugbot for commit d7fff9f. Configure here.
Greptile SummaryThis PR adds PostHog
Confidence Score: 5/5Safe to merge; the only issue is a minor semantic inconsistency in analytics property naming All remaining findings are P2 style suggestions. The instrumentation is correct, all failure paths are covered, and no runtime behavior is affected. apps/sim/app/(auth)/signup/signup-form.tsx — line 364-367 for the error_code naming inconsistency Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[onSubmit] --> B{Client-side validation}
B -- fails --> C[setIsLoading false, return]
B -- passes --> D{Turnstile captcha?}
D -- yes --> E[widget.execute]
E -- throws --> F[captureEvent signup_failed\nreason: captcha_client_failure]
F --> G[setFormError, return]
E -- resolves --> H[client.signUp.email]
D -- no --> H
H -- onError --> I{map error code}
I --> J[reason = user_already_exists / signup_disabled /\ninvalid_email / password_too_short /\npassword_too_long / network_error /\nrate_limited / unknown]
J --> K[captureEvent signup_failed\nreason + error_code]
H -- throws --> L[captureEvent signup_failed\nreason: unexpected_error]
L --> M[setIsLoading false]
H -- success --> N[refetchSession → router.push verify]
Reviews (1): Last reviewed commit: "feat(posthog): Add posthog log for signu..." | Re-trigger Greptile |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 0ee66f5. Configure here.

Summary
Added posthog events for user signup failures. That way its easier to filter session recordings by user signup failures to see if we're rejecting valid users.
Type of Change
Testing
Checklist
Screenshots/Videos