chore(editor): enable dom renderer for beta ios (#13427)

#### PR Dependency Tree


* **PR #13427** 👈

This tree was auto-generated by
[Charcoal](https://github.com/danerwilliams/charcoal)

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## 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.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
L-Sun
2025-08-06 16:15:19 +08:00
committed by GitHub
parent 9677bdf50d
commit 21c758b6d6

View File

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