From 09887a7405403daac8924beac02e27077b013ed4 Mon Sep 17 00:00:00 2001 From: Daniel Hougaard Date: Mon, 16 Sep 2024 23:05:38 +0400 Subject: [PATCH] Update ConfiguredIntegrationItem.tsx --- .../ConfiguredIntegrationItem.tsx | 54 ++++++++++++------- 1 file changed, 34 insertions(+), 20 deletions(-) diff --git a/frontend/src/views/IntegrationsPage/components/IntegrationsSection/ConfiguredIntegrationItem.tsx b/frontend/src/views/IntegrationsPage/components/IntegrationsSection/ConfiguredIntegrationItem.tsx index 4ae52a94e..29901e35a 100644 --- a/frontend/src/views/IntegrationsPage/components/IntegrationsSection/ConfiguredIntegrationItem.tsx +++ b/frontend/src/views/IntegrationsPage/components/IntegrationsSection/ConfiguredIntegrationItem.tsx @@ -4,6 +4,7 @@ import { useRouter } from "next/router"; import { faArrowRight, faCalendarCheck, + faEllipsis, faRefresh, faWarning, faXmark @@ -13,7 +14,7 @@ import { format } from "date-fns"; import { integrationSlugNameMapping } from "public/data/frequentConstants"; import { ProjectPermissionCan } from "@app/components/permissions"; -import { Button, FormLabel, IconButton, Tag, Tooltip } from "@app/components/v2"; +import { Badge, FormLabel, IconButton, Tooltip } from "@app/components/v2"; import { ProjectPermissionActions, ProjectPermissionSub } from "@app/context"; import { IntegrationMappingBehavior } from "@app/hooks/api/integrations/types"; import { TIntegration } from "@app/hooks/api/types"; @@ -174,9 +175,9 @@ export const ConfiguredIntegrationItem = ({ )} -
+
{integration.isSynced != null && integration.lastUsed != null && ( - + } > -
+
{integration.isSynced ? "Synced" : "Not synced"}
{!integration.isSynced && }
- + )} -
+
- + + -
- - {(isAllowed: boolean) => ( -
+ + {(isAllowed: boolean) => ( { @@ -237,13 +239,25 @@ export const ConfiguredIntegrationItem = ({ isDisabled={!isAllowed} colorSchema="danger" variant="star" + className="max-w-[2.5rem] border-none bg-mineshaft-500" > - + -
- )} -
+ )} + + + + + + + +
);