From 1e5bff82f2f434c95316a4ae1be8a406b699d97d Mon Sep 17 00:00:00 2001 From: Hiep Le <69354317+hieptl@users.noreply.github.com> Date: Fri, 7 Nov 2025 13:14:28 +0700 Subject: [PATCH] feat(frontend): visually highlight chat input container in plan mode (#11647) --- .../features/chat/components/chat-input-container.tsx | 11 ++++++++++- frontend/src/routes/planner-tab.tsx | 6 +++++- frontend/src/state/conversation-store.ts | 8 ++++++++ 3 files changed, 23 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/features/chat/components/chat-input-container.tsx b/frontend/src/components/features/chat/components/chat-input-container.tsx index c37b479b71..acba3074f5 100644 --- a/frontend/src/components/features/chat/components/chat-input-container.tsx +++ b/frontend/src/components/features/chat/components/chat-input-container.tsx @@ -3,6 +3,8 @@ import { DragOver } from "../drag-over"; import { UploadedFiles } from "../uploaded-files"; import { ChatInputRow } from "./chat-input-row"; import { ChatInputActions } from "./chat-input-actions"; +import { useConversationStore } from "#/state/conversation-store"; +import { cn } from "#/utils/utils"; interface ChatInputContainerProps { chatContainerRef: React.RefObject; @@ -43,10 +45,17 @@ export function ChatInputContainer({ onFocus, onBlur, }: ChatInputContainerProps) { + const conversationMode = useConversationStore( + (state) => state.conversationMode, + ); + return (
onDragOver(e, disabled)} onDragLeave={(e) => onDragLeave(e, disabled)} onDrop={(e) => onDrop(e, disabled)} diff --git a/frontend/src/routes/planner-tab.tsx b/frontend/src/routes/planner-tab.tsx index b403c49387..4b2fc7eb33 100644 --- a/frontend/src/routes/planner-tab.tsx +++ b/frontend/src/routes/planner-tab.tsx @@ -1,9 +1,13 @@ import { useTranslation } from "react-i18next"; import { I18nKey } from "#/i18n/declaration"; import LessonPlanIcon from "#/icons/lesson-plan.svg?react"; +import { useConversationStore } from "#/state/conversation-store"; function PlannerTab() { const { t } = useTranslation(); + const setConversationMode = useConversationStore( + (state) => state.setConversationMode, + ); return (
@@ -13,7 +17,7 @@ function PlannerTab() {