1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-05-08 01:15:49 +02:00

feat: application usage feature flag and cleanup (#4568)

This commit is contained in:
Jaanus Sellin 2023-08-25 13:26:44 +03:00 committed by GitHub
parent 01e1ffd0c1
commit 35fe575d0d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 7 additions and 23 deletions

View File

@ -21,7 +21,7 @@ const StyledBadgeContainer = styled('div')(({ theme }) => ({
}));
export const AdminTabsMenu: VFC = () => {
const { uiConfig, isPro, isOss } = useUiConfig();
const { isPro, isOss } = useUiConfig();
const { pathname } = useLocation();
const activeTab = pathname.split('/')[2];

View File

@ -3,7 +3,6 @@ import { useMemo, useState } from 'react';
import { useTable, useSortBy, useFlexLayout, Column } from 'react-table';
import { sortTypes } from 'utils/sortTypes';
import { TextCell } from 'component/common/Table/cells/TextCell/TextCell';
import { HighlightCell } from 'component/common/Table/cells/HighlightCell/HighlightCell';
import { IProjectRoleUsageCount } from 'interfaces/project';
import { LinkCell } from 'component/common/Table/cells/LinkCell/LinkCell';

View File

@ -3,7 +3,6 @@ import { PermissionGuard } from 'component/common/PermissionGuard/PermissionGuar
import { ServiceAccountsTable } from './ServiceAccountsTable/ServiceAccountsTable';
import useUiConfig from 'hooks/api/getters/useUiConfig/useUiConfig';
import { PremiumFeature } from 'component/common/PremiumFeature/PremiumFeature';
import { AdminTabsMenu } from '../menu/AdminTabsMenu';
import { ConditionallyRender } from 'component/common/ConditionallyRender/ConditionallyRender';
export const ServiceAccounts = () => {

View File

@ -1,24 +1,4 @@
import { useMemo } from 'react';
import { Avatar, CircularProgress, Icon, Link } from '@mui/material';
import { Warning } from '@mui/icons-material';
import { styles as themeStyles } from 'component/common';
import { PageContent } from 'component/common/PageContent/PageContent';
import { PageHeader } from 'component/common/PageHeader/PageHeader';
import useApplications from 'hooks/api/getters/useApplications/useApplications';
import { ConditionallyRender } from 'component/common/ConditionallyRender/ConditionallyRender';
import { Search } from 'component/common/Search/Search';
import { SearchHighlightProvider } from 'component/common/Table/SearchHighlightContext/SearchHighlightContext';
import {
SortableTableHeader,
Table,
TableBody,
TableCell,
TableRow,
} from '../../common/Table';
import { useGlobalFilter, useSortBy, useTable } from 'react-table';
import { sortTypes } from 'utils/sortTypes';
import { IconCell } from 'component/common/Table/cells/IconCell/IconCell';
import { LinkCell } from 'component/common/Table/cells/LinkCell/LinkCell';
import useUiConfig from '../../../hooks/api/getters/useUiConfig/useUiConfig';
import { ApplicationList } from './ApplicationList';
import { OldApplicationList } from './OldApplicationList';

View File

@ -93,6 +93,7 @@ exports[`should create default config 1`] = `
},
"migrationLock": true,
"multipleRoles": false,
"newApplicationList": false,
"personalAccessTokensKillSwitch": false,
"proPlanAutoCharge": false,
"responseTimeWithAppNameKillSwitch": false,
@ -129,6 +130,7 @@ exports[`should create default config 1`] = `
},
"migrationLock": true,
"multipleRoles": false,
"newApplicationList": false,
"personalAccessTokensKillSwitch": false,
"proPlanAutoCharge": false,
"responseTimeWithAppNameKillSwitch": false,

View File

@ -133,6 +133,10 @@ const flags: IFlags = {
process.env.UNLEASH_EXPERIMENTAL_MULTIPLE_ROLES,
false,
),
newApplicationList: parseEnvVarBoolean(
process.env.UNLEASH_EXPERIMENTAL_NEW_APPLICATION_LIST,
false,
),
};
export const defaultExperimentalOptions: IExperimentalOptions = {