Integrate project classroom with teacher and friend consultations

This commit is contained in:
鲨鱼辣椒
2026-09-22 15:50:18 +08:00
parent e5d271bc45
commit 68e676cb62
28 changed files with 957 additions and 314 deletions

View File

@@ -8,6 +8,7 @@ import {
MoreHorizontal,
Pencil,
Settings2,
MessageSquare,
} from 'lucide-react';
import * as DropdownMenu from '@radix-ui/react-dropdown-menu';
import { toast } from 'sonner';
@@ -66,7 +67,7 @@ export function CodingProjectConversations({ projectId }: { projectId: string })
<div
role="group"
aria-label="项目会话"
className="ml-3 border-l border-border/70 py-1 pl-2"
className="ml-5 py-1 pl-1"
data-testid="project-conversations"
>
<div className="flex items-center gap-1 text-muted-foreground">
@@ -87,7 +88,7 @@ export function CodingProjectConversations({ projectId }: { projectId: string })
}
>
<MessageSquarePlus className="h-3.5 w-3.5" />
新建会话
新对话
</button>
<button
aria-label={archived ? '返回最近对话' : '查看归档对话'}
@@ -116,7 +117,7 @@ export function CodingProjectConversations({ projectId }: { projectId: string })
return (
<div
key={item.id}
className={`group/session flex items-center rounded-lg ${selected === item.id ? 'bg-brand-soft' : 'hover:bg-surface-tertiary'}`}
className={`group/session flex items-center rounded-lg ${selected === item.id ? 'bg-[#e7e9e1]' : 'hover:bg-surface-tertiary'}`}
>
<button
className="flex min-w-0 flex-1 items-center gap-1.5 px-2 py-2 text-left text-xs"
@@ -124,7 +125,7 @@ export function CodingProjectConversations({ projectId }: { projectId: string })
aria-current={selected === item.id ? 'page' : undefined}
onClick={() => void act(item.id, () => select(item))}
>
<span className="flex-1 truncate">{item.title}</span>
<MessageSquare className="h-3.5 w-3.5 shrink-0 text-muted-foreground/65" /><span className="flex-1 truncate">{item.title}</span>
{running && (
<LoaderCircle className="h-3 w-3 animate-spin" aria-label="对话正在运行" />
)}