From 4cf68a4c870cf404eb08d75c320342fa4cc3eb05 Mon Sep 17 00:00:00 2001 From: Abhimanyu Saharan Date: Sat, 7 Feb 2026 16:32:49 +0530 Subject: [PATCH] feat(chat): update message sending behavior and input focus management --- frontend/src/app/boards/[boardId]/page.tsx | 12 ++++++++++++ frontend/src/components/BoardOnboardingChat.tsx | 10 ++++++---- 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/frontend/src/app/boards/[boardId]/page.tsx b/frontend/src/app/boards/[boardId]/page.tsx index 0778e73e..2a8874f1 100644 --- a/frontend/src/app/boards/[boardId]/page.tsx +++ b/frontend/src/app/boards/[boardId]/page.tsx @@ -342,6 +342,7 @@ export default function BoardDetailPage() { const [isCommentsLoading, setIsCommentsLoading] = useState(false); const [commentsError, setCommentsError] = useState(null); const [newComment, setNewComment] = useState(""); + const taskCommentInputRef = useRef(null); const [isPostingComment, setIsPostingComment] = useState(false); const [postCommentError, setPostCommentError] = useState(null); const [isDetailOpen, setIsDetailOpen] = useState(false); @@ -1713,6 +1714,7 @@ export default function BoardDetailPage() { ); } finally { setIsPostingComment(false); + taskCommentInputRef.current?.focus(); } }; @@ -2612,8 +2614,18 @@ export default function BoardDetailPage() {