From f3d091dacb994fb72eaf959e73dcce76ccc99133 Mon Sep 17 00:00:00 2001 From: Saxon Fletcher Date: Thu, 26 Jun 2025 10:05:38 +1000 Subject: [PATCH] cleanup --- .../GithubIntegration/GithubSection.tsx | 22 ++++++------------- 1 file changed, 7 insertions(+), 15 deletions(-) diff --git a/apps/studio/components/interfaces/Settings/Integrations/GithubIntegration/GithubSection.tsx b/apps/studio/components/interfaces/Settings/Integrations/GithubIntegration/GithubSection.tsx index 31fe35f993d..11eeb95a555 100644 --- a/apps/studio/components/interfaces/Settings/Integrations/GithubIntegration/GithubSection.tsx +++ b/apps/studio/components/interfaces/Settings/Integrations/GithubIntegration/GithubSection.tsx @@ -1,6 +1,6 @@ import { zodResolver } from '@hookform/resolvers/zod' import { PermissionAction } from '@supabase/shared-types/out/constants' -import { Check, Github, Loader2 } from 'lucide-react' +import { Loader2 } from 'lucide-react' import { useCallback, useEffect, useMemo, useState } from 'react' import { useForm } from 'react-hook-form' import { toast } from 'sonner' @@ -30,18 +30,14 @@ import { useSelectedProject } from 'hooks/misc/useSelectedProject' import { BASE_PATH } from 'lib/constants' import { useSidePanelsStateSnapshot } from 'state/side-panels' import { - Badge, Button, Card, CardContent, CardFooter, - CardHeader, - CardTitle, cn, Form_Shadcn_, FormControl_Shadcn_, FormField_Shadcn_, - FormMessage_Shadcn_, Input_Shadcn_, Switch, } from 'ui' @@ -305,7 +301,12 @@ const GitHubSection = () => {
{/* Section 1: GitHub Connection */}
-
GitHub Repository
+
How does the GitHub integration work?
+

+ Connecting to GitHub allows you to sync preview branches with a chosen GitHub + branch, keep your production branch in sync, and automatically create preview + branches for every pull request. +

{existingConnection ? (
    { } /> - )} /> @@ -426,15 +426,8 @@ const GitHubSection = () => { {isCheckingBranch && ( )} - {field.value && - !isCheckingBranch && - !githubSettingsForm.formState.errors.branchName && - isConnected && ( - - )}
- )} /> @@ -487,7 +480,6 @@ const GitHubSection = () => { disabled={!newBranchPerPr || !canUpdateGitHubConnection} /> - )} />