remove status indicator button and count, move progress icons to folder

This commit is contained in:
Chad Curtis committed 2025-09-05 22:24:38 +00:00
1 parent e622c09251
commit beeffd820d
2 files changed
+15 -12

No files matched your search

+8 -3
View File
@@ -9,6 +9,7 @@ interface ProjectSessionIndicatorProps {
/**
* Small indicator that shows if a project has active AI sessions
* Positioned as a status badge on the folder icon
*/
export function ProjectSessionIndicator({ projectId, className }: ProjectSessionIndicatorProps) {
const { hasActiveSessions, hasRunningSessions } = useProjectSessionStatus(projectId);
@@ -18,11 +19,15 @@ export function ProjectSessionIndicator({ projectId, className }: ProjectSession
}
return (
<div className={cn("flex items-center", className)}>
<div className={cn(
"absolute -bottom-0.5 -right-0.5 flex items-center justify-center",
"bg-background border border-border rounded-full shadow-sm",
className
)}>
{hasRunningSessions ? (
<Loader2 className="h-3 w-3 animate-spin text-blue-600 dark:text-blue-400" />
<Loader2 className="h-2.5 w-2.5 animate-spin text-blue-600 dark:text-blue-400" />
) : (
<div className="h-2 w-2 rounded-full bg-green-500" title="AI session active" />
<div className="h-1.5 w-1.5 rounded-full bg-green-500" title="AI session active" />
)}
</div>
);
+7 -9
View File
@@ -7,7 +7,6 @@ import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuTrigge
import { LoginArea } from '@/components/auth/LoginArea';
import { StarButton } from '@/components/StarButton';
import { AISettingsDialog } from '@/components/ai/AISettingsDialog';
import { SessionStatusIndicator } from '@/components/SessionStatusIndicator';
import { ProjectSessionIndicator } from '@/components/ProjectSessionIndicator';
import { useProjectsManager } from '@/hooks/useProjectsManager';
import { useLocalStorage } from '@/hooks/useLocalStorage';
@@ -164,7 +163,6 @@ export function ProjectSidebar({
</h1>
</button>
<div className="flex items-center gap-1">
<SessionStatusIndicator currentProjectId={selectedProject?.id} />
<DropdownMenu>
<DropdownMenuTrigger asChild>
<Button variant="ghost" size="sm" className="h-8 w-8 p-0 hover:bg-primary/10">
@@ -250,15 +248,15 @@ export function ProjectSidebar({
className="absolute inset-0"
/>
<div className="flex items-center gap-3">
<Folder className="h-4 w-4 text-primary flex-shrink-0" />
<div className="relative flex-shrink-0">
<Folder className="h-4 w-4 text-primary" />
<ProjectSessionIndicator projectId={project.id} />
</div>
<div className="flex items-start justify-between gap-2 flex-1 min-w-0">
<div className="min-w-0 flex-1">
<div className="flex items-center gap-2 mb-1">
<h3 className="font-medium text-sm truncate">
{project.name}
</h3>
<ProjectSessionIndicator projectId={project.id} />
</div>
<h3 className="font-medium text-sm truncate mb-1">
{project.name}
</h3>
</div>
{/* Star Button */}