chore(editor): remove feature flag of embed doc with alias (#12620)

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

## Summary by CodeRabbit

- **New Features**
  - Toolbar actions related to embedding and duplicating documents are now always available without restrictions.

- **Chores**
  - Removed the feature flag controlling embed document alias features for a simpler user experience.

- **Tests**
  - Updated test setup to remove reliance on the deprecated feature flag.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
L-Sun
2025-05-29 07:55:52 +00:00
parent 927b4f4430
commit 77392efaa2
7 changed files with 5 additions and 50 deletions

View File

@@ -2,17 +2,11 @@ import { type Framework } from '@toeverything/infra';
import { DocsService } from '../doc';
import { EditorSettingService } from '../editor-setting';
import { FeatureFlagService } from '../feature-flag';
import { WorkspaceScope, WorkspaceService } from '../workspace';
import { DndService } from './services';
export function configureDndModule(framework: Framework) {
framework
.scope(WorkspaceScope)
.service(DndService, [
DocsService,
WorkspaceService,
EditorSettingService,
FeatureFlagService,
]);
.service(DndService, [DocsService, WorkspaceService, EditorSettingService]);
}

View File

@@ -18,7 +18,6 @@ import { Service } from '@toeverything/infra';
import type { DocsService } from '../../doc';
import type { EditorSettingService } from '../../editor-setting';
import type { FeatureFlagService } from '../../feature-flag';
import { resolveLinkToDoc } from '../../navigation';
import type { WorkspaceService } from '../../workspace';
@@ -35,8 +34,7 @@ export class DndService extends Service {
constructor(
private readonly docsService: DocsService,
private readonly workspaceService: WorkspaceService,
private readonly editorSettingService: EditorSettingService,
private readonly featureFlagService: FeatureFlagService
private readonly editorSettingService: EditorSettingService
) {
super();
@@ -186,9 +184,7 @@ export class DndService extends Service {
return false;
},
onDropTargetChange: (args: MonitorDragEvent<MixedDNDData>) => {
if (this.featureFlagService.flags.enable_embed_doc_with_alias.value) {
changeDocCardView(args);
}
changeDocCardView(args);
},
})
);

View File

@@ -259,15 +259,6 @@ export const AFFINE_FLAGS = {
configurable: isCanaryBuild,
defaultState: false,
},
// TODO(@L-Sun): remove this flag after the feature is released
enable_embed_doc_with_alias: {
category: 'blocksuite',
bsFlag: 'enable_embed_doc_with_alias',
displayName: 'Embed doc with alias',
description: 'Embed doc with alias',
configurable: isCanaryBuild,
defaultState: isCanaryBuild,
},
enable_setting_subpage_animation: {
category: 'affine',
displayName: 'Enable Setting Subpage Animation',