mirror of
				https://github.com/Unleash/unleash.git
				synced 2025-10-27 11:02:16 +01:00 
			
		
		
		
	[Gitar] Cleaning up stale flag: commandBarUI with value true (#7894)
[](https://gitar.co) --- This automated PR was generated by [Gitar](https://gitar.co). View [docs](https://gitar.co/docs). --------- Co-authored-by: Gitar <noreply@gitar.co> Co-authored-by: sjaanus <sellinjaanus@gmail.com>
This commit is contained in:
		
							parent
							
								
									c2e6f74bfa
								
							
						
					
					
						commit
						413df42555
					
				@ -80,27 +80,8 @@ const StyledUnleashLogo = styled(UnleashLogo)({ width: '150px' });
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
const StyledCelebatoryLogo = styled(CelebatoryUnleashLogo)({ width: '150px' });
 | 
					const StyledCelebatoryLogo = styled(CelebatoryUnleashLogo)({ width: '150px' });
 | 
				
			||||||
 | 
					
 | 
				
			||||||
const StyledLinks = styled('div')(({ theme }) => ({
 | 
					 | 
				
			||||||
    display: 'flex',
 | 
					 | 
				
			||||||
    justifyContent: 'center',
 | 
					 | 
				
			||||||
    marginLeft: theme.spacing(3),
 | 
					 | 
				
			||||||
    '& a': {
 | 
					 | 
				
			||||||
        textDecoration: 'none',
 | 
					 | 
				
			||||||
        color: 'inherit',
 | 
					 | 
				
			||||||
        marginRight: theme.spacing(3),
 | 
					 | 
				
			||||||
        display: 'flex',
 | 
					 | 
				
			||||||
        alignItems: 'center',
 | 
					 | 
				
			||||||
    },
 | 
					 | 
				
			||||||
}));
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
const StyledLink = styled(Link)(({ theme }) => focusable(theme));
 | 
					const StyledLink = styled(Link)(({ theme }) => focusable(theme));
 | 
				
			||||||
 | 
					
 | 
				
			||||||
const StyledText = styled('div')(({ theme }) => ({
 | 
					 | 
				
			||||||
    display: 'flex',
 | 
					 | 
				
			||||||
    alignItems: 'center',
 | 
					 | 
				
			||||||
    gap: theme.spacing(1),
 | 
					 | 
				
			||||||
}));
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
const StyledIconButton = styled(IconButton)<{
 | 
					const StyledIconButton = styled(IconButton)<{
 | 
				
			||||||
    component?: 'a' | 'button';
 | 
					    component?: 'a' | 'button';
 | 
				
			||||||
    href?: string;
 | 
					    href?: string;
 | 
				
			||||||
@ -120,7 +101,6 @@ const Header: VFC = () => {
 | 
				
			|||||||
    const theme = useTheme();
 | 
					    const theme = useTheme();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    const disableNotifications = useUiFlag('disableNotifications');
 | 
					    const disableNotifications = useUiFlag('disableNotifications');
 | 
				
			||||||
    const commandBarUI = useUiFlag('commandBarUI');
 | 
					 | 
				
			||||||
    const { uiConfig, isOss } = useUiConfig();
 | 
					    const { uiConfig, isOss } = useUiConfig();
 | 
				
			||||||
    const smallScreen = useMediaQuery(theme.breakpoints.down('lg'));
 | 
					    const smallScreen = useMediaQuery(theme.breakpoints.down('lg'));
 | 
				
			||||||
    const [openDrawer, setOpenDrawer] = useState(false);
 | 
					    const [openDrawer, setOpenDrawer] = useState(false);
 | 
				
			||||||
@ -199,7 +179,7 @@ const Header: VFC = () => {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
                <StyledNav>
 | 
					                <StyledNav>
 | 
				
			||||||
                    <StyledUserContainer>
 | 
					                    <StyledUserContainer>
 | 
				
			||||||
                        {commandBarUI && <CommandBar />}
 | 
					                        <CommandBar />
 | 
				
			||||||
                        <InviteLinkButton />
 | 
					                        <InviteLinkButton />
 | 
				
			||||||
                        <Tooltip
 | 
					                        <Tooltip
 | 
				
			||||||
                            title={
 | 
					                            title={
 | 
				
			||||||
 | 
				
			|||||||
@ -87,7 +87,6 @@ export type UiFlags = {
 | 
				
			|||||||
    manyStrategiesPagination?: boolean;
 | 
					    manyStrategiesPagination?: boolean;
 | 
				
			||||||
    enableLegacyVariants?: boolean;
 | 
					    enableLegacyVariants?: boolean;
 | 
				
			||||||
    navigationSidebar?: boolean;
 | 
					    navigationSidebar?: boolean;
 | 
				
			||||||
    commandBarUI?: boolean;
 | 
					 | 
				
			||||||
    flagCreator?: boolean;
 | 
					    flagCreator?: boolean;
 | 
				
			||||||
    resourceLimits?: boolean;
 | 
					    resourceLimits?: boolean;
 | 
				
			||||||
    insightsV2?: boolean;
 | 
					    insightsV2?: boolean;
 | 
				
			||||||
 | 
				
			|||||||
@ -81,7 +81,6 @@ exports[`should create default config 1`] = `
 | 
				
			|||||||
      "celebrateUnleash": false,
 | 
					      "celebrateUnleash": false,
 | 
				
			||||||
      "changeRequestPlayground": false,
 | 
					      "changeRequestPlayground": false,
 | 
				
			||||||
      "collectTrafficDataUsage": false,
 | 
					      "collectTrafficDataUsage": false,
 | 
				
			||||||
      "commandBarUI": false,
 | 
					 | 
				
			||||||
      "demo": false,
 | 
					      "demo": false,
 | 
				
			||||||
      "disableBulkToggle": false,
 | 
					      "disableBulkToggle": false,
 | 
				
			||||||
      "disableMetrics": false,
 | 
					      "disableMetrics": false,
 | 
				
			||||||
 | 
				
			|||||||
@ -55,7 +55,6 @@ export type IFlagKey =
 | 
				
			|||||||
    | 'manyStrategiesPagination'
 | 
					    | 'manyStrategiesPagination'
 | 
				
			||||||
    | 'enableLegacyVariants'
 | 
					    | 'enableLegacyVariants'
 | 
				
			||||||
    | 'navigationSidebar'
 | 
					    | 'navigationSidebar'
 | 
				
			||||||
    | 'commandBarUI'
 | 
					 | 
				
			||||||
    | 'anonymizeProjectOwners'
 | 
					    | 'anonymizeProjectOwners'
 | 
				
			||||||
    | 'resourceLimits'
 | 
					    | 'resourceLimits'
 | 
				
			||||||
    | 'extendedMetrics'
 | 
					    | 'extendedMetrics'
 | 
				
			||||||
@ -275,10 +274,6 @@ const flags: IFlags = {
 | 
				
			|||||||
        process.env.UNLEASH_EXPERIMENTAL_SIDEBAR_NAVIGATION,
 | 
					        process.env.UNLEASH_EXPERIMENTAL_SIDEBAR_NAVIGATION,
 | 
				
			||||||
        true,
 | 
					        true,
 | 
				
			||||||
    ),
 | 
					    ),
 | 
				
			||||||
    commandBarUI: parseEnvVarBoolean(
 | 
					 | 
				
			||||||
        process.env.UNLEASH_EXPERIMENTAL_COMMAND_BAR_UI,
 | 
					 | 
				
			||||||
        false,
 | 
					 | 
				
			||||||
    ),
 | 
					 | 
				
			||||||
    anonymizeProjectOwners: parseEnvVarBoolean(
 | 
					    anonymizeProjectOwners: parseEnvVarBoolean(
 | 
				
			||||||
        process.env.UNLEASH_EXPERIMENTAL_ANONYMIZE_PROJECT_OWNERS,
 | 
					        process.env.UNLEASH_EXPERIMENTAL_ANONYMIZE_PROJECT_OWNERS,
 | 
				
			||||||
        false,
 | 
					        false,
 | 
				
			||||||
 | 
				
			|||||||
@ -50,7 +50,6 @@ process.nextTick(async () => {
 | 
				
			|||||||
                        projectOverviewRefactorFeedback: true,
 | 
					                        projectOverviewRefactorFeedback: true,
 | 
				
			||||||
                        manyStrategiesPagination: true,
 | 
					                        manyStrategiesPagination: true,
 | 
				
			||||||
                        enableLegacyVariants: false,
 | 
					                        enableLegacyVariants: false,
 | 
				
			||||||
                        commandBarUI: true,
 | 
					 | 
				
			||||||
                        resourceLimits: true,
 | 
					                        resourceLimits: true,
 | 
				
			||||||
                        extendedMetrics: true,
 | 
					                        extendedMetrics: true,
 | 
				
			||||||
                        insightsV2: true,
 | 
					                        insightsV2: true,
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user