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

This commit is contained in:
EYHN 2024-08-05 09:53:10 +00:00
parent 9f57ed5e84
commit e6e9f7d4c7
No known key found for this signature in database
GPG Key ID: 46C9E26A75AB276C
3 changed files with 7 additions and 8 deletions

View File

@ -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);
}

View File

@ -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 = () => {

View File

@ -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,