diff --git a/src/components/GitDialog.tsx b/src/components/GitDialog.tsx index 32ac9e9a..c0c3462e 100644 --- a/src/components/GitDialog.tsx +++ b/src/components/GitDialog.tsx @@ -45,6 +45,7 @@ import { Save, Settings2, GitPullRequest, + ExternalLink, } from 'lucide-react'; import { useGitStatus } from '@/hooks/useGitStatus'; import { useGitSettings } from '@/hooks/useGitSettings'; @@ -953,6 +954,69 @@ export function GitDialog({ projectId, children, open, onOpenChange }: GitDialog )} + {/* Pull Requests Card */} + {gitStatus?.isGitRepo && gitStatus.remotes.length > 0 && originUrl && !originUrl.startsWith('nostr://') && ( + + + Pull Requests + + Manage pull requests for this repository + + + + {/* Open Pull Requests List */} + {isLoadingPRs ? ( +
+ + Loading pull requests... +
+ ) : pullRequests && pullRequests.length > 0 ? ( +
+ {pullRequests.map((pr) => ( +
+ +
+
+
+

+ {pr.title} +

+

+ #{pr.number} by {pr.author} • {pr.sourceBranch} → {pr.targetBranch} +

+
+ +
+
+
+ ))} +
+ ) : ( +
+ You have no open pull requests +
+ )} + + {/* Create PR Button */} + +
+
+ )} + {/* Branch Operations */} {gitStatus?.isGitRepo && gitStatus.currentBranch && ( @@ -965,13 +1029,6 @@ export function GitDialog({ projectId, children, open, onOpenChange }: GitDialog currentBranch={gitStatus.currentBranch} onMergeComplete={() => refetchGitStatus()} /> - {gitStatus.remotes.length > 0 && originUrl && !originUrl.startsWith('nostr://') && ( - - )} {gitStatus.remotes.length > 0 && originUrl?.startsWith('nostr://') && (