mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-17 01:56:27 +08:00
feat(core): remove integration feature flag (#11393)
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
import { useWorkspaceInfo } from '@affine/core/components/hooks/use-workspace-info';
|
||||
import { ServerService } from '@affine/core/modules/cloud';
|
||||
import type { SettingTab } from '@affine/core/modules/dialogs/constant';
|
||||
import { FeatureFlagService } from '@affine/core/modules/feature-flag';
|
||||
import { WorkspaceService } from '@affine/core/modules/workspace';
|
||||
import { ServerDeploymentType } from '@affine/graphql';
|
||||
import { useI18n } from '@affine/i18n';
|
||||
@@ -63,11 +62,6 @@ export const useWorkspaceSettingList = (): SettingSidebarItem[] => {
|
||||
const workspaceService = useService(WorkspaceService);
|
||||
const information = useWorkspaceInfo(workspaceService.workspace);
|
||||
const serverService = useService(ServerService);
|
||||
const featureFlagService = useService(FeatureFlagService);
|
||||
|
||||
const enableIntegration = useLiveData(
|
||||
featureFlagService.flags.enable_integration.$
|
||||
);
|
||||
|
||||
const isSelfhosted = useLiveData(
|
||||
serverService.server.config$.selector(
|
||||
@@ -100,7 +94,7 @@ export const useWorkspaceSettingList = (): SettingSidebarItem[] => {
|
||||
icon: <CollaborationIcon />,
|
||||
testId: 'workspace-setting:members',
|
||||
},
|
||||
enableIntegration && {
|
||||
{
|
||||
key: 'workspace:integrations',
|
||||
title: t['com.affine.integration.integrations'](),
|
||||
icon: <IntegrationsIcon />,
|
||||
@@ -125,7 +119,7 @@ export const useWorkspaceSettingList = (): SettingSidebarItem[] => {
|
||||
testId: 'workspace-setting:license',
|
||||
},
|
||||
].filter((item): item is SettingSidebarItem => !!item);
|
||||
}, [enableIntegration, showBilling, showLicense, t]);
|
||||
}, [showBilling, showLicense, t]);
|
||||
|
||||
return items;
|
||||
};
|
||||
|
||||
@@ -248,13 +248,6 @@ export const AFFINE_FLAGS = {
|
||||
configurable: isCanaryBuild,
|
||||
defaultState: false,
|
||||
},
|
||||
enable_integration: {
|
||||
category: 'affine',
|
||||
displayName: 'Enable Integration',
|
||||
description: 'Enable Integration',
|
||||
configurable: isCanaryBuild,
|
||||
defaultState: false,
|
||||
},
|
||||
enable_edgeless_scribbled_style: {
|
||||
category: 'blocksuite',
|
||||
bsFlag: 'enable_edgeless_scribbled_style',
|
||||
|
||||
Reference in New Issue
Block a user