mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-14 13:25:12 +00:00
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:
@@ -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]);
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
},
|
||||
})
|
||||
);
|
||||
|
||||
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user