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:
@@ -2,7 +2,9 @@ import type { FlagInfo } from './types';
|
|||||||
|
|
||||||
// const isNotStableBuild = BUILD_CONFIG.appBuildType !== 'stable';
|
// const isNotStableBuild = BUILD_CONFIG.appBuildType !== 'stable';
|
||||||
const isCanaryBuild = BUILD_CONFIG.appBuildType === 'canary';
|
const isCanaryBuild = BUILD_CONFIG.appBuildType === 'canary';
|
||||||
|
const isBetaBuild = BUILD_CONFIG.appBuildType === 'beta';
|
||||||
const isMobile = BUILD_CONFIG.isMobileEdition;
|
const isMobile = BUILD_CONFIG.isMobileEdition;
|
||||||
|
const isIOS = BUILD_CONFIG.isIOS;
|
||||||
|
|
||||||
export const AFFINE_FLAGS = {
|
export const AFFINE_FLAGS = {
|
||||||
enable_ai: {
|
enable_ai: {
|
||||||
@@ -209,8 +211,8 @@ export const AFFINE_FLAGS = {
|
|||||||
category: 'affine',
|
category: 'affine',
|
||||||
displayName: 'Enable AI Button',
|
displayName: 'Enable AI Button',
|
||||||
description: 'Enable AI Button on mobile',
|
description: 'Enable AI Button on mobile',
|
||||||
configurable: BUILD_CONFIG.isMobileEdition && BUILD_CONFIG.isIOS,
|
configurable: isMobile && isIOS,
|
||||||
defaultState: BUILD_CONFIG.isMobileEdition && BUILD_CONFIG.isIOS,
|
defaultState: isMobile && isIOS,
|
||||||
},
|
},
|
||||||
enable_turbo_renderer: {
|
enable_turbo_renderer: {
|
||||||
category: 'blocksuite',
|
category: 'blocksuite',
|
||||||
@@ -225,8 +227,8 @@ export const AFFINE_FLAGS = {
|
|||||||
bsFlag: 'enable_dom_renderer',
|
bsFlag: 'enable_dom_renderer',
|
||||||
displayName: 'Enable DOM Renderer',
|
displayName: 'Enable DOM Renderer',
|
||||||
description: 'Enable DOM renderer for graphics elements',
|
description: 'Enable DOM renderer for graphics elements',
|
||||||
configurable: isCanaryBuild,
|
configurable: isCanaryBuild || isBetaBuild,
|
||||||
defaultState: false,
|
defaultState: isIOS,
|
||||||
},
|
},
|
||||||
enable_edgeless_scribbled_style: {
|
enable_edgeless_scribbled_style: {
|
||||||
category: 'blocksuite',
|
category: 'blocksuite',
|
||||||
|
|||||||
Reference in New Issue
Block a user