From eeb2e89d1acd5f92c1131daa66768f65bf932f57 Mon Sep 17 00:00:00 2001 From: = Date: Mon, 8 Jul 2024 13:04:30 +0530 Subject: [PATCH 1/2] feat: banner on warning secret deletion in fly.io integration --- frontend/src/components/v2/Alert/Alert.tsx | 2 +- frontend/src/pages/integrations/flyio/create.tsx | 12 +++++++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/v2/Alert/Alert.tsx b/frontend/src/components/v2/Alert/Alert.tsx index c43857da10..3d2dd63939 100644 --- a/frontend/src/components/v2/Alert/Alert.tsx +++ b/frontend/src/components/v2/Alert/Alert.tsx @@ -81,7 +81,7 @@ const AlertDescription = forwardRef< HTMLParagraphElement, React.HTMLAttributes >(({ className, ...props }, ref) => ( -
+
)); AlertDescription.displayName = "AlertDescription"; diff --git a/frontend/src/pages/integrations/flyio/create.tsx b/frontend/src/pages/integrations/flyio/create.tsx index baa92524a1..e9747bc1b1 100644 --- a/frontend/src/pages/integrations/flyio/create.tsx +++ b/frontend/src/pages/integrations/flyio/create.tsx @@ -15,6 +15,8 @@ import queryString from "query-string"; import { useCreateIntegration } from "@app/hooks/api"; import { + Alert, + AlertDescription, Button, Card, CardTitle, @@ -40,7 +42,7 @@ export default function FlyioCreateIntegrationPage() { const { data: integrationAuth, isLoading: isIntegrationAuthLoading } = useGetIntegrationAuthById( (integrationAuthId as string) ?? "" ); - const { data: integrationAuthApps, isLoading: isIntegrationAuthAppsLoading } = + const { data: integrationAuthApps = [], isLoading: isIntegrationAuthAppsLoading } = useGetIntegrationAuthApps({ integrationAuthId: (integrationAuthId as string) ?? "" }); @@ -130,6 +132,14 @@ export default function FlyioCreateIntegrationPage() {
+
+ + + All existing secrets of your connected flyio project will be permanently removed upon + integration. + + +