feat(onboarding): auto-enable PostHog internal signal sources#2105
Draft
feat(onboarding): auto-enable PostHog internal signal sources#2105
Conversation
Make Error Tracking, Support, and Session Replay opt-out during onboarding so a brand-new project's inbox starts populated without an extra click. Existing configs (enabled or disabled) are left alone, so users who have explicitly toggled a source keep their choice. Generated-By: PostHog Code Task-Id: 98a038aa-87c5-41a3-b6ab-dac91119107f
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.
Summary
Make the PostHog data signal sources (Error Tracking, Support, Session Replay) opt-out during onboarding instead of opt-in. New projects land on the Signals step with these toggles already on, so the inbox starts populated without the user having to flip three switches before the next step.
How it works
autoEnableInternalSourcesmethod onuseSignalSourceManager— for each PostHog-internal source that has no existingSignalSourceConfig, it calls the existinghandleToggle(source, true)path, which creates the config server-side withenabled: trueand uses the same optimistic-update path as a manual toggle.SignalsStepfires it once viauseEffectafter configs finish loading (guarded by a ref so navigating back/forward doesn't re-trigger).Test plan
Created with PostHog Code