fix: hide coming-soon integrations and gate auth provider by sync flag

This commit is contained in:
Ramesh Mane
2026-04-10 09:37:40 +00:00
parent 9e455ae65d
commit 0002045880
3 changed files with 28 additions and 3 deletions

View File

@@ -67,6 +67,8 @@ const {
const focusTextArea: VNodeRef = (el) => el && el?.focus?.()
const showComingSoonIntegrations = ref(false)
const activeCategory = ref<IntegrationCategoryItemType | null>(null)
const searchQuery = ref<string>('')
@@ -86,6 +88,8 @@ const integrationCategoriesRef = computed(() => {
.filter((c) => {
if (isEEFeatureBlocked.value && c.value !== IntegrationCategoryType.DATABASE) return false
if (!showComingSoonIntegrations.value && !c.isAvailable) return false
const filterByActiveCategory = activeCategory.value ? c.value === activeCategory.value.value : true
return filterCategory(c) && filterByActiveCategory && !c.value.endsWith('-coming-soon')
@@ -152,6 +156,8 @@ const integrationsMapByCategory = computed(() => {
.filter((c) => {
if (isEEFeatureBlocked.value && c.value !== IntegrationCategoryType.DATABASE) return false
if (!showComingSoonIntegrations.value && !c.isAvailable) return false
const filterByActiveCategory = activeCategory.value ? c.value === activeCategory.value.value : true
const filterByUrlQuery =
@@ -248,12 +254,15 @@ const toggleShowOrHideAllCategory = () => {
}
const isIntegrationVisible = (integration: IntegrationItemType, category: any) => {
if (easterEggToggle.value) return true
if (!showComingSoonIntegrations.value && !integration.isAvailable) return false
// AUTH category: always filter by available sync auth subtypes, even when easterEggToggle is on
if (isSyncFeatureEnabled.value && category.value === IntegrationCategoryType.AUTH) {
return availableSyncAuthIntegrationSubtypes.value.includes(integration.sub_type)
}
if (easterEggToggle.value) return true
return !!integration.isAvailable
}