diff --git a/frontend/src/interfaces/uiConfig.ts b/frontend/src/interfaces/uiConfig.ts index 54de360c3d..423d1de6cd 100644 --- a/frontend/src/interfaces/uiConfig.ts +++ b/frontend/src/interfaces/uiConfig.ts @@ -45,6 +45,7 @@ export interface IFlags { cloneEnvironment?: boolean; variantsPerEnvironment?: boolean; tokensLastSeen?: boolean; + networkView?: boolean; } export interface IVersionInfo { diff --git a/src/lib/__snapshots__/create-config.test.ts.snap b/src/lib/__snapshots__/create-config.test.ts.snap index 6303636670..bda240f70f 100644 --- a/src/lib/__snapshots__/create-config.test.ts.snap +++ b/src/lib/__snapshots__/create-config.test.ts.snap @@ -74,6 +74,7 @@ exports[`should create default config 1`] = ` "cloneEnvironment": false, "embedProxy": false, "embedProxyFrontend": false, + "networkView": false, "proxyReturnAllToggles": false, "responseTimeWithAppName": false, "syncSSOGroups": false, @@ -91,6 +92,7 @@ exports[`should create default config 1`] = ` "cloneEnvironment": false, "embedProxy": false, "embedProxyFrontend": false, + "networkView": false, "proxyReturnAllToggles": false, "responseTimeWithAppName": false, "syncSSOGroups": false, diff --git a/src/lib/types/experimental.ts b/src/lib/types/experimental.ts index af4a2afe7a..c90a2206e2 100644 --- a/src/lib/types/experimental.ts +++ b/src/lib/types/experimental.ts @@ -50,6 +50,10 @@ export const defaultExperimentalOptions = { process.env.UNLEASH_EXPERIMENTAL_TOKENS_LAST_SEEN, false, ), + networkView: parseEnvVarBoolean( + process.env.UNLEASH_EXPERIMENTAL_NETWORK_VIEW, + false, + ), }, externalResolver: { isEnabled: (): boolean => false }, }; @@ -68,6 +72,7 @@ export interface IExperimentalOptions { proxyReturnAllToggles?: boolean; variantsPerEnvironment?: boolean; tokensLastSeen?: boolean; + networkView?: boolean; }; externalResolver: IExternalFlagResolver; }