mirror of
https://gitlab.com/soapbox-pub/shakespeare.git
synced 2026-12-06 08:37:22 +00:00
Add git autosync functionality
This commit is contained in:
7 files changed
+201
-51
No files matched your search
@@ -26,7 +26,7 @@ import { useConsoleError } from '@/hooks/useConsoleError';
|
||||
import { useAutoBuild } from '@/hooks/useAutoBuild';
|
||||
import { useToast } from '@/hooks/useToast';
|
||||
import { useFSPaths } from '@/hooks/useFSPaths';
|
||||
import { useGitFetch } from '@/hooks/useGitFetch';
|
||||
import { useGitSync } from '@/hooks/useGitSync';
|
||||
import { useQueryClient } from '@tanstack/react-query';
|
||||
import { cn } from '@/lib/utils';
|
||||
import { useProjectSessionStatus } from '@/hooks/useProjectSessionStatus';
|
||||
@@ -62,8 +62,8 @@ export function ProjectView() {
|
||||
const { data: isPreviewable = false } = useIsProjectPreviewable(projectId!);
|
||||
const { hasRunningSessions } = useProjectSessionStatus(projectId || '');
|
||||
|
||||
// Automatically fetch from remote to keep git status updated
|
||||
useGitFetch(projectId ? `${projectsPath}/${projectId}` : undefined);
|
||||
// Automatically sync with remote to keep git status updated
|
||||
useGitSync(projectId ? `${projectsPath}/${projectId}` : undefined);
|
||||
|
||||
// Enable auto-build for previewable projects
|
||||
useAutoBuild({
|
||||
|
||||
Reference in new issue
Block a user