Nc fix/integration minor changes (#9184)

* fix(nc-gui): reduce font weight of connection name col cell

* fix(nc-gui): show spinner in edit source modal while loading integration

* fix(nc-gui): show loading spinner in create source, create/edit connection modal

* fix(nc-gui): monor changes

* chore(nc-gui): lint

* fix(nc-gui): remove extra integration pagemode check condition

* fix(nc-gui): update ds test case

* feat(nc-gui): add AI integration category

* fix: move syncDataType and IntegrationCategoryType enum to noco-sdk

* fix(nc-gui): cleanup unused code

* fix(nc-gui): integration list modal open issue from create source modal

* chore(nc-gui): lint

* fix(nc-gui): prevent unnecessarily load integration api calls

* fix(nc-gui): handle reset integration data on base change

* fix(nc-gui): add missing sync pr changes
This commit is contained in:
Ramesh Mane
2024-08-09 12:39:17 +05:30
committed by GitHub
parent cb8a942d67
commit 5fbab165e5
23 changed files with 268 additions and 271 deletions

View File

@@ -91,25 +91,21 @@ const integrationsMapByCategory = computed(() => {
})
const isEmptyList = computed(() => {
const categories = Object.keys(integrationsMapByCategory.value);
if (!categories.length) {
return true;
}
console.log('cate', categories, integrationsMapByCategory.value)
return !categories.some(category => integrationsMapByCategory.value[category].list.length > 0);
});
const categories = Object.keys(integrationsMapByCategory.value)
if (!categories.length) {
return true
}
return !categories.some((category) => integrationsMapByCategory.value[category].list.length > 0)
})
const isAddNewIntegrationModalOpen = computed({
get: () => {
return pageMode.value === IntegrationsPageMode.LIST
},
set: (value: boolean) => {
if (value) {
pageMode.value = IntegrationsPageMode.LIST
} else {
if (!value) {
pageMode.value = null
}
},
@@ -209,9 +205,12 @@ const handleAddIntegration = (category: IntegrationCategoryType, integration: In
ref="integrationListRef"
class="flex-1 px-6 pb-6 flex flex-col nc-workspace-settings-integrations-list overflow-y-auto nc-scrollbar-thin"
>
<div class="w-full flex justify-center" :class="{
'flex-1': isEmptyList
}">
<div
class="w-full flex justify-center"
:class="{
'flex-1': isEmptyList,
}"
>
<div
class="flex flex-col space-y-6 w-full"
:style="{