From e6e9f7d4c7eceaa23e6743009f3157dc02ec1656 Mon Sep 17 00:00:00 2001 From: EYHN Date: Mon, 5 Aug 2024 09:53:10 +0000 Subject: [PATCH] feat(core): enable feature flag for release (#7738) --- packages/common/infra/src/atom/settings.ts | 3 +++ .../general-setting/experimental-features/index.tsx | 3 --- tools/cli/src/webpack/runtime-config.ts | 9 ++++----- 3 files changed, 7 insertions(+), 8 deletions(-) diff --git a/packages/common/infra/src/atom/settings.ts b/packages/common/infra/src/atom/settings.ts index 6778e82152..96d4f8b994 100644 --- a/packages/common/infra/src/atom/settings.ts +++ b/packages/common/infra/src/atom/settings.ts @@ -95,6 +95,9 @@ export function setupEditorFlags(docCollection: DocCollection) { // TODO(@eyhn): need a better way to manage block suite flags docCollection.awarenessStore.setFlag('enable_synced_doc_block', true); docCollection.awarenessStore.setFlag('enable_edgeless_text', true); + docCollection.awarenessStore.setFlag('enable_color_picker', true); + docCollection.awarenessStore.setFlag('enable_ai_chat_block', true); + docCollection.awarenessStore.setFlag('enable_ai_onboarding', true); } catch (err) { logger.error('syncEditorFlags', err); } diff --git a/packages/frontend/core/src/components/affine/setting-modal/general-setting/experimental-features/index.tsx b/packages/frontend/core/src/components/affine/setting-modal/general-setting/experimental-features/index.tsx index fbd1df6d94..ed9c5d0323 100644 --- a/packages/frontend/core/src/components/affine/setting-modal/general-setting/experimental-features/index.tsx +++ b/packages/frontend/core/src/components/affine/setting-modal/general-setting/experimental-features/index.tsx @@ -150,9 +150,6 @@ const blocksuiteFeatureFlags: Partial> = { enable_database_attachment_note: 'Enable Database Attachment Note', enable_database_statistics: 'Enable Database Block Statistics', enable_block_query: 'Enable Todo Block Query', - enable_ai_onboarding: 'Enable AI Onboarding', - enable_ai_chat_block: 'Enable AI Chat Block', - enable_color_picker: 'Enable Color Picker', }; const BlocksuiteFeatureFlagSettings = () => { diff --git a/tools/cli/src/webpack/runtime-config.ts b/tools/cli/src/webpack/runtime-config.ts index 823a487ffd..01485dcf01 100644 --- a/tools/cli/src/webpack/runtime-config.ts +++ b/tools/cli/src/webpack/runtime-config.ts @@ -21,12 +21,11 @@ export function getRuntimeConfig(buildFlags: BuildFlags): RuntimeConfig { enableExperimentalFeature: true, allowLocalWorkspace: buildFlags.distribution === 'desktop' ? true : false, - enableOrganize: false, - enableNewFavorite: false, - enableOldFavorite: true, + enableOrganize: true, + enableNewFavorite: true, + enableOldFavorite: false, - // TODO(@forehalo): enable in next release and canary - enableInfoModal: false, + enableInfoModal: true, // CAUTION(@forehalo): product not ready, do not enable it enableNewSettingUnstableApi: false,