diff --git a/backend/src/database/repositories/organizationRepository.ts b/backend/src/database/repositories/organizationRepository.ts index 3295fa937d..546e898cec 100644 --- a/backend/src/database/repositories/organizationRepository.ts +++ b/backend/src/database/repositories/organizationRepository.ts @@ -479,7 +479,7 @@ class OrganizationRepository { segment_level as (select case when "parentSlug" is not null and "grandparentSlug" is not null then 'child' - when "parentSlug" is null and "grandparentSlug" is not null + when "parentSlug" is not null and "grandparentSlug" is null then 'parent' when "parentSlug" is null and "grandparentSlug" is null then 'grandparent' @@ -495,7 +495,7 @@ class OrganizationRepository { segment_level sl on (sl.level = 'child' and s.id = sl.id) or - (sl.level = 'parent' and s."parentSlug" = sl.slug) or + (sl.level = 'parent' and s."parentSlug" = sl.slug and s."grandparentSlug" is not null) or (sl.level = 'grandparent' and s."grandparentSlug" = sl.slug)` } diff --git a/frontend/public/images/integrations/slack-bot.png b/frontend/public/images/integrations/slack-bot.png new file mode 100644 index 0000000000..0f67d701b5 Binary files /dev/null and b/frontend/public/images/integrations/slack-bot.png differ diff --git a/frontend/src/integrations/github/components/github-connect.vue b/frontend/src/integrations/github/components/github-connect.vue index e5110ad4ba..6ad0651559 100644 --- a/frontend/src/integrations/github/components/github-connect.vue +++ b/frontend/src/integrations/github/components/github-connect.vue @@ -3,8 +3,10 @@ diff --git a/frontend/src/integrations/slack/components/slack-connect.vue b/frontend/src/integrations/slack/components/slack-connect.vue index a2c9f2614b..94e53afa7f 100644 --- a/frontend/src/integrations/slack/components/slack-connect.vue +++ b/frontend/src/integrations/slack/components/slack-connect.vue @@ -20,7 +20,7 @@ defineProps({ }); const connectUrl = computed(() => { - const redirectUrl = `${window.location.protocol}//${window.location.host}${window.location.pathname}?success=true`; + const redirectUrl = `${window.location.protocol}//${window.location.host}${window.location.pathname}?slack-success=true`; return `${config.backendUrl}/slack/${ store.getters['auth/currentTenant'].id diff --git a/frontend/src/modules/integration/components/integration-list-item.vue b/frontend/src/modules/integration/components/integration-list-item.vue index 628fe0f316..0f9f06f3e8 100644 --- a/frontend/src/modules/integration/components/integration-list-item.vue +++ b/frontend/src/modules/integration/components/integration-list-item.vue @@ -2,46 +2,60 @@