Skip to content

feat(onboarding): Register onboarding-scm feature flag#110570

Merged
jaydgoss merged 1 commit intomasterfrom
jaygoss/vdy-18-add-feature-flag-and-scaffold-scm-onboarding-steps-with
Mar 16, 2026
Merged

feat(onboarding): Register onboarding-scm feature flag#110570
jaydgoss merged 1 commit intomasterfrom
jaygoss/vdy-18-add-feature-flag-and-scaffold-scm-onboarding-steps-with

Conversation

@jaydgoss
Copy link
Member

@jaydgoss jaydgoss commented Mar 12, 2026

Summary

  • Register organizations:onboarding-scm feature flag in temporary.py with FLAGPOLE strategy and api_expose=True
  • Gates the upcoming SCM-first onboarding flow (provider connection, platform detection, feature selection steps)

Companion PR

Test plan

  • Flag is registered and accessible via features.has("organizations:onboarding-scm", org, actor=user)
  • Frontend can check organization.features.includes('onboarding-scm')

Refs VDY-18

Add the organizations:onboarding-scm feature flag to gate the new
SCM-first onboarding flow. Uses FLAGPOLE strategy with api_expose=True
so the frontend can check the flag.

Refs VDY-18
Co-Authored-By: Claude Opus 4 <noreply@anthropic.com>
@linear-code
Copy link

linear-code bot commented Mar 12, 2026

@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Mar 12, 2026
@jaydgoss jaydgoss requested a review from a team March 12, 2026 19:57
@jaydgoss jaydgoss merged commit d719431 into master Mar 16, 2026
81 checks passed
@jaydgoss jaydgoss deleted the jaygoss/vdy-18-add-feature-flag-and-scaffold-scm-onboarding-steps-with branch March 16, 2026 16:15
jaydgoss added a commit that referenced this pull request Mar 17, 2026
…110747)

Scaffold the frontend onboarding step array for the SCM-first onboarding
flow behind the `organizations:onboarding-scm` feature flag. When
enabled, the onboarding shows 5 steps instead of the legacy 3, with
placeholder components for each new step that just render a heading and
Continue button.

The feature flag was registered in #110570. This PR adds the frontend
wiring:

- Three new `OnboardingStepId` enum values (`SCM_CONNECT`,
`SCM_PLATFORM_FEATURES`, `SCM_PROJECT_DETAILS`)
- Conditional step array selection based on the feature flag
- Placeholder step components (`ScmConnect`, `ScmPlatformFeatures`,
`ScmProjectDetails`)
- Extended `OnboardingContext` with `selectedIntegration`,
`selectedRepositories`, and `selectedFeatures` state (session storage
backed)
- Updated `useBackActions` to accept `onboardingSteps` as a parameter
instead of importing the now-conditional module-level constant
- Fixed `goNextStep` to allow navigation to SETUP_DOCS when platform is
set via context (needed for the SCM flow where platform selection
happens in an earlier step)
- Replaced fragile index-based step lookups (`onboardingSteps[2]`) with
`OnboardingStepId` enum references

With the flag off, behavior is unchanged (existing tests all pass).

Refs VDY-18

---------

Co-authored-by: Claude Opus 4.6 <noreply@example.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants