Make FS paths configurable

This commit is contained in:
Alex Gleason committed 2025-10-23 14:50:05 -05:00
1 parent f89a481c9c
commit d75bd386aa
43 files changed
+393 -124

No files matched your search

+3 -1
View File
@@ -22,6 +22,7 @@ import {
GitFork,
} from 'lucide-react';
import { useGit } from '@/hooks/useGit';
import { useFSPaths } from '@/hooks/useFSPaths';
import { useGitSettings } from '@/hooks/useGitSettings';
import { useToast } from '@/hooks/useToast';
import { findCredentialsForRepo } from '@/lib/gitCredentials';
@@ -59,9 +60,10 @@ export function PullRequestForm({ projectId, currentBranch, remoteUrl }: PullReq
const [error, setError] = useState<string | null>(null);
const { git } = useGit();
const { projectsPath } = useFSPaths();
const { settings } = useGitSettings();
const { toast } = useToast();
const projectPath = `/projects/${projectId}`;
const projectPath = `${projectsPath}/${projectId}`;
// All the helper functions from PullRequestDialog can be reused here
// (parseRemoteUrl, checkPushPermissions, ensureFork, etc.)