Skip to content

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

fix(nc-gui): add generated by ai helper text

Ramesh Manee14eab1d5bb4
diff --git a/packages/nc-gui/components/smartsheet/expanded-form/Sidebar/AuditMiniItem.vue b/packages/nc-gui/components/smartsheet/expanded-form/Sidebar/AuditMiniItem.vue
index 3b88d5b926..25b5c02d5f 100644
--- a/packages/nc-gui/components/smartsheet/expanded-form/Sidebar/AuditMiniItem.vue
+++ b/packages/nc-gui/components/smartsheet/expanded-form/Sidebar/AuditMiniItem.vue
@@ -1,5 +1,5 @@
<script setup lang="ts">
-import { type AttachmentType, type AuditType, checkboxIconListMap, parseHelper, ratingIconListMap } from 'nocodb-sdk'
+import { type AttachmentType, type AuditType, checkboxIconListMap, parseHelper, isAIPromptCol, ratingIconListMap } from 'nocodb-sdk'
const props = defineProps<{
audit: AuditType
@@ -142,6 +142,22 @@ function shouldShowRaw(key: string) {
{{ columnKey }}
</NcTooltip>
+ <NcTooltip
+ v-if="
+ isAIPromptCol({
+ uidt: meta[columnKey]?.type,
+ dt: meta[columnKey]?.type === 'Number' ? 'bigint' : undefined,
+ meta: normalizeMeta(columnKey),
+ }) &&
+ (!ncIsObject(newData[columnKey]) || !newData[columnKey]?.lastModifiedBy)
+ "
+ class="truncate text-xs text-nc-content-purple-medium"
+ show-on-truncate-only
+ >
+ <template #title> Generated by AI </template>
+
+ (Generated by AI)
+ </NcTooltip>
</div>
<div class="flex items-center gap-2 mt-3 flex-wrap">
<template v-if="meta[columnKey]?.type === 'Attachment'">