diff --git a/app/components/IntegrationCard.tsx b/app/components/IntegrationCard.tsx index 87ab7ec766..f02915a3a7 100644 --- a/app/components/IntegrationCard.tsx +++ b/app/components/IntegrationCard.tsx @@ -19,9 +19,8 @@ function IntegrationCard({ integration }: Props) { - + {integration.name} - {integration.isActive && {t("Connected")}} @@ -82,12 +81,11 @@ const Status = styled(Text).attrs({ display: inline-flex; align-items: center; - &::before { + &::after { content: ""; display: inline-block; width: 17px; height: 17px; - margin-right: 6px; background: radial-gradient( circle at center, diff --git a/app/hooks/useSettingsConfig.ts b/app/hooks/useSettingsConfig.ts index 643191016b..028b1041e8 100644 --- a/app/hooks/useSettingsConfig.ts +++ b/app/hooks/useSettingsConfig.ts @@ -194,7 +194,7 @@ const useSettingsConfig = () => { icon: ZapierIcon, }, { - name: t("Install integration…"), + name: `${t("Install")}…`, path: integrationSettingsPath("all"), component: Integrations, enabled: true, @@ -225,7 +225,7 @@ const useSettingsConfig = () => { icon: plugin.value.icon, isActive: integrations.orderedData.some( (integration) => - integration.service.toLowerCase() === plugin.name.toLowerCase() + integration.service.toLowerCase() === plugin.id.toLowerCase() ), } as ConfigItem); }); diff --git a/app/scenes/Settings/Integrations.tsx b/app/scenes/Settings/Integrations.tsx index 8980ac850a..53282fcf1b 100644 --- a/app/scenes/Settings/Integrations.tsx +++ b/app/scenes/Settings/Integrations.tsx @@ -4,10 +4,8 @@ import * as React from "react"; import { Trans, useTranslation } from "react-i18next"; import styled from "styled-components"; import Flex from "@shared/components/Flex"; - import { integrationSettingsPath } from "@shared/utils/routeHelpers"; import Heading from "~/components/Heading"; - import IntegrationCard from "~/components/IntegrationCard"; import Scene from "~/components/Scene"; import Text from "~/components/Text"; @@ -17,12 +15,14 @@ export function Integrations() { const { t } = useTranslation(); let items = useSettingsConfig(); - items = items.filter( - (item) => - item.group === "Integrations" && - item.enabled && - item.path !== integrationSettingsPath("all") - ); + items = items + .filter( + (item) => + item.group === "Integrations" && + item.enabled && + item.path !== integrationSettingsPath("all") + ) + .sort((item) => (item.isActive ? -1 : 1)); return ( diff --git a/plugins/googleanalytics/plugin.json b/plugins/googleanalytics/plugin.json index 9548ca4f3e..ca67e10212 100644 --- a/plugins/googleanalytics/plugin.json +++ b/plugins/googleanalytics/plugin.json @@ -1,5 +1,5 @@ { - "id": "googleanalytics", + "id": "google-analytics", "name": "Google Analytics", "priority": 30, "description": "Adds support for reporting analytics to a Google." diff --git a/plugins/webhooks/client/index.tsx b/plugins/webhooks/client/index.tsx index 36d7d10309..433e173277 100644 --- a/plugins/webhooks/client/index.tsx +++ b/plugins/webhooks/client/index.tsx @@ -8,7 +8,8 @@ PluginManager.add([ ...config, type: Hook.Settings, value: { - group: "Integrations", + group: "Workspace", + after: "Shared Links", icon: Icon, component: React.lazy(() => import("./Settings")), description: diff --git a/shared/i18n/locales/en_US/translation.json b/shared/i18n/locales/en_US/translation.json index 9400aa6750..d96cffd0b8 100644 --- a/shared/i18n/locales/en_US/translation.json +++ b/shared/i18n/locales/en_US/translation.json @@ -524,7 +524,6 @@ "Groups": "Groups", "Shared Links": "Shared Links", "Import": "Import", - "Install integration…": "Install integration…", "Revoke token": "Revoke token", "Revoke": "Revoke", "Show path to document": "Show path to document",