mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-20 07:47:19 +08:00
feat(core): enable feature flag for release (#7738)
This commit is contained in:
@@ -95,6 +95,9 @@ export function setupEditorFlags(docCollection: DocCollection) {
|
|||||||
// TODO(@eyhn): need a better way to manage block suite flags
|
// TODO(@eyhn): need a better way to manage block suite flags
|
||||||
docCollection.awarenessStore.setFlag('enable_synced_doc_block', true);
|
docCollection.awarenessStore.setFlag('enable_synced_doc_block', true);
|
||||||
docCollection.awarenessStore.setFlag('enable_edgeless_text', 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) {
|
} catch (err) {
|
||||||
logger.error('syncEditorFlags', err);
|
logger.error('syncEditorFlags', err);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -150,9 +150,6 @@ const blocksuiteFeatureFlags: Partial<Record<keyof BlockSuiteFlags, string>> = {
|
|||||||
enable_database_attachment_note: 'Enable Database Attachment Note',
|
enable_database_attachment_note: 'Enable Database Attachment Note',
|
||||||
enable_database_statistics: 'Enable Database Block Statistics',
|
enable_database_statistics: 'Enable Database Block Statistics',
|
||||||
enable_block_query: 'Enable Todo Block Query',
|
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 = () => {
|
const BlocksuiteFeatureFlagSettings = () => {
|
||||||
|
|||||||
@@ -21,12 +21,11 @@ export function getRuntimeConfig(buildFlags: BuildFlags): RuntimeConfig {
|
|||||||
enableExperimentalFeature: true,
|
enableExperimentalFeature: true,
|
||||||
allowLocalWorkspace:
|
allowLocalWorkspace:
|
||||||
buildFlags.distribution === 'desktop' ? true : false,
|
buildFlags.distribution === 'desktop' ? true : false,
|
||||||
enableOrganize: false,
|
enableOrganize: true,
|
||||||
enableNewFavorite: false,
|
enableNewFavorite: true,
|
||||||
enableOldFavorite: true,
|
enableOldFavorite: false,
|
||||||
|
|
||||||
// TODO(@forehalo): enable in next release and canary
|
enableInfoModal: true,
|
||||||
enableInfoModal: false,
|
|
||||||
|
|
||||||
// CAUTION(@forehalo): product not ready, do not enable it
|
// CAUTION(@forehalo): product not ready, do not enable it
|
||||||
enableNewSettingUnstableApi: false,
|
enableNewSettingUnstableApi: false,
|
||||||
|
|||||||
Reference in New Issue
Block a user