🎥 Make videos programmatically with React
refactor(tp2mg): rename ConversationHistory to ChatHistory
ASchwaded12279e1f97
diff --git a/packages/template-prompt-to-motion-graphics/src/components/ChatSidebar/ConversationHistory.tsx b/packages/template-prompt-to-motion-graphics/src/components/ChatSidebar/ChatHistory.tsxsimilarity index 98%rename from packages/template-prompt-to-motion-graphics/src/components/ChatSidebar/ConversationHistory.tsxrename to packages/template-prompt-to-motion-graphics/src/components/ChatSidebar/ChatHistory.tsxindex ed4c872b3f..ee1466566d 100644--- a/packages/template-prompt-to-motion-graphics/src/components/ChatSidebar/ConversationHistory.tsx+++ b/packages/template-prompt-to-motion-graphics/src/components/ChatSidebar/ChatHistory.tsx@@ -9,7 +9,7 @@ import {} from "@/components/ui/tooltip";import type { ConversationMessage } from "@/types/conversation";-interface ConversationHistoryProps {+interface ChatHistoryProps {messages: ConversationMessage[];pendingMessage?: {skills?: string[];@@ -17,10 +17,10 @@ interface ConversationHistoryProps {};}-export function ConversationHistory({+export function ChatHistory({messages,pendingMessage,-}: ConversationHistoryProps) {+}: ChatHistoryProps) {const messagesEndRef = useRef<HTMLDivElement>(null);// Auto-scroll to bottom when messages changediff --git a/packages/template-prompt-to-motion-graphics/src/components/ChatSidebar/ChatSidebar.tsx b/packages/template-prompt-to-motion-graphics/src/components/ChatSidebar/ChatSidebar.tsxindex f2b1a676fb..1d2e386639 100644--- a/packages/template-prompt-to-motion-graphics/src/components/ChatSidebar/ChatSidebar.tsx+++ b/packages/template-prompt-to-motion-graphics/src/components/ChatSidebar/ChatSidebar.tsx@@ -25,7 +25,7 @@ import {MODELS,} from "@/types/generation";import { ChatInput } from "./ChatInput";-import { ConversationHistory } from "./ConversationHistory";+import { ChatHistory } from "./ChatHistory";import { useGenerationApi } from "@/hooks/useGenerationApi";export interface ChatSidebarRef {@@ -220,7 +220,7 @@ export const ChatSidebar = forwardRef<ChatSidebarRef, ChatSidebarProps>(</div>{/* Messages */}- <ConversationHistory+ <ChatHistorymessages={messages}pendingMessage={pendingMessage}/>