From 865a7b83b8a67250873c4f6427fa84f1d1c80b62 Mon Sep 17 00:00:00 2001 From: "shakespeare.diy" Date: Wed, 15 Oct 2025 01:05:24 -0500 Subject: [PATCH] Remove Review button for Nostr patches (not applicable) Removed the "Review" button for Nostr patches since they can't be checked out as branches. The Nostr git workflow is different: - Patches are standalone events, not git branches - Contributors don't push branches to a shared remote - Repository owners review patches via the Merge dialog which shows the patch content and commits For GitHub/GitLab: - Review button still works (checks out the actual branch) - Branch exists on remote and can be pulled/checked out For Nostr: - Only Merge button shown for repo owners - Merge dialog displays the patch content for review - This aligns with NIP-34 workflow where patches are self-contained --- src/components/GitDialog.tsx | 56 +++++++++++++++++++----------------- 1 file changed, 29 insertions(+), 27 deletions(-) diff --git a/src/components/GitDialog.tsx b/src/components/GitDialog.tsx index b8f18a0a..00e11fed 100644 --- a/src/components/GitDialog.tsx +++ b/src/components/GitDialog.tsx @@ -1019,33 +1019,35 @@ export function GitDialog({ projectId, children, open, onOpenChange }: GitDialog
{!pr.isOwner && pr.state === 'open' && ( <> - + {!originUrl.startsWith('nostr://') && ( + + )}