Chore/v2/onboarding flow cleanup (#5065)

This commit is contained in:
EthanHealy01
2025-12-02 12:40:20 +00:00
committed by GitHub
parent 341adaa07d
commit 179b569769
44 changed files with 1698 additions and 2275 deletions
@@ -0,0 +1,38 @@
/**
* Desktop Override: Onboarding Configuration
*
* This version modifies the onboarding config for the desktop app:
* - Sets isDesktopApp to true in the default runtime state
* - This causes desktop-install step to be skipped
*
* All other step definitions and logic remain the same.
*/
// Re-export everything from core
export {
ONBOARDING_STEPS,
getStepById,
getStepIndex,
} from '@core/components/onboarding/orchestrator/onboardingConfig';
export type {
OnboardingStepId,
OnboardingStepType,
OnboardingStep,
OnboardingRuntimeState,
OnboardingConditionContext,
} from '@core/components/onboarding/orchestrator/onboardingConfig';
// Import and override the default runtime state
import { DEFAULT_RUNTIME_STATE as CORE_DEFAULT_RUNTIME_STATE } from '@core/components/onboarding/orchestrator/onboardingConfig';
import type { OnboardingRuntimeState } from '@core/components/onboarding/orchestrator/onboardingConfig';
/**
* Desktop default runtime state
* Sets isDesktopApp to true so desktop-install step is skipped
*/
export const DEFAULT_RUNTIME_STATE: OnboardingRuntimeState = {
...CORE_DEFAULT_RUNTIME_STATE,
isDesktopApp: true,
};