mirror of
				https://github.com/Unleash/unleash.git
				synced 2025-10-27 11:02:16 +01:00 
			
		
		
		
	[Gitar] Cleaning up stale flag: onboardingUI with value true (#8832)
[](https://gitar.ai) This automated PR permanently enables the `onboardingUI` feature flag. --- This automated PR was generated by [Gitar](https://gitar.ai). View [docs](https://gitar.ai/docs). --------- Co-authored-by: Gitar <noreply@gitar.ai>
This commit is contained in:
		
							parent
							
								
									6844984610
								
							
						
					
					
						commit
						9b4e646a98
					
				@ -27,7 +27,6 @@ import { useStickinessOptions } from 'hooks/useStickinessOptions';
 | 
			
		||||
import { ChangeRequestTableConfigButton } from './ConfigButtons/ChangeRequestTableConfigButton';
 | 
			
		||||
import { StyledDefinitionList } from './CreateProjectDialog.styles';
 | 
			
		||||
import { ProjectIcon } from 'component/common/ProjectIcon/ProjectIcon';
 | 
			
		||||
import { useUiFlag } from '../../../../../hooks/useUiFlag';
 | 
			
		||||
 | 
			
		||||
interface ICreateProjectDialogProps {
 | 
			
		||||
    open: boolean;
 | 
			
		||||
@ -119,7 +118,6 @@ export const CreateProjectDialog = ({
 | 
			
		||||
    const { setToastData, setToastApiError } = useToast();
 | 
			
		||||
    const navigate = useNavigate();
 | 
			
		||||
    const { trackEvent } = usePlausibleTracker();
 | 
			
		||||
    const onboardingUIEnabled = useUiFlag('onboardingUI');
 | 
			
		||||
    const {
 | 
			
		||||
        projectName,
 | 
			
		||||
        projectDesc,
 | 
			
		||||
@ -192,11 +190,9 @@ export const CreateProjectDialog = ({
 | 
			
		||||
                trackEvent('project-mode', {
 | 
			
		||||
                    props: { mode: projectMode, action: 'added' },
 | 
			
		||||
                });
 | 
			
		||||
                if (onboardingUIEnabled) {
 | 
			
		||||
                    trackEvent('onboarding', {
 | 
			
		||||
                        props: { eventType: 'onboarding-started' },
 | 
			
		||||
                    });
 | 
			
		||||
                }
 | 
			
		||||
                trackEvent('onboarding', {
 | 
			
		||||
                    props: { eventType: 'onboarding-started' },
 | 
			
		||||
                });
 | 
			
		||||
            } catch (error: unknown) {
 | 
			
		||||
                setToastApiError(formatUnknownError(error));
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
@ -28,7 +28,6 @@ const setupApi = () => {
 | 
			
		||||
    testServerRoute(server, '/api/admin/ui-config', {
 | 
			
		||||
        flags: {
 | 
			
		||||
            flagCreator: true,
 | 
			
		||||
            onboardingUI: true,
 | 
			
		||||
        },
 | 
			
		||||
    });
 | 
			
		||||
    testServerRoute(server, '/api/admin/tags', {
 | 
			
		||||
 | 
			
		||||
@ -89,7 +89,6 @@ export const ProjectFeatureToggles = ({
 | 
			
		||||
    environments,
 | 
			
		||||
}: IPaginatedProjectFeatureTogglesProps) => {
 | 
			
		||||
    const { trackEvent } = usePlausibleTracker();
 | 
			
		||||
    const onboardingUIEnabled = useUiFlag('onboardingUI');
 | 
			
		||||
    const projectId = useRequiredPathParam('projectId');
 | 
			
		||||
    const { project } = useProjectOverview(projectId);
 | 
			
		||||
    const [connectSdkOpen, setConnectSdkOpen] = useState(false);
 | 
			
		||||
@ -152,12 +151,9 @@ export const ProjectFeatureToggles = ({
 | 
			
		||||
    >(`onboarding-state:v1-${projectId}`, 'hide-setup');
 | 
			
		||||
 | 
			
		||||
    const notOnboarding =
 | 
			
		||||
        !onboardingUIEnabled ||
 | 
			
		||||
        (onboardingUIEnabled &&
 | 
			
		||||
            project.onboardingStatus.status === 'onboarded') ||
 | 
			
		||||
        project.onboardingStatus.status === 'onboarded' ||
 | 
			
		||||
        onboardingFlow === 'closed';
 | 
			
		||||
    const isOnboarding =
 | 
			
		||||
        onboardingUIEnabled &&
 | 
			
		||||
        project.onboardingStatus.status !== 'onboarded' &&
 | 
			
		||||
        onboardingFlow === 'visible';
 | 
			
		||||
    const noFeaturesExistInProject = project.featureTypeCounts?.length === 0;
 | 
			
		||||
 | 
			
		||||
@ -86,7 +86,6 @@ export type UiFlags = {
 | 
			
		||||
    manyStrategiesPagination?: boolean;
 | 
			
		||||
    enableLegacyVariants?: boolean;
 | 
			
		||||
    flagCreator?: boolean;
 | 
			
		||||
    onboardingUI?: boolean;
 | 
			
		||||
    purchaseAdditionalEnvironments?: boolean;
 | 
			
		||||
    unleashAI?: boolean;
 | 
			
		||||
    releasePlans?: boolean;
 | 
			
		||||
 | 
			
		||||
@ -47,7 +47,6 @@ export type IFlagKey =
 | 
			
		||||
    | 'enableLegacyVariants'
 | 
			
		||||
    | 'extendedMetrics'
 | 
			
		||||
    | 'removeUnsafeInlineStyleSrc'
 | 
			
		||||
    | 'onboardingUI'
 | 
			
		||||
    | 'projectRoleAssignment'
 | 
			
		||||
    | 'purchaseAdditionalEnvironments'
 | 
			
		||||
    | 'originMiddlewareRequestLogging'
 | 
			
		||||
@ -237,10 +236,6 @@ const flags: IFlags = {
 | 
			
		||||
        process.env.UNLEASH_EXPERIMENTAL_REMOVE_UNSAFE_INLINE_STYLE_SRC,
 | 
			
		||||
        false,
 | 
			
		||||
    ),
 | 
			
		||||
    onboardingUI: parseEnvVarBoolean(
 | 
			
		||||
        process.env.UNLEASH_EXPERIMENTAL_ONBOARDING_UI,
 | 
			
		||||
        false,
 | 
			
		||||
    ),
 | 
			
		||||
    projectRoleAssignment: parseEnvVarBoolean(
 | 
			
		||||
        process.env.UNLEASH_EXPERIMENTAL_PROJECT_ROLE_ASSIGNMENT,
 | 
			
		||||
        false,
 | 
			
		||||
 | 
			
		||||
@ -48,7 +48,6 @@ process.nextTick(async () => {
 | 
			
		||||
                        manyStrategiesPagination: true,
 | 
			
		||||
                        enableLegacyVariants: false,
 | 
			
		||||
                        extendedMetrics: true,
 | 
			
		||||
                        onboardingUI: true,
 | 
			
		||||
                        purchaseAdditionalEnvironments: true,
 | 
			
		||||
                        originMiddlewareRequestLogging: true,
 | 
			
		||||
                        unleashAI: true,
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user