From 6407523df411b90a8337ba579af808bf49ade38b Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Thu, 25 Dec 2025 06:06:56 -0600 Subject: [PATCH] Loading icon on chat tab --- src/pages/ProjectView.tsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/pages/ProjectView.tsx b/src/pages/ProjectView.tsx index bbba5077..9de1889d 100644 --- a/src/pages/ProjectView.tsx +++ b/src/pages/ProjectView.tsx @@ -40,6 +40,7 @@ import { useGitFetch } from '@/hooks/useGitFetch'; import { useQueryClient } from '@tanstack/react-query'; import JSZip from 'jszip'; import { cn } from '@/lib/utils'; +import { useProjectSessionStatus } from '@/hooks/useProjectSessionStatus'; export function ProjectView() { const { projectId } = useParams<{ projectId: string }>(); @@ -72,6 +73,7 @@ export function ProjectView() { const build = useBuildProject(projectId!); const { data: isPreviewable = false } = useIsProjectPreviewable(projectId!); + const { hasRunningSessions } = useProjectSessionStatus(projectId || ''); // Automatically fetch from remote to keep git status updated useGitFetch(projectId ? `${projectsPath}/${projectId}` : undefined); @@ -402,7 +404,11 @@ export function ProjectView() { className={cn("flex-1 rounded-none mobile-nav-button text-muted-foreground", { "text-foreground": mobileView === 'chat' })} disabled={!project} > - + {project && hasRunningSessions ? ( + + ) : ( + + )} {t('chat')} {isPreviewable && (