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
@@ -10,6 +10,7 @@ import { Card, CardContent, CardDescription, CardHeader, CardTitle } from '@/com
import { Tabs, TabsContent, TabsList, TabsTrigger } from '@/components/ui/tabs';
import { GitCompare, Loader2, GitCommit, FileIcon } from 'lucide-react';
import { useGit } from '@/hooks/useGit';
import { useFSPaths } from '@/hooks/useFSPaths';
import { useToast } from '@/hooks/useToast';
import { DiffViewer } from './DiffViewer';
@@ -38,8 +39,9 @@ export function CompareView({ projectId }: CompareViewProps) {
} | null>(null);
const { git } = useGit();
const { projectsPath } = useFSPaths();
const { toast } = useToast();
const projectPath = `/projects/${projectId}`;
const projectPath = `${projectsPath}/${projectId}`;
const loadReferences = useCallback(async () => {
setIsLoading(true);