1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-09-01 13:47:27 +02:00

flag: integrationsRework

This commit is contained in:
Tymoteusz Czech 2023-08-17 15:30:33 +02:00
parent 169a3167da
commit 9ec8ff9a51
No known key found for this signature in database
GPG Key ID: 133555230D88D75F
3 changed files with 18 additions and 2 deletions

View File

@ -300,7 +300,7 @@ export const routes: IRoute[] = [
menu: { mobile: true, advanced: true },
},
// Addons
// Integrations
{
path: '/addons/create/:providerId',
parent: '/addons',
@ -325,6 +325,16 @@ export const routes: IRoute[] = [
type: 'protected',
menu: { mobile: true, advanced: true },
},
// TODO: remove 'addons' from menu after removing Integrations menu flag
{
path: '/integrations',
title: 'Integrations',
component: AddonList,
hidden: false,
type: 'protected',
menu: { mobile: true, advanced: true },
flag: 'integrationsRework',
},
// Segments
{

View File

@ -58,6 +58,7 @@ export interface IFlags {
segmentChangeRequests?: boolean;
changeRequestReject?: boolean;
lastSeenByEnvironment?: boolean;
integrationsRework?: boolean;
}
export interface IVersionInfo {

View File

@ -30,7 +30,8 @@ export type IFlagKey =
| 'lastSeenByEnvironment'
| 'segmentChangeRequests'
| 'changeRequestReject'
| 'customRootRolesKillSwitch';
| 'customRootRolesKillSwitch'
| 'integrationsRework';
export type IFlags = Partial<{ [key in IFlagKey]: boolean | Variant }>;
@ -142,6 +143,10 @@ const flags: IFlags = {
process.env.UNLEASH_EXPERIMENTAL_CUSTOM_ROOT_ROLES_KILL_SWITCH,
false,
),
integrationsRework: parseEnvVarBoolean(
process.env.UNLEASH_INTEGRATIONS,
false,
),
};
export const defaultExperimentalOptions: IExperimentalOptions = {