diff --git a/web/app/dashboard/conversations/_components/chat-panel.tsx b/web/app/dashboard/conversations/_components/chat-panel.tsx index 119d81c..75192f0 100644 --- a/web/app/dashboard/conversations/_components/chat-panel.tsx +++ b/web/app/dashboard/conversations/_components/chat-panel.tsx @@ -173,7 +173,7 @@ export function ChatPanel() { toast.error(error instanceof Error ? error.message : "设置已读失败"); }); }, [ - conversation?.id, + conversation, getViewport, isNearBottom, loading, @@ -386,7 +386,7 @@ export function ChatPanel() { ); const bottomPanel = ( -
+
{isClosedConversation ? (
当前会话已关闭 diff --git a/web/app/dashboard/conversations/_components/conversation-info-panel.tsx b/web/app/dashboard/conversations/_components/conversation-info-panel.tsx index 37d9bc8..6ebd864 100644 --- a/web/app/dashboard/conversations/_components/conversation-info-panel.tsx +++ b/web/app/dashboard/conversations/_components/conversation-info-panel.tsx @@ -199,12 +199,12 @@ export function ConversationInfoPanel({ className={cn( "flex h-full min-h-0 flex-col overflow-hidden", embedded - ? "bg-background text-foreground" - : "border-border bg-card text-card-foreground", + ? "bg-card text-card-foreground" + : "border-border/80 bg-card text-card-foreground", className, )} > -
+

会话信息

diff --git a/web/app/dashboard/conversations/_components/conversation-list.tsx b/web/app/dashboard/conversations/_components/conversation-list.tsx index d2a8c78..bfcdbd1 100644 --- a/web/app/dashboard/conversations/_components/conversation-list.tsx +++ b/web/app/dashboard/conversations/_components/conversation-list.tsx @@ -15,9 +15,9 @@ import { formatDateTime } from "@/lib/utils"; function getStatusVariant(status: number) { switch (status) { case IMConversationStatus.AIServing: - return "bg-violet-500/15 text-violet-700 dark:bg-violet-500/20 dark:text-violet-300" + return "bg-primary/10 text-primary" case IMConversationStatus.Pending: - return "bg-blue-500/15 text-blue-700 dark:bg-blue-500/20 dark:text-blue-300" + return "bg-amber-500/15 text-amber-800 dark:bg-amber-500/20 dark:text-amber-300" case IMConversationStatus.Active: return "bg-emerald-500/15 text-emerald-800 dark:bg-emerald-500/20 dark:text-emerald-300" case IMConversationStatus.Closed: @@ -49,8 +49,8 @@ export function ConversationList({ onAfterSelect }: ConversationListProps) { return (
{ void selectConversation(conversation.id).then( @@ -65,7 +65,7 @@ export function ConversationList({ onAfterSelect }: ConversationListProps) {
- + @@ -94,7 +94,7 @@ export function ConversationList({ onAfterSelect }: ConversationListProps) {
@@ -102,7 +102,7 @@ export function ConversationList({ onAfterSelect }: ConversationListProps) { {conversation.status === IMConversationStatus.Pending && conversation.currentTeamName ? ( - + 值班组:{conversation.currentTeamName} ) : null} diff --git a/web/app/dashboard/conversations/page.tsx b/web/app/dashboard/conversations/page.tsx index 1f4ca7d..7911d76 100644 --- a/web/app/dashboard/conversations/page.tsx +++ b/web/app/dashboard/conversations/page.tsx @@ -47,6 +47,19 @@ import { ChatPanel } from "./_components/chat-panel"; import { ConversationInfoPanel } from "./_components/conversation-info-panel"; import { ConversationList } from "./_components/conversation-list"; +const workbenchIconButtonClassName = + "size-8 text-muted-foreground hover:bg-muted hover:text-foreground"; + +function getCustomerOnlineClassName(online?: boolean) { + return online + ? "border-emerald-200 bg-emerald-50 text-emerald-700 dark:border-emerald-500/30 dark:bg-emerald-500/15 dark:text-emerald-300" + : "border-border bg-muted text-muted-foreground"; +} + +function getCustomerOnlineDotClassName(online?: boolean) { + return online ? "bg-emerald-500" : "bg-muted-foreground/70"; +} + export default function ConversationsPage() { const conversation = useAgentConversationsStore( agentConversationSelectors.selectedConversation, @@ -156,7 +169,7 @@ export default function ConversationsPage() { const renderConversationSidebar = (opts?: { onListAfterSelect?: () => void }) => (
-
+
{showFilterDropdown ? ( @@ -229,7 +242,7 @@ export default function ConversationsPage() {