diff --git a/packages/webui/components/chat/message-card.tsx b/packages/webui/components/chat/message-card.tsx index b0c78552..7f70ddab 100644 --- a/packages/webui/components/chat/message-card.tsx +++ b/packages/webui/components/chat/message-card.tsx @@ -1,5 +1,3 @@ -import type { AttachmentInfo, CommentInfo } from '@shumai/dtos' -import type { UserInfo } from '@shumai/dtos' import { client } from '@/ui/api/client' import { Button } from '@/ui/components/ui/button' import { @@ -11,6 +9,7 @@ import { } from '@/ui/components/ui/dialog' import { Separator } from '@/ui/components/ui/separator' import { formatTimeAgo } from '@/ui/lib/time' +import type { AttachmentInfo, CommentInfo, UserInfo } from '@shumai/dtos' import { useQuery } from '@tanstack/react-query' import { Download, File, Terminal } from 'lucide-react' import React from 'react' @@ -191,11 +190,11 @@ export const MessageCard: React.FC = ({ {loadingText} ) : message.sessionId ? ( -
+
{preprocessMarkdown(message.message!)}
) : ( -
+
{renderFormattedMessage(message.message!)}
)} diff --git a/packages/webui/components/guest-identity-popup.tsx b/packages/webui/components/guest-identity-popup.tsx index 3ac8b2e7..80b3dc99 100644 --- a/packages/webui/components/guest-identity-popup.tsx +++ b/packages/webui/components/guest-identity-popup.tsx @@ -21,7 +21,6 @@ export function GuestIdentityPopup({ onSuccess, children, }: GuestIdentityPopupProps) { - console.log('[GuestIdentityPopup] isOpen:', isOpen) const [name, setName] = useState('') const [email, setEmail] = useState('') const [isLoading, setIsLoading] = useState(false) diff --git a/packages/webui/components/viewers/progress-bar.tsx b/packages/webui/components/viewers/progress-bar.tsx index 0461bf96..1faafbe8 100644 --- a/packages/webui/components/viewers/progress-bar.tsx +++ b/packages/webui/components/viewers/progress-bar.tsx @@ -124,7 +124,7 @@ const ProgressBar: React.FC = ({ return (
= ({ className="pointer-events-none absolute bottom-full z-50 mb-3 flex w-max flex-col" style={getTooltipStyle()} > -
+