Merge pull request #12980 from nocodb/nc-fix/disable-ai-fill

fix: AI fill handle
This commit is contained in:
Mert E.
2026-01-30 21:47:03 +03:00
committed by GitHub
3 changed files with 15 additions and 3 deletions

View File

@@ -240,6 +240,7 @@ export function useCanvasTable({
const { meta: metaKey, ctrl: ctrlKey } = useMagicKeys()
const { isDataReadOnly, isUIAllowed } = useRoles()
const { isAiFeaturesEnabled, aiIntegrations, isNocoAiAvailable, generateRows: _generateRows } = useNocoAi()
const { isFeatureEnabled } = useBetaFeatureToggle()
const scriptStore = useScriptStore()
const tooltipStore = useTooltipStore()
const { blockExternalSourceRecordVisibility, blockRowColoring } = useEeConfig()
@@ -327,7 +328,9 @@ export function useCanvasTable({
const headerRowHeight = computed(() => (isMobileMode.value ? 40 : COLUMN_HEADER_HEIGHT_IN_PX))
const isAiFillMode = computed(() => (isMac() ? !!metaKey?.value : !!ctrlKey?.value) && isAiFeaturesEnabled.value)
const isAiFillMode = computed(
() => (isMac() ? !!metaKey?.value : !!ctrlKey?.value) && isAiFeaturesEnabled && isFeatureEnabled(FEATURE_FLAG.AI_FILL_HANDLE),
)
const fetchMetaIds = ref<string[][]>([])
const isLoadingMetas = ref(false)

View File

@@ -173,6 +173,15 @@ const FEATURES = [
version: 3,
isEE: true,
},
{
id: 'ai_fill_handle',
title: 'AI Fill Handle',
description: 'Use AI to fill data in cells based on existing data patterns.',
enabled: false,
version: 1,
isEngineering: true,
isEE: true,
},
] as const
export const FEATURE_FLAG = Object.fromEntries(FEATURES.map((feature) => [feature.id.toUpperCase(), feature.id])) as Record<

View File

@@ -98,7 +98,7 @@ export function useMultiSelect(
const { meta: metaKey } = useMagicKeys()
const { isAiFeaturesEnabled } = useNocoAi()
const { isFeatureEnabled } = useBetaFeatureToggle()
const { isSqlView, isExternalSource } = useSmartsheetStoreOrThrow()
@@ -1878,7 +1878,7 @@ export function useMultiSelect(
}
isFillMode.value = true
if (metaKey?.value && isAiFeaturesEnabled.value) {
if (metaKey?.value && isFeatureEnabled(FEATURE_FLAG.AI_FILL_HANDLE)) {
aiMode.value = true
}