diff --git a/frontend/src/components/WorkspaceChat/ChatContainer/ChatHistory/StatusResponse/index.jsx b/frontend/src/components/WorkspaceChat/ChatContainer/ChatHistory/StatusResponse/index.jsx index 2ceb74406f3..66482ef619a 100644 --- a/frontend/src/components/WorkspaceChat/ChatContainer/ChatHistory/StatusResponse/index.jsx +++ b/frontend/src/components/WorkspaceChat/ChatContainer/ChatHistory/StatusResponse/index.jsx @@ -1,10 +1,8 @@ import React, { useState } from "react"; -import { - CaretDown, - CircleNotch, - Check, - CheckCircle, -} from "@phosphor-icons/react"; +import { CaretDown } from "@phosphor-icons/react"; + +import AgentAnimation from "@/media/animations/agent-animation.webm"; +import AgentStatic from "@/media/animations/agent-static.png"; export default function StatusResponse({ messages = [], @@ -21,94 +19,85 @@ export default function StatusResponse({ } return ( -
-
-
- {isThinking ? ( - - ) : showCheckmark ? ( - - ) : null} -
- - {currentThought.content} - -
-
- {previousThoughts?.length > 0 && ( -
- -
- )} -
-
- - {/* Previous thoughts dropdown */} - {previousThoughts?.length > 0 && ( +
+
+
-
- {previousThoughts.map((thought, index) => ( -
+ {isThinking ? ( +
- )} +
); diff --git a/frontend/src/components/WorkspaceChat/ChatContainer/ChatHistory/ThoughtContainer/index.jsx b/frontend/src/components/WorkspaceChat/ChatContainer/ChatHistory/ThoughtContainer/index.jsx index 75f1d835ce4..957531171b6 100644 --- a/frontend/src/components/WorkspaceChat/ChatContainer/ChatHistory/ThoughtContainer/index.jsx +++ b/frontend/src/components/WorkspaceChat/ChatContainer/ChatHistory/ThoughtContainer/index.jsx @@ -1,9 +1,10 @@ import { useState, forwardRef, useImperativeHandle } from "react"; import renderMarkdown from "@/utils/chat/markdown"; -import { Brain, CaretDown } from "@phosphor-icons/react"; +import { CaretDown } from "@phosphor-icons/react"; import DOMPurify from "dompurify"; -import truncate from "truncate"; import { isMobile } from "react-device-detect"; +import ThinkingAnimation from "@/media/animations/thinking-animation.webm"; +import ThinkingStatic from "@/media/animations/thinking-static.png"; const THOUGHT_KEYWORDS = ["thought", "thinking", "think", "thought_chain"]; const CLOSING_TAGS = [...THOUGHT_KEYWORDS, "response", "answer"]; @@ -61,46 +62,57 @@ export const ThoughtChainComponent = forwardRef(
- {isThinking || isComplete ? ( - - ) : null} -
- {!isExpanded && !autoExpand ? ( - - ) : ( - - )} +
+ {isThinking || isComplete ? ( + <> + + Thinking complete + + ) : null} +
+
+
+
+ +
+
{!autoExpand && canExpand ? ( @@ -127,3 +139,4 @@ export const ThoughtChainComponent = forwardRef( ); } ); +ThoughtChainComponent.displayName = "ThoughtChainComponent"; diff --git a/frontend/src/media/animations/agent-animation.webm b/frontend/src/media/animations/agent-animation.webm new file mode 100644 index 00000000000..18d17d08c7c Binary files /dev/null and b/frontend/src/media/animations/agent-animation.webm differ diff --git a/frontend/src/media/animations/agent-static.png b/frontend/src/media/animations/agent-static.png new file mode 100644 index 00000000000..db06bf745dd Binary files /dev/null and b/frontend/src/media/animations/agent-static.png differ diff --git a/frontend/src/media/animations/thinking-animation.webm b/frontend/src/media/animations/thinking-animation.webm new file mode 100644 index 00000000000..be059402473 Binary files /dev/null and b/frontend/src/media/animations/thinking-animation.webm differ diff --git a/frontend/src/media/animations/thinking-static.png b/frontend/src/media/animations/thinking-static.png new file mode 100644 index 00000000000..220236c03f6 Binary files /dev/null and b/frontend/src/media/animations/thinking-static.png differ