From 16e136e42c13c9c9d56d2cfdc6bfa92c82ee077e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nuno=20G=C3=B3is?= Date: Tue, 5 Nov 2024 15:53:15 +0000 Subject: [PATCH] chore: add flagOverviewRedesign flag (#8653) https://linear.app/unleash/issue/2-2916/create-a-new-flag-for-the-new-feature-flag-overview-page-redesign Adds the `flagOverviewRedesign` feature flag, allowing us to toggle the new feature flag overview page redesign. --- frontend/src/interfaces/uiConfig.ts | 1 + src/lib/types/experimental.ts | 7 ++++++- src/server-dev.ts | 1 + 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/frontend/src/interfaces/uiConfig.ts b/frontend/src/interfaces/uiConfig.ts index 6e7b8c23191a..e66fba2891ac 100644 --- a/frontend/src/interfaces/uiConfig.ts +++ b/frontend/src/interfaces/uiConfig.ts @@ -94,6 +94,7 @@ export type UiFlags = { 'enterprise-payg'?: boolean; simplifyProjectOverview?: boolean; productivityReportEmail?: boolean; + flagOverviewRedesign?: boolean; }; export interface IVersionInfo { diff --git a/src/lib/types/experimental.ts b/src/lib/types/experimental.ts index 222897aef9b0..320efb6805d6 100644 --- a/src/lib/types/experimental.ts +++ b/src/lib/types/experimental.ts @@ -60,7 +60,8 @@ export type IFlagKey = | 'releasePlans' | 'productivityReportEmail' | 'enterprise-payg' - | 'simplifyProjectOverview'; + | 'simplifyProjectOverview' + | 'flagOverviewRedesign'; export type IFlags = Partial<{ [key in IFlagKey]: boolean | Variant }>; @@ -301,6 +302,10 @@ const flags: IFlags = { process.env.UNLEASH_EXPERIMENTAL_SIMPLIFY_PROJECT_OVERVIEW, false, ), + flagOverviewRedesign: parseEnvVarBoolean( + process.env.UNLEASH_EXPERIMENTAL_FLAG_OVERVIEW_REDESIGN, + false, + ), }; export const defaultExperimentalOptions: IExperimentalOptions = { diff --git a/src/server-dev.ts b/src/server-dev.ts index 81a95d9f16c9..7f1ea4b8d418 100644 --- a/src/server-dev.ts +++ b/src/server-dev.ts @@ -57,6 +57,7 @@ process.nextTick(async () => { webhookDomainLogging: true, releasePlans: false, simplifyProjectOverview: true, + flagOverviewRedesign: true, }, }, authentication: {