Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

feat(core): enable feature flag for release (#7738)

EYHNe6e9f7d4c7ec
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<Record<keyof BlockSuiteFlags, string>> = {
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,