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:
parent
01e1ffd0c1
commit
35fe575d0d
@ -21,7 +21,7 @@ const StyledBadgeContainer = styled('div')(({ theme }) => ({
|
|||||||
}));
|
}));
|
||||||
|
|
||||||
export const AdminTabsMenu: VFC = () => {
|
export const AdminTabsMenu: VFC = () => {
|
||||||
const { uiConfig, isPro, isOss } = useUiConfig();
|
const { isPro, isOss } = useUiConfig();
|
||||||
const { pathname } = useLocation();
|
const { pathname } = useLocation();
|
||||||
|
|
||||||
const activeTab = pathname.split('/')[2];
|
const activeTab = pathname.split('/')[2];
|
||||||
|
@ -3,7 +3,6 @@ import { useMemo, useState } from 'react';
|
|||||||
import { useTable, useSortBy, useFlexLayout, Column } from 'react-table';
|
import { useTable, useSortBy, useFlexLayout, Column } from 'react-table';
|
||||||
import { sortTypes } from 'utils/sortTypes';
|
import { sortTypes } from 'utils/sortTypes';
|
||||||
import { TextCell } from 'component/common/Table/cells/TextCell/TextCell';
|
import { TextCell } from 'component/common/Table/cells/TextCell/TextCell';
|
||||||
import { HighlightCell } from 'component/common/Table/cells/HighlightCell/HighlightCell';
|
|
||||||
import { IProjectRoleUsageCount } from 'interfaces/project';
|
import { IProjectRoleUsageCount } from 'interfaces/project';
|
||||||
import { LinkCell } from 'component/common/Table/cells/LinkCell/LinkCell';
|
import { LinkCell } from 'component/common/Table/cells/LinkCell/LinkCell';
|
||||||
|
|
||||||
|
@ -3,7 +3,6 @@ import { PermissionGuard } from 'component/common/PermissionGuard/PermissionGuar
|
|||||||
import { ServiceAccountsTable } from './ServiceAccountsTable/ServiceAccountsTable';
|
import { ServiceAccountsTable } from './ServiceAccountsTable/ServiceAccountsTable';
|
||||||
import useUiConfig from 'hooks/api/getters/useUiConfig/useUiConfig';
|
import useUiConfig from 'hooks/api/getters/useUiConfig/useUiConfig';
|
||||||
import { PremiumFeature } from 'component/common/PremiumFeature/PremiumFeature';
|
import { PremiumFeature } from 'component/common/PremiumFeature/PremiumFeature';
|
||||||
import { AdminTabsMenu } from '../menu/AdminTabsMenu';
|
|
||||||
import { ConditionallyRender } from 'component/common/ConditionallyRender/ConditionallyRender';
|
import { ConditionallyRender } from 'component/common/ConditionallyRender/ConditionallyRender';
|
||||||
|
|
||||||
export const ServiceAccounts = () => {
|
export const ServiceAccounts = () => {
|
||||||
|
@ -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 { 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 useUiConfig from '../../../hooks/api/getters/useUiConfig/useUiConfig';
|
||||||
import { ApplicationList } from './ApplicationList';
|
import { ApplicationList } from './ApplicationList';
|
||||||
import { OldApplicationList } from './OldApplicationList';
|
import { OldApplicationList } from './OldApplicationList';
|
||||||
|
@ -93,6 +93,7 @@ exports[`should create default config 1`] = `
|
|||||||
},
|
},
|
||||||
"migrationLock": true,
|
"migrationLock": true,
|
||||||
"multipleRoles": false,
|
"multipleRoles": false,
|
||||||
|
"newApplicationList": false,
|
||||||
"personalAccessTokensKillSwitch": false,
|
"personalAccessTokensKillSwitch": false,
|
||||||
"proPlanAutoCharge": false,
|
"proPlanAutoCharge": false,
|
||||||
"responseTimeWithAppNameKillSwitch": false,
|
"responseTimeWithAppNameKillSwitch": false,
|
||||||
@ -129,6 +130,7 @@ exports[`should create default config 1`] = `
|
|||||||
},
|
},
|
||||||
"migrationLock": true,
|
"migrationLock": true,
|
||||||
"multipleRoles": false,
|
"multipleRoles": false,
|
||||||
|
"newApplicationList": false,
|
||||||
"personalAccessTokensKillSwitch": false,
|
"personalAccessTokensKillSwitch": false,
|
||||||
"proPlanAutoCharge": false,
|
"proPlanAutoCharge": false,
|
||||||
"responseTimeWithAppNameKillSwitch": false,
|
"responseTimeWithAppNameKillSwitch": false,
|
||||||
|
@ -133,6 +133,10 @@ const flags: IFlags = {
|
|||||||
process.env.UNLEASH_EXPERIMENTAL_MULTIPLE_ROLES,
|
process.env.UNLEASH_EXPERIMENTAL_MULTIPLE_ROLES,
|
||||||
false,
|
false,
|
||||||
),
|
),
|
||||||
|
newApplicationList: parseEnvVarBoolean(
|
||||||
|
process.env.UNLEASH_EXPERIMENTAL_NEW_APPLICATION_LIST,
|
||||||
|
false,
|
||||||
|
),
|
||||||
};
|
};
|
||||||
|
|
||||||
export const defaultExperimentalOptions: IExperimentalOptions = {
|
export const defaultExperimentalOptions: IExperimentalOptions = {
|
||||||
|
Loading…
Reference in New Issue
Block a user