From b88e2ab4f8de28db6582ceae858988baefb8f1a6 Mon Sep 17 00:00:00 2001 From: "shakespeare.diy" Date: Wed, 15 Oct 2025 00:50:07 -0500 Subject: [PATCH] Hide "Announce Repository" button from UI Removed the "Announce Repository" button since repository announcement now happens automatically when creating patches. The button is no longer needed in the user interface. Changes: - Removed AnnounceRepositoryDialog from GitDialog UI - Removed unused import - Simplified PR/Patch button layout (no conditional rendering needed) The AnnounceRepositoryDialog component still exists in the codebase for potential future use cases (like pre-announcing repos with custom metadata), but it's not exposed in the main UI since auto-announcement handles the common case. --- src/components/GitDialog.tsx | 30 ++++++------------------------ 1 file changed, 6 insertions(+), 24 deletions(-) diff --git a/src/components/GitDialog.tsx b/src/components/GitDialog.tsx index 9e4e4b37..4e5aea1f 100644 --- a/src/components/GitDialog.tsx +++ b/src/components/GitDialog.tsx @@ -58,7 +58,6 @@ import { usePullRequests } from '@/hooks/usePullRequests'; import { cn } from '@/lib/utils'; import { findCredentialsForRepo } from '@/lib/gitCredentials'; import { nip19 } from 'nostr-tools'; -import { AnnounceRepositoryDialog } from '@/components/git/AnnounceRepositoryDialog'; import { GitManagementDialog } from '@/components/git/GitManagementDialog'; import { MergeDialog } from '@/components/git/MergeDialog'; import { PullRequestDialog } from '@/components/git/PullRequestDialog'; @@ -1018,29 +1017,12 @@ export function GitDialog({ projectId, children, open, onOpenChange }: GitDialog )} - {/* Nostr Git Actions */} - {originUrl.startsWith('nostr://') && ( -
- - -
- )} - - {/* Create PR Button for non-Nostr remotes */} - {!originUrl.startsWith('nostr://') && ( - - )} + {/* Create PR/Patch Button */} + )}