chore(core): remove calendar integration feature flag (#12689)
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - All available integrations are now shown without restriction; calendar integration is always visible. - **Chores** - Removed an obsolete feature flag related to calendar integration. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
@@ -56,16 +56,11 @@ export type IntegrationItem = Exclude<IntegrationCard, 'id'> & {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export function getAllowedIntegrationList$(
|
export function getAllowedIntegrationList$(
|
||||||
featureFlagService: FeatureFlagService
|
_featureFlagService: FeatureFlagService
|
||||||
) {
|
) {
|
||||||
return LiveData.computed(get => {
|
return LiveData.computed(() => {
|
||||||
return INTEGRATION_LIST.filter(item => {
|
return INTEGRATION_LIST.filter(item => {
|
||||||
if (!item) return false;
|
if (!item) return false;
|
||||||
|
|
||||||
if (item.id === 'calendar') {
|
|
||||||
return get(featureFlagService.flags.enable_calendar_integration.$);
|
|
||||||
}
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}) as IntegrationItem[];
|
}) as IntegrationItem[];
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -266,13 +266,6 @@ export const AFFINE_FLAGS = {
|
|||||||
configurable: isCanaryBuild,
|
configurable: isCanaryBuild,
|
||||||
defaultState: false,
|
defaultState: false,
|
||||||
},
|
},
|
||||||
enable_calendar_integration: {
|
|
||||||
category: 'affine',
|
|
||||||
displayName: 'Enable Calendar Integration',
|
|
||||||
description: 'Enable calendar integration',
|
|
||||||
configurable: false,
|
|
||||||
defaultState: isCanaryBuild,
|
|
||||||
},
|
|
||||||
enable_cloud_indexer: {
|
enable_cloud_indexer: {
|
||||||
category: 'affine',
|
category: 'affine',
|
||||||
displayName: 'Enable Cloud Indexer',
|
displayName: 'Enable Cloud Indexer',
|
||||||
|
|||||||
Reference in New Issue
Block a user