1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-25 00:07:47 +01:00

[Gitar] Cleaning up stale flag: commandBarUI with value true (#7894)

[![Gitar](https://raw.githubusercontent.com/gitarcode/.github/main/assets/gitar-banner.svg)](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:
gitar-bot[bot] 2024-08-15 14:29:07 +03:00 committed by GitHub
parent c2e6f74bfa
commit 413df42555
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 1 additions and 29 deletions

View File

@ -80,27 +80,8 @@ const StyledUnleashLogo = styled(UnleashLogo)({ 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 StyledText = styled('div')(({ theme }) => ({
display: 'flex',
alignItems: 'center',
gap: theme.spacing(1),
}));
const StyledIconButton = styled(IconButton)<{
component?: 'a' | 'button';
href?: string;
@ -120,7 +101,6 @@ const Header: VFC = () => {
const theme = useTheme();
const disableNotifications = useUiFlag('disableNotifications');
const commandBarUI = useUiFlag('commandBarUI');
const { uiConfig, isOss } = useUiConfig();
const smallScreen = useMediaQuery(theme.breakpoints.down('lg'));
const [openDrawer, setOpenDrawer] = useState(false);
@ -199,7 +179,7 @@ const Header: VFC = () => {
<StyledNav>
<StyledUserContainer>
{commandBarUI && <CommandBar />}
<CommandBar />
<InviteLinkButton />
<Tooltip
title={

View File

@ -87,7 +87,6 @@ export type UiFlags = {
manyStrategiesPagination?: boolean;
enableLegacyVariants?: boolean;
navigationSidebar?: boolean;
commandBarUI?: boolean;
flagCreator?: boolean;
resourceLimits?: boolean;
insightsV2?: boolean;

View File

@ -81,7 +81,6 @@ exports[`should create default config 1`] = `
"celebrateUnleash": false,
"changeRequestPlayground": false,
"collectTrafficDataUsage": false,
"commandBarUI": false,
"demo": false,
"disableBulkToggle": false,
"disableMetrics": false,

View File

@ -55,7 +55,6 @@ export type IFlagKey =
| 'manyStrategiesPagination'
| 'enableLegacyVariants'
| 'navigationSidebar'
| 'commandBarUI'
| 'anonymizeProjectOwners'
| 'resourceLimits'
| 'extendedMetrics'
@ -275,10 +274,6 @@ const flags: IFlags = {
process.env.UNLEASH_EXPERIMENTAL_SIDEBAR_NAVIGATION,
true,
),
commandBarUI: parseEnvVarBoolean(
process.env.UNLEASH_EXPERIMENTAL_COMMAND_BAR_UI,
false,
),
anonymizeProjectOwners: parseEnvVarBoolean(
process.env.UNLEASH_EXPERIMENTAL_ANONYMIZE_PROJECT_OWNERS,
false,

View File

@ -50,7 +50,6 @@ process.nextTick(async () => {
projectOverviewRefactorFeedback: true,
manyStrategiesPagination: true,
enableLegacyVariants: false,
commandBarUI: true,
resourceLimits: true,
extendedMetrics: true,
insightsV2: true,