Skip to content

πŸ”₯ πŸ”₯ πŸ”₯ A Free & Self-hostable Airtable Alternative

chore: sync

Pranav C0bc2f7cafb82
diff --git a/packages/nc-gui/assets/nc-icons-v2/pin-off.svg b/packages/nc-gui/assets/nc-icons-v2/pin-off.svg
new file mode 100644
index 0000000000..629dccccab
--- /dev/null
+++ b/packages/nc-gui/assets/nc-icons-v2/pin-off.svg
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 17v5"/><path d="M15 9.34V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H7.89"/><path d="m2 2 20 20"/><path d="M9 9v1.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h11"/></svg>
diff --git a/packages/nc-gui/assets/nc-icons-v2/pin.svg b/packages/nc-gui/assets/nc-icons-v2/pin.svg
new file mode 100644
index 0000000000..3b5b273287
--- /dev/null
+++ b/packages/nc-gui/assets/nc-icons-v2/pin.svg
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 17v5"/><path d="M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z"/></svg>
diff --git a/packages/nc-gui/assets/nc-icons/cell-colour.svg b/packages/nc-gui/assets/nc-icons/cell-colour.svg
new file mode 100644
index 0000000000..5bf622c725
--- /dev/null
+++ b/packages/nc-gui/assets/nc-icons/cell-colour.svg
@@ -0,0 +1,7 @@
+<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
+<path d="M12 2C6.49 2 2 6.49 2 12C2 17.51 6.49 22 12 22C12.83 22 13.5 21.33 13.5 20.5C13.5 20.12 13.36 19.78 13.12 19.53C12.89 19.27 12.75 18.94 12.75 18.56C12.75 17.73 13.42 17.06 14.25 17.06H16C19.31 17.06 22 14.37 22 11.06C22 6.06 17.51 2 12 2Z" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"/>
+<circle cx="7.5" cy="11.5" r="1.5" fill="currentColor"/>
+<circle cx="10.5" cy="7.5" r="1.5" fill="currentColor"/>
+<circle cx="15" cy="7.5" r="1.5" fill="currentColor"/>
+<circle cx="18" cy="11.5" r="1.5" fill="currentColor"/>
+</svg>
diff --git a/packages/nc-gui/assets/nc-icons/cell-uuid.svg b/packages/nc-gui/assets/nc-icons/cell-uuid.svg
new file mode 100644
index 0000000000..e582f31ae4
--- /dev/null
+++ b/packages/nc-gui/assets/nc-icons/cell-uuid.svg
@@ -0,0 +1,11 @@
+<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" stroke-linecap="round" stroke-linejoin="round">
+ <path d="M12 10a2 2 0 0 0-2 2c0 1.02-.1 2.51-.26 4" stroke="currentColor" stroke-width="2" />
+ <path d="M14 13.12c0 2.38 0 6.38-1 8.88" stroke="currentColor" stroke-width="2" />
+ <path d="M17.29 21.02c.12-.6.43-2.3.5-3.02" stroke="currentColor" stroke-width="2" />
+ <path d="M2 12a10 10 0 0 1 18-6" stroke="currentColor" stroke-width="2" />
+ <path d="M2 16h.01" stroke="currentColor" stroke-width="2" />
+ <path d="M21.8 16c.2-2 .131-5.354 0-6" stroke="currentColor" stroke-width="2" />
+ <path d="M5 19.5C5.5 18 6 15 6 12a6 6 0 0 1 .34-2" stroke="currentColor" stroke-width="2" />
+ <path d="M8.65 22c.21-.66.45-1.32.57-2" stroke="currentColor" stroke-width="2" />
+ <path d="M9 6.8a6 6 0 0 1 9 5.2v2" stroke="currentColor" stroke-width="2" />
+</svg>
diff --git a/packages/nc-gui/components/cell/Colour/Editor.vue b/packages/nc-gui/components/cell/Colour/Editor.vue
new file mode 100644
index 0000000000..a321b1f473
--- /dev/null
+++ b/packages/nc-gui/components/cell/Colour/Editor.vue
@@ -0,0 +1,148 @@
+<script lang="ts" setup>
+import { isValidHexColour, normalizeHexColour, normalizeHexColourWithAlpha } from 'nocodb-sdk'
+import { iconMap } from '~/utils/iconUtils'
+
+interface Props {
+ modelValue: string | null | undefined
+}
+
+const props = defineProps<Props>()
+const emit = defineEmits(['update:modelValue'])
+
+const column = inject(ColumnInj, ref())
+const readOnly = inject(ReadonlyInj, ref(false))
+const editEnabled = inject(EditModeInj, ref(false))
+const isExpandedFormOpen = inject(IsExpandedFormOpenInj, ref(false))
+const isEditColumn = inject(EditColumnInj, ref(false))
+const isForm = inject(IsFormInj, ref(false))
+
+const colourMeta = computed(() => {
+ const meta = column.value?.meta ? parseProp(column.value.meta) : {}
+ return {
+ displayFormat: meta?.displayFormat || 'swatch_hex',
+ swatchStyle: meta?.swatchStyle || 'circle',
+ swatchSize: meta?.swatchSize || 'medium',
+ defaultColor: meta?.defaultColor || '#FFFFFF',
+ ...meta,
+ }
+})
+
+const vModel = computed({
+ get: () => {
+ const value = props.modelValue || colourMeta.value.defaultColor || '#FFFFFF'
+ return normalizeHexColour(value) || '#FFFFFF'
+ },
+ set: (val) => {
+ if (!val) {
+ emit('update:modelValue', null)
+ return
+ }
+ // Accept 6 or 8 digit hex (strip alpha channel if present via the picker)
+ const normalized = normalizeHexColourWithAlpha(val)
+ if (normalized) {
+ emit('update:modelValue', normalized)
+ }
+ },
+})
+
+const shapeClass = computed(() => {
+ return colourMeta.value.swatchStyle === 'square' ? 'rounded-sm' : 'rounded-full'
+})
+
+const isValidHex = computed(() => isValidHexColour(props.modelValue))
+
+// --- Colour picker (shared composable) ---
+const { isOpen, tempColor, pickerKey, openColorPicker, onColorChange, save, close } = useColourPicker({
+ onSave: (colour) => {
+ vModel.value = colour
+ },
+ onClose: () => {
+ editEnabled.value = false
+ },
+ disabled: readOnly,
+})
+
+const onTextInput = (e: Event) => {
+ const val = (e.target as HTMLInputElement).value.trim()
+ if (!val) {
+ emit('update:modelValue', null)
+ return
+ }
+ const normalized = normalizeHexColour(val)
+ if (normalized) {
+ emit('update:modelValue', normalized)
+ }
+}
+
+// Auto-open color picker when cell becomes editable (only in grid view, not in expanded form or edit column)
+watch(
+ editEnabled,
+ (enabled) => {
+ if (enabled && !readOnly.value && !isOpen.value && !isExpandedFormOpen.value && !isEditColumn.value && !isForm.value) {
+ nextTick(() => {
+ openColorPicker(vModel.value)
+ })
+ }
+ },
+ { immediate: true },
+)
+
+// Sync editEnabled with modal open state
+watch(isOpen, (open) => {
+ if (open && !editEnabled.value) {
+ editEnabled.value = true
+ }
+})
+</script>
+
+<template>
+ <div class="nc-cell-field flex items-center gap-1 w-full h-full relative">
+ <!-- Colour swatch button to open picker -->
+ <div
+ class="flex-shrink-0 w-5 h-5 cursor-pointer flex items-center justify-center"
+ :class="{ 'pointer-events-none opacity-50': readOnly }"
+ @click.stop="openColorPicker(vModel)"
+ >
+ <div
+ v-if="isValidHex"
+ :class="shapeClass"
+ :style="{ backgroundColor: vModel, border: '1px solid #d0d5dd' }"
+ class="w-4 h-4"
+ />
+ <component :is="iconMap.palette" v-else class="w-4 h-4 text-nc-content-gray-muted" />
+ </div>
+
+ <!-- Editable text input for manual hex entry -->
+ <input
+ :value="props.modelValue || ''"
+ :disabled="readOnly"
+ type="text"
+ placeholder="#FFFFFF"
+ class="flex-1 h-full border-none !outline-none focus:outline-none focus:ring-0 bg-transparent text-sm font-mono nc-cell-field"
+ @input="onTextInput"
+ @keydown.stop
+ @mousedown.stop
+ />
+
+ <!-- Color Picker Modal -->
+ <a-modal
+ :visible="isOpen"
+ :closable="false"
+ :keyboard="false"
+ :width="400"
+ wrap-class-name="nc-colour-picker-modal !z-1060"
+ @cancel="close"
+ >
+ <div v-if="isOpen" class="px-2 pt-2 pb-0" @click.stop @mousedown.stop>
+ <GeneralAdvanceColorPicker :key="pickerKey" :model-value="tempColor || vModel" :is-open="isOpen" @input="onColorChange" />
+ </div>
+ <template #footer>
+ <div class="flex items-center gap-2 pt-3" @click.stop @mousedown.stop>
+ <NcButton type="secondary" size="small" @click="close"> {{ $t('general.cancel') }} </NcButton>
+ <div class="flex-1" />
+ <NcButton type="primary" size="small" @click="save"> {{ $t('general.save') }} </NcButton>
+ </div>
+ </template>
+ </a-modal>
+ </div>
+</template>
diff --git a/packages/nc-gui/components/cell/Colour/FilterInput.vue b/packages/nc-gui/components/cell/Colour/FilterInput.vue
new file mode 100644
index 0000000000..6dbfb525b7
--- /dev/null
+++ b/packages/nc-gui/components/cell/Colour/FilterInput.vue
@@ -0,0 +1,110 @@
+<script lang="ts" setup>
+import { isValidHexColour, normalizeHexColour, normalizeHexColourWithAlpha } from 'nocodb-sdk'
+import { iconMap } from '~/utils/iconUtils'
+
+interface Props {
+ modelValue: string | null | undefined
+ disabled?: boolean
+}
+
+const props = defineProps<Props>()
+const emit = defineEmits(['update:modelValue'])
+
+const column = inject(ColumnInj, ref())
+
+const colourMeta = computed(() => {
+ const meta = column.value?.meta ? parseProp(column.value.meta) : {}
+ return {
+ swatchStyle: meta?.swatchStyle || 'circle',
+ swatchSize: meta?.swatchSize || 'medium',
+ ...meta,
+ }
+})
+
+const vModel = computed({
+ get: () => props.modelValue || '',
+ set: (val) => {
+ emit('update:modelValue', val || null)
+ },
+})
+
+const shapeClass = computed(() => {
+ return colourMeta.value.swatchStyle === 'square' ? 'rounded-sm' : 'rounded-full'
+})
+
+const isValidHex = computed(() => isValidHexColour(vModel.value))
+
+// --- Colour picker (shared composable) ---
+const disabledRef = computed(() => !!props.disabled)
+
+const { isOpen, tempColor, pickerKey, openColorPicker, onColorChange, save, close } = useColourPicker({
+ onSave: (colour) => {
+ vModel.value = colour
+ },
+ disabled: disabledRef,
+})
+
+const onTextInput = (e: Event) => {
+ const raw = (e.target as HTMLInputElement).value.trim()
+ if (!raw) {
+ vModel.value = null
+ return
+ }
+ // Normalise to #RRGGBB uppercase so filter matches stored values.
+ // Accepts input with or without '#' prefix (e.g. 'ff5733' β†’ '#FF5733').
+ const normalized = normalizeHexColour(raw)
+ vModel.value = normalized ?? raw.toUpperCase()
+}
+</script>
+
+<template>
+ <div class="nc-cell-field flex items-center gap-1 w-full h-full">
+ <!-- Colour swatch button to open picker -->
+ <div
+ class="flex-shrink-0 w-5 h-5 cursor-pointer flex items-center justify-center"
+ :class="{ 'pointer-events-none opacity-50': disabled }"
+ @click.stop="openColorPicker(isValidHex ? vModel : '#FFFFFF')"
+ >
+ <div
+ v-if="isValidHex"
+ :class="shapeClass"
+ :style="{ backgroundColor: vModel, border: '1px solid #d0d5dd' }"
+ class="w-4 h-4"
+ />
+ <component :is="iconMap.palette" v-else class="w-4 h-4 text-nc-content-gray-muted" />
+ </div>
+
+ <!-- Text input for manual hex entry -->
+ <input
+ :value="vModel"
+ :disabled="disabled"
+ type="text"
+ placeholder="#FFFFFF"
+ class="flex-1 h-full border-none outline-none bg-transparent text-sm font-mono nc-cell-field"
+ @input="onTextInput"
+ @keydown.stop
+ @mousedown.stop
+ />
+
+ <!-- Color Picker Modal -->
+ <a-modal
+ :visible="isOpen"
+ :closable="false"
+ :keyboard="false"
+ :width="400"
+ wrap-class-name="nc-colour-picker-modal !z-1060"
+ @cancel="close"
+ >
+ <div v-if="isOpen" class="px-2 pt-2 pb-0" @click.stop @mousedown.stop>
+ <GeneralAdvanceColorPicker :key="pickerKey" :model-value="tempColor" :is-open="isOpen" @input="onColorChange" />
+ </div>
+ <template #footer>
+ <div class="flex items-center gap-2 pt-3" @click.stop @mousedown.stop>
+ <NcButton type="secondary" size="small" @click="close"> {{ $t('general.cancel') }} </NcButton>
+ <div class="flex-1" />
+ <NcButton type="primary" size="small" @click="save"> {{ $t('general.save') }} </NcButton>
+ </div>
+ </template>
+ </a-modal>
+ </div>
+</template>
diff --git a/packages/nc-gui/components/cell/Colour/Readonly.vue b/packages/nc-gui/components/cell/Colour/Readonly.vue
new file mode 100644
index 0000000000..1cd5b37440
--- /dev/null
+++ b/packages/nc-gui/components/cell/Colour/Readonly.vue
@@ -0,0 +1,82 @@
+<script lang="ts" setup>
+import { normalizeHexColour } from 'nocodb-sdk'
+
+interface Props {
+ modelValue: string | null | undefined
+}
+
+const props = defineProps<Props>()
+
+const column = inject(ColumnInj)!
+const rowHeight = inject(RowHeightInj, ref(undefined))
+
+const colourMeta = computed(() => {
+ const meta = parseProp(column.value?.meta)
+ return {
+ displayFormat: meta?.displayFormat || 'swatch_hex',
+ swatchStyle: meta?.swatchStyle || 'circle',
+ swatchSize: meta?.swatchSize || 'medium',
+ defaultColor: meta?.defaultColor || '#FFFFFF',
+ ...meta,
+ }
+})
+
+const displayValue = computed(() => {
+ const value = props.modelValue || colourMeta.value.defaultColor
+ return normalizeHexColour(value) || '#FFFFFF'
+})
+
+const sizeClass = computed(() => {
+ switch (colourMeta.value.swatchSize) {
+ case 'small':
+ return 'w-4 h-4'
+ case 'large':
+ return 'w-6 h-6'
+ default:
+ return 'w-5 h-5'
+ }
+})
+
+const shapeClass = computed(() => {
+ return colourMeta.value.swatchStyle === 'square' ? 'rounded-sm' : 'rounded-full'
+})
+
+const showSwatch = computed(() => {
+ return colourMeta.value.displayFormat === 'swatch_hex' || colourMeta.value.displayFormat === 'swatch_only'
+})
+
+const showHex = computed(() => {
+ return colourMeta.value.displayFormat === 'swatch_hex' || colourMeta.value.displayFormat === 'hex_only'
+})
+</script>
+
+<template>
+ <div
+ class="nc-cell-field flex items-center gap-2 py-1"
+ :style="{
+ 'max-width': '100%',
+ 'overflow': 'hidden',
+ }"
+ >
+ <div
+ v-if="showSwatch && displayValue"
+ :class="[sizeClass, shapeClass]"
+ :style="{ backgroundColor: displayValue, border: '1px solid #d0d5dd' }"
+ class="flex-shrink-0"
+ />
+
+ <span
+ v-if="showHex && displayValue"
+ class="text-sm font-mono truncate"
+ :style="{
+ 'display': '-webkit-box',
+ 'max-width': '100%',
+ '-webkit-line-clamp': rowHeight ? rowHeightTruncateLines(rowHeight, true) : undefined,
+ '-webkit-box-orient': 'vertical',
+ 'overflow': 'hidden',
+ }"
+ >
+ {{ displayValue }}
+ </span>
+ </div>
+</template>
diff --git a/packages/nc-gui/components/cell/Colour/index.vue b/packages/nc-gui/components/cell/Colour/index.vue
new file mode 100644
index 0000000000..90860ced23
--- /dev/null
+++ b/packages/nc-gui/components/cell/Colour/index.vue
@@ -0,0 +1,13 @@
+<script setup lang="ts">
+// This component is not used directly. Cell.vue uses CellColourEditor and CellColourReadonly.
+// Kept as a minimal wrapper for Nuxt auto-import resolution.
+interface Props {
+ modelValue: string | null | undefined
+}
+
+defineProps<Props>()
+</script>
+
+<template>
+ <CellColourEditor :model-value="modelValue" />
+</template>
diff --git a/packages/nc-gui/components/cell/UUID/Editor.vue b/packages/nc-gui/components/cell/UUID/Editor.vue
new file mode 100644
index 0000000000..b2a788ceb9
--- /dev/null
+++ b/packages/nc-gui/components/cell/UUID/Editor.vue
@@ -0,0 +1,13 @@
+<script lang="ts" setup>
+// PR review fix #10: Editor delegates to Readonly since UUID is always read-only
+interface Props {
+ modelValue?: string | null
+}
+
+defineProps<Props>()
+</script>
+
+<template>
+ <!-- UUID is read-only; editor renders the same as readonly -->
+ <CellUUIDReadonly :model-value="modelValue" />
+</template>
diff --git a/packages/nc-gui/components/cell/UUID/Readonly.vue b/packages/nc-gui/components/cell/UUID/Readonly.vue
new file mode 100644
index 0000000000..da77ebba1d
--- /dev/null
+++ b/packages/nc-gui/components/cell/UUID/Readonly.vue
@@ -0,0 +1,24 @@
+<script lang="ts" setup>
+interface Props {
+ modelValue?: string | null
+}
+
+defineProps<Props>()
+
+const rowHeight = inject(RowHeightInj, ref(undefined))
+</script>
+
+<template>
+ <LazyCellClampedText
+ class="nc-cell-field nc-uuid-cell"
+ :value="modelValue"
+ :lines="rowHeight"
+ :style="{ 'word-break': 'break-word', 'font-family': 'monospace' }"
+ />
+</template>
+
+<style scoped>
+.nc-uuid-cell {
+ font-family: monospace;
+}
+</style>
diff --git a/packages/nc-gui/components/cell/UUID/index.vue b/packages/nc-gui/components/cell/UUID/index.vue
new file mode 100644
index 0000000000..5fa82df52c
--- /dev/null
+++ b/packages/nc-gui/components/cell/UUID/index.vue
@@ -0,0 +1,31 @@
+<script setup lang="ts">
+interface Props {
+ modelValue?: string | null
+}
+
+const props = defineProps<Props>()
+
+const { showNull } = useGlobal()
+
+const rowHeight = inject(RowHeightInj, ref(undefined))
+
+const vModel = useVModel(props, 'modelValue')
+</script>
+
+<template>
+ <span v-if="vModel === null && showNull" class="nc-cell-field nc-null uppercase">{{ $t('general.null') }}</span>
+
+ <LazyCellClampedText
+ v-else
+ class="nc-cell-field nc-uuid-cell"
+ :value="vModel"
+ :lines="rowHeight"
+ :style="{ 'word-break': 'break-word', 'font-family': 'monospace' }"
+ />
+</template>
+
+<style scoped>
+.nc-uuid-cell {
+ font-family: monospace;
+}
+</style>
diff --git a/packages/nc-gui/components/smartsheet/Cell.vue b/packages/nc-gui/components/smartsheet/Cell.vue
index eddc7cc435..31a1fee992 100644
--- a/packages/nc-gui/components/smartsheet/Cell.vue
+++ b/packages/nc-gui/components/smartsheet/Cell.vue
@@ -190,6 +190,7 @@ const cellType = computed(() => {
if (isAI(column.value)) return 'ai'
if (isTextArea(column.value)) return 'textarea'
if (isGeoData(column.value)) return 'geoData'
+ if (isUUID(column.value)) return 'uuid'
if (isBoolean(column.value, abstractType.value)) return 'checkbox'
if (isAttachment(column.value)) return 'attachment'
if (isSingleSelect(column.value)) return 'singleSelect'
@@ -205,6 +206,7 @@ const cellType = computed(() => {
if (isPhoneNumber(column.value)) return 'phoneNumber'
if (isPercent(column.value)) return 'percent'
if (isCurrency(column.value)) return 'currency'
+ if (isColour(column.value)) return 'colour'
if (isUser(column.value)) return 'user'
if (isDecimal(column.value)) return 'decimal'
if (isInt(column.value, abstractType.value)) return 'integer'
@@ -236,8 +238,9 @@ const showReadonlyField = computed(() => {
}
case 'checkbox':
- case 'rating': {
- return readOnly.value
+ case 'rating':
+ case 'uuid': {
+ return true // UUID is always read-only
}
case 'singleSelect':
@@ -343,6 +346,8 @@ const cellClassName = computed(() => {
<CellGeoData v-else-if="cellType === 'geoData'" v-model="vModel" />
+ <CellUUID v-else-if="cellType === 'uuid'" v-model="vModel" />
+
<template v-else-if="cellType === 'checkbox'">
<CellCheckboxReadonly v-if="showReadonlyField" :model-value="vModel" />
<CellCheckboxEditor v-else v-model="vModel" />
@@ -443,6 +448,11 @@ const cellClassName = computed(() => {
<CellCurrencyEditor v-else v-model="vModel" @save="emitSave" />
</template>
+ <template v-else-if="cellType === 'colour'">
+ <CellColourReadonly v-if="showReadonlyField" :model-value="vModel" />
+ <CellColourEditor v-else v-model="vModel" />
+ </template>
+
<LazyCellUser
v-else-if="cellType === 'user'"
v-model="vModel"
diff --git a/packages/nc-gui/components/smartsheet/Toolbar.vue b/packages/nc-gui/components/smartsheet/Toolbar.vue
index 160a35c1a6..05461d3d54 100644
--- a/packages/nc-gui/components/smartsheet/Toolbar.vue
+++ b/packages/nc-gui/components/smartsheet/Toolbar.vue
@@ -5,10 +5,19 @@ defineProps<{
const isPublic = inject(IsPublicInj, ref(false))
-const { isGrid, isGallery, isKanban, isMap, isCalendar, isForm, isViewOperationsAllowed } = useSmartsheetStoreOrThrow()
+const isLocked = inject(IsLockedInj, ref(false))
+
+const activeView = inject(ActiveViewInj, ref())
+
+const { isGrid, isGallery, isKanban, isMap, isCalendar, isForm, isViewOperationsAllowed, allFilters } =
+ useSmartsheetStoreOrThrow()
const { isUIAllowed } = useRoles()
+const { hasPersonalViewPermission } = usePersonalViewPermissions(activeView)
+
+const canSyncFilter = hasPersonalViewPermission('filterSync')
+
const { isSharedBase } = storeToRefs(useBase())
const { isMobileMode } = useGlobal()
@@ -19,6 +28,8 @@ const { isViewsLoading } = storeToRefs(useViewsStore())
const { isViewActionsEnabled } = useActionPane()
+const { blockPinnedFilter } = useEeConfig()
+
const containerRef = ref<HTMLElement>()
const { width } = useElementSize(containerRef)
@@ -34,10 +45,23 @@ const isTab = computed(() => {
return width.value > 1200
})
+/** EE only: Check if any filters are pinned to the toolbar.
+ * Hidden for restricted editors in collaborative/locked views β€” they cannot modify filters.
+ * Visible for personal view owners β€” they have full control over view config. */
+const hasPinnedFilters = computed(() => {
+ if (!isEeUI) return false
+ if (blockPinnedFilter.value) return false
+ if (isLocked.value || !canSyncFilter.value) return false
+ return allFilters.value.some((f) => f.id && !f.is_group && parseProp(f.meta)?.pinned === true)
+})
+
const isToolbarIconMode = computed(() => {
if (width.value < 768) {
return true
}
+ if (hasPinnedFilters.value) {
+ return true
+ }
return false
})
@@ -111,6 +135,8 @@ provide(IsToolbarIconMode, isToolbarIconMode)
<!-- <LazySmartsheetToolbarQrScannerButton v-if="isMobileMode && (isGrid || isKanban || isGallery)" /> -->
+ <SmartsheetToolbarPinnedFilters v-if="isEeUI && !blockPinnedFilter && !isLocked && canSyncFilter && (isGrid || isGallery || isKanban || isMap)" />
+
<div class="flex-1" />
</template>
diff --git a/packages/nc-gui/components/smartsheet/column/ColourOptions.vue b/packages/nc-gui/components/smartsheet/column/ColourOptions.vue
new file mode 100644
index 0000000000..5f3057f958
--- /dev/null
+++ b/packages/nc-gui/components/smartsheet/column/ColourOptions.vue
@@ -0,0 +1,25 @@
+<script setup lang="ts">
+import { ColumnHelper, UITypes } from 'nocodb-sdk'
+
+const props = defineProps<{
+ value: any
+}>()
+
+const emit = defineEmits(['update:value'])
+
+const vModel = useVModel(props, 'value', emit)
+
+// Set default meta values from column helper
+vModel.value.meta = {
+ ...ColumnHelper.getColumnDefaultMeta(UITypes.Colour),
+ ...(vModel.value.meta || {}),
+}
+</script>
+
+<template>
+ <div class="w-full">
+ <!-- Configuration options (default color, display format, swatch style/size) -->
+ <!-- are currently using defaults from ColumnHelper. -->
+ <!-- Uncomment and wire up UI here when customization is needed. -->
+ </div>
+</template>
diff --git a/packages/nc-gui/components/smartsheet/column/EditOrAdd.vue b/packages/nc-gui/components/smartsheet/column/EditOrAdd.vue
index 4056f2e32d..c2bc4f1c4c 100644
--- a/packages/nc-gui/components/smartsheet/column/EditOrAdd.vue
+++ b/packages/nc-gui/components/smartsheet/column/EditOrAdd.vue
@@ -115,6 +115,8 @@ const {
showUpgradeToUseAiButtonField,
blockAiButtonField,
blockUnique,
+ blockColourField,
+ showUpgradeToUseColourField,
} = useEeConfig()
const { eventBus } = useSmartsheetStoreOrThrow()
@@ -139,7 +141,7 @@ const isKanban = inject(IsKanbanInj, ref(false))
const readOnly = computed(() => props.readonly)
-const { isMysql, isDatabricks, isXcdbBase } = useBase()
+const { base, isMysql, isPg, isDatabricks, isXcdbBase } = useBase()
const { canEnableUniqueConstraint, isUniqueConstraintSupportedType } = useUniqueConstraintHelpers()
@@ -166,6 +168,10 @@ const columnUidt = computed({
return
}
+ if (value === UITypes.Colour && showUpgradeToUseColourField()) {
+ return
+ }
+
formState.value.uidt = value
},
})
@@ -229,6 +235,7 @@ const uiFilters = (t: UiTypesType) => {
const showDeprecatedField = !t.deprecated || showDeprecated.value
const showAiFields = [AIPrompt, AIButton].includes(t.name) ? isAiBetaFeaturesEnabled.value && !isEdit.value && isEeUI : true
+ const showColourField = t.name === UITypes.Colour ? isEeUI : true
const isAllowToAddInFormView = isForm.value ? !isFormViewHiddenCol(t.name as UITypes) : true
const showLTAR =
@@ -238,6 +245,10 @@ const uiFilters = (t: UiTypesType) => {
if (column?.value?.uidt === UITypes.Formula) {
formulaColumnTypeValid = [UITypes.SingleLineText].includes(t.name)
}
+
+ // UUID is only supported for PostgreSQL databases
+ const showUUID = t.name !== UITypes.UUID || isPg(meta.value?.source_id)
+
return (
systemFiledNotEdited &&
geoDataToggle &&
@@ -245,8 +256,10 @@ const uiFilters = (t: UiTypesType) => {
showDeprecatedField &&
isAllowToAddInFormView &&
showAiFields &&
+ showColourField &&
showLTAR &&
- formulaColumnTypeValid
+ formulaColumnTypeValid &&
+ showUUID
)
}
@@ -337,6 +350,8 @@ const onSelectType = (uidt: UITypes | typeof AIButton | typeof AIPrompt, fromSea
if ((uidt === AIPrompt && blockAiPromptField.value) || (uidt === AIButton && blockAiButtonField.value)) return
+ if (uidt === UITypes.Colour && blockColourField.value) return
+
if (fromSearchList && !isEdit.value && aiAutoSuggestMode.value) {
onInit()
}
@@ -1332,6 +1347,7 @@ const unique = computed({
/>
<SmartsheetColumnDurationOptions v-if="formState.uidt === UITypes.Duration" v-model:value="formState" />
<SmartsheetColumnRatingOptions v-if="formState.uidt === UITypes.Rating" v-model:value="formState" />
+ <SmartsheetColumnColourOptions v-if="formState.uidt === UITypes.Colour" v-model:value="formState" />
<SmartsheetColumnCheckboxOptions v-if="formState.uidt === UITypes.Checkbox" v-model:value="formState" />
<SmartsheetColumnLookupOptions v-if="formState.uidt === UITypes.Lookup" v-model:value="formState" />
<SmartsheetColumnDateOptions v-if="formState.uidt === UITypes.Date" v-model:value="formState" />
@@ -1396,6 +1412,7 @@ const unique = computed({
isXcdbBase(meta?.source_id) &&
!isVirtualCol(formState) &&
isUniqueConstraintSupportedType(formState.uidt, formState.meta) &&
+ !isUUID(formState) &&
isEeUI
"
class="flex"
@@ -1473,7 +1490,8 @@ const unique = computed({
!(isMysql(meta?.source_id) && (isJSON(formState) || isTextArea(formState))) &&
!isDatabricks(meta?.source_id) &&
formState.unique &&
- !isAI(formState)
+ !isAI(formState) &&
+ !isUUID(formState)
"
title="Cannot set default value as Unique constraint is set. Please disable unique constraint to configure default value"
placement="right"
@@ -1491,7 +1509,8 @@ const unique = computed({
!isAttachment(formState) &&
!(isMysql(meta?.source_id) && (isJSON(formState) || isTextArea(formState))) &&
!isDatabricks(meta?.source_id) &&
- !isAI(formState)
+ !isAI(formState) &&
+ !isUUID(formState)
"
v-model:value="formState"
v-model:is-visible-default-value-input="isVisibleDefaultValueInput"
diff --git a/packages/nc-gui/components/smartsheet/column/FormulaInputHelper.vue b/packages/nc-gui/components/smartsheet/column/FormulaInputHelper.vue
index a60488be4e..15370af6fa 100644
--- a/packages/nc-gui/components/smartsheet/column/FormulaInputHelper.vue
+++ b/packages/nc-gui/components/smartsheet/column/FormulaInputHelper.vue
@@ -763,7 +763,7 @@ const validationErrorDisplay = computed(() => {
}"
:class="{
'!border-nc-border-red formula-error':
- !validationErrorDisplay?.validateStatus || validationErrorDisplay?.validateStatus !== 'success',
+ validationErrorDisplay?.validateStatus && validationErrorDisplay?.validateStatus !== 'success',
'!focus-within:border-nc-border-brand shadow-default hover:shadow-hover formula-success':
!validationErrorDisplay?.validateStatus || validationErrorDisplay?.validateStatus === 'success',
'bg-nc-bg-default': isAiModeFieldModal,
diff --git a/packages/nc-gui/components/smartsheet/column/UITypesOptionsWithSearch.vue b/packages/nc-gui/components/smartsheet/column/UITypesOptionsWithSearch.vue
index 96df368a0f..3135d41874 100644
--- a/packages/nc-gui/components/smartsheet/column/UITypesOptionsWithSearch.vue
+++ b/packages/nc-gui/components/smartsheet/column/UITypesOptionsWithSearch.vue
@@ -12,7 +12,7 @@ const { options } = toRefs(props)
const { isMetaReadOnly } = useRoles()
-const { showUpgradeToUseAiPromptField, showUpgradeToUseAiButtonField } = useEeConfig()
+const { showUpgradeToUseAiPromptField, showUpgradeToUseAiButtonField, showUpgradeToUseColourField, showUpgradeToUseUuidField } = useEeConfig()
const searchQuery = ref('')
@@ -53,6 +53,15 @@ const onClick = (uidt: UITypes) => {
return
}
+ if (uidt === UITypes.Colour && showUpgradeToUseColourField()) {
+ return
+ }
+
+ // EE-only: gate UUID field type behind plan feature flag
+ if (uidt === UITypes.UUID && showUpgradeToUseUuidField()) {
+ return
+ }
+
emits('selected', uidt)
}
@@ -86,7 +95,7 @@ const handleKeydownEnter = () => {
onMounted(() => {
searchQuery.value = ''
- activeFieldIndex.value = options.value.findIndex((o) => o.name === UITypes.SingleLineText)
+ activeFieldIndex.value = options.value?.findIndex((o) => o.name === UITypes.SingleLineText) ?? -1
})
const { isSystem } = useColumnCreateStoreOrThrow()
@@ -123,7 +132,7 @@ const { isSystem } = useColumnCreateStoreOrThrow()
alt="No search results found"
/>
- {{ options.length ? $t('title.noResultsMatchedYourSearch') : 'The list is empty' }}
+ {{ options?.length ? $t('title.noResultsMatchedYourSearch') : 'The list is empty' }}
</div>
<GeneralSourceRestrictionTooltip
v-for="(option, index) in filteredOptions"
diff --git a/packages/nc-gui/components/smartsheet/grid/canvas/cells/Colour.ts b/packages/nc-gui/components/smartsheet/grid/canvas/cells/Colour.ts
new file mode 100644
index 0000000000..2e3d223418
--- /dev/null
+++ b/packages/nc-gui/components/smartsheet/grid/canvas/cells/Colour.ts
@@ -0,0 +1,220 @@
+import { ColumnHelper, UITypes, isValidHexColour } from 'nocodb-sdk'
+import { renderTag } from '../utils/canvas'
+
+/** Pixel sizes for the colour swatch at each configured size. */
+const SWATCH_SIZE: Record<string, number> = {
+ small: 16,
+ medium: 20,
+ large: 24,
+}
+
+/** Border radius for square swatches (circles use half the swatch size). */
+const SQUARE_BORDER_RADIUS = 3
+
+export const ColourCellRenderer: CellRenderer = {
+ render(ctx: CanvasRenderingContext2D, props: CellRendererOptions) {
+ const {
+ value,
+ x,
+ y,
+ width,
+ height,
+ column,
+ padding = 10,
+ readonly,
+ tag = {},
+ setCursor,
+ mousePosition,
+ getColor,
+ isUnderLookup,
+ } = props
+
+ const {
+ renderAsTag,
+ tagPaddingX = 6,
+ tagHeight = 20,
+ tagRadius = 6,
+ tagBgColor = getColor('#f4f4f0', themeV4Colors.base.white),
+ tagSpacing = 4,
+ tagBorderColor,
+ tagBorderWidth,
+ } = tag
+
+ // Get column metadata with defaults
+ const columnMeta = {
+ ...ColumnHelper.getColumnDefaultMeta(UITypes.Colour),
+ ...parseProp(column?.meta),
+ }
+
+ // Parse and validate the color value
+ const colorValue = value ? String(value).trim() : null
+ const isValidColor = isValidHexColour(colorValue)
+ const displayColor = isValidColor ? colorValue : columnMeta.defaultColor || '#FFFFFF'
+
+ // Don't render anything if no value
+ if (!colorValue) {
+ return
+ }
+
+ // Calculate swatch size based on configuration
+ const swatchSize = SWATCH_SIZE[columnMeta.swatchSize] || SWATCH_SIZE.medium
+ const borderRadius = columnMeta.swatchStyle === 'circle' ? swatchSize / 2 : SQUARE_BORDER_RADIUS
+
+ // Calculate positions
+ const swatchX = x + padding
+ const swatchY = y + (height - swatchSize) / 2
+ const hexTextX = swatchX + swatchSize + 8
+ const hexTextY = y + height / 2
+
+ // Set cursor to pointer when hovering over the cell
+ if (mousePosition && !readonly) {
+ const isHovered =
+ mousePosition.x >= x &&
+ mousePosition.x <= x + width &&
+ mousePosition.y >= y &&
+ mousePosition.y <= y + height
+
+ if (isHovered) {
+ setCursor('pointer')
+ }
+ }
+
+ if (renderAsTag) {
+ let tagWidth = swatchSize + tagPaddingX * 2
+
+ // Add space for hex code if display format includes it
+ if (colorValue && (columnMeta.displayFormat === 'swatch_hex' || columnMeta.displayFormat === 'hex_only')) {
+ const hexText = colorValue.toUpperCase()
+ ctx.font = '12px Inter'
+ const hexTextWidth = ctx.measureText(hexText).width
+ tagWidth =
+ columnMeta.displayFormat === 'hex_only'
+ ? hexTextWidth + tagPaddingX * 2
+ : swatchSize + 8 + hexTextWidth + tagPaddingX * 2
+ }
+
+ const initialY = y + height / 2 - tagHeight / 2
+
+ renderTag(ctx, {
+ x: x + tagSpacing,
+ y: initialY,
+ width: tagWidth,
+ height: tagHeight,
+ radius: tagRadius,
+ fillStyle: tagBgColor,
+ borderColor: tagBorderColor,
+ borderWidth: tagBorderWidth,
+ })
+
+ // Render content inside tag
+ if (colorValue || isUnderLookup) {
+ let contentX = x + tagSpacing + tagPaddingX
+
+ if (columnMeta.displayFormat !== 'hex_only') {
+ // Render color swatch
+ ctx.fillStyle = displayColor
+ ctx.beginPath()
+ if (columnMeta.swatchStyle === 'circle') {
+ ctx.arc(contentX + swatchSize / 2, initialY + tagHeight / 2, swatchSize / 2, 0, 2 * Math.PI)
+ } else {
+ ctx.roundRect(contentX, initialY + (tagHeight - swatchSize) / 2, swatchSize, swatchSize, borderRadius)
+ }
+ ctx.fill()
+
+ ctx.strokeStyle = getColor('#d0d5dd', themeV4Colors.gray['300'])
+ ctx.lineWidth = 1
+ ctx.stroke()
+
+ contentX += swatchSize + 8
+ }
+
+ if (columnMeta.displayFormat !== 'swatch_only' && colorValue) {
+ ctx.font = '12px Inter'
+ ctx.fillStyle = getColor(themeV4Colors.gray['600'])
+ ctx.textBaseline = 'middle'
+ ctx.textAlign = 'left'
+ ctx.fillText(colorValue.toUpperCase(), contentX, initialY + tagHeight / 2)
+ }
+ }
+
+ return {
+ x: x + tagWidth + tagSpacing,
+ y: y + tagHeight + tagSpacing,
+ }
+ } else {
+ // Regular cell rendering
+ if (colorValue) {
+ let contentX = swatchX
+
+ if (columnMeta.displayFormat !== 'hex_only') {
+ ctx.fillStyle = displayColor
+ ctx.beginPath()
+ if (columnMeta.swatchStyle === 'circle') {
+ ctx.arc(contentX + swatchSize / 2, swatchY + swatchSize / 2, swatchSize / 2, 0, 2 * Math.PI)
+ } else {
+ ctx.roundRect(contentX, swatchY, swatchSize, swatchSize, borderRadius)
+ }
+ ctx.fill()
+
+ ctx.strokeStyle = getColor('#d0d5dd', themeV4Colors.gray['300'])
+ ctx.lineWidth = 1
+ ctx.stroke()
+
+ contentX = hexTextX
+ }
+
+ if (columnMeta.displayFormat !== 'swatch_only' && colorValue) {
+ ctx.font = '12px Inter'
+ ctx.fillStyle = getColor(themeV4Colors.gray['600'])
+ ctx.textBaseline = 'middle'
+ ctx.textAlign = 'left'
+ ctx.fillText(colorValue.toUpperCase(), contentX, hexTextY)
+ }
+ }
+ }
+ },
+
+ async handleClick({ row, column, makeCellEditable, selected, readonly, formula }) {
+ if (
+ !row ||
+ !column ||
+ readonly ||
+ formula ||
+ column.readonly ||
+ column.columnObj?.readonly ||
+ !column.isCellEditable ||
+ column.isSyncedColumn ||
+ !selected
+ ) {
+ return false
+ }
+
+ makeCellEditable(row, column)
+ return true
+ },
+
+ async handleKeyDown(ctx) {
+ const { e, row, column, readonly, makeCellEditable } = ctx
+ if (column.readonly || readonly || column.columnObj?.readonly || !column.isCellEditable || column.isSyncedColumn)
+ return false
+
+ // Open color picker on Enter
+ if (e.key === 'Enter') {
+ makeCellEditable(row, column)
+ return true
+ }
+
+ // Handle Delete/Backspace to clear the value
+ if (e.key === 'Delete' || e.key === 'Backspace') {
+ row.row[column.title] = null
+ try {
+ await ctx.updateOrSaveRow(row, column.title, undefined, undefined, undefined, ctx.path)
+ } catch (e: any) {
+ message.error(await extractSdkResponseErrorMsg(e))
+ }
+ return true
+ }
+
+ return false
+ },
+}
diff --git a/packages/nc-gui/components/smartsheet/grid/canvas/cells/UUID.ts b/packages/nc-gui/components/smartsheet/grid/canvas/cells/UUID.ts
new file mode 100644
index 0000000000..4ef01e73d7
--- /dev/null
+++ b/packages/nc-gui/components/smartsheet/grid/canvas/cells/UUID.ts
@@ -0,0 +1,57 @@
+import { renderMultiLineText, renderTagLabel } from '../utils/canvas'
+import { showFieldEditWarning } from '../utils/cell'
+
+export const UUIDCellRenderer: CellRenderer = {
+ render: (ctx, props) => {
+ const { value, x, y, width, height, pv, padding, textColor = themeV4Colors.gray['600'], getColor } = props
+ const text = (Array.isArray(value) ? value.join(',') : value?.toString()) ?? ''
+
+ if (!text) {
+ return {
+ x,
+ y,
+ }
+ }
+
+ if (props.tag?.renderAsTag) {
+ return renderTagLabel(ctx, { ...props, text })
+ } else {
+ const { x: xOffset, y: yOffset } = renderMultiLineText(ctx, {
+ x: x + padding,
+ y,
+ text,
+ maxWidth: width - padding * 2,
+ fontFamily: `${pv ? 600 : 500} 13px Inter`,
+ fillStyle: pv ? getColor(themeV4Colors.brand['500']) : getColor(textColor),
+ height,
+ })
+
+ return {
+ x: xOffset,
+ y: yOffset,
+ }
+ }
+ },
+ handleClick: async (ctx) => {
+ const { isDoubleClick } = ctx
+
+ // Show read-only warning on double-click
+ if (isDoubleClick) {
+ showFieldEditWarning()
+ return true
+ }
+
+ return false
+ },
+ handleKeyDown: async (ctx) => {
+ // UUID fields are read-only, show warning on edit attempt
+ const { e } = ctx
+
+ if (e.key.length === 1) {
+ showFieldEditWarning()
+ return true
+ }
+
+ return false
+ },
+}
diff --git a/packages/nc-gui/components/smartsheet/grid/canvas/cells/index.ts b/packages/nc-gui/components/smartsheet/grid/canvas/cells/index.ts
index cccbfc18d9..79975aea74 100644
--- a/packages/nc-gui/components/smartsheet/grid/canvas/cells/index.ts
+++ b/packages/nc-gui/components/smartsheet/grid/canvas/cells/index.ts
@@ -26,6 +26,7 @@ import { JsonCellRenderer } from './Json'
import { BarcodeCellRenderer } from './Barcode'
import { QRCodeCellRenderer } from './QRCode'
import { RatingCellRenderer } from './Rating'
+import { ColourCellRenderer } from './Colour'
import { UserFieldCellRenderer } from './User'
import { SingleSelectCellRenderer } from './SingleSelect'
import { MultiSelectCellRenderer } from './MultiSelect'
@@ -35,6 +36,7 @@ import { LookupCellRenderer } from './Lookup'
import { ButtonCellRenderer } from './Button'
import { LtarCellRenderer } from './LTAR'
import { FormulaCellRenderer } from './Formula'
+import { UUIDCellRenderer } from './UUID'
import { GenericReadOnlyRenderer } from './GenericReadonlyRenderer'
import { NullCellRenderer } from './Null'
import { PlainCellRenderer } from './Plain'
@@ -123,6 +125,7 @@ export function useGridCellHandler(params: {
cellTypesRegistry.set(UITypes.Barcode, BarcodeCellRenderer)
cellTypesRegistry.set(UITypes.QrCode, QRCodeCellRenderer)
cellTypesRegistry.set(UITypes.Rating, RatingCellRenderer)
+ cellTypesRegistry.set(UITypes.Colour, ColourCellRenderer)
cellTypesRegistry.set(UITypes.User, UserFieldCellRenderer)
cellTypesRegistry.set(UITypes.CreatedBy, UserFieldCellRenderer)
cellTypesRegistry.set(UITypes.LastModifiedBy, UserFieldCellRenderer)
@@ -136,6 +139,7 @@ export function useGridCellHandler(params: {
cellTypesRegistry.set(UITypes.Formula, FormulaCellRenderer)
cellTypesRegistry.set(UITypes.Geometry, SingleLineTextCellRenderer)
cellTypesRegistry.set(UITypes.SpecificDBType, SingleLineTextCellRenderer)
+ cellTypesRegistry.set(UITypes.UUID, UUIDCellRenderer)
cellTypesRegistry.set(UITypes.ForeignKey, GenericReadOnlyRenderer)
cellTypesRegistry.set(UITypes.ID, GenericReadOnlyRenderer)
diff --git a/packages/nc-gui/components/smartsheet/grid/canvas/composables/useCanvasTable.ts b/packages/nc-gui/components/smartsheet/grid/canvas/composables/useCanvasTable.ts
index 3d832729bf..25228a4ee3 100644
--- a/packages/nc-gui/components/smartsheet/grid/canvas/composables/useCanvasTable.ts
+++ b/packages/nc-gui/components/smartsheet/grid/canvas/composables/useCanvasTable.ts
@@ -7,6 +7,7 @@ import {
isOrderCol,
isReadonlyVirtualColumn,
isSystemColumn,
+ isUUID,
isVirtualCol,
ncHasProperties,
} from 'nocodb-sdk'
@@ -785,11 +786,12 @@ export function useCanvasTable({
if (removeInlineAddRecord.value && selection.value.start.row >= EXTERNAL_SOURCE_VISIBLE_ROWS) return null
const selectedColumn = columns.value[selection.value.end.col]
- // If the cell is virtual or system column, hide the fill handler
+ // If the cell is virtual, system column, AI prompt, or UUID (read-only auto-generated), hide the fill handler
if (
selectedColumn?.virtual ||
isSystemColumn(selectedColumn?.columnObj) ||
- (selectedColumn?.columnObj && isAIPromptCol(selectedColumn?.columnObj))
+ (selectedColumn?.columnObj && isAIPromptCol(selectedColumn?.columnObj)) ||
+ (selectedColumn?.columnObj && isUUID(selectedColumn?.columnObj))
) {
return null
}
diff --git a/packages/nc-gui/components/smartsheet/grid/canvas/composables/useCopyPaste.ts b/packages/nc-gui/components/smartsheet/grid/canvas/composables/useCopyPaste.ts
index 99a4544e39..c4915cb034 100644
--- a/packages/nc-gui/components/smartsheet/grid/canvas/composables/useCopyPaste.ts
+++ b/packages/nc-gui/components/smartsheet/grid/canvas/composables/useCopyPaste.ts
@@ -171,6 +171,14 @@ export function useCopyPaste({
return false
}
+ // Skip pasting UUID columns (read-only, auto-generated)
+ if (col.uidt === UITypes.UUID) {
+ if (showInfo) {
+ message.toast(t('msg.info.computedFieldEditWarning'))
+ }
+ return false
+ }
+
// skip pasting virtual columns (including LTAR columns for now) and system columns
if (isVirtualCol(col) || isSystemColumn(col) || col?.readonly) {
if (!avoidLtarRestrictions || !isLinksOrLTAR(col)) {
diff --git a/packages/nc-gui/components/smartsheet/grid/canvas/index.vue b/packages/nc-gui/components/smartsheet/grid/canvas/index.vue
index 96d07d5535..b55ccea280 100644
--- a/packages/nc-gui/components/smartsheet/grid/canvas/index.vue
+++ b/packages/nc-gui/components/smartsheet/grid/canvas/index.vue
@@ -2598,7 +2598,7 @@ onClickOutside(
isExpandedCellInputExist() ||
isLinkDropdownExist() ||
isGeneralOverlayActive() ||
- (element && hasAncestorWithClass(element, ['ant-select-dropdown', 'nc-dropdown']))
+ (element && hasAncestorWithClass(element, ['ant-select-dropdown', 'nc-dropdown', 'nc-colour-picker-modal']))
) {
return
}
diff --git a/packages/nc-gui/components/smartsheet/grid/canvas/utils/cell.ts b/packages/nc-gui/components/smartsheet/grid/canvas/utils/cell.ts
index f65b44e18d..5032f5595c 100644
--- a/packages/nc-gui/components/smartsheet/grid/canvas/utils/cell.ts
+++ b/packages/nc-gui/components/smartsheet/grid/canvas/utils/cell.ts
@@ -125,6 +125,7 @@ export const NO_EDITABLE_CELL = [
UITypes.LastModifiedTime,
UITypes.CreatedTime,
UITypes.Formula,
+ UITypes.UUID,
]
export const renderAsCellLookupOrLtarValue = [
diff --git a/packages/nc-gui/components/smartsheet/header/CellIcon.ts b/packages/nc-gui/components/smartsheet/header/CellIcon.ts
index a70d3a9dca..858e17b753 100644
--- a/packages/nc-gui/components/smartsheet/header/CellIcon.ts
+++ b/packages/nc-gui/components/smartsheet/header/CellIcon.ts
@@ -1,9 +1,13 @@
+// PR review fix #5: UITypes import no longer needed after removing redundant check
import { type ColumnType } from 'nocodb-sdk'
import type { PropType } from '@vue/runtime-core'
export const renderIcon = (column: ColumnType, abstractType: any) => {
if (isPrimaryKey(column)) {
return iconMap.cellSystemKey
+ // PR review fix #5: isUUID() already checks column.uidt === UITypes.UUID
+ } else if (isUUID(column)) {
+ return iconMap.cellUuid
} else if (isSpecificDBType(column)) {
return iconMap.cellDb
} else if (isJSON(column)) {
@@ -32,6 +36,8 @@ export const renderIcon = (column: ColumnType, abstractType: any) => {
return iconMap.cellTime
} else if (isRating(column)) {
return iconMap.cellRating
+ } else if (isColour(column)) {
+ return iconMap.cellColour
} else if (isAttachment(column)) {
return iconMap.cellAttachment
} else if (isDecimal(column)) {
diff --git a/packages/nc-gui/components/smartsheet/header/ColumnMenu.vue b/packages/nc-gui/components/smartsheet/header/ColumnMenu.vue
index 0467fcbe55..6109ffe72c 100644
--- a/packages/nc-gui/components/smartsheet/header/ColumnMenu.vue
+++ b/packages/nc-gui/components/smartsheet/header/ColumnMenu.vue
@@ -171,6 +171,11 @@ const duplicateVirtualColumn = async () => {
colOptions: undefined,
order: undefined,
system: false,
+ // Clear UUID-specific metadata to avoid conflicts during duplication
+ ...(column!.value.uidt === UITypes.UUID ? {
+ internal_meta: undefined,
+ unique: undefined, // Let backend set this automatically for UUID
+ } : {}),
}
try {
@@ -730,7 +735,7 @@ const onDeleteColumn = () => {
<PaymentUpgradeBadgeProvider :feature="PlanFeatureTypes.FEATURE_TABLE_AND_FIELD_PERMISSIONS">
<template #default="{ click }">
<NcMenuItem
- :disabled="!showEditRestrictedColumnTooltip(column) || (column?.readonly && meta?.synced)"
+ :disabled="!showEditRestrictedColumnTooltip(column) || (column?.readonly && meta?.synced) || isUUID(column)"
@click="
click(PlanFeatureTypes.FEATURE_TABLE_AND_FIELD_PERMISSIONS, () => {
onFieldPermissions()
diff --git a/packages/nc-gui/components/smartsheet/toolbar/ColumnFilter.vue b/packages/nc-gui/components/smartsheet/toolbar/ColumnFilter.vue
index bc0a811e7a..76a05381a1 100644
--- a/packages/nc-gui/components/smartsheet/toolbar/ColumnFilter.vue
+++ b/packages/nc-gui/components/smartsheet/toolbar/ColumnFilter.vue
@@ -131,12 +131,20 @@ const isLockedView = computed(() => isLocked.value && isViewFilter.value)
const { $e } = useNuxtApp()
-const { nestedFilters, isForm, eventBus } =
+const { blockToggleFilter, showUpgradeToUseToggleFilter, blockPinnedFilter, showUpgradeToUsePinnedFilter } = useEeConfig()
+
+const {
+ nestedFilters,
+ isForm,
+ eventBus,
+ allFilters: smartsheetAllFilters,
+} =
widget.value || workflow.value
? {
nestedFilters: ref([]),
isForm: ref(false),
eventBus: null,
+ allFilters: ref([]),
}
: useSmartsheetStoreOrThrow()
@@ -339,6 +347,36 @@ watch(
},
)
+// EE only: Watch the smartsheet store's allFilters for external changes (e.g. from PinnedFilters)
+// and sync them back to the local filters so the filter menu stays in sync
+if (isEeUI) {
+ watch(
+ smartsheetAllFilters,
+ (storeFilters) => {
+ if (!storeFilters?.length) return
+ for (const storeFilter of storeFilters) {
+ if (!storeFilter.id) continue
+ const localFilter = filters.value.find((f) => f.id === storeFilter.id)
+ if (!localFilter) continue
+
+ // Sync value, enabled, and meta if they differ
+ if (localFilter.value !== storeFilter.value) {
+ localFilter.value = storeFilter.value
+ }
+ if (localFilter.enabled !== storeFilter.enabled) {
+ localFilter.enabled = storeFilter.enabled
+ }
+ const localMeta = parseProp(localFilter.meta)
+ const storeMeta = parseProp(storeFilter.meta)
+ if (localMeta?.pinned !== storeMeta?.pinned) {
+ localFilter.meta = storeFilter.meta
+ }
+ }
+ },
+ { deep: true },
+ )
+}
+
const filtersCount = computed(() => {
return Object.values(allFilters.value).reduce((acc, filters) => {
return acc + filters.filter((el) => !el.is_group).length
@@ -483,6 +521,15 @@ const addFilterGroup = async (filter?: Partial<FilterType>) => {
const copyFilter = (filter: Filter, isGroup = false) => {
const filterToCopy = clone(filter)
+ // EE only: Strip pinned state from copied filter (pinned filters are EE feature)
+ if (isEeUI && filterToCopy.meta) {
+ const meta = parseProp(filterToCopy.meta)
+ if (meta?.pinned) {
+ delete meta.pinned
+ filterToCopy.meta = meta
+ }
+ }
+
if (isGroup) {
addFilterGroup(filterToCopy)
} else {
@@ -593,6 +640,86 @@ const onLogicalOpUpdate = async (filter: Filter, index: number) => {
await saveOrUpdate(filter, index)
}
+const onToggleFilterChange = (filter: ColumnFilterType, index: number) => {
+ if (blockToggleFilter.value) {
+ showUpgradeToUseToggleFilter()
+ return
+ }
+ onEnabledChange(filter, index)
+}
+
+const onEnabledChange = async (filter: ColumnFilterType, index: number) => {
+ const newEnabled = filter.enabled === false ? true : false
+ $e('a:filter:toggle-enabled', { enabled: newEnabled, isGroup: !!filter.is_group })
+ filter.enabled = newEnabled
+ await saveOrUpdate(filter, index)
+
+ if (isEeUI) {
+ // EE only: Refresh allFilters so ColumnFilterMenu can reactively update the enabled count
+ allFilters.value[parentId?.value ?? 'root'] = [...nonDeletedFilters.value]
+
+ // EE only: Sync enabled state to smartsheet store so PinnedFilters.vue reflects it
+ const storeFilter = smartsheetAllFilters.value.find((f) => f.id === filter.id)
+ if (storeFilter) {
+ storeFilter.enabled = filter.enabled
+ }
+ }
+}
+
+const MAX_PINNED_FILTERS = 3
+
+const pinnedFilterCount = computed(() => {
+ return visibleFilters.value.filter((f) => !f.is_group && parseProp(f.meta)?.pinned === true).length
+})
+
+const PINNABLE_TYPES = [UITypes.SingleSelect, UITypes.MultiSelect, UITypes.User, UITypes.CreatedBy, UITypes.LastModifiedBy]
+
+const isPinnableType = (filter: ColumnFilterType): boolean => {
+ const col = getColumn(filter)
+ return !!col && PINNABLE_TYPES.includes(col.uidt as UITypes)
+}
+
+const isFieldAlreadyPinned = (filter: ColumnFilterType): boolean => {
+ if (!filter.fk_column_id) return false
+ const isPinned = parseProp(filter.meta)?.pinned
+ if (isPinned) return false // this filter itself is the pinned one
+ return smartsheetAllFilters.value.some(
+ (f) => f.id !== filter.id && f.fk_column_id === filter.fk_column_id && !f.is_group && parseProp(f.meta)?.pinned === true,
+ )
+}
+
+const canPinFilter = (filter: ColumnFilterType): boolean => {
+ if (filter.is_group) return false
+ if (!isPinnableType(filter)) return false
+ if (isFieldAlreadyPinned(filter)) return false
+ const meta = parseProp(filter.meta)
+ return meta?.pinned || pinnedFilterCount.value < MAX_PINNED_FILTERS
+}
+
+const togglePinFilter = async (filter: ColumnFilterType, index: number) => {
+ const meta = parseProp(filter.meta) || {}
+ const newPinned = !meta.pinned
+ $e('a:filter:toggle-pin', { pinned: newPinned })
+ meta.pinned = newPinned
+ filter.meta = meta
+ await saveOrUpdate(filter, index)
+
+ // Sync pin state to smartsheet store's allFilters so PinnedFilters.vue updates immediately
+ const storeFilter = smartsheetAllFilters.value.find((f) => f.id === filter.id)
+ if (storeFilter) {
+ storeFilter.meta = { ...meta }
+ }
+}
+
+/** Tooltip text for the pin/unpin button β€” extracted from template for readability */
+const getPinTooltip = (filter: ColumnFilterType): string => {
+ if (!isPinnableType(filter)) return t('labels.pinNotSupported')
+ if (parseProp(filter.meta)?.pinned) return t('labels.unpinFromToolbar')
+ if (isFieldAlreadyPinned(filter)) return t('labels.fieldAlreadyPinned')
+ if (canPinFilter(filter)) return t('labels.pinToToolbar')
+ return t('labels.maxPinnedFilters', { count: MAX_PINNED_FILTERS })
+}
+
function onMoveCallback(event: any) {
// disable nested drag drop for now
if (event.from !== event.to) {
@@ -803,7 +930,7 @@ defineExpose({
}"
>
<div v-if="nested" class="flex min-w-full w-min items-center gap-1 mb-2">
- <div :class="[`nc-filter-logical-op-level-${nestedLevel}`]">
+ <div class="flex items-center gap-2" :class="[`nc-filter-logical-op-level-${nestedLevel}`]">
<slot name="start"></slot>
</div>
<div class="flex-grow"></div>
@@ -890,7 +1017,10 @@ defineExpose({
<template #item="{ element: filter, index: i }">
<div v-if="filter.status !== 'delete'" :key="i" class="nc-column-filter-item min-w-full w-min max-w-full">
<template v-if="filter.is_group">
- <div class="flex flex-col min-w-full w-min max-w-full gap-y-2">
+ <div
+ class="flex flex-col min-w-full w-min max-w-full gap-y-2"
+ :class="{ 'nc-filter-disabled-group': isEeUI && filter.enabled === false }"
+ >
<div
class="flex rounded-lg p-2 min-w-full w-min max-w-full border-1"
:class="[`nc-filter-nested-level-${nestedLevel}`]"
@@ -922,6 +1052,14 @@ defineExpose({
:is-temp-filters="isTempFilters"
>
<template #start>
+ <NcCheckbox
+ v-if="isEeUI"
+ :checked="filter.enabled !== false"
+ size="default"
+ :disabled="isLockedView || readOnly"
+ class="nc-filter-enabled-checkbox"
+ @change="onToggleFilterChange(filter, i)"
+ />
<span v-if="!visibleFilters.indexOf(filter)" class="flex items-center nc-filter-where-label ml-1">{{
$t('labels.where')
}}</span>
@@ -997,7 +1135,22 @@ defineExpose({
</div>
</template>
- <div v-else class="flex flex-row gap-x-0 w-full nc-filter-wrapper" :class="`nc-filter-wrapper-${filter.fk_column_id}`">
+ <div v-else class="flex items-center gap-2 w-full">
+ <NcCheckbox
+ v-if="isEeUI"
+ :checked="filter.enabled !== false"
+ size="default"
+ :disabled="isLockedView || readOnly"
+ class="nc-filter-enabled-checkbox"
+ @change="onToggleFilterChange(filter, i)"
+ />
+ <div
+ class="flex flex-row gap-x-0 flex-1 nc-filter-wrapper"
+ :class="[
+ `nc-filter-wrapper-${filter.fk_column_id}`,
+ { 'nc-filter-disabled-row': isEeUI && filter.enabled === false },
+ ]"
+ >
<div v-if="!visibleFilters.indexOf(filter)" class="flex items-center !min-w-18 !max-w-18 pl-3 nc-filter-where-label">
{{ $t('labels.where') }}
</div>
@@ -1308,6 +1461,32 @@ defineExpose({
<GeneralIcon icon="copy" />
</NcButton>
+ <NcTooltip v-if="!filter.readOnly && !readOnly && isEeUI && isViewFilter && !filter.is_group && !webHook && !link && !widget">
+ <template #title>
+ {{ getPinTooltip(filter) }}
+ </template>
+ <NcButton
+ v-e="['c:filter:pin']"
+ type="text"
+ size="small"
+ :disabled="!canPinFilter(filter) || isLockedView"
+ class="nc-filter-item-pin-btn self-center"
+ @click.stop="blockPinnedFilter ? showUpgradeToUsePinnedFilter() : togglePinFilter(filter, i)"
+ >
+ <GeneralIcon
+ :icon="parseProp(filter.meta)?.pinned ? 'ncPinOff' : 'ncPin'"
+ class="h-3.5 w-3.5"
+ :class="
+ (!canPinFilter(filter) && !parseProp(filter.meta)?.pinned) || isLockedView
+ ? 'text-nc-content-gray-muted'
+ : parseProp(filter.meta)?.pinned
+ ? 'text-primary'
+ : 'text-nc-content-gray-subtle2'
+ "
+ />
+ </NcButton>
+ </NcTooltip>
+
<NcButton
v-if="!filter.readOnly && !readOnly && isReorderEnabled"
v-e="['c:filter:reorder', { link: !!link, webHook: !!webHook }]"
@@ -1320,6 +1499,7 @@ defineExpose({
<GeneralIcon icon="drag" class="flex-none h-4 w-4" />
</NcButton>
</div>
+ </div>
</div>
</template>
</Draggable>
@@ -1444,7 +1624,8 @@ defineExpose({
<style scoped lang="scss">
.nc-filter-item-remove-btn,
.nc-filter-item-reorder-btn,
-.nc-filter-item-copy-btn {
+.nc-filter-item-copy-btn,
+.nc-filter-item-pin-btn {
@apply text-nc-content-gray-subtle2 hover:text-nc-content-gray;
}
@@ -1575,6 +1756,32 @@ defineExpose({
.nc-btn-focus:focus {
@apply !text-nc-content-brand !shadow-none;
}
+
+.nc-filter-disabled-row {
+ @apply opacity-40;
+
+ // keep action buttons (delete, copy, reorder) fully interactive
+ .nc-filter-item-remove-btn,
+ .nc-filter-item-copy-btn,
+ .nc-filter-item-reorder-btn {
+ @apply opacity-100 pointer-events-auto;
+ }
+}
+
+// group disabled state β€” dim the entire group container but keep action buttons and checkbox interactive
+.nc-filter-disabled-group {
+ & > * {
+ @apply opacity-40;
+ }
+ :deep(.nc-filter-enabled-checkbox) {
+ @apply opacity-100 pointer-events-auto;
+ }
+ :deep(.nc-filter-item-remove-btn),
+ :deep(.nc-filter-item-copy-btn),
+ :deep(.nc-filter-item-reorder-btn) {
+ @apply opacity-100 pointer-events-auto;
+ }
+}
</style>
<style lang="scss">
diff --git a/packages/nc-gui/components/smartsheet/toolbar/Filter/FilterGroup.vue b/packages/nc-gui/components/smartsheet/toolbar/Filter/FilterGroup.vue
index 178c0d43ad..48c0cc7ad4 100644
--- a/packages/nc-gui/components/smartsheet/toolbar/Filter/FilterGroup.vue
+++ b/packages/nc-gui/components/smartsheet/toolbar/Filter/FilterGroup.vue
@@ -472,6 +472,7 @@ const onMove = async (event: { moved: { newIndex: number; oldIndex: number; elem
:handler="handler"
:is-colour-filter="isColourFilter"
:is-loading-filter="isLoadingFilter"
+ :parent-enabled="parentEnabled !== false"
@change="onFilterRowChange($event, i)"
@delete="onFilterDelete($event, i)"
@copy="onFilterCopy($event, i)"
@@ -497,6 +498,7 @@ const onMove = async (event: { moved: { newIndex: number; oldIndex: number; elem
:visible-filter-count="visibleFilters.length"
:is-colour-filter="isColourFilter"
:is-loading-filter="isLoadingFilter"
+ :parent-enabled="parentEnabled !== false"
@change="onFilterRowChange($event, i)"
@delete="onFilterDelete($event, i)"
@copy="onFilterCopy($event, i)"
diff --git a/packages/nc-gui/components/smartsheet/toolbar/Filter/FilterGroupRow.vue b/packages/nc-gui/components/smartsheet/toolbar/Filter/FilterGroupRow.vue
index 6f4ccc0cb7..ebcdadaaa3 100644
--- a/packages/nc-gui/components/smartsheet/toolbar/Filter/FilterGroupRow.vue
+++ b/packages/nc-gui/components/smartsheet/toolbar/Filter/FilterGroupRow.vue
@@ -37,6 +37,7 @@ interface Props {
handler?: GroupHandler
isColourFilter?: boolean
isLoadingFilter?: boolean
+ parentEnabled?: boolean
}
interface Emits {
(event: 'update:modelValue', model: string): void
@@ -62,6 +63,8 @@ const vModel = useVModel(props, 'modelValue', emits)
const { t } = useI18n()
+const { blockToggleFilter, showUpgradeToUseToggleFilter } = useEeConfig()
+
const logicalOps = [
{ value: 'and', text: t('general.and') },
{ value: 'or', text: t('general.or') },
@@ -144,12 +147,54 @@ const onCopy = () => {
index: props.index,
})
}
+
+const isFilterEnabled = computed(() => vModel.value.enabled !== false)
+
+const effectiveEnabled = computed(() => (props.parentEnabled !== false) && isFilterEnabled.value)
+
+const onToggleFilterChange = (val: boolean | Event) => {
+ if (blockToggleFilter.value) {
+ showUpgradeToUseToggleFilter()
+ return
+ }
+ onEnabledChange(val)
+}
+
+const onEnabledChange = (val: boolean | Event) => {
+ const newValue = typeof val === 'boolean' ? val : (val?.target as HTMLInputElement)?.checked
+ const prevValue = vModel.value.enabled
+ vModel.value.enabled = newValue
+
+ if (props.handler?.rowChange) {
+ props.handler?.rowChange({
+ filter: vModel.value,
+ type: 'enabled',
+ prevValue,
+ value: newValue,
+ index: props.index,
+ })
+ } else {
+ emits('change', {
+ filter: { ...vModel.value },
+ type: 'enabled',
+ prevValue,
+ value: newValue,
+ index: props.index,
+ })
+ }
+}
// #endregion
</script>
<template>
<div class="flex flex-col min-w-full w-min gap-y-2">
- <div class="flex rounded-lg p-2 min-w-full w-min border-1" :class="[`nc-filter-nested-level-${nestedLevel}`]">
+ <div
+ class="flex rounded-lg p-2 min-w-full w-min border-1"
+ :class="[
+ `nc-filter-nested-level-${nestedLevel}`,
+ { 'nc-filter-disabled-row': isEeUI && !effectiveEnabled },
+ ]"
+ >
<SmartsheetToolbarFilterGroup
v-model="vModel.children"
:index="index"
@@ -174,10 +219,19 @@ const onCopy = () => {
:handler="handler"
:is-colour-filter="isColourFilter"
:is-loading-filter="isLoadingFilter"
+ :parent-enabled="effectiveEnabled"
@change="onFilterChange"
@row-change="onFilterRowChange"
>
<template #nestedRowStart>
+ <NcCheckbox
+ v-if="isEeUI"
+ :checked="isFilterEnabled"
+ size="default"
+ :disabled="isDisabled || parentEnabled === false"
+ class="nc-filter-enabled-checkbox"
+ @change="onToggleFilterChange"
+ />
<template v-if="index === 0">
<span class="flex items-center nc-filter-where-label ml-1">{{ $t('labels.where') }}</span>
</template>
@@ -397,4 +451,16 @@ const onCopy = () => {
.nc-btn-focus:focus {
@apply !text-nc-content-brand !shadow-none;
}
+
+.nc-filter-disabled-row {
+ @apply opacity-40;
+
+ :deep(.nc-filter-enabled-checkbox) {
+ @apply opacity-100;
+ }
+}
+
+.nc-filter-enabled-checkbox {
+ @apply flex-shrink-0 flex items-center;
+}
</style>
diff --git a/packages/nc-gui/components/smartsheet/toolbar/Filter/FilterRow.vue b/packages/nc-gui/components/smartsheet/toolbar/Filter/FilterRow.vue
index 50d3ce35cc..23261a2a89 100644
--- a/packages/nc-gui/components/smartsheet/toolbar/Filter/FilterRow.vue
+++ b/packages/nc-gui/components/smartsheet/toolbar/Filter/FilterRow.vue
@@ -29,6 +29,7 @@ interface Props {
isLoadingFilter?: boolean
// total visible filter count at current nested level
visibleFilterCount?: number
+ parentEnabled?: boolean
}
interface Emits {
(event: 'update:modelValue', model: string): void
@@ -57,6 +58,8 @@ const meta = inject(MetaInj, ref())
// t is a standalone dependency, so not need to abstract it
const { t } = useI18n()
+const { blockToggleFilter, showUpgradeToUseToggleFilter } = useEeConfig()
+
const logicalOps = [
{ value: 'and', text: t('general.and') },
{ value: 'or', text: t('general.or') },
@@ -360,6 +363,42 @@ const onCopy = () => {
})
}
+const isFilterEnabled = computed(() => vModel.value.enabled !== false && vModel.value.enabled !== 0)
+
+const effectiveEnabled = computed(() => (props.parentEnabled !== false && props.parentEnabled !== 0) && isFilterEnabled.value)
+
+const onToggleFilterChange = (val: boolean | Event) => {
+ if (blockToggleFilter.value) {
+ showUpgradeToUseToggleFilter()
+ return
+ }
+ onEnabledChange(val)
+}
+
+const onEnabledChange = (val: boolean | Event) => {
+ const newValue = typeof val === 'boolean' ? val : (val?.target as HTMLInputElement)?.checked
+ const prevValue = vModel.value.enabled
+ vModel.value.enabled = newValue
+
+ if (props.handler?.rowChange) {
+ props.handler?.rowChange({
+ filter: vModel.value,
+ type: 'enabled',
+ prevValue,
+ value: newValue,
+ index: props.index,
+ })
+ } else {
+ emits('change', {
+ filter: { ...vModel.value },
+ type: 'enabled',
+ prevValue,
+ value: newValue,
+ index: props.index,
+ })
+ }
+}
+
async function onResetDynamicField() {
const prevValue = vModel.value.dynamic
vModel.value.dynamic = false
@@ -391,12 +430,27 @@ const onChangeToDynamic = async () => {
<template>
<div
class="flex flex-row gap-x-0 w-full nc-filter-wrapper bg-nc-bg-default"
- :class="`nc-filter-wrapper-${vModel.fk_column_id}`"
+ :class="[
+ `nc-filter-wrapper-${vModel.fk_column_id}`,
+ { 'nc-filter-disabled-row': isEeUI && !effectiveEnabled },
+ ]"
v-bind="containerProps"
>
+ <!-- #region enabled checkbox (EE only) -->
+ <div v-if="isEeUI" class="flex items-center pl-2 pr-1">
+ <NcCheckbox
+ :checked="isFilterEnabled"
+ size="default"
+ :disabled="isDisabled || parentEnabled === false"
+ class="nc-filter-enabled-checkbox"
+ @change="onToggleFilterChange"
+ />
+ </div>
+ <!-- #endregion enabled checkbox -->
+
<!-- #region logical op -->
<template v-if="index === 0">
- <div class="flex items-center !min-w-18 !max-w-18 pl-3 nc-filter-where-label" v-bind="logicalOpsProps">
+ <div class="flex items-center !min-w-18 !max-w-18 nc-filter-where-label" :class="isEeUI ? 'pl-1' : 'pl-3'" v-bind="logicalOpsProps">
{{ $t('labels.where') }}
</div>
</template>
@@ -807,4 +861,14 @@ const onChangeToDynamic = async () => {
.nc-btn-focus:focus {
@apply !text-nc-content-brand !shadow-none;
}
+
+.nc-filter-disabled-row {
+ & > *:not(.nc-filter-enabled-checkbox):not(:first-child) {
+ @apply opacity-40 pointer-events-none;
+ }
+}
+
+.nc-filter-enabled-checkbox {
+ @apply flex-shrink-0;
+}
</style>
diff --git a/packages/nc-gui/components/smartsheet/toolbar/Filter/types.ts b/packages/nc-gui/components/smartsheet/toolbar/Filter/types.ts
index afb0f0f67f..4f5d346e76 100644
--- a/packages/nc-gui/components/smartsheet/toolbar/Filter/types.ts
+++ b/packages/nc-gui/components/smartsheet/toolbar/Filter/types.ts
@@ -34,6 +34,7 @@ export interface StatefulGroupProps {
isColourFilter?: boolean
readOnly?: boolean
isLoadingFilter?: boolean
+ parentEnabled?: boolean
}
export interface GroupProps extends StatefulGroupProps {
index: number
diff --git a/packages/nc-gui/components/smartsheet/toolbar/FilterInput.vue b/packages/nc-gui/components/smartsheet/toolbar/FilterInput.vue
index 4cc289f1e6..cceef1e6f5 100644
--- a/packages/nc-gui/components/smartsheet/toolbar/FilterInput.vue
+++ b/packages/nc-gui/components/smartsheet/toolbar/FilterInput.vue
@@ -15,6 +15,7 @@ import Integer from '~/components/cell/Integer/index.vue'
import Float from '~/components/cell/Float/index.vue'
import Text from '~/components/cell/Text/index.vue'
import User from '~/components/cell/User/index.vue'
+import ColourFilter from '~/components/cell/Colour/FilterInput.vue'
interface Props {
// column could be possibly undefined when the filter is created
@@ -62,6 +63,7 @@ const checkTypeFunctions: Record<string, (column: ColumnType, abstractType?: str
isLinks: (col: ColumnType) => col.uidt === UITypes.Links,
isUser,
isReadonlyUser,
+ isColour,
}
type FilterType = keyof typeof checkTypeFunctions
@@ -131,6 +133,7 @@ const componentMap: Partial<Record<FilterType, any>> = computed(() => {
isLinks: Integer,
isUser: User,
isReadonlyUser: User,
+ isColour: ColourFilter,
}
})
diff --git a/packages/nc-gui/components/smartsheet/toolbar/PinnedFilters.vue b/packages/nc-gui/components/smartsheet/toolbar/PinnedFilters.vue
new file mode 100644
index 0000000000..7c3f5c658a
--- /dev/null
+++ b/packages/nc-gui/components/smartsheet/toolbar/PinnedFilters.vue
@@ -0,0 +1,3 @@
+<template>
+ <NcSpanHidden />
+</template>
diff --git a/packages/nc-gui/composables/useColourPicker.ts b/packages/nc-gui/composables/useColourPicker.ts
new file mode 100644
index 0000000000..01fc17a96d
--- /dev/null
+++ b/packages/nc-gui/composables/useColourPicker.ts
@@ -0,0 +1,80 @@
+import { normalizeHexColourWithAlpha } from 'nocodb-sdk'
+
+/**
+ * Shared colour-picker logic used by both the cell Editor and the
+ * FilterInput components. Centralises the modal open/close, temp colour,
+ * picker-key, keyboard listener, and save/cancel handlers.
+ */
+export function useColourPicker(opts: {
+ /** Called with the normalised `#RRGGBB` value when the user clicks Save. */
+ onSave: (colour: string) => void
+ /** Optional callback when the picker is closed without saving. */
+ onClose?: () => void
+ /** When true the picker cannot be opened. */
+ disabled?: Ref<boolean> | ComputedRef<boolean>
+}) {
+ const isOpen = ref(false)
+ const tempColor = ref<string | null>(null)
+ const pickerKey = ref(0)
+
+ const openColorPicker = (initialColour: string) => {
+ if (unref(opts.disabled)) return
+ pickerKey.value++
+ tempColor.value = initialColour
+ isOpen.value = true
+ }
+
+ const onColorChange = (color: string) => {
+ tempColor.value = color
+ }
+
+ const save = () => {
+ if (tempColor.value) {
+ const normalized = normalizeHexColourWithAlpha(tempColor.value)
+ if (normalized) {
+ opts.onSave(normalized)
+ }
+ }
+ isOpen.value = false
+ }
+
+ const close = () => {
+ isOpen.value = false
+ opts.onClose?.()
+ }
+
+ const onKeyDown = (e: KeyboardEvent) => {
+ if (!isOpen.value) return
+ if (e.key === 'Enter') {
+ e.preventDefault()
+ e.stopPropagation()
+ save()
+ } else if (e.key === 'Escape') {
+ e.preventDefault()
+ e.stopPropagation()
+ close()
+ }
+ }
+
+ watch(isOpen, (open) => {
+ if (open) {
+ document.addEventListener('keydown', onKeyDown)
+ } else {
+ document.removeEventListener('keydown', onKeyDown)
+ }
+ })
+
+ onUnmounted(() => {
+ document.removeEventListener('keydown', onKeyDown)
+ })
+
+ return {
+ isOpen,
+ tempColor,
+ pickerKey,
+ openColorPicker,
+ onColorChange,
+ save,
+ close,
+ }
+}
diff --git a/packages/nc-gui/composables/useEeConfig.ts b/packages/nc-gui/composables/useEeConfig.ts
index 765162482a..4932c6a564 100644
--- a/packages/nc-gui/composables/useEeConfig.ts
+++ b/packages/nc-gui/composables/useEeConfig.ts
@@ -57,6 +57,10 @@ export const useEeConfig = createSharedComposable(() => {
const blockRowColoring = computed(() => true)
+ const blockToggleFilter = computed(() => true)
+
+ const blockPinnedFilter = computed(() => true)
+
const blockTableAndFieldPermissions = computed(() => true)
const blockPrivateBases = computed(() => true)
@@ -78,6 +82,8 @@ export const useEeConfig = createSharedComposable(() => {
const blockAiButtonField = computed(() => true)
+ const blockColourField = computed(() => true)
+
const blockTeamsManagement = computed(() => true)
const blockAddNewTeamToWs = computed(() => true)
@@ -88,6 +94,9 @@ export const useEeConfig = createSharedComposable(() => {
const blockUnique = computed(() => true)
+ // UUID field is EE-only β€” always blocked in CE
+ const blockUuidField = computed(() => true)
+
const calculatePrice = (..._args: any[]) => {}
const getLimit = (..._args: any[]) => {}
@@ -136,6 +145,10 @@ export const useEeConfig = createSharedComposable(() => {
const showUpgradeToUseRowColoring = (..._args: any[]) => {}
+ const showUpgradeToUseToggleFilter = (..._args: any[]) => {}
+
+ const showUpgradeToUsePinnedFilter = (..._args: any[]) => {}
+
const showUpgradeToUseTableAndFieldPermissions = (..._args: any[]) => {}
const showUpgradeToUsePrivateBases = (..._args: any[]) => {}
@@ -152,6 +165,8 @@ export const useEeConfig = createSharedComposable(() => {
const showUpgradeToUseAiButtonField = (..._args: any[]) => {}
+ const showUpgradeToUseColourField = (..._args: any[]) => {}
+
const showUpgradeToUseTeams = (..._args: any[]) => {}
const showUpgradeToAddMoreTeams = (..._args: any[]) => {}
@@ -160,6 +175,8 @@ export const useEeConfig = createSharedComposable(() => {
const showUpgradeToUseUnique = (..._args: any[]) => {}
+ const showUpgradeToUseUuidField = (..._args: any[]) => {}
+
return {
calculatePrice,
getLimit,
@@ -206,6 +223,10 @@ export const useEeConfig = createSharedComposable(() => {
showUpgradeToUseCurrentUserFilter,
blockRowColoring,
showUpgradeToUseRowColoring,
+ blockToggleFilter,
+ showUpgradeToUseToggleFilter,
+ blockPinnedFilter,
+ showUpgradeToUsePinnedFilter,
blockTableAndFieldPermissions,
showUpgradeToUseTableAndFieldPermissions,
blockPrivateBases,
@@ -224,6 +245,8 @@ export const useEeConfig = createSharedComposable(() => {
showUpgradeToUseAiPromptField,
blockAiButtonField,
showUpgradeToUseAiButtonField,
+ blockColourField,
+ showUpgradeToUseColourField,
blockTeamsManagement,
showUpgradeToUseTeams,
blockAddNewTeamToWs,
@@ -232,7 +255,9 @@ export const useEeConfig = createSharedComposable(() => {
blockCardFieldHeaderVisibility,
blockSync,
blockUnique,
+ blockUuidField,
showUpgradeToUseSync,
showUpgradeToUseUnique,
+ showUpgradeToUseUuidField,
}
})
diff --git a/packages/nc-gui/composables/useViewFilters.ts b/packages/nc-gui/composables/useViewFilters.ts
index 4a3156bcc5..1c7c31cde2 100644
--- a/packages/nc-gui/composables/useViewFilters.ts
+++ b/packages/nc-gui/composables/useViewFilters.ts
@@ -289,6 +289,7 @@ export function useViewFilters(
...(parentColId?.value ? { fk_parent_column_id: parentColId.value } : {}),
...(widgetId?.value ? { fk_widget_id: widgetId.value } : {}),
order: (filters.value.length ? Math.max(...filters.value.map((item) => item?.order ?? 0)) : 0) + 1,
+ enabled: true,
}
// Set timezone for DateTime columns
@@ -317,6 +318,7 @@ export function useViewFilters(
...(parentColId?.value ? { fk_parent_column_id: parentColId.value, children: [] } : {}),
...(widgetId?.value ? { fk_widget_id: widgetId.value } : {}),
order: (filters.value.length ? Math.max(...filters.value.map((item) => item?.order ?? 0)) : 0) + 1,
+ enabled: true,
}
}
@@ -516,6 +518,22 @@ export function useViewFilters(
fk_parent_id: parentId.value,
},
)
+
+ // EE only: Sync updated filter properties to the smartsheet store's allFilters
+ // so PinnedFilters and other consumers see changes immediately
+ if (isEeUI && !isLink && !isWebhook && !isWidget) {
+ const storeFilter = allFilters.value.find((f) => f.id === filter.id)
+ if (storeFilter) {
+ Object.assign(storeFilter, {
+ value: filter.value,
+ comparison_op: filter.comparison_op,
+ comparison_sub_op: filter.comparison_sub_op,
+ fk_column_id: filter.fk_column_id,
+ enabled: filter.enabled,
+ meta: filter.meta,
+ })
+ }
+ }
} else if (filter.status === 'create') {
// extract children value if found to restore
const children = filters.value[+i]?.children
@@ -623,7 +641,7 @@ export function useViewFilters(
if (keys.length > 0) {
// Define extra keys to track
- const extraKeys = ['value', 'order', 'logical_op']
+ const extraKeys = ['value', 'order', 'logical_op', 'enabled']
// Always include the 0th key + any of the extra ones present
const targetKeys = Array.from(
@@ -700,6 +718,22 @@ export function useViewFilters(
workflow: !!isWorkflow,
})
+ // EE only: Sync updated filter to the smartsheet store's allFilters
+ // so PinnedFilters and other consumers see changes immediately
+ if (isEeUI && !isLink && !isWebhook && !isWidget) {
+ const storeFilter = allFilters.value.find((f) => f.id === filter.id)
+ if (storeFilter) {
+ Object.assign(storeFilter, {
+ value: filter.value,
+ comparison_op: filter.comparison_op,
+ comparison_sub_op: filter.comparison_sub_op,
+ fk_column_id: filter.fk_column_id,
+ enabled: filter.enabled,
+ meta: filter.meta,
+ })
+ }
+ }
+
if (undo) {
filters.value = [...filters.value].sort((a, b) => ncArrSortCallback(a, b, { key: 'order' }))
}
diff --git "a/packages/nc-gui/git_log_diff.txt\302\240" "b/packages/nc-gui/git_log_diff.txt\302\240"
new file mode 100644
index 0000000000..18323a44d7
--- /dev/null
+++ "b/packages/nc-gui/git_log_diff.txt\302\240"
@@ -0,0 +1,848 @@
+2025-05-25 | Mert E. | Merge pull request #5639 from nocodb/codegen-bot/fix-auth-guide-new
+2025-05-25 | mertmit | fix: form type issue
+2025-05-25 | mertmit | chore: auth template
+2025-05-24 | navi | Merge pull request #5635 from nocodb/chore/action-pr
+2025-05-24 | mertmit | chore: action filter
+2025-05-24 | Anbarasu | Merge pull request #5626 from nocodb/more-deps
+2025-05-24 | Mert E. | Merge pull request #5628 from nocodb/chore/custom-sync-rule
+2025-05-24 | mertmit | chore: improve .cursorrules
+2025-05-24 | navi | Merge pull request #5627 from nocodb/fix/sync-followup
+2025-05-24 | mertmit | fix: remove raw data from custom syncs
+2025-05-24 | DarkPhoenix2704 | fix: remove nc-lib-gui for hub
+2025-05-24 | DarkPhoenix2704 | fix: more fixes
+2025-05-24 | DarkPhoenix2704 | fix: more fixes
+2025-05-24 | Anbarasu | Merge pull request #5618 from nocodb/dep-issues
+2025-05-24 | Mert E. | Merge pull request #5621 from nocodb/fix/uidt
+2025-05-24 | DarkPhoenix2704 | fix: more fix
+2025-05-23 | DarkPhoenix2704 | chore: bump dependencies
+2025-05-23 | DarkPhoenix2704 | chore: bump dependencies
+2025-05-23 | DarkPhoenix2704 | fix: bump nuxt, @nestjs cli
+2025-05-23 | DarkPhoenix2704 | fix: bump snowflake-sdk
+2025-05-23 | DarkPhoenix2704 | fix: dependabot fixes
+2025-05-23 | DarkPhoenix2704 | fix: xml-crypto vulnerabilities
+2025-05-24 | navi | Merge pull request #5622 from nocodb/fix/clickhouse-con
+2025-05-24 | Pranav C | Merge pull request #5619 from nocodb/fix/oidc-pw-test
+2025-05-24 | mertmit | fix: avoid type on ch
+2025-05-24 | mertmit | fix: use dt to get uidt if available
+2025-05-24 | mertmit | fix: avoid throwing if uidt is missing
+2025-05-24 | Raju Udava | Merge pull request #5620 from nocodb/oss/a14903a0
+2025-05-24 | Raju Udava | docs: integrations-2
+2025-05-24 | Raju Udava | docs: integrations menu with available options
+2025-05-24 | Raju Udava | Merge pull request #5611 from nocodb/fix/current-user-filter-adjustment-be
+2025-05-24 | Fendy Heryanto | fix oidc pw test due to child process parsing stderr incorrectly
+2025-05-23 | navi | Merge pull request #5609 from nocodb/feat/pg-custom-sync
+2025-05-23 | mertmit | chore: bump lock file
+2025-05-23 | mertmit | fix: ch warning
+2025-05-23 | mertmit | chore: pg icons
+2025-05-23 | mertmit | feat: clickhouse integration
+2025-05-23 | mertmit | fix: oauth issue
+2025-05-23 | Anbarasu | Merge pull request #5615 from nocodb/oss/0c2c4d9e
+2025-05-23 | Naveen MR | docs : update FAQs
+2025-05-23 | Naveen MR | docs : update FAQs
+2025-05-23 | Naveen MR | docs : update FAQs
+2025-05-23 | Anbarasu | Merge pull request #5614 from nocodb/oss/42bf1290
+2025-05-23 | mertmit | feat: better auth wrapper & destroy logic
+2025-05-23 | mertmit | fix: small ui corrections
+2025-05-23 | Naveen MR | docs : update FAQs
+2025-05-23 | Naveen MR | docs : update FAQs
+2025-05-23 | Mert E. | Merge pull request #5613 from nocodb/chore/register-int
+2025-05-23 | mertmit | chore: register integrations
+2025-05-23 | Mert E. | Merge pull request #5608 from nocodb/fix/record-view-mode-options-not-visible
+2025-05-23 | Fendy Heryanto | move v2ext to conditionHelpers
+2025-05-23 | Fendy Heryanto | adjust logic for applying current user filter
+2025-05-23 | Mert E. | Merge pull request #5610 from nocodb/oss/bfda5c1a
+2025-05-23 | mertmit | fix: remove dup
+2025-05-23 | mertmit | chore: missing files
+2025-05-23 | mertmit | chore: temporarily disable integration jest test
+2025-05-23 | mertmit | chore: fix build error
+2025-05-23 | mertmit | fix: feature flag
+2025-05-23 | mertmit | chore: various
+2025-05-23 | mertmit | feat: fetch options
+2025-05-23 | mertmit | feat: auth integration test connection wired
+2025-05-23 | mertmit | feat: add testConnection to auth integrations
+2025-05-23 | mertmit | feat: types for custom sync
+2025-05-23 | mertmit | chore: auth template
+2025-05-23 | mertmit | chore: ai template
+2025-05-23 | mertmit | chore: AI integrations implementation
+2025-05-23 | mertmit | feat: implement OpenAI Compatible AI integration
+2025-05-23 | mertmit | feat: implement DeepSeek AI integration
+2025-05-23 | mertmit | feat: implement Azure AI integration
+2025-05-23 | mertmit | feat: implement Amazon Bedrock AI integration
+2025-05-23 | mertmit | feat: implement Groq AI integration
+2025-05-23 | mertmit | feat: implement Google Gemini & Claude integration
+2025-05-23 | mertmit | fix: switch style
+2025-05-23 | mertmit | fix: jest
+2025-05-23 | mertmit | fix: category handling
+2025-05-23 | mertmit | docs(todo): update Asana formatEntity pattern items as complete
+2025-05-23 | mertmit | docs(todo): update Linear formatEntity pattern items as complete
+2025-05-23 | mertmit | docs(todo): update Jira formatEntity pattern items as complete
+2025-05-23 | mertmit | refactor(gitlab-sync): implement formatEntity pattern
+2025-05-23 | mertmit | refactor(github-sync): implement formatEntity pattern
+2025-05-23 | mertmit | fix: type mismatchs
+2025-05-23 | mertmit | feat: add integrations
+2025-05-23 | mertmit | Implement Asana Sync integration
+2025-05-23 | mertmit | feat: implement Linear sync integration
+2025-05-23 | mertmit | feat: implement Jira sync integration
+2025-05-23 | mertmit | Add Asana Auth Integration
+2025-05-23 | mertmit | Add Linear Auth Integration
+2025-05-23 | mertmit | Add Jira Auth Integration
+2025-05-23 | mertmit | chore: default values
+2025-05-23 | mertmit | feat: template
+2025-05-23 | mertmit | feat: team for ticketing
+2025-05-23 | mertmit | feat: gitlab + logging
+2025-05-23 | mertmit | feat: sync edit + improvements
+2025-05-23 | mertmit | feat: sync revise
+2025-05-23 | mertmit | fix: migrate sync
+2025-05-23 | mertmit | feat: improved links + incremental link handling
+2025-05-23 | mertmit | feat: delete stale records
+2025-05-23 | mertmit | feat: multi sync WIP - relation data
+2025-05-23 | mertmit | feat: multi sync WIP - relation schema
+2025-05-23 | mertmit | feat: multi sync WIP
+2025-05-23 | mertmit | feat: multi sync WIP
+2025-05-23 | mertmit | feat: missing deps
+2025-05-23 | mertmit | test: mocks
+2025-05-23 | mertmit | chore: refactor names of integrations and structure
+2025-05-23 | mertmit | feat: local integrations
+2025-05-23 | mertmit | fix: consistent types
+2025-05-23 | mertmit | chore: remove submodules
+2025-05-23 | mertmit | chore: add integrations to monorepo
+2025-05-23 | mertmit | chore: rm submodule
+2025-05-23 | mertmit | feat: remove old integrations
+2025-05-23 | mertmit | feat: custom pg sync
+2025-05-23 | Ramesh Mane | fix(nc-gui): record view mode not visible
+2025-05-23 | Ramesh Mane | Merge pull request #5607 from nocodb/fix/user-filter-followup-changes
+2025-05-23 | Mert E. | Merge pull request #5471 from nocodb/feat/new-integrations
+2025-05-23 | Ramesh Mane | chore(nc-gui): lint
+2025-05-23 | Ramesh Mane | chore(nc-gui): cleanup
+2025-05-23 | Ramesh Mane | fix(nc-gui): use user filter only in ee
+2025-05-23 | mertmit | chore: temporarily disable integration jest test
+2025-05-23 | mertmit | chore: bump versions
+2025-05-22 | mertmit | chore: fix build error
+2025-05-22 | mertmit | fix: feature flag
+2025-05-22 | mertmit | test: null check
+2025-05-22 | mertmit | chore: various
+2025-05-22 | mertmit | feat: fetch options
+2025-05-20 | mertmit | feat: auth integration test connection wired
+2025-05-20 | mertmit | chore: bump zod version causing recursive type issue
+2025-05-20 | mertmit | feat: add testConnection to auth integrations
+2025-05-20 | mertmit | feat: types for custom sync
+2025-05-20 | mertmit | fix: integration acl
+2025-05-20 | mertmit | chore: update available models
+2025-05-20 | mertmit | chore: auth template
+2025-05-20 | mertmit | chore: ai template
+2025-05-20 | mertmit | chore: update icons
+2025-05-20 | mertmit | chore: AI integrations implementation
+2025-05-20 | mertmit | feat: implement OpenAI Compatible AI integration
+2025-05-20 | mertmit | feat: implement DeepSeek AI integration
+2025-05-20 | mertmit | feat: implement Azure AI integration
+2025-05-20 | mertmit | feat: implement Amazon Bedrock AI integration
+2025-05-20 | mertmit | feat: implement Groq AI integration
+2025-05-20 | mertmit | refactor: ai integration order
+2025-05-20 | mertmit | feat: implement Google Gemini & Claude integration
+2025-05-19 | mertmit | chore: bump ai packages & syncDependencies script
+2025-05-19 | mertmit | fix: switch style
+2025-05-19 | mertmit | fix: integration icons
+2025-05-19 | mertmit | fix: jest
+2025-05-19 | mertmit | chore: bump lockfile
+2025-05-19 | mertmit | fix: category handling
+2025-05-17 | mertmit | fix: build error
+2025-05-17 | mertmit | docs: add documentation for Jira, Linear and Asana auth integrations
+2025-05-17 | mertmit | chore: auth docs
+2025-05-17 | mertmit | docs: standardize GitHub and GitLab auth documentation
+2025-05-17 | mertmit | fix: remove unused synced at
+2025-05-17 | mertmit | docs(todo): update Asana formatEntity pattern items as complete
+2025-05-17 | mertmit | docs(todo): update Linear formatEntity pattern items as complete
+2025-05-17 | mertmit | docs(todo): update Jira formatEntity pattern items as complete
+2025-05-17 | mertmit | refactor(gitlab-sync): implement formatEntity pattern
+2025-05-17 | mertmit | refactor(github-sync): implement formatEntity pattern
+2025-05-17 | mertmit | fix: type mismatchs
+2025-05-16 | mertmit | feat: comment titles
+2025-05-16 | mertmit | fix: titles
+2025-05-16 | mertmit | fix: linear issue
+2025-05-16 | mertmit | feat: add integrations
+2025-05-16 | mertmit | fix: update @linear/sdk dependency to version 40.0.0
+2025-05-16 | mertmit | fix: linter errors across multiple integrations
+2025-05-16 | mertmit | fix: lint
+2025-05-16 | mertmit | Implement Asana Sync integration
+2025-05-16 | mertmit | fix: lint
+2025-05-16 | mertmit | feat: implement Linear sync integration
+2025-05-16 | mertmit | feat: implement Jira sync integration
+2025-05-16 | mertmit | Add Asana Auth Integration
+2025-05-16 | mertmit | Add Linear Auth Integration
+2025-05-16 | mertmit | Add Jira Auth Integration
+2025-05-16 | mertmit | feat: PR & MR
+2025-05-16 | mertmit | chore: default values
+2025-05-16 | mertmit | chore: auth rule
+2025-05-16 | mertmit | feat: README for oauth
+2025-05-16 | mertmit | feat: template
+2025-05-16 | mertmit | feat: team for ticketing
+2025-05-16 | mertmit | fix: lint
+2025-05-16 | mertmit | feat: gitlab + logging
+2025-05-16 | mertmit | fix: add missing base id prop
+2025-05-16 | mertmit | feat: sync edit + improvements
+2025-05-15 | mertmit | feat: sync revise
+2025-05-14 | mertmit | fix: migrate sync
+2025-05-14 | mertmit | feat: improved links + incremental link handling
+2025-05-14 | mertmit | feat: delete stale records
+2025-05-13 | mertmit | feat: multi sync WIP - relation data
+2025-05-12 | mertmit | feat: multi sync WIP - relation schema
+2025-05-12 | mertmit | feat: multi sync WIP
+2025-05-12 | mertmit | feat: multi sync WIP
+2025-05-10 | mertmit | feat: missing deps
+2025-05-09 | mertmit | test: mocks
+2025-05-09 | mertmit | chore: refactor names of integrations and structure
+2025-05-09 | mertmit | feat: local integrations
+2025-05-09 | mertmit | fix: type leak
+2025-05-09 | mertmit | fix: recursive type issue
+2025-05-09 | mertmit | fix: consistent types
+2025-05-09 | mertmit | chore: avoid inherit
+2025-05-09 | mertmit | chore: fix actions
+2025-05-09 | mertmit | fix: build error
+2025-05-09 | mertmit | chore: remove submodules
+2025-05-09 | mertmit | chore: add integrations to monorepo
+2025-05-09 | mertmit | chore: rm submodule
+2025-05-08 | mertmit | chore: inherit
+2025-05-08 | mertmit | chore: submodules
+2025-05-08 | mertmit | fix: local integrations
+2025-05-08 | mertmit | feat: register ai-nocodb
+2025-05-08 | mertmit | fix: register ch
+2025-05-08 | mertmit | feat: new integrations fw
+2025-05-04 | mertmit | feat: remove old integrations
+2025-05-23 | Raju Udava | Merge pull request #4698 from nocodb/feature/cross-base-link
+2025-05-23 | Anbarasu | Merge pull request #5591 from nocodb/formula-input
+2025-05-23 | Ramesh Mane | Merge pull request #5606 from nocodb/fix/filter-test-fail-issue
+2025-05-23 | Ramesh Mane | Merge pull request #5448 from nocodb/feat/user-filter-me
+2025-05-23 | Ramesh Mane | fix(nc-gui): filter test fail issue
+2025-05-23 | Ramesh Mane | fix(nc-gui): add tooltip
+2025-05-22 | Ramesh Mane | fix(nc-gui): show @ if current user filter is applied
+2025-05-22 | Ramesh Mane | fix(nc-gui): use same icon for @me user in dropdown as well in renderCell
+2025-05-19 | Ramesh Mane | fix(nc-gui): use i18n
+2025-05-19 | Ramesh Mane | fix(nc-gui): user band font color if it is current user
+2025-05-19 | Ramesh Mane | fix(nc-gui): user placeholder icon update
+2025-05-19 | Ramesh Mane | fix(nc-gui): current user info ui changes
+2025-05-06 | Fendy Heryanto | remove console log
+2025-05-06 | Fendy Heryanto | enable @me on frontend
+2025-05-06 | Fendy Heryanto | initial dev for user @me
+2025-05-22 | Mert E. | Merge pull request #5585 from nocodb/fix/oss-audit-log-on-null
+2025-05-22 | Mert E. | Merge pull request #5542 from nocodb/fix/filter-datetime-dynamic
+2025-05-22 | Mert E. | Merge pull request #5528 from nocodb/fix/like-nlike-user
+2025-05-22 | Mert E. | Merge pull request #5520 from nocodb/fix/json-filter-null
+2025-05-22 | Mert E. | Merge pull request #5594 from nocodb/scrollbar-visible
+2025-05-22 | Mert E. | Merge pull request #5601 from nocodb/fix-count-query
+2025-05-22 | Raju Udava | Merge branch 'develop' into feature/cross-base-link
+2025-05-22 | Raju Udava | Merge pull request #5600 from nocodb/arrow-not-working
+2025-05-22 | Raju Udava | Merge pull request #5602 from nocodb/oss/82ca12ee
+2025-05-22 | Ramesh Mane | Merge pull request #5604 from nocodb/fix/shared-base-sidebar-loading-issue
+2025-05-22 | Ramesh Mane | fix(nc-gui): shared base new sidebar stuck in loading state
+2025-05-22 | Ramesh Mane | Merge pull request #5603 from nocodb/oss/26b7d36e
+2025-05-22 | Ramesh Mane | fix(nc-gui): Inter font apply issue in oss
+2025-05-22 | Naveen MR | docs : calendar view with end date.
+2025-05-22 | Naveen MR | docs : calendar view with end date.
+2025-05-22 | DarkPhoenix2704 | fix: filter not applied on count
+2025-05-22 | DarkPhoenix2704 | fix: arrows not working when select filter is applied
+2025-05-22 | Raju Udava | Merge pull request #5583 from nocodb/fix/api-v3-missing-meta-props
+2025-05-22 | DarkPhoenix2704 | fix: update script apis to match v3 api
+2025-05-22 | DarkPhoenix2704 | fix: minor correction
+2025-05-22 | Ramesh Mane | Merge pull request #5588 from nocodb/fix/display-value-issue
+2025-05-22 | Ramesh Mane | Merge pull request #5566 from nocodb/codex/fix-alt-b-shortcut-focus-issue
+2025-05-22 | Ramesh Mane | fix(nc-gui): remove unused import statement
+2025-05-22 | Ramesh Mane | fix(nc-gui): hide minisidebar in pricing page
+2025-05-21 | Ramesh Mane | fix(nc-gui): show base list on switching ws
+2025-05-21 | Ramesh Mane | fix(nc-gui): remove unwanted code
+2025-05-19 | navi | fix(nc-gui): prevent alt+B from typing in search
+2025-05-22 | Ramesh Mane | chore(nc-gui): lint
+2025-05-22 | Ramesh Mane | refactor(nc-gui): parse formula plain cell value code
+2025-05-22 | Ramesh Mane | fix(nc-gui): formual cell value parse issue display issue
+2025-05-21 | Ramesh Mane | fix(nc-gui): formula field parse link text display issue
+2025-05-22 | Raju Udava | Merge pull request #5595 from nocodb/clean-up-code
+2025-05-22 | Raju Udava | Merge branch 'develop' into scrollbar-visible
+2025-05-19 | Pranav C | refactor: selectObject
+2025-05-16 | Pranav C | fix: avoid using same sqlMgr when table belongs to different base
+2025-05-16 | Pranav C | fix: rebase related corrections
+2025-05-16 | Pranav C | fix: context correction
+2025-05-12 | Pranav C | refactor: rename migration
+2025-05-12 | Pranav C | fix: view mode change - permission check
+2025-05-08 | Pranav C | fix: prop name correction
+2025-05-07 | Pranav C | refactor: review comments
+2025-05-06 | Pranav C | fix: add permission under scope
+2025-05-06 | Pranav C | fix: copy paste permission bug
+2025-05-06 | Pranav C | refactor: move under feature flag
+2025-05-06 | Pranav C | fix: hide add record if any one of the table doesn't have edit permission
+2025-05-04 | Pranav C | fix: delete cross base links on deleting base
+2025-05-03 | Pranav C | fix: show cross base link detail in edit modal
+2025-05-03 | Pranav C | fix: proper context usage while extracting source
+2025-05-03 | Pranav C | fix: show pointer for labels which are clickable
+2025-05-03 | Pranav C | fix: one to one column delete
+2025-05-03 | Pranav C | fix: skip showing custom link modal in edit mode
+2025-05-03 | Pranav C | fix: delete rollup/lookup when referencing column deleted
+2025-05-03 | Pranav C | fix: row delete bug
+2025-05-03 | Pranav C | fix: label toggle bug
+2025-05-03 | Pranav C | fix: duplicate dialog and toggle bug
+2025-05-03 | Pranav C | fix: has many delete context correction
+2025-05-03 | Pranav C | fix: label correction
+2025-05-12 | Pranav C | refactor: label
+2025-05-03 | Pranav C | fix: add permission check in GUI
+2025-05-02 | Pranav C | fix: hm lookup context
+2025-05-02 | Pranav C | fix: LTAR context correction in pg-single query
+2025-05-02 | Pranav C | fix: lookup/Links/LTAR context correction
+2025-05-02 | Pranav C | fix: lookup and rollup context correction
+2025-05-02 | Pranav C | fix: partial metadata read if base is inaccessible for user
+2025-05-02 | Pranav C | feat: highlight current base and disable bases in which user doesn't have creator+ access
+2025-05-01 | Pranav C | fix: extract base id from table meta
+2025-05-01 | Pranav C | fix: show table name instead of id
+2025-05-01 | Pranav C | refactor: handle missing column db error(pg)
+2025-05-01 | Pranav C | fix: table delete bug
+2025-05-01 | Pranav C | fix: cell clear, copy-paste related issues
+2025-05-01 | Pranav C | fix: reset state on toggling cross-base checkbox
+2025-05-01 | Pranav C | fix: tooltip and label correction
+2025-05-01 | Pranav C | fix: bulk delete pass proper context
+2025-05-01 | Pranav C | refactor: updated duplicate base note
+2025-05-01 | Pranav C | fix: extract id from meta to avoid passing wrong base id
+2025-05-01 | Pranav C | fix: pass missing loader reference
+2025-04-30 | Pranav C | fix: remove duplicate for cross base link
+2025-04-29 | Pranav C | fix: wrap code to avoid the duplicate var initialization related issue
+2025-04-29 | Pranav C | fix: colOption extraction logic correction
+2025-04-29 | Pranav C | fix: allow LTAR record expand only if user have edit permission in target base
+2025-04-29 | Pranav C | feat: limit pk and pv for external link
+2025-04-27 | Pranav C | fix: permission check related corrections
+2025-04-27 | Pranav C | feat: permission check related corrections
+2025-04-27 | Pranav C | feat: add permission check in ui
+2025-04-26 | Pranav C | fix: filter related corrections
+2025-04-26 | Pranav C | fix: rollup add cross-base link support
+2025-04-26 | Pranav C | refactor: correction
+2025-04-26 | Pranav C | chore: lint
+2025-04-26 | Pranav C | fix: corrections
+2025-04-26 | Pranav C | fix: handle formula - WIP
+2025-04-26 | Pranav C | fix: handle lookup
+2025-04-26 | Pranav C | refactor: remove duplicate logic
+2025-04-26 | Pranav C | refactor: parent/child column context extraction improvements
+2025-04-26 | Pranav C | fix: permission check
+2025-04-25 | Pranav C | fix: toggling custom link and cross-base link
+2025-04-25 | Pranav C | fix: mysql-helper - context related changes
+2025-04-25 | Pranav C | fix: expanded form from LTAR cell - use base id from meta if avail
+2025-04-25 | Pranav C | fix: one-to-one relation context corrections
+2025-04-25 | Pranav C | fix: bt/hm/oo relation related corrections
+2025-04-24 | Pranav C | fix: hm relation related corrections
+2025-04-24 | Pranav C | fix: mm relation related corrections in single query
+2025-04-24 | Pranav C | fix: mm relation related corrections
+2025-04-24 | Pranav C | fix: use proper context based on relation
+2025-04-24 | Pranav C | refactor: extract context from meta
+2025-03-07 | Pranav C | feat: handle context based on props defined in LTAR model
+2025-03-07 | Pranav C | feat: add migration to igration list
+2025-03-05 | Pranav C | feat: add migration and keep cross base link context information in LTAR table
+2025-02-22 | Pranav C | fix: context and basemodel based on ref table
+2025-02-19 | Pranav C | feat: cross base LTAR support
+2025-05-22 | Raju Udava | Merge branch 'develop' into formula-input
+2025-05-22 | DarkPhoenix2704 | chore: clean up
+2025-05-22 | DarkPhoenix2704 | fix: docker build
+2025-05-22 | DarkPhoenix2704 | chore: lint
+2025-05-22 | DarkPhoenix2704 | chore: lint
+2025-05-22 | DarkPhoenix2704 | fix: more clean up
+2025-05-21 | DarkPhoenix2704 | fix: unit tests failing
+2025-05-21 | DarkPhoenix2704 | chore: clean up fe legacy code
+2025-05-21 | DarkPhoenix2704 | chore: clean up fe legacy code
+2025-05-21 | DarkPhoenix2704 | chore: clean up backend code
+2025-05-21 | navi | Merge pull request #5592 from nocodb/test/csv-import
+2025-05-21 | mertmit | test: ignore local filters on export
+2025-05-21 | mertmit | fix: playwright
+2025-05-21 | DarkPhoenix2704 | fix: do not auto hide scrollbar if configured in system
+2025-05-21 | mertmit | fix: deprecate unused code
+2025-05-21 | mertmit | test: temporarily disable problematic test
+2025-05-21 | mertmit | fix: remove unused hasNonDefaultViews logic
+2025-05-21 | mertmit | fix: wipe cache on reset meta
+2025-05-21 | mertmit | fix: unit test
+2025-05-21 | Anbarasu | Merge pull request #5531 from nocodb/script-api-queue
+2025-05-21 | DarkPhoenix2704 | feat: better formula input handler
+2025-05-21 | Anbarasu | Merge pull request #5589 from nocodb/fix-transform-new-dt
+2025-05-21 | Raju Udava | Merge pull request #5240 from nocodb/feat/input-field-validation
+2025-05-21 | Fendy Heryanto | fix duplicated reason
+2025-05-21 | Raju Udava | Merge pull request #5577 from nocodb/fix/json-like-sqlite
+2025-05-21 | DarkPhoenix2704 | fix: lint
+2025-05-16 | DarkPhoenix2704 | fix: script queuing for bulk execution
+2025-05-21 | DarkPhoenix2704 | fix: transform data
+2025-05-21 | Mert E. | Merge pull request #5146 from nocodb/fix/swagger-nested-add-status-code
+2025-05-21 | Raju Udava | Merge pull request #5586 from nocodb/oss/2766dc80
+2025-05-21 | vinayaknolastname | #9652 readme_changes
+2025-05-21 | vinayaknolastname | #9652 added date formats
+2025-05-21 | Raju Udava | Merge pull request #5582 from nocodb/oss/758b1391
+2025-05-21 | Raju Udava | Merge pull request #5580 from nocodb/oss/43356260
+2025-05-21 | Raju Udava | Merge pull request #5576 from nocodb/oss/29518a37
+2025-05-21 | Raju Udava | Merge pull request #5572 from nocodb/oss/dd0b6d6c
+2025-05-21 | Raju Udava | Merge pull request #5584 from nocodb/fix/new-export
+2025-05-21 | Fendy Heryanto | record audit log when new value is null
+2025-05-20 | Pranav C | fix: api v3 - button column related mapping and transformations
+2025-05-20 | mertmit | feat: data export clean up processor
+2025-05-20 | mertmit | feat: move csv export to background jobs
+2025-05-20 | Pranav C | fix: api v3 - button and links related field prop
+2025-05-20 | Pranav C | fix: api v3 - Created and lastmodified - map datetime options
+2025-05-20 | Pranav C | fix: api v3 - qr code and barcode option mapping
+2025-05-20 | Pranav C | fix: api v3 - corrections and missing props
+2025-05-20 | Pranav C | fix: longtext ai option mapping
+2025-05-20 | JoΓ£o Henrique Costa | chore: uppercammelcase
+2025-05-20 | JoΓ£o Henrique Costa | feat: better internationalization for create_new_table text
+2025-05-20 | Raju Udava | docs: modify URL displayed in example
+2025-05-20 | Raju Udava | docs: minor corrections
+2025-05-20 | Raju Udava | docs: url based filters
+2025-05-20 | Fendy Heryanto | fix json like on sqlite connection
+2025-05-20 | Salim B | refactor: improve div title
+2025-05-20 | Salim B | refactor: improve div title
+2025-05-20 | Salim B | refactor: tweak EN translations
+2025-05-07 | Fendy Heryanto | fix unit test errors
+2025-05-06 | Fendy Heryanto | add more values for checkbox
+2025-05-03 | Fendy Heryanto | refactor base model option
+2025-05-02 | Fendy Heryanto | TODO: check for custom knex and use get client from there
+2025-04-29 | Fendy Heryanto | enable update by column id
+2025-04-29 | Fendy Heryanto | commenting for now since we're unsure how to parse link for v3 atm
+2025-04-29 | Fendy Heryanto | remove more comments
+2025-04-29 | Fendy Heryanto | remove unused comments
+2025-04-29 | Fendy Heryanto | lookup general field handler - parse db value
+2025-04-29 | Fendy Heryanto | prototype add lookup for v3
+2025-04-29 | Fendy Heryanto | handle date
+2025-04-29 | Fendy Heryanto | add beforeEach attachment
+2025-04-29 | Fendy Heryanto | make id to be a generic and not computed field handler (for now)
+2025-04-28 | Fendy Heryanto | fix unit test for duration
+2025-04-28 | Fendy Heryanto | rollup use computed do not convert duration for v3
+2025-04-28 | Fendy Heryanto | remove assignment to data
+2025-04-28 | Fendy Heryanto | add computed field handler
+2025-04-28 | Fendy Heryanto | parse db value when queried text based check for length
+2025-04-28 | Fendy Heryanto | remove .only
+2025-04-28 | Fendy Heryanto | rename parseValue to parseUserInput
+2025-04-28 | Fendy Heryanto | add negative checking to rating, year and duration
+2025-04-28 | Fendy Heryanto | add Duration error handling
+2025-04-28 | Fendy Heryanto | add duration field handler that represent number
+2025-04-26 | Fendy Heryanto | add more unit test for user
+2025-04-26 | Fendy Heryanto | add user-based check
+2025-04-26 | Fendy Heryanto | prototype add user based test
+2025-04-26 | Fendy Heryanto | prototype add user field handler
+2025-04-26 | Fendy Heryanto | handle checkbox value validation
+2025-04-26 | Fendy Heryanto | add year test case
+2025-04-26 | Fendy Heryanto | handle date error
+2025-04-26 | Fendy Heryanto | number based error message
+2025-04-26 | Fendy Heryanto | handle datetime, etc
+2025-04-25 | Fendy Heryanto | handle input format for decimal & number
+2025-05-19 | Ramesh Mane | Merge pull request #5560 from nocodb/fix/5559
+2025-05-19 | Ramesh Mane | fix(nc-gui): revert some plan.ts file changes
+2025-05-19 | Ramesh Mane | fix(nc-gui): convert to string before rendering number plain cell value
+2025-05-19 | Ramesh Mane | fix(nc-gui): parse numeric field plain cell value issue if value is 0
+2025-05-19 | Pranav C | Merge pull request #5558 from nocodb/fix/mini-sidebar-followup
+2025-05-19 | Ramesh Mane | Merge pull request #5556 from nocodb/fix/filter-auto-complete-text-truncate-issue
+2025-05-19 | Ramesh Mane | chore(nc-gui): lint
+2025-05-19 | Ramesh Mane | fix(nc-gui): use i18n text
+2025-05-19 | Ramesh Mane | fix(nc-gui): hide mini sidebar
+2025-05-19 | Ramesh Mane | fix(nc-gui): some review changes
+2025-05-19 | Ramesh Mane | fix(nc-gui): use computed value instead on inline condition
+2025-05-19 | Ramesh Mane | fix(nc-gui): some review changes
+2025-05-19 | Raju Udava | Merge pull request #5504 from nocodb/refactor/base-model-v4
+2025-05-19 | Raju Udava | Merge pull request #5518 from nocodb/fix/sorting-ui
+2025-05-19 | Raju Udava | Merge pull request #5541 from nocodb/fix/v3-swagger
+2025-05-19 | Mert E. | Merge pull request #5555 from nocodb/fix/batch-update-missing-props
+2025-05-19 | Raju Udava | Merge pull request #5553 from nocodb/fix-lookup-atatchments
+2025-05-19 | Fendy Heryanto | remove row[column] === undefined check
+2025-05-19 | Ramesh Mane | fix(nc-gui): text truncate issue #5551
+2025-05-19 | Fendy Heryanto | fix update missing fields set column to empty
+2025-05-19 | DarkPhoenix2704 | fix: better handling
+2025-05-19 | Mert E. | Merge pull request #5554 from nocodb/fix/dp-throw
+2025-05-19 | mertmit | chore: add new system events
+2025-05-19 | mertmit | fix: remove table if duplicate failed
+2025-05-19 | DarkPhoenix2704 | fix: preserve non-aliased fields in result mapping
+2025-05-19 | mertmit | feat: priority_error system event
+2025-05-14 | Fendy Heryanto | fix missing this
+2025-05-13 | Fendy Heryanto | refactor out select object
+2025-05-19 | mertmit | fix: duplicate flow throw on missing chunk
+2025-05-18 | Raju Udava | Merge pull request #5548 from nocodb/oss/f353bddf
+2025-05-18 | Pranav C | Merge pull request #5544 from nocodb/codegen-bot/add-search-to-experimental-features
+2025-05-17 | Ameesha Arackal | fix: update search input focus color to match application standard
+2025-05-17 | Ameesha Arackal | fix: consistent padding and focus state for search input
+2025-05-17 | Ameesha Arackal | fix: contain scrollbar within features list area
+2025-05-17 | Ameesha Arackal | fix: improve search input UI in feature experimentation
+2025-05-17 | Salim B | docs: minor addition
+2025-05-17 | Salim B | docs: minor rephrasing
+2025-05-17 | Salim B | docs: provide more context
+2025-05-17 | Salim B | docs: rephrase
+2025-05-17 | Salim B | fix: syntax
+2025-05-17 | Salim B | refactor: parse `rejectUnauthorized` as boolean
+2025-05-17 | Salim B | docs: update env var table
+2025-05-17 | Salim B | refactor: convert binary env vars to boolean
+2025-05-17 | Salim B | feat: introduce `NC_SMTP_DOMAIN` and `NC_SMTP_REJECT_UNAUTHORIZED` env vars
+2025-05-17 | Pranav C | Merge pull request #5547 from nocodb/oss/e5000563
+2025-05-17 | Salim B | refactor: further rewordings
+2025-05-17 | Salim B | refactor: tweak strings
+2025-05-17 | Raju Udava | Merge pull request #5481 from nocodb/feat/new-sidebar-imementation
+2025-05-17 | Anbarasu | Merge pull request #5524 from nocodb/esbuild-wasm
+2025-05-17 | DarkPhoenix2704 | fix: use shared promise
+2025-05-17 | Fendy Heryanto | generate sdk v2
+2025-05-17 | Pranav C | Merge pull request #5540 from nocodb/fix/5535-group-by-user
+2025-05-17 | Raju Udava | Merge branch 'develop' into feat/new-sidebar-imementation
+2025-05-17 | DarkPhoenix2704 | fix: rebase
+2025-05-17 | codegen-sh[bot] | feat: add search functionality to experimental features drawer and update toggle text
+2025-05-17 | Fendy Heryanto | check for dynamic if filter column changed
+2025-05-17 | Fendy Heryanto | add missing baseId param
+2025-05-17 | Fendy Heryanto | remove pr-tasks
+2025-05-17 | Fendy Heryanto | remove view routes until further confirmation adjust sort create to http 200
+2025-05-17 | Fendy Heryanto | add schema for view create
+2025-05-16 | Fendy Heryanto | add list & post view to swagger
+2025-05-16 | Fendy Heryanto | fix tables-v3 and v3-swagger (wip)
+2025-05-17 | Pranav C | fix: add alias to subquery
+2025-05-16 | Anbarasu | Merge pull request #5538 from nocodb/oss/ab494d6c
+2025-05-16 | DarkPhoenix2704 | fix: build corrections and dependencies
+2025-05-16 | Anbarasu | Merge pull request #5537 from nocodb/oss/8fb8d164
+2025-05-16 | Salim B | chore: bump SMTP plugin version nr
+2025-05-16 | Salim B | docs: be more precise
+2025-05-16 | Salim B | refactor: improve SMTPPlugin `help_text`s
+2025-05-16 | Anbarasu | Merge pull request #5521 from nocodb/nocodb-sdk
+2025-05-16 | Anbarasu | Merge pull request #5536 from nocodb/oss/9cb76f30
+2025-05-16 | Salim B | fix: allow to omit S3 region when endpoint is given
+2025-05-16 | Anbarasu | Merge pull request #5462 from nocodb/mcp-audit
+2025-05-16 | Ramesh Mane | fix(nc-gui): loading issue
+2025-05-16 | Pranav C | Merge pull request #5534 from nocodb/oss/7c040372
+2025-05-16 | Pranav C | chore: sync
+2025-05-16 | Pranav C | fix: type corrections
+2025-05-16 | Pranav C | refactor: proper error code
+2025-05-16 | Pranav C | refactor: change permission check order
+2025-05-16 | Pranav C | fix: check user have enough permission
+2025-05-16 | Pranav C | fix: error message handling
+2025-05-16 | Pranav C | fix: update ee version of user invite
+2025-05-16 | Pranav C | fix: pass metaService ref
+2025-05-16 | Pranav C | fix: condition correction
+2025-05-16 | Pranav C | Revert "fix: add option to alter role inheriting from workspace to base"
+2025-05-16 | Pranav C | fix: add option to alter role inheriting from workspace to base
+2025-05-16 | Pranav C | chore: correction in owner role check
+2025-05-16 | Pranav C | chore: corrections in role check(WIP)
+2025-05-16 | Pranav C | fix: make method async
+2025-05-16 | Pranav C | refactor: add comments
+2025-05-16 | Pranav C | fix: ensure base user with owner role exist on removing the current owner
+2025-05-16 | Pranav C | fix: consider derived role
+2025-05-16 | Ramesh Mane | fix(nc-gui): oss props type define issue
+2025-05-16 | Ramesh Mane | fix(nc-gui): animation issue while switching ws
+2025-05-16 | Pranav C | Merge pull request #5533 from nocodb/oss/d082b5ff
+2025-05-16 | Ramesh Mane | fix(nc-gui): navigate to last opened base
+2025-05-16 | Ramesh Mane | fix(nc-gui): add loading state
+2025-05-16 | Fendy Heryanto | remove wip file
+2025-05-16 | Fendy Heryanto | refactor: use NC_ALLOW_LOCAL_HOOKS to allow using button with non tld urls
+2025-05-16 | Fendy Heryanto | localhost url is now considered valid url
+2025-05-16 | Pranav C | Merge pull request #5532 from nocodb/oss/a9ce33ea
+2025-05-16 | Pranav C | Update index.ts
+2025-05-16 | Pranav C | fix: missing appInfo reference
+2025-05-16 | Ramesh Mane | fix(test): hub test fail issue
+2025-05-16 | Anbarasu | Merge pull request #5529 from nocodb/fix-datefield
+2025-05-16 | DarkPhoenix2704 | fix: move file
+2025-05-16 | DarkPhoenix2704 | fix: simple fix
+2025-05-16 | Ramesh Mane | fix(nc-gui): add version info in new sidebar
+2025-05-16 | Ramesh Mane | fix(nc-gui): review changes
+2025-05-16 | Ramesh Mane | chore(nc-gui): lint
+2025-05-15 | Ramesh Mane | fix(nc-gui): padding issue
+2025-05-15 | Ramesh Mane | fix(nc-gui): ai review changes
+2025-05-15 | Ramesh Mane | chore(nc-gui): lint
+2025-05-15 | Ramesh Mane | fix(nc-gui): disable new sidebar for playwright
+2025-05-15 | Ramesh Mane | fix(nc-gui): small screen ui issue
+2025-05-15 | Ramesh Mane | fix(nc-gui): alt+b shortcut issue
+2025-05-14 | Ramesh Mane | fix(nc-gui): add class to duo color svg path
+2025-05-14 | Ramesh Mane | fix(nc-gui): base home page header action menu ui changes
+2025-05-14 | Ramesh Mane | fix(nc-gui): some review changes
+2025-05-14 | Ramesh Mane | fix(nc-gui): create new component for base context menu
+2025-05-14 | Ramesh Mane | fix(nc-gui): change create base icon
+2025-05-14 | Ramesh Mane | fix(nc-gui): add shortcut key alt+b
+2025-05-14 | Ramesh Mane | fix(nc-gui): quick search base homepage input
+2025-05-14 | Ramesh Mane | fix(test): sidebar test fail issue
+2025-05-14 | Ramesh Mane | fix(nc-gui): cmd-k click issue from cmd-j modal
+2025-05-14 | Ramesh Mane | fix(test): Cannot read properties of undefined (reading 'verifyBaseListOpen')
+2025-05-14 | Ramesh Mane | fix(nc-gui): edit description
+2025-05-14 | Ramesh Mane | fix(nc-gui): chevron icon alignment issue
+2025-05-14 | Ramesh Mane | fix(test): updated some left sidebar test cases
+2025-05-14 | Ramesh Mane | fix(nc-gui): add tooltip on create table plus btn
+2025-05-14 | Ramesh Mane | fix(nc-gui): active project highlight issue
+2025-05-14 | Ramesh Mane | fix(test): base related test udpate
+2025-05-14 | Ramesh Mane | fix(test): minisidebar action test
+2025-05-14 | Ramesh Mane | fix(nc-gui): notification tooltip
+2025-05-14 | Ramesh Mane | fix(nc-gui): base list empty state issue
+2025-05-14 | Ramesh Mane | fix(test): sidebar create table test update
+2025-05-14 | Ramesh Mane | fix(nc-gui): typo
+2025-05-14 | Ramesh Mane | fix(nc-gui): hide minisidebar only in mobile mode
+2025-05-14 | Ramesh Mane | fix(nc-gui): show base tooltip
+2025-05-14 | Ramesh Mane | fix(nc-gui): min sidebar arrow
+2025-05-14 | Ramesh Mane | fix(nc-gui): add workspace title in base list header
+2025-05-14 | Ramesh Mane | fix(nc-gui): cmd k review changes
+2025-05-14 | Ramesh Mane | fix(nc-gui): some review changes
+2025-05-14 | Ramesh Mane | fix(nc-gui): table search fn
+2025-05-14 | Ramesh Mane | fix(nc-gui): sidebar oss changes
+2025-05-13 | Ramesh Mane | fix(nc-gui): show base home page sidebar upon navigating to any base/table/view/script
+2025-05-13 | Ramesh Mane | fix(nc-gui): update project icon everywhere
+2025-05-13 | Ramesh Mane | fix(nc-gui): some review changes
+2025-05-13 | Ramesh Mane | fix(nc-gui): sidebar base icon active issue
+2025-05-13 | Ramesh Mane | fix(nc-gui): some animation issue
+2025-05-13 | Ramesh Mane | fix(nc-gui): oss sidebar logo issue
+2025-05-13 | Ramesh Mane | fix(nc-gui): some oss list changes
+2025-05-13 | Ramesh Mane | fix(nc-gui): some notification & scroll issue
+2025-05-13 | Ramesh Mane | fix(nc-gui): empty state
+2025-05-13 | Ramesh Mane | fix(nc-gui): cleanup
+2025-05-13 | Ramesh Mane | fix(nc-gui): show base home page if it is active on mount
+2025-05-13 | Ramesh Mane | chore(nc-gui): lint
+2025-05-13 | Ramesh Mane | fix(nc-gui): some transition issue
+2025-05-12 | Ramesh Mane | fix(nc-gui): shared base issue
+2025-05-12 | Ramesh Mane | fix(nc-gui): change order of create new btn
+2025-05-12 | Ramesh Mane | fix(nc-gui): some review changes
+2025-05-12 | Ramesh Mane | fix(nc-gui): animation issue
+2025-05-12 | Ramesh Mane | fix(nc-gui): add slide animation
+2025-05-12 | Ramesh Mane | fix(nc-gui): some review changes
+2025-05-12 | Ramesh Mane | fix(nc-gui): don't close sidebar if dropdown is active
+2025-05-12 | Ramesh Mane | fix(nc-gui): small issue
+2025-05-12 | Ramesh Mane | fix(nc-gui): add create new dropdown
+2025-05-12 | Ramesh Mane | fix(nc-gui): show ws menu on hover
+2025-05-12 | Ramesh Mane | fix(nc-gui): overflow and gap issue
+2025-05-12 | Ramesh Mane | fix(nc-gui): create base padding issue
+2025-05-12 | Ramesh Mane | fix(nc-gui): two mini sidebar btn active issue
+2025-05-12 | Ramesh Mane | fix(nc-gui): overflow issue
+2025-05-12 | Ramesh Mane | fix(nc-gui): Don't hide sidebar if user is hovering over any sidebar context menu dropdown
+2025-05-10 | Ramesh Mane | fix(nc-gui): update active state for base icon from minisidebar
+2025-05-10 | Ramesh Mane | fix(nc-gui): update minisidebar icons and state
+2025-05-10 | Ramesh Mane | fix(nc-gui): update left sidebar icons
+2025-05-10 | Ramesh Mane | fix(nc-gui): some padding issue
+2025-05-10 | Ramesh Mane | fix(nc-gui): client.x calculation issue while opening sidebar
+2025-05-10 | Ramesh Mane | fix(nc-gui): sidebar footer issue
+2025-05-10 | Ramesh Mane | fix(nc-gui): external source alignment issue
+2025-05-10 | Ramesh Mane | fix(nc-gui): create base btn bg issue
+2025-05-10 | Ramesh Mane | fix(nc-gui): baselist scroll issue
+2025-05-10 | Ramesh Mane | fix(nc-gui): scroll issue in list
+2025-05-10 | Ramesh Mane | fix(nc-gui): update script context menu
+2025-05-10 | Ramesh Mane | fix(nc-gui): add base list and table list sidebar switching
+2025-05-09 | Ramesh Mane | fix(nc-gui): closes sidebar width issue
+2025-05-09 | Ramesh Mane | fix(nc-gui): add base list component
+2025-05-09 | Ramesh Mane | fix(style): configure font weight for each custom fontSize variable in scss file
+2025-05-09 | Ramesh Mane | fix(nc-gui): use camelCase for windi css fontSize config
+2025-05-09 | Ramesh Mane | fix(nc-gui): base navigation issue
+2025-05-09 | Ramesh Mane | fix(nc-gui): hide open sidebar btn from non new sidebar pages
+2025-05-09 | Ramesh Mane | fix(nc-gui): some ui changes
+2025-05-09 | Ramesh Mane | fix(nc-gui): some ui changes
+2025-05-08 | Ramesh Mane | fix(nc-gui): closed sidebar hover area
+2025-05-08 | Ramesh Mane | feat(nc-gui): minisidebar
+2025-05-08 | Ramesh Mane | chore(nc-gui): add Improved Sidebar under beta feature
+2025-05-16 | Fendy Heryanto | formula query builder also handle replace users
+2025-05-16 | DarkPhoenix2704 | fix: calendar date field fixes
+2025-05-16 | Fendy Heryanto | like nlike user to use new method for replacing user id with email / name
+2025-05-16 | Pranav C | Merge pull request #4936 from nocodb/ee-version
+2025-05-16 | Pranav C | Merge pull request #5527 from nocodb/fix/5526-table-delete-bug
+2025-05-15 | Pranav C | fix: table delete - handle scenarios when user not in table page
+2025-05-13 | DarkPhoenix2704 | fix: limit audit log and dataList
+2025-05-13 | DarkPhoenix2704 | feat: audit logs support for mcp
+2025-05-15 | Anbarasu | Merge pull request #5495 from nocodb/script-templates
+2025-05-15 | Ameesha Arackal | Merge pull request #4988 from nocodb/fix/4351-user-role-issue
+2025-05-15 | DarkPhoenix2704 | fix: sync scripts
+2025-05-11 | DarkPhoenix2704 | chore: cleanup
+2025-05-11 | DarkPhoenix2704 | fix: script node in sidebar
+2025-05-11 | DarkPhoenix2704 | feat: allow user to see script details and add new script
+2025-05-11 | DarkPhoenix2704 | feat: refactor extensions to plugin for scripts
+2025-05-15 | DarkPhoenix2704 | fix: update package.json
+2025-05-15 | DarkPhoenix2704 | fix: some corrections
+2025-05-15 | DarkPhoenix2704 | feat: script use v3 api
+2025-05-15 | Fendy Heryanto | re-add null filter in json
+2025-05-15 | Ramesh Mane | Merge pull request #5519 from nocodb/fix/add-docs-link
+2025-05-15 | Fendy Heryanto | fix ui sorting
+2025-05-15 | Ramesh Mane | chore(nc-gui): lint
+2025-05-15 | Ramesh Mane | fix(nc-gui): select non supported file if their is no supported file
+2025-05-15 | Ramesh Mane | fix(nc-gui): add pdf in docs
+2025-05-15 | Ramesh Mane | fix(nc-gui): add supported file type docs link in expanded form filemode
+2025-05-15 | Ramesh Mane | Merge pull request #5508 from nocodb/fix/copy-paster-by-header
+2025-05-14 | Fendy Heryanto | fix off-by-1 index problem
+2025-05-15 | Fendy Heryanto | Merge pull request #5514 from nocodb/fix/multi-user-replace-order
+2025-05-15 | Pranav C | refactor: proper error code
+2025-05-13 | Pranav C | refactor: change permission check order
+2025-04-22 | Pranav C | fix: check user have enough permission
+2025-04-22 | Pranav C | fix: error message handling
+2025-04-22 | Pranav C | fix: update ee version of user invite/update/delete
+2025-04-22 | Pranav C | fix: update ee version of user invite
+2025-04-21 | Pranav C | fix: pass metaService ref
+2025-04-20 | Pranav C | fix: condition correction
+2025-03-28 | Pranav C | Revert "fix: add option to alter role inheriting from workspace to base"
+2025-03-27 | Pranav C | fix: add option to alter role inheriting from workspace to base
+2025-03-26 | Pranav C | chore: correction in owner role check
+2025-03-25 | Pranav C | chore: corrections in role check(WIP)
+2025-03-22 | Pranav C | fix: make method async
+2025-03-21 | Pranav C | refactor: add comments
+2025-03-21 | Pranav C | fix: ensure base user with owner role exist on removing the current owner
+2025-03-20 | Pranav C | fix: consider derived role
+2025-05-14 | Mert E. | Merge pull request #5516 from nocodb/fix-remove-userjoin
+2025-05-14 | DarkPhoenix2704 | fix: audit user join
+2025-05-14 | Fendy Heryanto | handle sqlite3 multiple users
+2025-05-14 | Pranav C | Merge pull request #5510 from nocodb/fix/v3-meta-add-column-single-line-text
+2025-05-14 | Fendy Heryanto | handle replace for pg
+2025-05-14 | Raju Udava | Merge pull request #5511 from nocodb/oss/a66901d2
+2025-05-14 | Raju Udava | fix: user field selection, add delay
+2025-05-14 | Raju Udava | fix: remove .only override
+2025-05-14 | Raju Udava | test: skip expand modes in OSS
+2025-05-14 | Fendy Heryanto | fix single line text not valid for field schema
+2025-05-14 | Raju Udava | Merge pull request #5489 from nocodb/fix/4712-on-prem-sso
+2025-05-14 | Raju Udava | Merge pull request #5509 from nocodb/fix-canvas-regression
+2025-05-14 | DarkPhoenix2704 | fix: disabled state condition wrong
+2025-05-14 | DarkPhoenix2704 | fix: do not keep state in column extra
+2025-05-14 | DarkPhoenix2704 | fix: canvas regression
+2025-05-13 | Raju Udava | Merge pull request #5498 from nocodb/fix/localhost-url
+2025-05-13 | Fendy Heryanto | remove wip file
+2025-05-13 | Raju Udava | Merge pull request #5488 from nocodb/fix/duplicate-column
+2025-05-13 | Raju Udava | Merge pull request #5499 from nocodb/fix/multiple-user-group
+2025-05-13 | Fendy Heryanto | refactor: use NC_ALLOW_LOCAL_HOOKS to allow using button with non tld urls
+2025-05-10 | Pranav C | feat: show no access message if license key limited with 1 workspace
+2025-05-13 | Mert E. | Merge pull request #5500 from nocodb/avoid-calling-integerationsm
+2025-05-13 | Mert E. | Merge pull request #5501 from nocodb/allow-hook-trigger
+2025-05-13 | mertmit | fix: update zero records
+2025-05-09 | mertmit | feat: optimize logic to call helpr
+2025-05-09 | mertmit | feat: batchUpdate helper for single pk
+2025-05-13 | Ramesh Mane | Merge pull request #5503 from nocodb/fix/issue-5502
+2025-05-13 | Ramesh Mane | fix(nocodb-sdk): update generate:sdk script
+2025-05-13 | DarkPhoenix2704 | fix: allow hook trigger for editor+
+2025-05-13 | DarkPhoenix2704 | fix: avoid calling loadIntegrations, instead use derived from workspace
+2025-05-13 | Fendy Heryanto | change replacement order by strategy
+2025-05-13 | Fendy Heryanto | localhost url is now considered valid url
+2025-05-12 | Anbarasu | Merge pull request #5496 from nocodb/oss/0435448f
+2025-05-12 | DarkPhoenix2704 | fix: minor correction
+2025-05-12 | DarkPhoenix2704 | fix: review comments
+2025-05-12 | DarkPhoenix2704 | fix: review comments
+2025-05-12 | DarkPhoenix2704 | fix: padding at header
+2025-05-12 | DarkPhoenix2704 | fix: review changes from shreyas
+2025-05-12 | DarkPhoenix2704 | fix: minor corrections
+2025-05-12 | DarkPhoenix2704 | fix: review comments
+2025-05-12 | DarkPhoenix2704 | fix: remove console
+2025-05-12 | DarkPhoenix2704 | fix: zod schema for attacment read
+2025-05-12 | DarkPhoenix2704 | fix: zod schema for attacment read
+2025-05-12 | DarkPhoenix2704 | feat: read attachment
+2025-05-12 | DarkPhoenix2704 | fix: new aui
+2025-05-12 | DarkPhoenix2704 | fix: lint
+2025-05-12 | DarkPhoenix2704 | fix: better acl control
+2025-05-12 | DarkPhoenix2704 | fix: mcp add token
+2025-05-12 | DarkPhoenix2704 | fix: delete when related meta deleted
+2025-05-12 | DarkPhoenix2704 | fix: review changes
+2025-05-12 | DarkPhoenix2704 | fix: keep mcp under feature flag
+2025-05-12 | DarkPhoenix2704 | fix: oss migration
+2025-05-12 | DarkPhoenix2704 | fix: mcp acl
+2025-05-12 | DarkPhoenix2704 | fix: ds support
+2025-05-12 | DarkPhoenix2704 | fix: remove internal workspace check
+2025-05-12 | DarkPhoenix2704 | feat: mcp
+2025-05-12 | Anbarasu | Merge pull request #5437 from nocodb/feat/mcp
+2025-05-12 | Ramesh Mane | Merge pull request #5480 from nocodb/docs/expanded-record-modes
+2025-05-12 | Pranav C | Merge pull request #5482 from nocodb/fix/gallery-search-date-copy-paste
+2025-05-12 | Raju Udava | Merge pull request #5432 from nocodb/fix/discussion-mode-followup
+2025-05-12 | Raju Udava | docs: feat available only in paid plans
+2025-05-12 | Pranav C | Revert "chore: add test prefix - revert later"
+2025-03-19 | Pranav C | feat: add version in sidebar
+2025-03-19 | Pranav C | chore: add test prefix - revert later
+2025-05-12 | DarkPhoenix2704 | fix: add acl service in noco.module
+2025-05-12 | DarkPhoenix2704 | fix: review comments
+2025-05-12 | DarkPhoenix2704 | fix: review comments
+2025-05-11 | DarkPhoenix2704 | fix: rebase
+2025-05-07 | DarkPhoenix2704 | fix: padding at header
+2025-05-07 | DarkPhoenix2704 | fix: review changes from shreyas
+2025-05-07 | DarkPhoenix2704 | fix: minor corrections
+2025-05-07 | DarkPhoenix2704 | fix: switch scope to root
+2025-05-07 | DarkPhoenix2704 | fix: review comments
+2025-05-07 | DarkPhoenix2704 | fix: remove console
+2025-05-07 | DarkPhoenix2704 | fix: zod schema for attacment read
+2025-05-07 | DarkPhoenix2704 | fix: zod schema for attacment read
+2025-05-07 | DarkPhoenix2704 | feat: read attachment
+2025-05-06 | DarkPhoenix2704 | fix: new aui
+2025-05-06 | DarkPhoenix2704 | fix: lint
+2025-05-06 | DarkPhoenix2704 | fix: better acl control
+2025-05-06 | DarkPhoenix2704 | fix: mcp add token
+2025-05-06 | DarkPhoenix2704 | fix: delete when related meta deleted
+2025-05-06 | DarkPhoenix2704 | fix: review changes
+2025-05-06 | DarkPhoenix2704 | fix: keep mcp under feature flag
+2025-05-06 | DarkPhoenix2704 | fix: oss migration
+2025-05-06 | DarkPhoenix2704 | fix: mcp acl
+2025-05-06 | DarkPhoenix2704 | fix: ds support
+2025-05-05 | DarkPhoenix2704 | fix: remove internal workspace check
+2025-05-05 | DarkPhoenix2704 | feat: mcp
+2025-05-11 | Mert E. | Merge pull request #5494 from nocodb/fix/empty-formula
+2025-05-11 | mertmit | fix: avoid populating skipped cols
+2025-03-19 | Pranav C | chore: update action to include version in on-prem docker image
+2025-05-10 | Mert E. | Merge pull request #5490 from nocodb/fix/snapshot-error
+2025-05-10 | mertmit | fix: snapshot throw on error
+2025-05-10 | Mert E. | Merge pull request #5487 from nocodb/fix/duplicate-empty
+2025-05-09 | mertmit | fix: better handle empty / null
+2025-05-09 | Fendy Heryanto | Merge branch 'fix/link-last-modified' into fix/gallery-search-date-copy-paste
+2025-05-09 | Fendy Heryanto | fix quick search not working
+2025-05-09 | Fendy Heryanto | add unit test for date time parser use column date format if exists
+2025-05-09 | Fendy Heryanto | update last modified for all affected rows when relation change
+2025-05-08 | Ramesh Mane | fix(nc-gui): update active expanded form view mode default state
+2025-05-08 | Ramesh Mane | chore(nc-gui): lint
+2025-05-08 | Ramesh Mane | fix(test): enable file mode pw test
+2025-05-08 | Ramesh Mane | fix(nc-gui): user field icon related issue
+2025-05-08 | Ramesh Mane | fix(nc-gui): some review changes
+2025-05-07 | Ramesh Mane | fix(nc-gui): update view mode only if it is active view expanded form open
+2025-05-07 | Ramesh Mane | fix(nc-gui): audit checkbox and rating render issue
+2025-05-07 | Ramesh Mane | fix(nc-gui): minor changes
+2025-05-07 | Ramesh Mane | fix(nc-gui): timezone display issue
+2025-05-07 | Ramesh Mane | fix(nc-gui): add fallback to field mode if view mode options are hidden and viewmode is not field mode
+2025-05-07 | Ramesh Mane | fix(nc-gui): update create attachment field to use file mode text for readonly users
+2025-05-07 | Ramesh Mane | fix(nc-gui): show discussion mode comment box only if user has comment edit or add access
+2025-05-07 | Ramesh Mane | fix(nc-gui): allow view mode toggle for viewer role also
+2025-05-07 | Ramesh Mane | fix(nc-gui): update swagger file to support discussion view mode udpate
+2025-05-07 | Ramesh Mane | fix(nc-gui): persist view mode information on toggle
+2025-05-07 | Ramesh Mane | fix(nc-gui): hide expanded form view mode in shared view
+2025-05-07 | Ramesh Mane | fix(nc-gui): shadow cut issue
+2025-05-07 | Ramesh Mane | fix(nc-gui): allow change attachment view field for viewer also
+2025-05-07 | Ramesh Mane | fix(nc-gui): open first preview supported file
+2025-05-07 | Ramesh Mane | fix(nc-gui): add border on field name in audit
+2025-05-07 | Ramesh Mane | fix(nc-gui): increase stoke width of field mode icon on active
+2025-05-06 | Ramesh Mane | fix(nc-gui): show rename and delete file option only if user has edit access from filemode
+2025-05-06 | Ramesh Mane | fix(nc-gui): add prev & next record text in expanded form navigation
+2025-05-06 | Ramesh Mane | fix(nc-gui): discussion mode comment box issue
+2025-05-06 | Ramesh Mane | fix(nc-gui): enable discussion & file mode by default
+2025-05-06 | Ramesh Mane | fix(nc-gui): ai review changes
+2025-05-05 | Ramesh Mane | fix(nc-gui): small change
+2025-05-05 | Ramesh Mane | chore(nc-gui): lint
+2025-05-05 | Ramesh Mane | fix(nc-gui): attachment rename issue
+2025-05-05 | Ramesh Mane | fix(nc-gui): filemode related ui changes
+2025-05-05 | Ramesh Mane | fix(nc-gui): date time field audit visibility issue
+2025-05-05 | Ramesh Mane | fix(nc-gui): initial vertical discussion mode line alignment issue
+2025-05-05 | Ramesh Mane | fix(nc-gui): minor changes
+2025-05-05 | Ramesh Mane | fix(nc-gui): update expanded form view mode tabs
+2025-05-05 | Ramesh Mane | fix(nc-gui): update gap
+2025-05-05 | Ramesh Mane | fix(nc-gui): comment user profile position udpate
+2025-05-05 | Ramesh Mane | fix(nc-gui): gap issue
+2025-05-05 | Ramesh Mane | fix(nc-gui): overflow issue
+2025-05-05 | Ramesh Mane | fix(nc-gui): expanded form max default visible attachment items
+2025-05-05 | Ramesh Mane | fix(nc-gui): remove badge border and bg from field badge
+2025-05-03 | Ramesh Mane | fix(nc-gui): sticky comment box
+2025-05-03 | Ramesh Mane | fix(nc-gui): discussion mode alignment issue
+2025-05-09 | Raju Udava | docs: expand record modes
+2025-05-09 | Ramesh Mane | Merge pull request #5474 from nocodb/fix/checkbox-issue
+2025-05-09 | Ramesh Mane | fix(nc-gui): remove optional chaining
+2025-05-09 | Raju Udava | Update Kanban.vue
+2025-05-09 | Ramesh Mane | chore(nc-gui): lint
+2025-05-09 | Ramesh Mane | fix(nc-gui): apply column color on url filter
+2025-05-09 | Ramesh Mane | fix(nc-gui): update alert box from url filter
+2025-05-09 | Ramesh Mane | fix(nc-gui): keep minimal info in delete stack
+2025-05-09 | Fendy Heryanto | fix undefined reference
+2025-05-09 | Ramesh Mane | fix(nc-gui): update kanban stack delete warning msg
+2025-05-09 | Ramesh Mane | fix(nc-gui): add string check validation in isValidURL fn
+2025-05-09 | Ramesh Mane | Merge pull request #5476 from nocodb/oss/a96f7e8b
+2025-05-09 | Salim B | docs: fix `NC_DISABLE_PG_DATA_REFLECTION` description
+2025-05-09 | Ramesh Mane | Merge pull request #5470 from nocodb/fix-form-image
+2025-05-08 | DarkPhoenix2704 | fix: form view logo url
+2025-05-08 | Mert E. | Merge pull request #5468 from nocodb/ui-clean-up-scripts
+2025-05-08 | DarkPhoenix2704 | fix: execute code
+2025-05-08 | DarkPhoenix2704 | fix: do not assign same variable
+2025-05-08 | DarkPhoenix2704 | fix: add debounce
+2025-05-08 | DarkPhoenix2704 | fix: remove watcher
+2025-05-08 | DarkPhoenix2704 | fix: rename code to script
+2025-05-08 | DarkPhoenix2704 | fix: script migration
+2025-05-08 | DarkPhoenix2704 | fix: build
+2025-05-08 | DarkPhoenix2704 | fix: build
+2025-05-08 | DarkPhoenix2704 | fix: scripts not loading properly
+2025-05-08 | DarkPhoenix2704 | fix: unwanted api calls
+2025-05-08 | DarkPhoenix2704 | fix: monaco not getting mounted
+2025-05-08 | DarkPhoenix2704 | fix: script not getting saved
+2025-05-08 | Mert E. | Merge pull request #5469 from nocodb/fix/onprem-filter
+2025-05-08 | mertmit | fix: token pw
+2025-05-08 | mertmit | fix: ui get limit
+2025-05-08 | Anbarasu | Merge pull request #5467 from nocodb/fix-script
+2025-05-08 | DarkPhoenix2704 | fix: minor correction
+2025-05-08 | DarkPhoenix2704 | fix: remove controllers and move to internal endpoints
+2025-05-08 | Raju Udava | Merge pull request #5455 from nocodb/fix/lookup-formula-nested
+2025-05-08 | Ramesh Mane | Merge pull request #5459 from nocodb/expand-icon-cursor
+2025-05-08 | Ramesh Mane | fix(nc-gui): index cell cursor issue
+2025-05-07 | WarWolf47 | fix: add cursor pointer for expand icon in row meta column
+2025-05-07 | Fendy Heryanto | revert back to original gealiascount
+2025-05-07 | Fendy Heryanto | increment lookup alias count
+2025-05-07 | Fendy Heryanto | fix missing context on verify filter prevent uidt mutation on formula general handler
+2025-05-07 | Fendy Heryanto | remove console.log
+2025-05-07 | Fendy Heryanto | tableAlias resolved in real time (not cached)
+2025-04-18 | Fendy Heryanto | change /api/v2/tables/{tableId}/links/{linkFieldId}/records/{recordId} response to 201 to match production
\ No newline at end of file
diff --git a/packages/nc-gui/lang/en.json b/packages/nc-gui/lang/en.json
index 9b58d15bbc..627234db7d 100644
--- a/packages/nc-gui/lang/en.json
+++ b/packages/nc-gui/lang/en.json
@@ -170,6 +170,10 @@
"upgradeToUseCurrentUserFilterSubtitle": "Upgrade to the {plan} plan to use filters that show data based on the current user.",
"upgradeToUseRowColoring": "Upgrade to use row colouring",
"upgradeToUseRowColoringSubtitle": "Upgrade to the {plan} plan to colour rows based on field values or conditions, making it easier to scan and prioritize your data.",
+ "upgradeToUseToggleFilter": "Upgrade to toggle individual filters",
+ "upgradeToUseToggleFilterSubtitle": "Upgrade to the {plan} plan to enable or disable individual filters without removing them, giving you more control over your views.",
+ "upgradeToUsePinnedFilter": "Upgrade to pin filters to toolbar",
+ "upgradeToUsePinnedFilterSubtitle": "Upgrade to the {plan} plan to pin frequently used filters to the toolbar for quick, one-click access.",
"upgradeToUseTableAndFieldPermissions": "Upgrade to use table and field permissions",
"upgradeToUseTableAndFieldPermissionsSubtitle": "Upgrade to the {plan} plan to use table and field permissions, making it easier to manage your data.",
"upgradeToUseScripts": "Upgrade to use scripts",
@@ -187,6 +191,8 @@
"upgradeToUseAiTextFieldSubtitle": "Upgrade to the {plan} plan to use AI Text fields to generate text based on your prompt.",
"upgradeToUseAiButtonField": "Upgrade to use AI Button fields",
"upgradeToUseAiButtonFieldSubtitle": "Upgrade to the {plan} plan to let AI Button use record data with NocoAI to fill multiple fields automatically.",
+ "upgradeToUseColourField": "Upgrade to use Colour fields",
+ "upgradeToUseColourFieldSubtitle": "Upgrade to the {plan} plan to use Colour fields to store and display colour values with a visual picker.",
"upgradeToAccessCopyViewConfigFromAnotherViewSubtitle": "Upgrade to the {plan} plan to access copy view configuration from another view feature.",
"upgradeToUseTeams": "Upgrade to use teams",
"upgradeToUseTeamsSubtitle": "Upgrade to the {plan} plan to use teams to group users and manage their access to workspaces and bases.",
@@ -483,7 +489,8 @@
"teams": "Teams",
"structure": "Structure",
"retry": "Retry",
- "attachImage": "Attach Image"
+ "attachImage": "Attach Image",
+ "none": "None"
},
"objects": {
"script": "Script",
@@ -1062,6 +1069,12 @@
"relevantDocumentation": "Relevant documentation"
},
"labels": {
+ "pinToToolbar": "Pin to toolbar",
+ "unpinFromToolbar": "Unpin from toolbar",
+ "maxPinnedFilters": "Max {count} filters can be pinned",
+ "pinNotSupported": "Pin is supported for Single Select, Multi Select, User, Created By, and Last Modified By fields only",
+ "parentGroupDisabled": "Parent filter group is disabled",
+ "fieldAlreadyPinned": "This field is already pinned by another filter",
"appMarket": "App Market",
"installs": "installs",
"checkingDependencies": "Checking Dependencies",
@@ -1745,6 +1758,10 @@
"addColour": "Add Colour",
"defaultColours": "Default colours",
"customColours": "Custom colours",
+ "defaultColor": "Default color",
+ "displayFormat": "Display format",
+ "swatchStyle": "Swatch style",
+ "swatchSize": "Swatch size",
"sendAllEvents": "Send all events",
"useNocoAI": "Use NocoAI",
"disableNocoAI": "Disable NocoAI",
diff --git a/packages/nc-gui/utils/cell.ts b/packages/nc-gui/utils/cell.ts
index b959c68ec2..ab3445a29c 100644
--- a/packages/nc-gui/utils/cell.ts
+++ b/packages/nc-gui/utils/cell.ts
@@ -32,8 +32,10 @@ export {
isDuration,
isGeoData,
isPercent,
+ isColour,
isSpecificDBType,
isGeometry,
+ isUUID,
isUser,
isButton,
isAiButton,
@@ -97,6 +99,7 @@ export const isShowNullField = (column: ColumnType) => {
UITypes.Year,
UITypes.Currency,
UITypes.Formula,
+ UITypes.UUID,
].includes(column.uidt as UITypes)
}
diff --git a/packages/nc-gui/utils/columnUtils.ts b/packages/nc-gui/utils/columnUtils.ts
index 26020694fe..a8b60a5de2 100644
--- a/packages/nc-gui/utils/columnUtils.ts
+++ b/packages/nc-gui/utils/columnUtils.ts
@@ -134,6 +134,10 @@ const uiTypes: UiTypesType[] = [
name: UITypes.Rating,
icon: iconMap.cellRating,
},
+ {
+ name: UITypes.Colour,
+ icon: iconMap.palette,
+ },
{
name: UITypes.Formula,
icon: iconMap.cellFormula,
@@ -175,6 +179,10 @@ const uiTypes: UiTypesType[] = [
name: UITypes.SpecificDBType,
icon: iconMap.cellDb,
},
+ {
+ name: UITypes.UUID,
+ icon: iconMap.cellUuid,
+ },
{
name: UITypes.User,
icon: iconMap.cellUser,
@@ -428,6 +436,7 @@ const formViewHiddenColTypes = [
UITypes.CreatedBy,
UITypes.LastModifiedBy,
UITypes.Meta,
+ UITypes.UUID,
AIButton,
AIPrompt,
]
diff --git a/packages/nc-gui/utils/dataUtils.ts b/packages/nc-gui/utils/dataUtils.ts
index a4b6d27f0a..4e8ae6ad71 100644
--- a/packages/nc-gui/utils/dataUtils.ts
+++ b/packages/nc-gui/utils/dataUtils.ts
@@ -140,7 +140,7 @@ export const rowDefaultData = (columns: ColumnType[] = []) => {
if (
!isSystemColumn(col) &&
!isVirtualCol(col) &&
- ![UITypes.Attachment, UITypes.Rollup, UITypes.Lookup, UITypes.Formula, UITypes.Barcode, UITypes.QrCode].includes(
+ ![UITypes.Attachment, UITypes.Rollup, UITypes.Lookup, UITypes.Formula, UITypes.Barcode, UITypes.QrCode, UITypes.UUID].includes(
col.uidt,
) &&
isValidValue(col?.cdf) &&
@@ -447,6 +447,16 @@ export const getLookupValue = (modelValue: string | null | number | Array<any>,
})
.join(', ')
}
+
+ // when childColumn not found (external base or nested links, simply return the modelValue
+ if (!childColumn){
+ if(typeof modelValue === 'string') {
+ return modelValue;
+ } else {
+ return modelValue?.toString() ?? ''
+ }
+ }
+
// eslint-disable-next-line @typescript-eslint/no-use-before-define
return parsePlainCellValue(modelValue, { ...params, col: childColumn })
}
diff --git a/packages/nc-gui/utils/iconUtils.ts b/packages/nc-gui/utils/iconUtils.ts
index b08d18a739..f2f719dd97 100644
--- a/packages/nc-gui/utils/iconUtils.ts
+++ b/packages/nc-gui/utils/iconUtils.ts
@@ -193,6 +193,8 @@ import NcCellAttachment from '~icons/nc-icons/cell-attachment'
import NcCellButton from '~icons/nc-icons/cell-button'
import NcCellAiButton from '~icons/nc-icons/cell-ai-button'
import NcCellAi from '~icons/nc-icons/cell-ai'
+import NcCellColour from '~icons/nc-icons/cell-colour'
+import NcCellUuid from '~icons/nc-icons/cell-uuid'
import NcCircleCheck from '~icons/nc-icons/circle-check'
import OnetoOneIcon from '~icons/nc-icons/onetoone'
@@ -516,6 +518,8 @@ import NcLinkedinIcon from '~icons/nc-icons-v2/linkedin.svg'
import NcVideoIcon from '~icons/nc-icons-v2/video.svg'
import NcActivityIcon from '~icons/nc-icons-v2/activity.svg'
import NcMapPinIcon from '~icons/nc-icons-v2/map-pin.svg'
+import NcPinIcon from '~icons/nc-icons-v2/pin.svg'
+import NcPinOffIcon from '~icons/nc-icons-v2/pin-off.svg'
import NcFilterIcon from '~icons/nc-icons-v2/filter.svg'
import NcPhoneIncomingIcon from '~icons/nc-icons-v2/phone-incoming.svg'
import NcItalicIcon from '~icons/nc-icons-v2/italic.svg'
@@ -998,9 +1002,11 @@ export const iconMap = {
'cellPhone': NcCellPhone,
'cellQrCode': NcCellQrCode,
'cellRating': NcCellRating,
+ 'cellColour': NcCellColour,
'cellRollup': h(NcCellRollup, { stroke: 'transparent' }),
'cellSingleSelect': NcCellSingleSelect,
'cellText': NcCellText,
+ 'cellUuid': NcCellUuid,
'cellTime': NcCellTime,
'cellUrl': NcCellUrl,
'cellUser': NcCellUser,
@@ -1563,6 +1569,8 @@ export const iconMap = {
'ncVideo': NcVideoIcon,
'ncActivity': NcActivityIcon,
'ncMapPin': NcMapPinIcon,
+ 'ncPin': NcPinIcon,
+ 'ncPinOff': NcPinOffIcon,
'ncFilter': NcFilterIcon,
'ncPhoneIncoming': NcPhoneIncomingIcon,
'ncItalic': NcItalicIcon,
@@ -4034,6 +4042,14 @@ export const searchableMap = {
icon: NcMapPinIcon,
keywords: ['location', 'navigation', 'marker', 'geography', 'pinpoint'],
},
+ ncPin: {
+ icon: NcPinIcon,
+ keywords: ['pin', 'attach', 'stick', 'thumbtack', 'pushpin'],
+ },
+ ncPinOff: {
+ icon: NcPinOffIcon,
+ keywords: ['unpin', 'detach', 'remove pin', 'unstick'],
+ },
ncFilter: {
icon: NcFilterIcon,
keywords: ['Sort', 'refine', 'categorize', 'organize', 'sift'],
diff --git a/packages/nocodb-sdk/src/lib/UITypes.ts b/packages/nocodb-sdk/src/lib/UITypes.ts
index fc2807e819..61c4089a7c 100644
--- a/packages/nocodb-sdk/src/lib/UITypes.ts
+++ b/packages/nocodb-sdk/src/lib/UITypes.ts
@@ -34,6 +34,7 @@ enum UITypes {
Percent = 'Percent',
Duration = 'Duration',
Rating = 'Rating',
+ Colour = 'Colour',
Formula = 'Formula',
Rollup = 'Rollup',
Count = 'Count',
@@ -53,6 +54,7 @@ enum UITypes {
LastModifiedBy = 'LastModifiedBy',
Order = 'Order',
Meta = 'Meta',
+ UUID = 'UUID',
}
export const UITypesName = {
@@ -82,6 +84,7 @@ export const UITypesName = {
[UITypes.Percent]: 'Percent',
[UITypes.Duration]: 'Duration',
[UITypes.Rating]: 'Rating',
+ [UITypes.Colour]: 'Colour',
[UITypes.Formula]: 'Formula',
[UITypes.Rollup]: 'Rollup',
[UITypes.Count]: 'Count',
@@ -100,6 +103,7 @@ export const UITypesName = {
[UITypes.CreatedBy]: 'Created by',
[UITypes.LastModifiedBy]: 'Last modified by',
[UITypes.Meta]: 'Row Meta',
+ [UITypes.UUID]: 'UUID',
AIButton: 'AI Button',
AIPrompt: 'AI Text',
};
@@ -192,6 +196,7 @@ export const UITypesSearchTerms = {
'hours worked',
],
[UITypes.Rating]: ['Rating', 'stars', 'score', 'review', 'feedback'],
+ [UITypes.Colour]: ['Colour', 'Color', 'hex', 'rgb', 'visual', 'palette', 'swatch'],
[UITypes.Formula]: [
'Formula',
'calculation',
@@ -231,6 +236,13 @@ export const UITypesSearchTerms = {
'last updated by',
'who changed',
],
+ [UITypes.UUID]: [
+ 'UUID',
+ 'unique identifier',
+ 'globally unique',
+ 'GUID',
+ 'universally unique identifier',
+ ],
AIButton: ['AI Button', 'AI action', 'smart button'],
AIPrompt: ['AI Text', 'AI Prompt', 'AI field', 'smart field'],
};
@@ -291,6 +303,7 @@ export const FieldNameFromUITypes: Record<UITypes, string> = {
[UITypes.Percent]: 'Percent',
[UITypes.Duration]: 'Duration',
[UITypes.Rating]: 'Rating',
+ [UITypes.Colour]: 'Colour',
[UITypes.Formula]: 'Formula',
[UITypes.Rollup]: '{RollupFunction}({FieldName}) from {TableName}',
[UITypes.Count]: 'Count',
@@ -310,6 +323,7 @@ export const FieldNameFromUITypes: Record<UITypes, string> = {
[UITypes.LastModifiedBy]: 'Last modified by',
[UITypes.Order]: 'Order',
[UITypes.Meta]: 'Row Meta',
+ [UITypes.UUID]: 'UUID',
};
export const numericUITypes = [
@@ -512,6 +526,7 @@ export const readonlyMetaAllowedTypes = [
UITypes.Button,
UITypes.Barcode,
UITypes.QrCode,
+ UITypes.UUID,
];
export const partialUpdateAllowedTypes = [
@@ -728,6 +743,7 @@ export const isReadOnlyColumn = (column: ColumnType): boolean => {
UITypes.Barcode,
UITypes.QrCode,
UITypes.ForeignKey,
+ UITypes.UUID,
].includes(column.uidt as UITypes) ||
// Check if the column is a system-generated user tracking field (CreatedBy, LastModifiedBy)
isCreatedOrLastModifiedByCol(column) ||
diff --git a/packages/nocodb-sdk/src/lib/columnHelper/column-helper.ts b/packages/nocodb-sdk/src/lib/columnHelper/column-helper.ts
index 5b496afe9b..31311ef0e0 100644
--- a/packages/nocodb-sdk/src/lib/columnHelper/column-helper.ts
+++ b/packages/nocodb-sdk/src/lib/columnHelper/column-helper.ts
@@ -9,6 +9,7 @@ import {
BarcodeHelper,
ButtonHelper,
CheckboxHelper,
+ ColourHelper,
CreatedTimeHelper,
CurrencyHelper,
DateHelper,
@@ -55,6 +56,7 @@ export class ColumnHelperClass {
[UITypes.Percent]: PercentHelper,
[UITypes.Checkbox]: CheckboxHelper,
[UITypes.Rating]: RatingHelper,
+ [UITypes.Colour]: ColourHelper,
[UITypes.PhoneNumber]: PhoneNumberHelper,
[UITypes.Email]: EmailHelper,
[UITypes.URL]: UrlHelper,
diff --git a/packages/nocodb-sdk/src/lib/columnHelper/columns/Colour.spec.ts b/packages/nocodb-sdk/src/lib/columnHelper/columns/Colour.spec.ts
new file mode 100644
index 0000000000..a1bb954630
--- /dev/null
+++ b/packages/nocodb-sdk/src/lib/columnHelper/columns/Colour.spec.ts
@@ -0,0 +1,109 @@
+import { ColourHelper } from './Colour';
+import { SilentTypeConversionError } from '~/lib/error';
+
+describe('ColourHelper', () => {
+ const helper = new ColourHelper();
+
+ describe('columnDefaultMeta', () => {
+ it('has sensible defaults', () => {
+ expect(helper.columnDefaultMeta).toEqual({
+ defaultColor: '#FFFFFF',
+ displayFormat: 'swatch_hex',
+ swatchStyle: 'circle',
+ swatchSize: 'medium',
+ });
+ });
+ });
+
+ describe('serializeValue', () => {
+ const baseParams = {
+ isMultipleCellPaste: false,
+ serializeSearchQuery: false,
+ } as any;
+
+ it('normalizes lowercase hex to uppercase', () => {
+ expect(helper.serializeValue('#ff5733', baseParams)).toBe('#FF5733');
+ });
+
+ it('adds # prefix when missing', () => {
+ expect(helper.serializeValue('ff5733', baseParams)).toBe('#FF5733');
+ });
+
+ it('returns null for null/undefined/empty', () => {
+ expect(helper.serializeValue(null, baseParams)).toBeNull();
+ expect(helper.serializeValue(undefined, baseParams)).toBeNull();
+ expect(helper.serializeValue('', baseParams)).toBeNull();
+ });
+
+ it('throws SilentTypeConversionError for whitespace-only string', () => {
+ expect(() => helper.serializeValue(' ', baseParams)).toThrow(
+ SilentTypeConversionError
+ );
+ });
+
+ it('throws SilentTypeConversionError for invalid hex in normal mode', () => {
+ expect(() => helper.serializeValue('not-a-color', baseParams)).toThrow(
+ SilentTypeConversionError
+ );
+ });
+
+ it('returns null for invalid hex during multi-cell paste', () => {
+ const pasteParams = { ...baseParams, isMultipleCellPaste: true };
+ expect(helper.serializeValue('not-a-color', pasteParams)).toBeNull();
+ });
+
+ it('returns null for invalid hex during search query serialization', () => {
+ const searchParams = { ...baseParams, serializeSearchQuery: true };
+ expect(helper.serializeValue('not-a-color', searchParams)).toBeNull();
+ });
+
+ it('handles value with leading/trailing whitespace', () => {
+ expect(helper.serializeValue(' #FF5733 ', baseParams)).toBe(
+ '#FF5733'
+ );
+ });
+
+ it('rejects 3-digit shorthand', () => {
+ expect(() => helper.serializeValue('#F53', baseParams)).toThrow(
+ SilentTypeConversionError
+ );
+ });
+
+ it('rejects rgb() format', () => {
+ expect(() =>
+ helper.serializeValue('rgb(255,87,51)', baseParams)
+ ).toThrow(SilentTypeConversionError);
+ });
+ });
+
+ describe('parseValue', () => {
+ it('normalizes valid hex', () => {
+ expect(helper.parseValue('#ff5733')).toBe('#FF5733');
+ expect(helper.parseValue('ff5733')).toBe('#FF5733');
+ });
+
+ it('returns null for null/undefined/empty', () => {
+ expect(helper.parseValue(null)).toBeNull();
+ expect(helper.parseValue(undefined)).toBeNull();
+ expect(helper.parseValue('')).toBeNull();
+ });
+
+ it('returns null for invalid values', () => {
+ expect(helper.parseValue('not-a-color')).toBeNull();
+ expect(helper.parseValue('#GGG000')).toBeNull();
+ });
+ });
+
+ describe('parsePlainCellValue', () => {
+ const params = {} as any;
+
+ it('returns normalized hex string', () => {
+ expect(helper.parsePlainCellValue('#ff5733', params)).toBe('#FF5733');
+ });
+
+ it('returns empty string for null/invalid', () => {
+ expect(helper.parsePlainCellValue(null, params)).toBe('');
+ expect(helper.parsePlainCellValue('invalid', params)).toBe('');
+ });
+ });
+});
diff --git a/packages/nocodb-sdk/src/lib/columnHelper/columns/Colour.ts b/packages/nocodb-sdk/src/lib/columnHelper/columns/Colour.ts
new file mode 100644
index 0000000000..8a228d1f11
--- /dev/null
+++ b/packages/nocodb-sdk/src/lib/columnHelper/columns/Colour.ts
@@ -0,0 +1,54 @@
+import { SilentTypeConversionError } from '~/lib/error';
+import AbstractColumnHelper, {
+ SerializerOrParserFnProps,
+} from '../column.interface';
+import { normalizeHexColour } from '../utils/colour';
+
+export class ColourHelper extends AbstractColumnHelper {
+ columnDefaultMeta = {
+ defaultColor: '#FFFFFF',
+ displayFormat: 'swatch_hex', // 'swatch_hex' | 'swatch_only' | 'hex_only'
+ swatchStyle: 'circle', // 'circle' | 'square'
+ swatchSize: 'medium', // 'small' | 'medium' | 'large'
+ };
+
+ /**
+ * Serialise a user-supplied value for storage.
+ *
+ * During bulk paste or search-query serialisation, invalid values are
+ * silently dropped (returns `null`). In all other contexts an invalid
+ * value throws a {@link SilentTypeConversionError} so the caller can
+ * surface an appropriate message.
+ */
+ serializeValue(
+ value: any,
+ params: SerializerOrParserFnProps['params']
+ ): string | null {
+ if (!value) return null;
+
+ const normalized = normalizeHexColour(value);
+
+ if (!normalized) {
+ if (params.isMultipleCellPaste || params.serializeSearchQuery) {
+ return null;
+ } else {
+ throw new SilentTypeConversionError();
+ }
+ }
+
+ return normalized;
+ }
+
+ /** Parse a stored value for display. Returns `null` for invalid values. */
+ parseValue(value: any): string | null {
+ return normalizeHexColour(value);
+ }
+
+ /** Return a plain-text representation suitable for export / clipboard. */
+ parsePlainCellValue(
+ value: any,
+ _params: SerializerOrParserFnProps['params']
+ ): string {
+ return normalizeHexColour(value) || '';
+ }
+}
diff --git a/packages/nocodb-sdk/src/lib/columnHelper/columns/Lookup.ts b/packages/nocodb-sdk/src/lib/columnHelper/columns/Lookup.ts
index 0d131e64f4..a618f09eb3 100644
--- a/packages/nocodb-sdk/src/lib/columnHelper/columns/Lookup.ts
+++ b/packages/nocodb-sdk/src/lib/columnHelper/columns/Lookup.ts
@@ -67,6 +67,15 @@ export class LookupHelper extends AbstractColumnHelper {
.join(', ');
}
+ // when childColumn not found (external base or nested links, simply return the value
+ if (!childColumn) {
+ if (typeof value === 'string') {
+ return value;
+ } else {
+ return value?.toString() ?? '';
+ }
+ }
+
return ColumnHelper.parseValue(value, { ...params, col: childColumn! });
}
diff --git a/packages/nocodb-sdk/src/lib/columnHelper/columns/index.ts b/packages/nocodb-sdk/src/lib/columnHelper/columns/index.ts
index 17604ba7d4..83ad8fb1bf 100644
--- a/packages/nocodb-sdk/src/lib/columnHelper/columns/index.ts
+++ b/packages/nocodb-sdk/src/lib/columnHelper/columns/index.ts
@@ -7,6 +7,7 @@ export * from './Percent';
export * from './SingleLineText';
export * from './LongText';
export * from './Rating';
+export * from './Colour';
export * from './Decimal';
export * from './PhoneNumber';
export * from './Email';
diff --git a/packages/nocodb-sdk/src/lib/columnHelper/utils/cell.ts b/packages/nocodb-sdk/src/lib/columnHelper/utils/cell.ts
index fa9c1154f4..5b69573544 100644
--- a/packages/nocodb-sdk/src/lib/columnHelper/utils/cell.ts
+++ b/packages/nocodb-sdk/src/lib/columnHelper/utils/cell.ts
@@ -84,12 +84,18 @@ export const isGeoData = (column: ColumnType) =>
export const isPercent = (column: ColumnType) =>
column.uidt === UITypes.Percent;
+export const isColour = (column: ColumnType) =>
+ column.uidt === UITypes.Colour;
+
export const isSpecificDBType = (column: ColumnType) =>
column.uidt === UITypes.SpecificDBType;
export const isGeometry = (column: ColumnType) =>
column.uidt === UITypes.Geometry;
+// PR review fix #1: UUID is in the ColumnType.uidt union β€” no cast needed
+export const isUUID = (column: ColumnType) => column.uidt === UITypes.UUID;
+
export const isUser = (column: ColumnType) => column.uidt === UITypes.User;
export const isMultiUser = (column: ColumnType) =>
diff --git a/packages/nocodb-sdk/src/lib/columnHelper/utils/colour.spec.ts b/packages/nocodb-sdk/src/lib/columnHelper/utils/colour.spec.ts
new file mode 100644
index 0000000000..dbdcc50c3b
--- /dev/null
+++ b/packages/nocodb-sdk/src/lib/columnHelper/utils/colour.spec.ts
@@ -0,0 +1,124 @@
+import {
+ HEX_COLOUR_REGEX,
+ HEX_COLOUR_WITH_ALPHA_REGEX,
+ normalizeHexColour,
+ normalizeHexColourWithAlpha,
+ isValidHexColour,
+} from './colour';
+
+describe('colour utilities', () => {
+ describe('HEX_COLOUR_REGEX', () => {
+ it('matches 6-digit hex with #', () => {
+ expect('#FF5733'.match(HEX_COLOUR_REGEX)).toBeTruthy();
+ });
+ it('matches 6-digit hex without #', () => {
+ expect('ff5733'.match(HEX_COLOUR_REGEX)).toBeTruthy();
+ });
+ it('rejects 3-digit shorthand', () => {
+ expect('#F53'.match(HEX_COLOUR_REGEX)).toBeNull();
+ });
+ it('rejects 8-digit hex (with alpha)', () => {
+ expect('#FF5733AA'.match(HEX_COLOUR_REGEX)).toBeNull();
+ });
+ it('rejects non-hex characters', () => {
+ expect('#GGGGGG'.match(HEX_COLOUR_REGEX)).toBeNull();
+ });
+ });
+
+ describe('HEX_COLOUR_WITH_ALPHA_REGEX', () => {
+ it('matches 6-digit hex', () => {
+ expect('#FF5733'.match(HEX_COLOUR_WITH_ALPHA_REGEX)).toBeTruthy();
+ });
+ it('matches 8-digit hex (with alpha)', () => {
+ const match = '#FF5733AA'.match(HEX_COLOUR_WITH_ALPHA_REGEX);
+ expect(match).toBeTruthy();
+ expect(match![1]).toBe('FF5733');
+ expect(match![2]).toBe('AA');
+ });
+ it('rejects 7-digit values', () => {
+ expect('#FF5733A'.match(HEX_COLOUR_WITH_ALPHA_REGEX)).toBeNull();
+ });
+ });
+
+ describe('normalizeHexColour', () => {
+ it('normalizes lowercase to uppercase with #', () => {
+ expect(normalizeHexColour('ff5733')).toBe('#FF5733');
+ });
+ it('normalizes value already with #', () => {
+ expect(normalizeHexColour('#ff5733')).toBe('#FF5733');
+ });
+ it('preserves already-uppercase value', () => {
+ expect(normalizeHexColour('#FF5733')).toBe('#FF5733');
+ });
+ it('returns null for empty string', () => {
+ expect(normalizeHexColour('')).toBeNull();
+ });
+ it('returns null for null', () => {
+ expect(normalizeHexColour(null)).toBeNull();
+ });
+ it('returns null for undefined', () => {
+ expect(normalizeHexColour(undefined)).toBeNull();
+ });
+ it('returns null for invalid hex', () => {
+ expect(normalizeHexColour('not-a-color')).toBeNull();
+ });
+ it('returns null for 3-digit shorthand', () => {
+ expect(normalizeHexColour('#F53')).toBeNull();
+ });
+ it('returns null for 8-digit hex (alpha not accepted)', () => {
+ expect(normalizeHexColour('#FF5733AA')).toBeNull();
+ });
+ it('trims whitespace', () => {
+ expect(normalizeHexColour(' #FF5733 ')).toBe('#FF5733');
+ });
+ it('accepts numeric value whose digits happen to be valid hex', () => {
+ // String(123456) = '123456' which IS valid hex
+ expect(normalizeHexColour(123456)).toBe('#123456');
+ });
+ it('handles zero', () => {
+ expect(normalizeHexColour(0)).toBeNull();
+ });
+ });
+
+ describe('normalizeHexColourWithAlpha', () => {
+ it('normalizes 6-digit hex', () => {
+ expect(normalizeHexColourWithAlpha('#ff5733')).toBe('#FF5733');
+ });
+ it('strips alpha channel from 8-digit hex', () => {
+ expect(normalizeHexColourWithAlpha('#FF5733AA')).toBe('#FF5733');
+ });
+ it('strips alpha channel without # prefix', () => {
+ expect(normalizeHexColourWithAlpha('ff5733aa')).toBe('#FF5733');
+ });
+ it('returns null for invalid values', () => {
+ expect(normalizeHexColourWithAlpha('rgb(255,0,0)')).toBeNull();
+ });
+ });
+
+ describe('isValidHexColour', () => {
+ it('returns true for valid #RRGGBB', () => {
+ expect(isValidHexColour('#FF5733')).toBe(true);
+ });
+ it('returns true for lowercase #rrggbb', () => {
+ expect(isValidHexColour('#ff5733')).toBe(true);
+ });
+ it('returns false without # prefix', () => {
+ expect(isValidHexColour('FF5733')).toBe(false);
+ });
+ it('returns false for null', () => {
+ expect(isValidHexColour(null)).toBe(false);
+ });
+ it('returns false for undefined', () => {
+ expect(isValidHexColour(undefined)).toBe(false);
+ });
+ it('returns false for non-string', () => {
+ expect(isValidHexColour(123)).toBe(false);
+ });
+ it('returns false for empty string', () => {
+ expect(isValidHexColour('')).toBe(false);
+ });
+ it('returns false for 8-digit hex', () => {
+ expect(isValidHexColour('#FF5733AA')).toBe(false);
+ });
+ });
+});
diff --git a/packages/nocodb-sdk/src/lib/columnHelper/utils/colour.ts b/packages/nocodb-sdk/src/lib/columnHelper/utils/colour.ts
new file mode 100644
index 0000000000..854a55336c
--- /dev/null
+++ b/packages/nocodb-sdk/src/lib/columnHelper/utils/colour.ts
@@ -0,0 +1,57 @@
+/**
+ * Shared hex colour validation and normalization utilities.
+ *
+ * All colour values in NocoDB are stored as uppercase 6-digit hex strings
+ * with a leading `#` (e.g. `#FF5733`). These helpers centralise the regex
+ * and normalisation logic so that the SDK column helper, the backend field
+ * handler, and the frontend components all use the same rules.
+ */
+
+/** Matches a 6-digit hex colour with an optional `#` prefix. */
+export const HEX_COLOUR_REGEX = /^#?([0-9A-Fa-f]{6})$/;
+
+/**
+ * Matches a 6-digit hex colour with an optional `#` prefix and an optional
+ * 2-digit alpha suffix. The alpha channel is captured but stripped during
+ * normalisation so that the stored value is always 6 digits.
+ */
+export const HEX_COLOUR_WITH_ALPHA_REGEX =
+ /^#?([0-9A-Fa-f]{6})([0-9A-Fa-f]{2})?$/;
+
+/**
+ * Validate and normalise a raw value to `#RRGGBB` (uppercase).
+ *
+ * @param value – Any value that might represent a hex colour.
+ * @returns The normalised `#RRGGBB` string, or `null` when the input is
+ * empty / invalid.
+ */
+export function normalizeHexColour(value: unknown): string | null {
+ if (!value) return null;
+
+ const str = String(value).trim();
+ if (!str) return null;
+
+ const match = str.match(HEX_COLOUR_REGEX);
+ return match ? `#${match[1].toUpperCase()}` : null;
+}
+
+/**
+ * Same as {@link normalizeHexColour} but also accepts 8-digit hex values
+ * (with a 2-digit alpha suffix) and strips the alpha channel.
+ */
+export function normalizeHexColourWithAlpha(value: unknown): string | null {
+ if (!value) return null;
+
+ const str = String(value).trim();
+ if (!str) return null;
+
+ const match = str.match(HEX_COLOUR_WITH_ALPHA_REGEX);
+ return match ? `#${match[1].toUpperCase()}` : null;
+}
+
+/**
+ * Check whether a string is a valid `#RRGGBB` colour (requires `#` prefix).
+ */
+export function isValidHexColour(value: unknown): boolean {
+ return typeof value === 'string' && /^#[0-9A-Fa-f]{6}$/.test(value);
+}
diff --git a/packages/nocodb-sdk/src/lib/columnHelper/utils/index.ts b/packages/nocodb-sdk/src/lib/columnHelper/utils/index.ts
index 5a4faf90f1..9a4dbd0ee9 100644
--- a/packages/nocodb-sdk/src/lib/columnHelper/utils/index.ts
+++ b/packages/nocodb-sdk/src/lib/columnHelper/utils/index.ts
@@ -10,3 +10,4 @@ export * from './validation';
export * from './get-lookup-column-type';
export * from './recursive';
export * from './clipboard-config';
+export * from './colour';
diff --git a/packages/nocodb-sdk/src/lib/error-handler/preset-error-codex-map.ts b/packages/nocodb-sdk/src/lib/error-handler/preset-error-codex-map.ts
index 1803d3010b..dfef6ece78 100644
--- a/packages/nocodb-sdk/src/lib/error-handler/preset-error-codex-map.ts
+++ b/packages/nocodb-sdk/src/lib/error-handler/preset-error-codex-map.ts
@@ -316,7 +316,7 @@ export const presetErrorCodexMap: Partial<
message: (message: string) =>
message ||
'External source taking long to respond. Reconsider sorts/filters for this view and confirm if source is accessible.',
- code: 504,
+ code: 408,
},
[NcErrorType.ERR_RELATION_FIELD_NOT_FOUND]: {
message: (id: string) => `Relation Field '${id}' not found`,
diff --git a/packages/nocodb-sdk/src/lib/filter/filterUtils.ts b/packages/nocodb-sdk/src/lib/filter/filterUtils.ts
index c8bbdd7e22..16eea2110a 100644
--- a/packages/nocodb-sdk/src/lib/filter/filterUtils.ts
+++ b/packages/nocodb-sdk/src/lib/filter/filterUtils.ts
@@ -180,6 +180,7 @@ const getTypeSpecificSemantic = (
UITypes.Email,
UITypes.PhoneNumber,
UITypes.URL,
+ UITypes.UUID,
].includes(fieldUiType)
) {
return `${baseSemantic}_text`;
@@ -277,6 +278,7 @@ export const comparisonOpList = (
UITypes.CreatedTime,
UITypes.LastModifiedTime,
UITypes.Time,
+ UITypes.Colour,
...numericUITypes,
],
semanticType: 'pattern_match',
@@ -300,6 +302,7 @@ export const comparisonOpList = (
UITypes.CreatedTime,
UITypes.LastModifiedTime,
UITypes.Time,
+ UITypes.Colour,
...numericUITypes,
],
semanticType: 'pattern_not_match',
@@ -532,14 +535,16 @@ export const comparisonOpList = (
text: 'is blank',
value: 'blank',
ignoreVal: true,
- excludedTypes: [UITypes.Checkbox, UITypes.Links, UITypes.Rollup],
+ // UUID excluded: auto-generated on insert, never blank
+ excludedTypes: [UITypes.Checkbox, UITypes.Links, UITypes.Rollup, UITypes.UUID],
semanticType: 'blank_check',
},
{
text: 'is not blank',
value: 'notblank',
ignoreVal: true,
- excludedTypes: [UITypes.Checkbox, UITypes.Links, UITypes.Rollup],
+ // UUID excluded: auto-generated on insert, never blank
+ excludedTypes: [UITypes.Checkbox, UITypes.Links, UITypes.Rollup, UITypes.UUID],
semanticType: 'not_blank_check',
},
];
@@ -824,6 +829,7 @@ export const getPlaceholderNewRow = (
UITypes.Percent,
UITypes.Rating,
UITypes.Duration,
+ UITypes.Colour,
UITypes.JSON,
// User is using allOf and anyOf so we cannot include it here
diff --git a/packages/nocodb-sdk/src/lib/formula/validate-extract-tree.spec.ts b/packages/nocodb-sdk/src/lib/formula/validate-extract-tree.spec.ts
index 665b3beafb..f3f091de37 100644
--- a/packages/nocodb-sdk/src/lib/formula/validate-extract-tree.spec.ts
+++ b/packages/nocodb-sdk/src/lib/formula/validate-extract-tree.spec.ts
@@ -235,7 +235,8 @@ const mockColumns: UnifiedMetaType.IColumn[] = [
},
];
-const mockGetMeta: UnifiedMetaType.IGetModel = jest.fn(
+// PR review fix #8: use proper typing instead of `as any` casts
+const mockGetMeta = jest.fn(
async (_context, options) => {
if (options.id === 'model2') {
return {
@@ -246,7 +247,7 @@ const mockGetMeta: UnifiedMetaType.IGetModel = jest.fn(
{
id: 'col7',
title: 'Column7',
- uidt: UITypes.SingleLineText,
+ uidt: UITypes.SingleLineText as any,
dt: 'varchar',
pv: true,
base_id: 'base1',
@@ -255,16 +256,16 @@ const mockGetMeta: UnifiedMetaType.IGetModel = jest.fn(
deleted: false,
},
],
- };
+ } as any;
}
return {
id: 'model1',
title: 'Model1',
base_id: 'base1',
- columns: mockColumns,
- };
+ columns: mockColumns as any,
+ } as any;
}
-);
+) as unknown as UnifiedMetaType.IGetModel;
const mockClientOrSqlUi = SqlUiFactory.create({ client: 'pg' });
diff --git a/packages/nocodb-sdk/src/lib/formula/validate-extract-tree.ts b/packages/nocodb-sdk/src/lib/formula/validate-extract-tree.ts
index 758903ded0..f09a83f2d4 100644
--- a/packages/nocodb-sdk/src/lib/formula/validate-extract-tree.ts
+++ b/packages/nocodb-sdk/src/lib/formula/validate-extract-tree.ts
@@ -584,18 +584,19 @@ async function checkForCircularFormulaRef(
}
if (ltarColumn) {
- const relatedTableMeta = await getMeta(
- unifiedMeta.getContextFromObject({
+ const ltarColumnContext = unifiedMeta.getContextFromObject({
...ltarColumn,
base_id:
(ltarColumn.colOptions as LinkToAnotherRecordType)
.fk_related_base_id ?? ltarColumn.base_id,
- }),
+ });
+ const ltarColOptions = await unifiedMeta.getColOptions<UnifiedMetaType.ILinkToAnotherRecordColumn>(ltarColumnContext, {column: ltarColumn})
+ const relatedTableMeta = await unifiedMeta.getLTARRelatedTable(ltarColumnContext,
{
- id: (ltarColumn.colOptions as LinkToAnotherRecordType)
- .fk_related_model_id,
+ colOptions: ltarColOptions,
+ getMeta
}
- );
+ )
const lookupTarget = (
await unifiedMeta.getColumns(
unifiedMeta.getContextFromObject(relatedTableMeta),
diff --git a/packages/nocodb-sdk/src/lib/formulaHelpers.spec.ts b/packages/nocodb-sdk/src/lib/formulaHelpers.spec.ts
index 87a55e3cab..f2d09a4dfc 100644
--- a/packages/nocodb-sdk/src/lib/formulaHelpers.spec.ts
+++ b/packages/nocodb-sdk/src/lib/formulaHelpers.spec.ts
@@ -347,12 +347,13 @@ describe('Formula parsing and type validation', () => {
for (const supportedType of supportedTypes) {
const result = await validateFormulaAndExtractTreeWithType({
formula: '{column1} + 3',
+ // Cast partial mock column properly instead of double `as any`
columns: [
{
base_id,
id: 'id1',
title: 'column1',
- uidt: supportedType,
+ uidt: supportedType as any,
},
],
clientOrSqlUi: 'mysql2',
diff --git a/packages/nocodb-sdk/src/lib/payment/index.ts b/packages/nocodb-sdk/src/lib/payment/index.ts
index a826e2dacf..70a833807c 100644
--- a/packages/nocodb-sdk/src/lib/payment/index.ts
+++ b/packages/nocodb-sdk/src/lib/payment/index.ts
@@ -65,12 +65,17 @@ export enum PlanFeatureTypes {
FEATURE_CALENDAR_RANGE = 'feature_calendar_range',
FEATURE_AI_PROMPT_FIELD = 'feature_ai_prompt_field',
FEATURE_AI_BUTTON_FIELD = 'feature_ai_button_field',
+ FEATURE_COLOUR_FIELD = 'feature_colour_field',
FEATURE_DUPLICATE_TABLE_TO_OTHER_BASE = 'feature_duplicate_table_to_other_base',
FEATURE_DUPLICATE_TABLE_TO_OTHER_WS = 'feature_duplicate_table_to_other_ws',
FEATURE_COPY_VIEW_SETTING_FROM_OTHER = 'feature_copy_view_setting_other',
FEATURE_CARD_FIELD_HEADER_VISIBILITY = 'feature_card_field_header_visibility',
FEATURE_SYNC = 'feature_sync',
FEATURE_UNIQUE = 'feature_unique',
+ FEATURE_TOGGLE_FILTER = 'feature_toggle_filter',
+ FEATURE_PINNED_FILTER = 'feature_pinned_filter',
+ // EE-only UUID field type β€” gated by plan feature flag
+ FEATURE_UUID_FIELD = 'feature_uuid_field',
}
export enum PlanTitles {
@@ -279,6 +284,7 @@ export const PlanFeatureUpgradeMessages: Record<PlanFeatureTypes, string> = {
'to visualize records in a calendar range.',
[PlanFeatureTypes.FEATURE_AI_PROMPT_FIELD]: 'to use AI text fields.',
[PlanFeatureTypes.FEATURE_AI_BUTTON_FIELD]: 'to use AI button fields.',
+ [PlanFeatureTypes.FEATURE_COLOUR_FIELD]: 'to use colour fields.',
[PlanFeatureTypes.FEATURE_DUPLICATE_TABLE_TO_OTHER_BASE]:
'to target different base when duplicate table.',
[PlanFeatureTypes.FEATURE_DUPLICATE_TABLE_TO_OTHER_WS]:
@@ -289,6 +295,9 @@ export const PlanFeatureUpgradeMessages: Record<PlanFeatureTypes, string> = {
'to hide field headers in Gallery and Kanban views.',
[PlanFeatureTypes.FEATURE_SYNC]: 'to use sync feature.',
[PlanFeatureTypes.FEATURE_UNIQUE]: 'to use unique constraint.',
+ [PlanFeatureTypes.FEATURE_TOGGLE_FILTER]: 'to enable or disable individual filters.',
+ [PlanFeatureTypes.FEATURE_PINNED_FILTER]: 'to pin filters to the toolbar.',
+ [PlanFeatureTypes.FEATURE_UUID_FIELD]: 'to use UUID fields.',
};
export const getUpgradeMessage = (
diff --git a/packages/nocodb-sdk/src/lib/sqlUi/PgUi.ts b/packages/nocodb-sdk/src/lib/sqlUi/PgUi.ts
index 9809a03a97..6e06c059c7 100644
--- a/packages/nocodb-sdk/src/lib/sqlUi/PgUi.ts
+++ b/packages/nocodb-sdk/src/lib/sqlUi/PgUi.ts
@@ -1781,6 +1781,11 @@ export class PgUi implements SqlUi {
case 'Order':
colProp.dt = 'numeric';
break;
+ case 'UUID':
+ colProp.dt = 'uuid';
+ colProp.cdf = 'gen_random_uuid()';
+ colProp.rqd = false;
+ break;
default:
colProp.dt = 'character varying';
break;
@@ -2060,6 +2065,9 @@ export class PgUi implements SqlUi {
'circle',
];
+ case 'UUID':
+ return ['uuid'];
+
default:
return dbTypes;
}
diff --git a/packages/nocodb-sdk/src/lib/uniqueConstraintHelpers.ts b/packages/nocodb-sdk/src/lib/uniqueConstraintHelpers.ts
index bfecc5d985..0731c09941 100644
--- a/packages/nocodb-sdk/src/lib/uniqueConstraintHelpers.ts
+++ b/packages/nocodb-sdk/src/lib/uniqueConstraintHelpers.ts
@@ -15,6 +15,7 @@ export const UNIQUE_CONSTRAINT_SUPPORTED_TYPES = [
UITypes.Date,
UITypes.DateTime,
UITypes.Time,
+ UITypes.UUID,
];
/**
diff --git a/packages/nocodb/src/db/BaseModelSqlv2.ts b/packages/nocodb/src/db/BaseModelSqlv2.ts
index 5eef7f2a93..aea4595a88 100644
--- a/packages/nocodb/src/db/BaseModelSqlv2.ts
+++ b/packages/nocodb/src/db/BaseModelSqlv2.ts
@@ -185,6 +185,7 @@ class BaseModelSqlv2 implements IBaseModelSqlV2 {
public model: Model;
public context: NcContext;
public schema?: string;
+ public formulaDryRunFailed?: boolean;
public static config: any = defaultLimitConfig;
@@ -304,7 +305,10 @@ class BaseModelSqlv2 implements IBaseModelSqlV2 {
query?.[QUERY_STRING_FIELD_ID_ON_RESULT] === 'true',
});
} catch (e) {
+ const isTransient = isTransientError(e);
+
if (
+ isTransient ||
validateFormula ||
!haveFormulaColumn(await this.model.getColumns(this.context))
)
@@ -453,7 +457,10 @@ class BaseModelSqlv2 implements IBaseModelSqlV2 {
try {
data = await this.execAndParse(qb, null, { first: true });
} catch (e) {
- if (validateFormula || !haveFormulaColumn(columns)) throw e;
+ const isTransient = isTransientError(e);
+
+ if (isTransient || validateFormula || !haveFormulaColumn(columns))
+ throw e;
logger.log(e);
return this.findOne(args, true);
}
diff --git a/packages/nocodb/src/db/BaseModelSqlv2/group-by.ts b/packages/nocodb/src/db/BaseModelSqlv2/group-by.ts
index 050acc622d..18895c339f 100644
--- a/packages/nocodb/src/db/BaseModelSqlv2/group-by.ts
+++ b/packages/nocodb/src/db/BaseModelSqlv2/group-by.ts
@@ -33,6 +33,23 @@ import { getAliasGenerator } from '~/utils';
import { replaceDelimitedWithKeyValueSqlite3 } from '~/db/aggregations/sqlite3';
import { NC_DISABLE_GROUP_BY_LIMIT } from '~/utils/nc-config';
+// PR review fix #2: Shared helper for UUID group-by to avoid 4x code duplication.
+// Casts UUID to text on PostgreSQL (avoids type mismatch), passes through on other DBs.
+const buildUuidGroupBySelector = ({
+ baseModel,
+ columnName,
+ alias,
+}: {
+ baseModel: IBaseModelSqlV2;
+ columnName: string;
+ alias: string;
+}) => {
+ if (baseModel.isPg) {
+ return baseModel.dbDriver.raw('(??)::text as ??', [columnName, alias]);
+ }
+ return baseModel.dbDriver.raw('?? as ??', [columnName, alias]);
+};
+
// Returns a SQL expression that converts blank (null or '') values to NULL
const sqlNullIfBlank = ({
baseModel,
@@ -238,6 +255,27 @@ export const groupBy = (baseModel: IBaseModelSqlV2, logger: Logger) => {
}
break;
}
+ case UITypes.UUID: {
+ // PR review fix #2: Cast UUID to text on PG to avoid type mismatch
+ const uuidColumnName = await getColumnName(
+ baseModel.context,
+ column,
+ columns,
+ );
+ if (baseModel.isPg) {
+ columnQuery = baseModel.dbDriver.raw('(??)::text', [
+ uuidColumnName,
+ ]);
+ } else {
+ columnQuery = baseModel.dbDriver.raw('??', [uuidColumnName]);
+ }
+ if (!isSubGroup) {
+ selectors.push(
+ baseModel.dbDriver.raw(`?? as ??`, [columnQuery, alias]),
+ );
+ }
+ break;
+ }
default: {
const defaultColumnName = await getColumnName(
baseModel.context,
@@ -652,6 +690,13 @@ export const groupBy = (baseModel: IBaseModelSqlV2, logger: Logger) => {
}
break;
}
+ case UITypes.UUID: {
+ // PR review fix #2: use shared helper to cast UUID to text on PG
+ const columnName = await getColumnName(baseModel.context, column, columns);
+ selectors.push(buildUuidGroupBySelector({ baseModel, columnName, alias: getAs(column) }));
+ groupBySelectors.push(getAs(column));
+ break;
+ }
default:
{
const columnName = await getColumnName(
@@ -930,6 +975,13 @@ export const groupBy = (baseModel: IBaseModelSqlV2, logger: Logger) => {
groupBySelectors.push(getAs(column));
}
break;
+ case UITypes.UUID: {
+ // PR review fix #2: use shared helper to cast UUID to text on PG
+ const columnName = await getColumnName(baseModel.context, column, columns);
+ colSelectors.push(buildUuidGroupBySelector({ baseModel, columnName, alias: getAs(column) }));
+ groupBySelectors.push(getAs(column));
+ break;
+ }
default: {
const columnName = await getColumnName(
baseModel.context,
@@ -1267,6 +1319,13 @@ export const groupBy = (baseModel: IBaseModelSqlV2, logger: Logger) => {
groupBySelectors.push(getAs(column));
}
break;
+ case UITypes.UUID: {
+ // PR review fix #2: use shared helper to cast UUID to text on PG
+ const columnName = await getColumnName(baseModel.context, column, columns);
+ colSelectors.push(buildUuidGroupBySelector({ baseModel, columnName, alias: getAs(column) }));
+ groupBySelectors.push(getAs(column));
+ break;
+ }
default: {
const columnName = await getColumnName(
baseModel.context,
diff --git a/packages/nocodb/src/db/IBaseModelSqlV2.ts b/packages/nocodb/src/db/IBaseModelSqlV2.ts
index fd335e34c8..06e0bc1fcb 100644
--- a/packages/nocodb/src/db/IBaseModelSqlV2.ts
+++ b/packages/nocodb/src/db/IBaseModelSqlV2.ts
@@ -404,4 +404,11 @@ export interface IBaseModelSqlV2 {
isPg: boolean;
isMySQL: boolean;
};
+
+ /**
+ * Set to true when a formula dry-run fails during validateFormula.
+ * Subsequent dry-runs on the same instance short-circuit immediately
+ * to avoid amplifying requests to an overwhelmed external source.
+ */
+ formulaDryRunFailed?: boolean;
}
diff --git a/packages/nocodb/src/db/conditionV2.ts b/packages/nocodb/src/db/conditionV2.ts
index 9d15d2f5bb..8b92dad5f7 100644
--- a/packages/nocodb/src/db/conditionV2.ts
+++ b/packages/nocodb/src/db/conditionV2.ts
@@ -95,9 +95,15 @@ const parseConditionV2 = async (
if (!(_filter instanceof Filter)) filter = new Filter(_filter as Filter);
else filter = _filter;
}
+ const supportToggle = await Filter.supportToggle(baseModelSqlv2.context);
if (Array.isArray(_filter)) {
+ // Filter out disabled filters before processing
+ const enabledFilters = supportToggle
+ ? _filter.filter((f) => f.enabled !== false && f.enabled !== 0)
+ : _filter;
+
const qbs = await Promise.all(
- _filter.map((child) =>
+ enabledFilters.map((child) =>
parseConditionV2(
baseModelSqlv2,
child,
@@ -118,12 +124,17 @@ const parseConditionV2 = async (
clause: (qbP) => {
qbP.where((qb) => {
for (const [i, qb1] of Object.entries(qbs)) {
- qb[getLogicalOpMethod(_filter[i])](qb1.clause);
+ qb[getLogicalOpMethod(enabledFilters[i])](qb1.clause);
}
});
},
};
} else if (filter.is_group) {
+ // Skip disabled filter groups entirely (cascade disable)
+ if (supportToggle && (filter.enabled === false || filter.enabled === 0)) {
+ return { clause: () => {}, rootApply: () => {} };
+ }
+
const children = await filter.getChildren(context);
const qbs = await Promise.all(
@@ -158,6 +169,11 @@ const parseConditionV2 = async (
} else {
if (!filter.fk_column_id) return;
+ // Skip disabled leaf filters
+ if (supportToggle && (filter.enabled === false || filter.enabled === 0)) {
+ return { clause: () => {}, rootApply: () => {} };
+ }
+
// handle group by filter separately,
// `gb_eq` is equivalent to `eq` but for lookup it compares on aggregated value returns in group by api
// aggregated value will be either json array or `___` separated string
@@ -235,6 +251,7 @@ const parseConditionV2 = async (
UITypes.Date,
UITypes.CreatedTime,
UITypes.LastModifiedTime,
+ UITypes.UUID,
].includes(column.uidt) ||
([UITypes.Rollup, UITypes.Formula, UITypes.Links].includes(column.uidt) &&
!customWhereClause)
diff --git a/packages/nocodb/src/db/field-handler/handlers/colour/colour.general.handler.ts b/packages/nocodb/src/db/field-handler/handlers/colour/colour.general.handler.ts
new file mode 100644
index 0000000000..34f91be52d
--- /dev/null
+++ b/packages/nocodb/src/db/field-handler/handlers/colour/colour.general.handler.ts
@@ -0,0 +1,44 @@
+import { type NcContext, normalizeHexColour } from 'nocodb-sdk';
+import { NcError } from 'src/helpers/catchError';
+import type { IBaseModelSqlV2 } from 'src/db/IBaseModelSqlV2';
+import type { MetaService } from 'src/meta/meta.service';
+import type { Column } from '~/models';
+import { GenericFieldHandler } from '~/db/field-handler/handlers/generic';
+
+export class ColourGeneralHandler extends GenericFieldHandler {
+ /**
+ * Validate and normalise user input for a Colour field.
+ *
+ * Accepts hex colours with or without a `#` prefix (e.g. `FF5733` or
+ * `#ff5733`). The value is normalised to uppercase `#RRGGBB` format.
+ * Invalid input triggers {@link NcError.invalidValueForField}.
+ */
+ async parseUserInput(params: {
+ value: any;
+ row: any;
+ column: Column;
+ options?: {
+ baseModel?: IBaseModelSqlV2;
+ context?: NcContext;
+ metaService?: MetaService;
+ };
+ }): Promise<{ value: any }> {
+ const { value, column } = params;
+
+ if (!value) {
+ return { value: null };
+ }
+
+ const normalized = normalizeHexColour(value);
+
+ if (!normalized) {
+ NcError.invalidValueForField({
+ value,
+ column: column.title,
+ type: column.uidt,
+ });
+ }
+
+ return { value: normalized };
+ }
+}
diff --git a/packages/nocodb/src/db/field-handler/handlers/uuid/uuid.pg.handler.ts b/packages/nocodb/src/db/field-handler/handlers/uuid/uuid.pg.handler.ts
new file mode 100644
index 0000000000..08bbb15729
--- /dev/null
+++ b/packages/nocodb/src/db/field-handler/handlers/uuid/uuid.pg.handler.ts
@@ -0,0 +1,300 @@
+import type { Knex } from 'knex';
+import type CustomKnex from '~/db/CustomKnex';
+import type {
+ FieldHandlerInterface,
+ FilterOperationHandlers,
+ FilterOptions,
+} from '~/db/field-handler/field-handler.interface';
+import type { Column, Filter } from '~/models';
+import { GenericPgFieldHandler } from '~/db/field-handler/handlers/generic.pg';
+import { ncIsStringHasValue } from '~/db/field-handler/utils/handlerUtils';
+
+/**
+ * PostgreSQL UUID field handler that casts UUID to text for all comparisons.
+ * This allows filtering with partial text values without PostgreSQL throwing
+ * "invalid input syntax for type uuid" errors.
+ */
+export class UuidPgHandler
+ extends GenericPgFieldHandler
+ implements FieldHandlerInterface, FilterOperationHandlers
+{
+ async filterEq(
+ args: {
+ sourceField: string | Knex.QueryBuilder | Knex.RawBuilder;
+ val: any;
+ },
+ rootArgs: {
+ knex: CustomKnex;
+ filter: Filter;
+ column: Column;
+ },
+ _options: FilterOptions,
+ ) {
+ const { val, sourceField } = args;
+ const { knex } = rootArgs;
+
+ return {
+ rootApply: undefined,
+ clause: (qb: Knex.QueryBuilder) => {
+ if (!ncIsStringHasValue(val)) {
+ qb.where((nestedQb) => {
+ nestedQb.whereNull(sourceField as any);
+ });
+ } else {
+ qb.where(knex.raw('??::text = ?', [sourceField, val]));
+ }
+ },
+ };
+ }
+
+ async filterNeq(
+ args: {
+ sourceField: string | Knex.QueryBuilder | Knex.RawBuilder;
+ val: any;
+ },
+ rootArgs: {
+ knex: CustomKnex;
+ filter: Filter;
+ column: Column;
+ },
+ _options: FilterOptions,
+ ) {
+ const { val, sourceField } = args;
+ const { knex } = rootArgs;
+
+ return {
+ rootApply: undefined,
+ clause: (qb: Knex.QueryBuilder) => {
+ if (!ncIsStringHasValue(val)) {
+ qb.where((nestedQb) => {
+ nestedQb
+ .where(knex.raw("??::text != ''", [sourceField]))
+ .whereNotNull(sourceField as any);
+ });
+ } else {
+ qb.where((nestedQb) => {
+ nestedQb
+ .where(knex.raw('??::text != ?', [sourceField, val]))
+ .orWhereNull(sourceField as any);
+ });
+ }
+ },
+ };
+ }
+
+ async filterBlank(
+ args: {
+ sourceField: string | Knex.QueryBuilder | Knex.RawBuilder;
+ val: any;
+ },
+ rootArgs: {
+ knex: CustomKnex;
+ filter: Filter;
+ column: Column;
+ },
+ _options: FilterOptions,
+ ) {
+ const { sourceField } = args;
+ const { knex } = rootArgs;
+
+ return {
+ rootApply: undefined,
+ clause: (qb: Knex.QueryBuilder) => {
+ qb.where((nestedQb) => {
+ nestedQb
+ .whereNull(sourceField as any)
+ .orWhere(knex.raw("??::text = ''", [sourceField]));
+ });
+ },
+ };
+ }
+
+ async filterNotblank(
+ args: {
+ sourceField: string | Knex.QueryBuilder | Knex.RawBuilder;
+ val: any;
+ },
+ rootArgs: {
+ knex: CustomKnex;
+ filter: Filter;
+ column: Column;
+ },
+ _options: FilterOptions,
+ ) {
+ const { sourceField } = args;
+ const { knex } = rootArgs;
+
+ return {
+ rootApply: undefined,
+ clause: (qb: Knex.QueryBuilder) => {
+ qb.where((nestedQb) => {
+ nestedQb
+ .whereNotNull(sourceField as any)
+ .where(knex.raw("??::text != ''", [sourceField]));
+ });
+ },
+ };
+ }
+
+ async filterGt(
+ args: {
+ sourceField: string | Knex.QueryBuilder | Knex.RawBuilder;
+ val: any;
+ },
+ rootArgs: {
+ knex: CustomKnex;
+ filter: Filter;
+ column: Column;
+ },
+ _options: FilterOptions,
+ ) {
+ const { val, sourceField } = args;
+ const { knex } = rootArgs;
+
+ return {
+ rootApply: undefined,
+ clause: (qb: Knex.QueryBuilder) => {
+ qb.where(knex.raw('??::text > ?', [sourceField, val]));
+ },
+ };
+ }
+
+ async filterGte(
+ args: {
+ sourceField: string | Knex.QueryBuilder | Knex.RawBuilder;
+ val: any;
+ },
+ rootArgs: {
+ knex: CustomKnex;
+ filter: Filter;
+ column: Column;
+ },
+ _options: FilterOptions,
+ ) {
+ const { val, sourceField } = args;
+ const { knex } = rootArgs;
+
+ return {
+ rootApply: undefined,
+ clause: (qb: Knex.QueryBuilder) => {
+ qb.where(knex.raw('??::text >= ?', [sourceField, val]));
+ },
+ };
+ }
+
+ async filterLt(
+ args: {
+ sourceField: string | Knex.QueryBuilder | Knex.RawBuilder;
+ val: any;
+ },
+ rootArgs: {
+ knex: CustomKnex;
+ filter: Filter;
+ column: Column;
+ },
+ _options: FilterOptions,
+ ) {
+ const { val, sourceField } = args;
+ const { knex } = rootArgs;
+
+ return {
+ rootApply: undefined,
+ clause: (qb: Knex.QueryBuilder) => {
+ qb.where(knex.raw('??::text < ?', [sourceField, val]));
+ },
+ };
+ }
+
+ async filterLte(
+ args: {
+ sourceField: string | Knex.QueryBuilder | Knex.RawBuilder;
+ val: any;
+ },
+ rootArgs: {
+ knex: CustomKnex;
+ filter: Filter;
+ column: Column;
+ },
+ _options: FilterOptions,
+ ) {
+ const { val, sourceField } = args;
+ const { knex } = rootArgs;
+
+ return {
+ rootApply: undefined,
+ clause: (qb: Knex.QueryBuilder) => {
+ qb.where(knex.raw('??::text <= ?', [sourceField, val]));
+ },
+ };
+ }
+
+ // Override parent filterNlike: the GenericPgFieldHandler version has an `orWhere(col != '')`
+ // clause that is always true for non-empty UUID values, causing no rows to ever be filtered.
+ // Fix: use a grouped WHERE so the OR only applies to NULL/empty rows, not all non-empty rows.
+ async filterNlike(
+ args: {
+ sourceField: string | Knex.QueryBuilder | Knex.RawBuilder;
+ val: any;
+ },
+ rootArgs: {
+ knex: CustomKnex;
+ filter: Filter;
+ column: Column;
+ },
+ _options: FilterOptions,
+ ) {
+ const { sourceField } = args;
+ let { val } = args;
+ const { knex } = rootArgs;
+
+ return {
+ rootApply: undefined,
+ clause: (qb: Knex.QueryBuilder) => {
+ if (!ncIsStringHasValue(val)) {
+ // val is empty -> return all non-empty values and NULLs
+ qb.where((nestedQb) => {
+ nestedQb
+ .whereNot(knex.raw(`??::text = ''`, [sourceField]))
+ .orWhereNull(sourceField as any);
+ });
+ } else {
+ val = val.startsWith('%') || val.endsWith('%') ? val : `%${val}%`;
+ // "not like" should return rows that don't match, plus NULL rows
+ qb.where((nestedQb) => {
+ nestedQb
+ .whereNot(knex.raw(`??::text ilike ?`, [sourceField, val]))
+ .orWhereNull(sourceField as any);
+ });
+ }
+ },
+ };
+ }
+
+ async filterIn(
+ args: {
+ sourceField: string | Knex.QueryBuilder | Knex.RawBuilder;
+ val: any;
+ },
+ rootArgs: {
+ knex: CustomKnex;
+ filter: Filter;
+ column: Column;
+ },
+ _options: FilterOptions,
+ ) {
+ const { val, sourceField } = args;
+ const { knex } = rootArgs;
+ const values = Array.isArray(val) ? val : val?.split?.(',');
+
+ return {
+ rootApply: undefined,
+ clause: (qb: Knex.QueryBuilder) => {
+ // Build placeholders for each value
+ const placeholders = values.map(() => '?').join(', ');
+ qb.where(
+ knex.raw(`??::text IN (${placeholders})`, [sourceField, ...values]),
+ );
+ },
+ };
+ }
+}
diff --git a/packages/nocodb/src/db/field-handler/index.ts b/packages/nocodb/src/db/field-handler/index.ts
index 3c2127483a..022fc58ac8 100644
--- a/packages/nocodb/src/db/field-handler/index.ts
+++ b/packages/nocodb/src/db/field-handler/index.ts
@@ -60,6 +60,7 @@ import { NumberSqliteHandler } from '~/db/field-handler/handlers/number/number.s
import { RatingMysqlHandler } from '~/db/field-handler/handlers/rating/rating.mysql.handler';
import { RatingPgHandler } from '~/db/field-handler/handlers/rating/rating.pg.handler';
import { RatingSqliteHandler } from '~/db/field-handler/handlers/rating/rating.sqlite.handler';
+import { ColourGeneralHandler } from '~/db/field-handler/handlers/colour/colour.general.handler';
import { PercentMysqlHandler } from '~/db/field-handler/handlers/percent/percent.mysql.handler';
import { PercentPgHandler } from '~/db/field-handler/handlers/percent/percent.pg.handler';
import { PercentSqliteHandler } from '~/db/field-handler/handlers/percent/percent.sqlite.handler';
@@ -73,6 +74,7 @@ import { EmailGeneralHandler } from '~/db/field-handler/handlers/email/email.gen
import { AttachmentGeneralHandler } from '~/db/field-handler/handlers/attachment/attachment.general.handler';
import { TimeGeneralHandler } from '~/db/field-handler/handlers/time/time.general.handler';
import { TimeMysqlHandler } from '~/db/field-handler/handlers/time/time.mysql.handler';
+import { UuidPgHandler } from '~/db/field-handler/handlers/uuid/uuid.pg.handler';
const CLIENT_DEFAULT = '_default';
@@ -136,6 +138,10 @@ const HANDLER_REGISTRY: Partial<
[UITypes.URL]: {
[CLIENT_DEFAULT]: GenericFieldHandler,
},
+ [UITypes.UUID]: {
+ [CLIENT_DEFAULT]: GenericFieldHandler,
+ [ClientType.PG]: UuidPgHandler,
+ },
[UITypes.Number]: {
[CLIENT_DEFAULT]: NumberGeneralHandler,
[ClientType.PG]: NumberPgHandler,
@@ -169,6 +175,9 @@ const HANDLER_REGISTRY: Partial<
[ClientType.MYSQL]: RatingMysqlHandler,
[ClientType.SQLITE]: RatingSqliteHandler,
},
+ [UITypes.Colour]: {
+ [CLIENT_DEFAULT]: ColourGeneralHandler,
+ },
[UITypes.Formula]: {
[CLIENT_DEFAULT]: FormulaGeneralHandler,
},
diff --git a/packages/nocodb/src/db/formulav2/formulaQueryBuilderv2.ts b/packages/nocodb/src/db/formulav2/formulaQueryBuilderv2.ts
index a04c8f112e..22dad19c59 100644
--- a/packages/nocodb/src/db/formulav2/formulaQueryBuilderv2.ts
+++ b/packages/nocodb/src/db/formulav2/formulaQueryBuilderv2.ts
@@ -524,6 +524,15 @@ export default async function formulaQueryBuilderv2({
);
}
if (!validateFormula) return qb;
+
+ // Short-circuit if a previous dry-run already failed for this base model,
+ // to avoid amplifying requests to an overwhelmed external source
+ if (baseModelSqlv2.formulaDryRunFailed) {
+ throw new Error(
+ 'Skipping formula dry-run: a previous validation already failed',
+ );
+ }
+
// dry run qb.builder to see if it will break the grid view or not
// if so, set formula error and show empty selectQb instead
await baseModelSqlv2.execAndParse(
@@ -600,6 +609,11 @@ export default async function formulaQueryBuilderv2({
}
}
} else {
+ // Mark dry-run as failed so subsequent formula validations on the same
+ // base model short-circuit instead of hammering an unreachable source
+ if (isTransient && validateFormula) {
+ baseModelSqlv2.formulaDryRunFailed = true;
+ }
throw e;
}
diff --git a/packages/nocodb/src/helpers/uniqueConstraintHelpers.ts b/packages/nocodb/src/helpers/uniqueConstraintHelpers.ts
index 7c49d6604b..19fcee5eec 100644
--- a/packages/nocodb/src/helpers/uniqueConstraintHelpers.ts
+++ b/packages/nocodb/src/helpers/uniqueConstraintHelpers.ts
@@ -45,7 +45,13 @@ export function validateUniqueConstraint(
}
// Check if default value is set (mutually exclusive with unique constraint)
- if (cdf !== null && cdf !== undefined && cdf !== '') {
+ // Exception: UUID fields are allowed to have both unique constraint and auto-generation
+ if (
+ cdf !== null &&
+ cdf !== undefined &&
+ cdf !== '' &&
+ uidt !== UITypes.UUID
+ ) {
NcError.get(context).badRequest(
'Cannot enable unique constraint because a default value is set. Please remove the default value first.',
);
diff --git a/packages/nocodb/src/meta/migrations/XcMigrationSourcev0.ts b/packages/nocodb/src/meta/migrations/XcMigrationSourcev0.ts
index 3c34085314..0c2a2839a7 100644
--- a/packages/nocodb/src/meta/migrations/XcMigrationSourcev0.ts
+++ b/packages/nocodb/src/meta/migrations/XcMigrationSourcev0.ts
@@ -15,6 +15,7 @@ import * as nc_014_sandboxes from './v0/nc_014_sandboxes';
import * as nc_015_managed_apps from './v0/nc_015_managed_apps';
import * as nc_016_automation_error_notifications from './v0/nc_016_automation_error_notifications';
import * as nc_017_add_canonical_email_to_users from './v0/nc_017_add_canonical_email_to_users';
+import * as nc_018_add_enabled_to_filter_exp_v2 from './v0/nc_018_add_enabled_to_filter_exp_v2';
// Create a custom migration source class
export default class XcMigrationSourcev0 {
@@ -41,6 +42,7 @@ export default class XcMigrationSourcev0 {
'nc_015_managed_apps',
'nc_016_automation_error_notifications',
'nc_017_add_canonical_email_to_users',
+ 'nc_018_add_enabled_to_filter_exp_v2',
]);
}
@@ -84,6 +86,8 @@ export default class XcMigrationSourcev0 {
return nc_016_automation_error_notifications;
case 'nc_017_add_canonical_email_to_users':
return nc_017_add_canonical_email_to_users;
+ case 'nc_018_add_enabled_to_filter_exp_v2':
+ return nc_018_add_enabled_to_filter_exp_v2;
}
}
}
diff --git a/packages/nocodb/src/meta/migrations/v0/nc_018_add_enabled_to_filter_exp_v2.ts b/packages/nocodb/src/meta/migrations/v0/nc_018_add_enabled_to_filter_exp_v2.ts
new file mode 100644
index 0000000000..7e636ddae7
--- /dev/null
+++ b/packages/nocodb/src/meta/migrations/v0/nc_018_add_enabled_to_filter_exp_v2.ts
@@ -0,0 +1,21 @@
+import type { Knex } from 'knex';
+
+const up = async (knex: Knex) => {
+ const hasColumn = await knex.schema.hasColumn('nc_filter_exp_v2', 'enabled');
+ if (!hasColumn) {
+ await knex.schema.alterTable('nc_filter_exp_v2', (table) => {
+ table.boolean('enabled').defaultTo(true);
+ });
+ }
+};
+
+const down = async (knex: Knex) => {
+ const hasColumn = await knex.schema.hasColumn('nc_filter_exp_v2', 'enabled');
+ if (hasColumn) {
+ await knex.schema.alterTable('nc_filter_exp_v2', (table) => {
+ table.dropColumn('enabled');
+ });
+ }
+};
+
+export { up, down };
diff --git a/packages/nocodb/src/models/Filter.ts b/packages/nocodb/src/models/Filter.ts
index 21b294d9f7..34ddba9d78 100644
--- a/packages/nocodb/src/models/Filter.ts
+++ b/packages/nocodb/src/models/Filter.ts
@@ -49,6 +49,7 @@ export default class Filter implements FilterType {
column?: Column;
order?: number;
meta?: any;
+ enabled?: BoolType;
constructor(data: Filter | FilterType) {
Object.assign(this, data);
@@ -63,6 +64,10 @@ export default class Filter implements FilterType {
return filter && new Filter(filter);
}
+ static async supportToggle(_context: NcContext) {
+ return false;
+ }
+
public async getModel(
context: NcContext,
ncMeta = Noco.ncMeta,
@@ -105,6 +110,7 @@ export default class Filter implements FilterType {
'source_id',
'order',
'meta',
+ 'enabled',
]);
const referencedModelColName = [
@@ -333,6 +339,7 @@ export default class Filter implements FilterType {
'fk_value_col_id',
'meta',
'order',
+ 'enabled',
]);
if (typeof updateObj.value === 'string') {
diff --git a/packages/nocodb/src/modules/jobs/jobs/export-import/duplicate.processor.ts b/packages/nocodb/src/modules/jobs/jobs/export-import/duplicate.processor.ts
index ac6c06fa8a..bcaa59345e 100644
--- a/packages/nocodb/src/modules/jobs/jobs/export-import/duplicate.processor.ts
+++ b/packages/nocodb/src/modules/jobs/jobs/export-import/duplicate.processor.ts
@@ -642,12 +642,16 @@ export class DuplicateProcessor {
// save old default value
const oldCdf = replacedColumn.cdf;
const oldRequired = replacedColumn.rqd;
+ const isUUIDColumn = replacedColumn.uidt === UITypes.UUID;
replacedColumn.title = title;
replacedColumn.column_name = title.toLowerCase().replace(/ /g, '_');
// remove default value to avoid filling existing empty rows
- replacedColumn.cdf = null;
+ // Exception: UUID columns need their cdf (gen_random_uuid()) to function
+ if (!isUUIDColumn) {
+ replacedColumn.cdf = null;
+ }
// remove required to avoid filling existing empty rows
if (oldRequired) {
@@ -676,7 +680,7 @@ export class DuplicateProcessor {
if (
!excludeData &&
- // ignore data if replaced column is derivative types
+ // ignore data if replaced column is derivative types or auto-generated types like UUID
![
UITypes.Button,
UITypes.Formula,
@@ -684,6 +688,7 @@ export class DuplicateProcessor {
UITypes.QrCode,
UITypes.Rollup,
UITypes.Lookup,
+ UITypes.UUID,
].includes(replacedColumn.uidt)
) {
const fields: Record<string, string[]> = {};
@@ -732,7 +737,12 @@ export class DuplicateProcessor {
});
// update cdf and rqd
- if (!isVirtualCol(destColumn) && !isAIPromptCol(destColumn)) {
+ // Skip for UUID columns since their cdf was preserved during import
+ if (
+ !isVirtualCol(destColumn) &&
+ !isAIPromptCol(destColumn) &&
+ destColumn.uidt !== UITypes.UUID
+ ) {
await this.columnsService.columnUpdate(context, {
columnId: findWithIdentifier(idMap, sourceColumn.id),
column: {
diff --git a/packages/nocodb/src/schema/swagger-v2.json b/packages/nocodb/src/schema/swagger-v2.json
index e003d4b96e..2e52f8281c 100644
--- a/packages/nocodb/src/schema/swagger-v2.json
+++ b/packages/nocodb/src/schema/swagger-v2.json
@@ -13629,7 +13629,9 @@
"User",
"CreatedBy",
"LastModifiedBy",
- "Meta"
+ "Meta",
+ "Colour",
+ "UUID"
],
"type": "string"
},
@@ -15987,7 +15989,7 @@
},
{
"id": "sl_ihyva6jx6dg0fc",
- "fk_column_id": "cl_g0a89q9xdry3lu",
+ "fk_column_id": "cl_ga89q9xdry3lu",
"title": "a",
"color": "#cfdffe",
"order": 1,
@@ -16550,7 +16552,9 @@
"GeoData",
"Geometry",
"JSON",
- "SpecificDBType"
+ "SpecificDBType",
+ "Colour",
+ "UUID"
],
"type": "string"
},
diff --git a/packages/nocodb/src/schema/swagger.json b/packages/nocodb/src/schema/swagger.json
index a693ad2fcc..82b1990a89 100644
--- a/packages/nocodb/src/schema/swagger.json
+++ b/packages/nocodb/src/schema/swagger.json
@@ -22345,7 +22345,9 @@
"LastModifiedBy",
"AI",
"Order",
- "Meta"
+ "Meta",
+ "Colour",
+ "UUID"
],
"type": "string"
},
@@ -22827,6 +22829,10 @@
"type": "number",
"description": "The order of the filter",
"example": 1
+ },
+ "enabled": {
+ "$ref": "#/components/schemas/Bool",
+ "description": "Whether this filter is enabled. Disabled filters are skipped during evaluation."
}
},
"readOnly": true,
@@ -23138,6 +23144,10 @@
},
"value": {
"description": "The filter value. Can be NULL for some operators."
+ },
+ "enabled": {
+ "$ref": "#/components/schemas/Bool",
+ "description": "Whether this filter is enabled. Disabled filters are skipped during evaluation."
}
},
"readOnly": true
@@ -26216,7 +26226,9 @@
"LastModifiedBy",
"AI",
"Order",
- "Meta"
+ "Meta",
+ "Colour",
+ "UUID"
],
"type": "string",
"description": "UI Data Type"
diff --git a/packages/nocodb/src/services/columns.service.ts b/packages/nocodb/src/services/columns.service.ts
index df567905fb..5e8aa34a60 100644
--- a/packages/nocodb/src/services/columns.service.ts
+++ b/packages/nocodb/src/services/columns.service.ts
@@ -690,11 +690,17 @@ export class ColumnsService implements IColumnsService {
}
// Check if default value is being set when unique constraint is enabled
+ // Exclude UUID fields which are allowed to have both unique constraint and auto-generation
+ // Also check the original column type to handle cases where uidt might not be sent in the update request
+ const isUUIDColumn =
+ (param.column.uidt || column.uidt) === UITypes.UUID ||
+ column.uidt === UITypes.UUID;
if (
'cdf' in param.column &&
param.column.cdf !== null &&
param.column.cdf !== undefined &&
- param.column.cdf !== ''
+ param.column.cdf !== '' &&
+ !isUUIDColumn
) {
const currentUnique =
param.column.unique !== undefined ? param.column.unique : column.unique;
@@ -2636,11 +2642,13 @@ export class ColumnsService implements IColumnsService {
}
// Check if default value is being set when unique constraint is enabled
+ // Exclude UUID fields which are allowed to have both unique constraint and auto-generation
if (
originalCdf !== null &&
originalCdf !== undefined &&
originalCdf !== '' &&
- colBody.unique
+ colBody.unique &&
+ colBody.uidt !== UITypes.UUID
) {
NcError.get(context).badRequest(
'Default values are not allowed for unique fields. Please disable the unique constraint first.',
@@ -2713,6 +2721,68 @@ export class ColumnsService implements IColumnsService {
fk_model_id: table.id,
});
break;
+ case UITypes.UUID:
+ {
+ // UUID is only supported for PostgreSQL databases
+ if (source.type !== 'pg') {
+ NcError.get(context).badRequest(
+ 'UUID field type is supported only for PostgreSQL databases',
+ );
+ }
+
+ // Get column properties from UI type (sets dt='uuid', cdf='gen_random_uuid()')
+ colBody = await getColumnPropsFromUIDT(colBody, source);
+
+ // UUID fields must have unique constraint (per PRD requirement DR-2)
+ colBody.unique = true;
+
+ // Generate column ID upfront for unique constraint name
+ const columnId = await ncMeta.genNanoid(MetaTable.COLUMNS);
+ (colBody as any).base_id = context.base_id;
+ (colBody as any).fk_model_id = table.id;
+ (colBody as any).id = columnId;
+
+ // Generate unique constraint name and store in internal_meta
+ const internalMeta = this.storeUniqueConstraintNameInInternalMeta(
+ context,
+ {
+ base_id: context.base_id,
+ fk_model_id: table.id,
+ id: columnId,
+ },
+ );
+ colBody.internal_meta = internalMeta;
+
+ // Create the physical column in the database
+ const tableUpdateBody = {
+ ...table,
+ tn: table.table_name,
+ originalColumns: table.columns.map((c) => ({
+ ...c,
+ cn: c.column_name,
+ })),
+ columns: [
+ ...table.columns.map((c) => ({ ...c, cn: c.column_name })),
+ {
+ ...colBody,
+ cn: colBody.column_name,
+ altered: Altered.NEW_COLUMN,
+ },
+ ],
+ };
+
+ const sqlMgr = await reuseOrSave('sqlMgr', reuse, async () =>
+ ProjectMgrv2.getSqlMgr(context, { id: source.base_id }),
+ );
+ await sqlMgr.sqlOpPlus(source, 'tableUpdate', tableUpdateBody);
+
+ // Save the column metadata
+ savedColumn = await Column.insert(context, {
+ ...colBody,
+ fk_model_id: table.id,
+ });
+ }
+ break;
case UITypes.Formula:
try {
const relatedModels: Map<string, Model> = await getRelatedModelMap(
@@ -3481,6 +3551,8 @@ export class ColumnsService implements IColumnsService {
case UITypes.QrCode:
case UITypes.Barcode:
case UITypes.Button:
+ // PR review fix #3: UUID removed from this group β€” it has a physical DB column
+ // and must go through the default path (sqlOpPlus + tableUpdate) to drop it.
await Column.delete2(
context,
{