From 21c758b6d6621799f30512c099c6d40f85e704bd Mon Sep 17 00:00:00 2001 From: L-Sun Date: Wed, 6 Aug 2025 16:15:19 +0800 Subject: [PATCH] chore(editor): enable dom renderer for beta ios (#13427) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit #### PR Dependency Tree * **PR #13427** 👈 This tree was auto-generated by [Charcoal](https://github.com/danerwilliams/charcoal) ## Summary by CodeRabbit * **New Features** * Introduced a feature flag to enable or disable mobile database editing. * Added user notifications on mobile when attempting to edit databases if the feature is not enabled. * **Bug Fixes** * Improved selection handling in mobile Kanban and Table views to ensure correct behavior. * Prevented add group and filter actions in readonly views or data sources. * **Style** * Adjusted toast notifications to allow for variable height. * Updated horizontal overflow behavior for mobile table views, specifically targeting iOS devices. * Refined keyboard toolbar styling for more consistent height and padding. * **Chores** * Updated feature flag configuration to better support mobile and iOS-specific features. --- .../frontend/core/src/modules/feature-flag/constant.ts | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/packages/frontend/core/src/modules/feature-flag/constant.ts b/packages/frontend/core/src/modules/feature-flag/constant.ts index 598f08aa2..c8229593e 100644 --- a/packages/frontend/core/src/modules/feature-flag/constant.ts +++ b/packages/frontend/core/src/modules/feature-flag/constant.ts @@ -2,7 +2,9 @@ import type { FlagInfo } from './types'; // const isNotStableBuild = BUILD_CONFIG.appBuildType !== 'stable'; const isCanaryBuild = BUILD_CONFIG.appBuildType === 'canary'; +const isBetaBuild = BUILD_CONFIG.appBuildType === 'beta'; const isMobile = BUILD_CONFIG.isMobileEdition; +const isIOS = BUILD_CONFIG.isIOS; export const AFFINE_FLAGS = { enable_ai: { @@ -209,8 +211,8 @@ export const AFFINE_FLAGS = { category: 'affine', displayName: 'Enable AI Button', description: 'Enable AI Button on mobile', - configurable: BUILD_CONFIG.isMobileEdition && BUILD_CONFIG.isIOS, - defaultState: BUILD_CONFIG.isMobileEdition && BUILD_CONFIG.isIOS, + configurable: isMobile && isIOS, + defaultState: isMobile && isIOS, }, enable_turbo_renderer: { category: 'blocksuite', @@ -225,8 +227,8 @@ export const AFFINE_FLAGS = { bsFlag: 'enable_dom_renderer', displayName: 'Enable DOM Renderer', description: 'Enable DOM renderer for graphics elements', - configurable: isCanaryBuild, - defaultState: false, + configurable: isCanaryBuild || isBetaBuild, + defaultState: isIOS, }, enable_edgeless_scribbled_style: { category: 'blocksuite',