From 5fbab165e55e3652515a30f0bb9de0a8834dd33c Mon Sep 17 00:00:00 2001 From: Ramesh Mane <101566080+rameshmane7218@users.noreply.github.com> Date: Fri, 9 Aug 2024 12:39:17 +0530 Subject: [PATCH] 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 --- packages/nc-gui/assets/nc-icons/claude.svg | 11 ++ packages/nc-gui/assets/nc-icons/groq.svg | 11 ++ packages/nc-gui/assets/nc-icons/ollama.svg | 7 + packages/nc-gui/assets/nc-icons/openai.svg | 10 ++ .../nc-gui/components/dashboard/Sidebar.vue | 2 +- .../dashboard/settings/DataSources.vue | 4 +- .../settings/data-sources/CreateBase.vue | 29 +++- .../settings/data-sources/EditBase.vue | 21 ++- packages/nc-gui/components/general/Gift.vue | 2 +- .../nc-gui/components/general/Overlay.vue | 8 +- .../components/project/SyncDataModal.vue | 153 ------------------ packages/nc-gui/components/project/View.vue | 14 +- .../workspace/integrations/ConnectionsTab.vue | 4 +- .../integrations/IntegrationsTab.vue | 25 ++- .../integrations/forms/EditOrAddDatabase.vue | 16 +- .../composables/useIntegrationsStore.ts | 4 +- packages/nc-gui/lang/en.json | 9 +- packages/nc-gui/lib/enums.ts | 72 +-------- packages/nc-gui/utils/iconUtils.ts | 8 + packages/nc-gui/utils/syncDataUtils.ts | 47 ++++-- packages/nocodb-sdk/src/lib/enums.ts | 74 +++++++++ .../Dashboard/ProjectView/DataSourcePage.ts | 2 + .../pages/Dashboard/ProjectView/SourcePage.ts | 2 + 23 files changed, 266 insertions(+), 269 deletions(-) create mode 100644 packages/nc-gui/assets/nc-icons/claude.svg create mode 100644 packages/nc-gui/assets/nc-icons/groq.svg create mode 100644 packages/nc-gui/assets/nc-icons/ollama.svg create mode 100644 packages/nc-gui/assets/nc-icons/openai.svg delete mode 100644 packages/nc-gui/components/project/SyncDataModal.vue diff --git a/packages/nc-gui/assets/nc-icons/claude.svg b/packages/nc-gui/assets/nc-icons/claude.svg new file mode 100644 index 0000000000..76890463b1 --- /dev/null +++ b/packages/nc-gui/assets/nc-icons/claude.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/packages/nc-gui/assets/nc-icons/groq.svg b/packages/nc-gui/assets/nc-icons/groq.svg new file mode 100644 index 0000000000..a6393677c1 --- /dev/null +++ b/packages/nc-gui/assets/nc-icons/groq.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/packages/nc-gui/assets/nc-icons/ollama.svg b/packages/nc-gui/assets/nc-icons/ollama.svg new file mode 100644 index 0000000000..73c5a33514 --- /dev/null +++ b/packages/nc-gui/assets/nc-icons/ollama.svg @@ -0,0 +1,7 @@ + + + + + + + \ No newline at end of file diff --git a/packages/nc-gui/assets/nc-icons/openai.svg b/packages/nc-gui/assets/nc-icons/openai.svg new file mode 100644 index 0000000000..2be14d351a --- /dev/null +++ b/packages/nc-gui/assets/nc-icons/openai.svg @@ -0,0 +1,10 @@ + + + + + + + + + + \ No newline at end of file diff --git a/packages/nc-gui/components/dashboard/Sidebar.vue b/packages/nc-gui/components/dashboard/Sidebar.vue index 80090a04f5..5d75ef4345 100644 --- a/packages/nc-gui/components/dashboard/Sidebar.vue +++ b/packages/nc-gui/components/dashboard/Sidebar.vue @@ -57,7 +57,7 @@ onUnmounted(() => {
- +
diff --git a/packages/nc-gui/components/dashboard/settings/DataSources.vue b/packages/nc-gui/components/dashboard/settings/DataSources.vue index 6ffda6cbf1..586e546d73 100644 --- a/packages/nc-gui/components/dashboard/settings/DataSources.vue +++ b/packages/nc-gui/components/dashboard/settings/DataSources.vue @@ -527,7 +527,7 @@ const handleClickRow = (source: SourceType, tab?: string) => { {{ source.is_meta || source.is_local ? $t('general.base') : source.alias }}
-
+