mirror of
https://github.com/Unleash/unleash.git
synced 2025-09-01 13:47:27 +02:00
flag: integrationsRework
This commit is contained in:
parent
169a3167da
commit
9ec8ff9a51
@ -300,7 +300,7 @@ export const routes: IRoute[] = [
|
|||||||
menu: { mobile: true, advanced: true },
|
menu: { mobile: true, advanced: true },
|
||||||
},
|
},
|
||||||
|
|
||||||
// Addons
|
// Integrations
|
||||||
{
|
{
|
||||||
path: '/addons/create/:providerId',
|
path: '/addons/create/:providerId',
|
||||||
parent: '/addons',
|
parent: '/addons',
|
||||||
@ -325,6 +325,16 @@ export const routes: IRoute[] = [
|
|||||||
type: 'protected',
|
type: 'protected',
|
||||||
menu: { mobile: true, advanced: true },
|
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
|
// Segments
|
||||||
{
|
{
|
||||||
|
@ -58,6 +58,7 @@ export interface IFlags {
|
|||||||
segmentChangeRequests?: boolean;
|
segmentChangeRequests?: boolean;
|
||||||
changeRequestReject?: boolean;
|
changeRequestReject?: boolean;
|
||||||
lastSeenByEnvironment?: boolean;
|
lastSeenByEnvironment?: boolean;
|
||||||
|
integrationsRework?: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface IVersionInfo {
|
export interface IVersionInfo {
|
||||||
|
@ -30,7 +30,8 @@ export type IFlagKey =
|
|||||||
| 'lastSeenByEnvironment'
|
| 'lastSeenByEnvironment'
|
||||||
| 'segmentChangeRequests'
|
| 'segmentChangeRequests'
|
||||||
| 'changeRequestReject'
|
| 'changeRequestReject'
|
||||||
| 'customRootRolesKillSwitch';
|
| 'customRootRolesKillSwitch'
|
||||||
|
| 'integrationsRework';
|
||||||
|
|
||||||
export type IFlags = Partial<{ [key in IFlagKey]: boolean | Variant }>;
|
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,
|
process.env.UNLEASH_EXPERIMENTAL_CUSTOM_ROOT_ROLES_KILL_SWITCH,
|
||||||
false,
|
false,
|
||||||
),
|
),
|
||||||
|
integrationsRework: parseEnvVarBoolean(
|
||||||
|
process.env.UNLEASH_INTEGRATIONS,
|
||||||
|
false,
|
||||||
|
),
|
||||||
};
|
};
|
||||||
|
|
||||||
export const defaultExperimentalOptions: IExperimentalOptions = {
|
export const defaultExperimentalOptions: IExperimentalOptions = {
|
||||||
|
Loading…
Reference in New Issue
Block a user