π₯ π₯ π₯ A Free & Self-hostable Airtable Alternative
TypeScript airtableairtable-alternativeautomatic-apihacktoberfestlow-codeno-codeno-code-databaseno-code-platformpostgresqlrest-apirestful-apispreadsheetsqliteswagger
airtable import warning
Fendy Heryanto1854e00dfe50
diff --git a/packages/nc-gui/components/dlg/AirtableImport.vue b/packages/nc-gui/components/dlg/AirtableImport.vueindex 8ef2120189..6f71852ead 100644--- a/packages/nc-gui/components/dlg/AirtableImport.vue+++ b/packages/nc-gui/components/dlg/AirtableImport.vue@@ -50,6 +50,8 @@ const goBack = ref(false)const listeningForUpdates = ref(false)+const hasWarning = ref(false)+const syncSource = ref({id: '',type: 'Airtable',@@ -82,6 +84,10 @@ const customSourceId = computed(() => {const onLog = (data: { message: string }) => {progressRef.value?.pushProgress(data.message, 'progress')lastProgress.value = { msg: data.message, status: 'progress' }++ if (data.message.startsWith('WARNING: ')) {+ hasWarning.value = true+ }}const onStatus = async (status: JobStatus, data?: any) => {@@ -473,9 +479,12 @@ const collapseKey = ref(''):description="$t('msg.error.anErrorOccuredWhileAirtableBaseImport')"/></template>- <div v-else class="flex items-center gap-3">- <GeneralIcon icon="checkFill" class="text-white w-4 h-4" />- <span> {{ $t('msg.airtableImportSuccess') }} </span>+ <div v-else class="flex flex-col gap-3">+ <div class="flex items-center gap-3">+ <GeneralIcon icon="checkFill" class="text-white w-4 h-4" />+ <span> {{ $t('msg.airtableImportSuccess') }} </span>+ </div>+ <div v-if="hasWarning" class="text-yellow-500">{{ $t('msg.airtableImportWarning') }}</div></div></div>diff --git a/packages/nc-gui/components/general/ProgressPanel.vue b/packages/nc-gui/components/general/ProgressPanel.vueindex 6c718898ed..159f9046f4 100644--- a/packages/nc-gui/components/general/ProgressPanel.vue+++ b/packages/nc-gui/components/general/ProgressPanel.vue@@ -14,9 +14,12 @@ const scrollToBottom = () => {container.scrollTop = container.scrollHeight}-const pushProgress = (message: string, status: JobStatus | 'progress') => {+const pushProgress = (message: string, status: JobStatus | 'progress' | 'warning') => {if (!message?.trim()) return- progress.value.push({ msg: message, status })+ progress.value.push({+ msg: message,+ status: status === JobStatus.FAILED ? JobStatus.FAILED : message.startsWith('WARNING: ') ? 'warning' : status,+ })if (autoScroll.value) {nextTick(scrollToBottom)@@ -88,7 +91,11 @@ onMounted(() => {<span class="text-red-500 ml-2">{{ msg }}</span></div>+ <div v-else-if="status === 'warning'" class="flex items-center">+ <component :is="iconMap.warning" class="text-yellow-500" />+ <span class="text-yellow-500 ml-2">{{ msg }}</span>+ </div><div v-else class="flex items-center"><MdiCurrencyUsd class="text-green-500" />diff --git a/packages/nc-gui/lang/en.json b/packages/nc-gui/lang/en.jsonindex 7e184596a1..17130fca58 100644--- a/packages/nc-gui/lang/en.json+++ b/packages/nc-gui/lang/en.json@@ -2227,6 +2227,7 @@"urlFilterError": "Invalid URL filter. Ignored as it could not be applied.","dropYourDocHere": "Drop your document here","airtableImportSuccess": "Successfully imported from Airtable Base.",+ "airtableImportWarning": "Note: Import completed with warnings. Please review the details for more information.","nocoDBImportSuccess": "Successfully imported from NocoDB Base.","deleteAccountPermanently": "Delete your account permanently","learnMore": "Learn more",