mirror of
https://github.com/outline/outline.git
synced 2026-12-01 01:14:11 +03:00
fix: Google analytics never shows as installed
fix: Styling tweaks Move webhooks out of integrations
This commit is contained in:
6 files changed
+15
-17
No files matched your search
@@ -19,9 +19,8 @@ function IntegrationCard({ integration }: Props) {
|
||||
<Flex justify="space-between" align="center">
|
||||
<Flex align="center" gap={8}>
|
||||
<integration.icon size={48} />
|
||||
<Flex column gap={4}>
|
||||
<Flex column>
|
||||
<Name>{integration.name}</Name>
|
||||
|
||||
{integration.isActive && <Status>{t("Connected")}</Status>}
|
||||
</Flex>
|
||||
</Flex>
|
||||
@@ -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,
|
||||
|
||||
@@ -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);
|
||||
});
|
||||
|
||||
@@ -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 (
|
||||
<Scene title={t("Integrations")}>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"id": "googleanalytics",
|
||||
"id": "google-analytics",
|
||||
"name": "Google Analytics",
|
||||
"priority": 30,
|
||||
"description": "Adds support for reporting analytics to a Google."
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in new issue
Block a user