Skip to content

feat(onboarding): Gate SCM_PROJECT_DETAILS step with feature flag#113069

Closed
jaydgoss wants to merge 3 commits intomasterfrom
jaygoss/vdy-82-experiment-gate-scm_project_details-step-within-scm
Closed

feat(onboarding): Gate SCM_PROJECT_DETAILS step with feature flag#113069
jaydgoss wants to merge 3 commits intomasterfrom
jaygoss/vdy-82-experiment-gate-scm_project_details-step-within-scm

Conversation

@jaydgoss
Copy link
Copy Markdown
Member

Gate the SCM_PROJECT_DETAILS step behind the onboarding-scm-project-details feature flag to experiment with a shorter SCM onboarding flow.

When the flag is present, the flow is unchanged:
SCM_CONNECT -> SCM_PLATFORM_FEATURES -> SCM_PROJECT_DETAILS -> SETUP_DOCS

When the flag is absent, the project details step is skipped:
SCM_CONNECT -> SCM_PLATFORM_FEATURES -> SETUP_DOCS

In the skipped case, clicking Continue on the platform features step auto-creates the project with defaults (platform key as name, first admin team, default alert rules), sets createdProjectSlug in context so SETUP_DOCS can find it, and passes selected features as query products. The Continue button shows a loading state during creation and surfaces an error toast if it fails.

The flag is not yet registered in temporary.py -- this is the client-side wiring only. What is lost when the step is skipped: custom project name, team selection, alert frequency configuration (all fall back to defaults matching the legacy onboarding flow).

Refs VDY-82

When `onboarding-scm-project-details` flag is absent, skip the project
details step and auto-create the project with defaults (platform key as
name, first admin team, default alert rules) during the platform
features Continue action.

Refs VDY-82
@linear-code
Copy link
Copy Markdown

linear-code bot commented Apr 15, 2026

@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Apr 15, 2026
The back action checked for prevStep.id === 'scm-project-details' to
decide whether to preserve onboarding state. When that step is skipped,
the previous step is scm-platform-features, so the check failed and
the entire session was wiped. Broaden the check to any SCM step.

Refs VDY-82
@jaydgoss jaydgoss force-pushed the jaygoss/vdy-82-experiment-gate-scm_project_details-step-within-scm branch from 5b65310 to 1e517d0 Compare April 15, 2026 18:09
When a user goes back from setup-docs after the project has already
received its first event, the project is not deleted. Without this
guard, clicking Continue/Create again would attempt to create a
duplicate. Check the projects store first and reuse the existing
project, mirroring the useConfigureSdk logic.

Also use useExperiment for the SCM back-action check to stay
consistent with how onboarding.tsx reads the experiment flag.

Refs VDY-82
@jaydgoss
Copy link
Copy Markdown
Member Author

Splitting into a stacked PR pair — gap fixes in PR 1, VDY-82 feature flag gating in PR 2.

@jaydgoss jaydgoss closed this Apr 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant